changelog: Run format_changelog.py
[tor.git] / ChangeLog
blobc60d9fa7b2a33d3c714d0d10e627753aafe7c37f
1 Changes in version 0.4.5.10 - 2021-08-16
2   This version fixes several bugs from earlier versions of Tor,
3   including one that could lead to a denial-of-service attack. Everyone
4   running an earlier version, whether as a client, a relay, or an onion
5   service, should upgrade to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7.
7   o Major bugfixes (cryptography, security):
8     - Resolve an assertion failure caused by a behavior mismatch between
9       our batch-signature verification code and our single-signature
10       verification code. This assertion failure could be triggered
11       remotely, leading to a denial of service attack. We fix this issue
12       by disabling batch verification. Fixes bug 40078; bugfix on
13       0.2.6.1-alpha. This issue is also tracked as TROVE-2021-007 and
14       CVE-2021-38385. Found by Henry de Valence.
16   o Minor feature (fallbackdir):
17     - Regenerate fallback directories list. Close ticket 40447.
19   o Minor features (geoip data):
20     - Update the geoip files to match the IPFire Location Database, as
21       retrieved on 2021/08/12.
23   o Minor features (testing):
24     - Enable the deterministic RNG for unit tests that covers the
25       address set bloomfilter-based API's. Fixes bug 40419; bugfix
26       on 0.3.3.2-alpha.
28   o Minor bugfix (crypto, backport from 0.4.6.7):
29     - Disable the unused batch verification feature of ed25519-donna.
30       Fixes bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry
31       de Valence.
33   o Minor bugfixes (relay, backport from 0.4.6.7):
34     - Reduce the compression level for data streaming from HIGH to LOW.
35       Fixes bug 40301; bugfix on 0.3.5.1-alpha.
37   o Minor bugfixes (timekeeping, backport from 0.4.6.7):
38     - Calculate the time of day correctly on systems where the time_t
39       type includes leap seconds. (This is not the case on most
40       operating systems, but on those where it occurs, our tor_timegm
41       function did not correctly invert the system's gmtime function,
42       which could result in assertion failures when calculating voting
43       schedules.) Fixes bug 40383; bugfix on 0.2.0.3-alpha.
45   o Minor bugfixes (warnings, portability, backport from 0.4.6.6):
46     - Suppress a strict-prototype warning when building with some
47       versions of NSS. Fixes bug 40409; bugfix on 0.3.5.1-alpha.
50 Changes in version 0.4.5.9 - 2021-06-14
51   Tor 0.4.5.9 fixes several security issues, including a
52   denial-of-service attack against onion service clients, and another
53   denial-of-service attack against relays. Everybody should upgrade to
54   one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
56   o Major bugfixes (security, backport from 0.4.6.5):
57     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
58       half-closed streams. Previously, clients failed to validate which
59       hop sent these cells: this would allow a relay on a circuit to end
60       a stream that wasn't actually built with it. Fixes bug 40389;
61       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
62       003 and CVE-2021-34548.
64   o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5):
65     - Detect more failure conditions from the OpenSSL RNG code.
66       Previously, we would detect errors from a missing RNG
67       implementation, but not failures from the RNG code itself.
68       Fortunately, it appears those failures do not happen in practice
69       when Tor is using OpenSSL's default RNG implementation. Fixes bug
70       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
71       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
73   o Major bugfixes (security, denial of service, backport from 0.4.6.5):
74     - Resist a hashtable-based CPU denial-of-service attack against
75       relays. Previously we used a naive unkeyed hash function to look
76       up circuits in a circuitmux object. An attacker could exploit this
77       to construct circuits with chosen circuit IDs, to create
78       collisions and make the hash table inefficient. Now we use a
79       SipHash construction here instead. Fixes bug 40391; bugfix on
80       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
81       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
82     - Fix an out-of-bounds memory access in v3 onion service descriptor
83       parsing. An attacker could exploit this bug by crafting an onion
84       service descriptor that would crash any client that tried to visit
85       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
86       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
87       Glazunov from Google's Project Zero.
89   o Minor features (compatibility, backport from 0.4.6.4-rc):
90     - Remove an assertion function related to TLS renegotiation. It was
91       used nowhere outside the unit tests, and it was breaking
92       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
93       ticket 40399.
95   o Minor features (geoip data):
96     - Update the geoip files to match the IPFire Location Database, as
97       retrieved on 2021/06/10.
99   o Minor bugfixes (control, sandbox, backport from 0.4.6.4-rc):
100     - Allow the control command SAVECONF to succeed when the seccomp
101       sandbox is enabled, and make SAVECONF keep only one backup file to
102       simplify implementation. Previously SAVECONF allowed a large
103       number of backup files, which made it incompatible with the
104       sandbox. Fixes bug 40317; bugfix on 0.2.5.4-alpha. Patch by
105       Daniel Pinto.
107   o Minor bugfixes (metrics port, backport from 0.4.6.4-rc):
108     - Fix a bug that made tor try to re-bind() on an already open
109       MetricsPort every 60 seconds. Fixes bug 40370; bugfix
110       on 0.4.5.1-alpha.
113 Changes in version 0.4.5.8 - 2021-05-10
114   Tor 0.4.5.8 fixes several bugs in earlier version, backporting fixes
115   from the 0.4.6.x series.
117   o Minor features (compatibility, Linux seccomp sandbox, backport from 0.4.6.3-rc):
118     - Add a workaround to enable the Linux sandbox to work correctly
119       with Glibc 2.33. This version of Glibc has started using the
120       fstatat() system call, which previously our sandbox did not allow.
121       Closes ticket 40382; see the ticket for a discussion of trade-offs.
123   o Minor features (compilation, backport from 0.4.6.3-rc):
124     - Make the autoconf script build correctly with autoconf versions
125       2.70 and later. Closes part of ticket 40335.
127   o Minor features (fallback directory list, backport from 0.4.6.2-alpha):
128     - Regenerate the list of fallback directories to contain a new set
129       of 200 relays. Closes ticket 40265.
131   o Minor features (geoip data):
132     - Update the geoip files to match the IPFire Location Database, as
133       retrieved on 2021/05/07.
135   o Minor features (onion services):
136     - Add warning message when connecting to now deprecated v2 onion
137       services. As announced, Tor 0.4.5.x is the last series that will
138       support v2 onions. Closes ticket 40373.
140   o Minor bugfixes (bridge, pluggable transport, backport from 0.4.6.2-alpha):
141     - Fix a regression that made it impossible start Tor using a bridge
142       line with a transport name and no fingerprint. Fixes bug 40360;
143       bugfix on 0.4.5.4-rc.
145   o Minor bugfixes (build, cross-compilation, backport from 0.4.6.3-rc):
146     - Allow a custom "ar" for cross-compilation. Our previous build
147       script had used the $AR environment variable in most places, but
148       it missed one. Fixes bug 40369; bugfix on 0.4.5.1-alpha.
150   o Minor bugfixes (channel, DoS, backport from 0.4.6.2-alpha):
151     - Fix a non-fatal BUG() message due to a too-early free of a string,
152       when listing a client connection from the DoS defenses subsystem.
153       Fixes bug 40345; bugfix on 0.4.3.4-rc.
155   o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc):
156     - Fix an indentation problem that led to a warning from GCC 11.1.1.
157       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
159   o Minor bugfixes (controller, backport from 0.4.6.1-alpha):
160     - Fix a "BUG" warning that would appear when a controller chooses
161       the first hop for a circuit, and that circuit completes. Fixes bug
162       40285; bugfix on 0.3.2.1-alpha.
164   o Minor bugfixes (onion service, client, memory leak, backport from 0.4.6.3-rc):
165     - Fix a bug where an expired cached descriptor could get overwritten
166       with a new one without freeing it, leading to a memory leak. Fixes
167       bug 40356; bugfix on 0.3.5.1-alpha.
169   o Minor bugfixes (testing, BSD, backport from 0.4.6.2-alpha):
170     - Fix pattern-matching errors when patterns expand to invalid paths
171       on BSD systems. Fixes bug 40318; bugfix on 0.4.5.1-alpha. Patch by
172       Daniel Pinto.
175 Changes in version 0.4.5.7 - 2021-03-16
176   Tor 0.4.5.7 fixes two important denial-of-service bugs in earlier
177   versions of Tor.
179   One of these vulnerabilities (TROVE-2021-001) would allow an attacker
180   who can send directory data to a Tor instance to force that Tor
181   instance to consume huge amounts of CPU. This is easiest to exploit
182   against authorities, since anybody can upload to them, but directory
183   caches could also exploit this vulnerability against relays or clients
184   when they download. The other vulnerability (TROVE-2021-002) only
185   affects directory authorities, and would allow an attacker to remotely
186   crash the authority with an assertion failure. Patches have already
187   been provided to the authority operators, to help ensure
188   network stability.
190   We recommend that everybody upgrade to one of the releases that fixes
191   these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available
192   to you.
194   This release also updates our GeoIP data source, and fixes a few
195   smaller bugs in earlier releases.
197   o Major bugfixes (security, denial of service):
198     - Disable the dump_desc() function that we used to dump unparseable
199       information to disk. It was called incorrectly in several places,
200       in a way that could lead to excessive CPU usage. Fixes bug 40286;
201       bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021-
202       001 and CVE-2021-28089.
203     - Fix a bug in appending detached signatures to a pending consensus
204       document that could be used to crash a directory authority. Fixes
205       bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002
206       and CVE-2021-28090.
208   o Minor features (geoip data):
209     - We have switched geoip data sources. Previously we shipped IP-to-
210       country mappings from Maxmind's GeoLite2, but in 2019 they changed
211       their licensing terms, so we were unable to update them after that
212       point. We now ship geoip files based on the IPFire Location
213       Database instead. (See https://location.ipfire.org/ for more
214       information). This release updates our geoip files to match the
215       IPFire Location Database as retrieved on 2021/03/12. Closes
216       ticket 40224.
218   o Minor bugfixes (directory authority):
219     - Now that exit relays don't allow exit connections to directory
220       authority DirPorts (to prevent network reentry), disable
221       authorities' reachability self test on the DirPort. Fixes bug
222       40287; bugfix on 0.4.5.5-rc.
224   o Minor bugfixes (documentation):
225     - Fix a formatting error in the documentation for
226       VirtualAddrNetworkIPv6. Fixes bug 40256; bugfix on 0.2.9.4-alpha.
228   o Minor bugfixes (Linux, relay):
229     - Fix a bug in determining total available system memory that would
230       have been triggered if the format of Linux's /proc/meminfo file
231       had ever changed to include "MemTotal:" in the middle of a line.
232       Fixes bug 40315; bugfix on 0.2.5.4-alpha.
234   o Minor bugfixes (metrics port):
235     - Fix a BUG() warning on the MetricsPort for an internal missing
236       handler. Fixes bug 40295; bugfix on 0.4.5.1-alpha.
238   o Minor bugfixes (onion service):
239     - Remove a harmless BUG() warning when reloading tor configured with
240       onion services. Fixes bug 40334; bugfix on 0.4.5.1-alpha.
242   o Minor bugfixes (portability):
243     - Fix a non-portable usage of "==" with "test" in the configure
244       script. Fixes bug 40298; bugfix on 0.4.5.1-alpha.
246   o Minor bugfixes (relay):
247     - Remove a spammy log notice falsely claiming that the IPv4/v6
248       address was missing. Fixes bug 40300; bugfix on 0.4.5.1-alpha.
249     - Do not query the address cache early in the boot process when
250       deciding if a relay needs to fetch early directory information
251       from an authority. This bug resulted in a relay falsely believing
252       it didn't have an address and thus triggering an authority fetch
253       at each boot. Related to our fix for 40300.
255   o Removed features (mallinfo deprecated):
256     - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it.
257       Closes ticket 40309.
260 Changes in version 0.4.5.6 - 2021-02-15
261   The Tor 0.4.5.x release series is dedicated to the memory of Karsten
262   Loesing (1979-2020), Tor developer, cypherpunk, husband, and father.
263   Karsten is best known for creating the Tor metrics portal and leading
264   the metrics team, but he was involved in Tor from the early days. For
265   example, while he was still a student he invented and implemented the
266   v2 onion service directory design, and he also served as an ambassador
267   to the many German researchers working in the anonymity field. We
268   loved him and respected him for his patience, his consistency, and his
269   welcoming approach to growing our community.
271   This release series introduces significant improvements in relay IPv6
272   address discovery, a new "MetricsPort" mechanism for relay operators
273   to measure performance, LTTng support, build system improvements to
274   help when using Tor as a static library, and significant bugfixes
275   related to Windows relay performance. It also includes numerous
276   smaller features and bugfixes.
278   Below are the changes since 0.4.4.4-rc. For a complete list of changes
279   since 0.4.4.7, see the ReleaseNotes file.
281   o Major bugfixes (IPv6, relay):
282     - Fix a bug that prevented a relay from publishing its descriptor if
283       an auto-discovered IPv6 that was found unreachable. Fixes bug
284       40279; bugfix on 0.4.5.1-alpha.
286   o Minor features (protocol versions):
287     - Stop claiming to support the "DirCache=1" subprotocol version.
288       Technically, we stopped supporting this subprotocol back in
289       0.4.5.1-alpha, but we needed to wait for the authorities to stop
290       listing it as "required" before we could drop it from the list.
291       Closes ticket 40221.
293   o Minor bugfixes (logging):
294     - Avoid a spurious log message about missing subprotocol versions,
295       when the consensus that we're reading from is older than the
296       current release. Previously we had made this message nonfatal, but
297       in practice, it is never relevant when the consensus is older than
298       the current release. Fixes bug 40281; bugfix on 0.4.0.1-alpha.
300   o Minor bugfixes (metrics port):
301     - Fix a bug warning when a metrics port socket was unexpectedly
302       closed. Fixes bug 40257; bugfix on 0.4.5.1-alpha
304   o Minor bugfixes (relay):
305     - Allow relays to have a RFC1918 address if PublishServerDescriptor
306       is set to 0 and AssumeReachable is set to 1. This is to support
307       the use case of a bridge on a local network, exposed via a
308       pluggable transport. Fixes bug 40208; bugfix on 0.4.5.1-alpha.
310   o Minor bugfixes (relay, config):
311     - Fix a problem in the removal of duplicate ORPorts from the
312       internal port list when loading the config file. We were removing
313       the wrong ports, breaking valid torrc uses cases for multiple
314       ORPorts of the same address family. Fixes bug 40289; bugfix
315       on 0.4.5.1-alpha.
318 Changes in version 0.4.5.5-rc - 2021-02-01
319   Tor 0.4.5.5-rc is the third release candidate in its series. We're
320   coming closer and closer to a stable release series. This release
321   fixes an annoyance with address detection code, and somewhat mitigates
322   an ongoing denial-of-service attack.
324   We anticipate no more code changes between this and the stable
325   release, though of course that could change.
327   o Major feature (exit):
328     - Re-entry into the network is now denied at the Exit level to all
329       relays' ORPorts and authorities' ORPorts and DirPorts. This change
330       should help mitgate a set of denial-of-service attacks. Closes
331       ticket 2667.
333   o Minor bugfixes (relay, configuration):
334     - Don't attempt to discover our address (IPv4 or IPv6) if no ORPort
335       for it can be found in the configuration. Fixes bug 40254; bugfix
336       on 0.4.5.1-alpha.
339 Changes in version 0.4.5.4-rc - 2021-01-22
340   Tor 0.4.5.4-rc is the second release candidate in its series. It fixes
341   several bugs present in previous releases.
343   We expect that the stable release will be the same, or almost the
344   same, as this release candidate, unless serious bugs are found.
346   o Major bugfixes (authority, IPv6):
347     - Do not consider multiple relays in the same IPv6 /64 network to be
348       sybils. Fixes bug 40243; bugfix on 0.4.5.1-alpha.
350   o Major bugfixes (directory cache, performance, windows):
351     - Limit the number of items in the consensus diff cache to 64 on
352       Windows. We hope this will mitigate an issue where Windows relay
353       operators reported Tor using 100% CPU, while we investigate better
354       solutions. Fixes bug 24857; bugfix on 0.3.1.1-alpha.
356   o Minor feature (build system):
357     - New "make lsp" command to generate the compile_commands.json file
358       used by the ccls language server. The "bear" program is needed for
359       this. Closes ticket 40227.
361   o Minor features (authority, logging):
362     - Log more information for directory authority operators during the
363       consensus voting process, and while processing relay descriptors.
364       Closes ticket 40245.
365     - Reject obsolete router/extrainfo descriptors earlier and more
366       quietly, to avoid spamming the logs. Fixes bug 40238; bugfix
367       on 0.4.5.1-alpha.
369   o Minor bugfixes (compilation):
370     - Fix another warning about unreachable fallthrough annotations when
371       building with "--enable-all-bugs-are-fatal" on some compilers.
372       Fixes bug 40241; bugfix on 0.4.5.3-rc.
373     - Change the linker flag ordering in our library search code so that
374       it works for compilers that need the libraries to be listed in the
375       right order. Fixes bug 33624; bugfix on 0.1.1.0-alpha.
377   o Minor bugfixes (config, bridge):
378     - Don't initiate a connection to a bridge configured to use a
379       missing transport. This change reverts an earlier fix that would
380       try to avoid such situations during configuration chcecking, but
381       which doesn't work with DisableNetwork. Fixes bug 40106; bugfix
382       on 0.4.5.1-alpha.
384   o Minor bugfixes (onion services):
385     - Avoid a non-fatal assertion in certain edge-cases when
386       establishing a circuit to an onion service. Fixes bug 32666;
387       bugfix on 0.3.0.3-alpha.
389   o Minor bugfixes (relay):
390     - If we were unable to build our descriptor, don't mark it as having
391       been advertised. Also remove an harmless BUG(). Fixes bug 40231;
392       bugfix on 0.4.5.1-alpha.
395 Changes in version 0.4.5.3-rc - 2021-01-12
396   Tor 0.4.5.3-rc is the first release candidate in its series. It fixes
397   several bugs, including one that broke onion services on certain older
398   ARM CPUs.
400   Though we anticipate that we'll be doing a bit more clean-up between
401   now and the stable release, we expect that our remaining changes will
402   be fairly simple. There will be at least one more release candidate
403   before 0.4.5.x is stable.
405   o Major bugfixes (onion service v3):
406     - Stop requiring a live consensus for v3 clients and services, and
407       allow a "reasonably live" consensus instead. This allows v3 onion
408       services to work even if the authorities fail to generate a
409       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
410       on 0.3.5.1-alpha.
412   o Minor features (crypto):
413     - Fix undefined behavior on our Keccak library. The bug only
414       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
415       and would result in wrong digests. Fixes bug 40210; bugfix on
416       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
417       weasel for diagnosing this.
419   o Minor features (documentation):
420     - Mention the "!badexit" directive that can appear in an authority's
421       approved-routers file, and update the description of the
422       "!invalid" directive. Closes ticket 40188.
424   o Minor bugfixes (compilation):
425     - Fix a compilation warning about unreachable fallthrough
426       annotations when building with "--enable-all-bugs-are-fatal" on
427       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
428     - Fix the "--enable-static-tor" switch to properly set the "-static"
429       compile option onto the tor binary only. Fixes bug 40111; bugfix
430       on 0.2.3.1-alpha.
432   o Minor bugfixes (config, bridge):
433     - Really fix the case where torrc has a missing ClientTransportPlugin
434       but is configured with a Bridge line and UseBridges. Previously,
435       we didn't look at the managed proxy list and thus would fail for
436       the "exec" case. Fixes bug 40106; bugfix on 0.4.5.1-alpha.
438   o Minor bugfixes (logging, relay):
439     - Log our address as reported by the directory authorities, if none
440       was configured or detected before. Fixes bug 40201; bugfix
441       on 0.4.5.1-alpha.
442     - When a launching bandwidth testing circuit, don't incorrectly call
443       it a reachability test, or trigger a "CHECKING_REACHABILITY"
444       control event. Fixes bug 40205; bugfix on 0.4.5.1-alpha.
446   o Minor bugfixes (relay, statistics):
447     - Report the correct connection statistics in our extrainfo
448       documents. Previously there was a problem in the file loading
449       function which would wrongly truncate a state file, causing the
450       wrong information to be reported. Fixes bug 40226; bugfix
451       on 0.4.5.1-alpha.
453   o Minor bugfixes (SOCKS5):
454     - Handle partial SOCKS5 messages correctly. Previously, our code
455       would send an incorrect error message if it got a SOCKS5 request
456       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
459 Changes in version 0.4.5.2-alpha - 2020-11-23
460   Tor 0.4.5.2-alpha is the second alpha release in the 0.4.5.x series.
461   It fixes several bugs present in earlier releases, including one that
462   made it impractical to run relays on Windows. It also adds a few small
463   safety features to improve Tor's behavior in the presence of strange
464   compile-time options, misbehaving proxies, and future versions
465   of OpenSSL.
467   o Major bugfixes (relay, windows):
468     - Fix a bug in our implementation of condition variables on Windows.
469       Previously, a relay on Windows would use 100% CPU after running
470       for some time. Because of this change, Tor now require Windows
471       Vista or later to build and run. Fixes bug 30187; bugfix on
472       0.2.6.3-alpha. (This bug became more serious in 0.3.1.1-alpha with
473       the introduction of consensus diffs.) Patch by Daniel Pinto.
475   o Minor features (compilation):
476     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
477       later. There are a number of APIs newly deprecated in OpenSSL
478       3.0.0 that Tor still requires. (A later version of Tor will try to
479       stop depending on these APIs.) Closes ticket 40165.
481   o Minor features (protocol, proxy support, defense in depth):
482     - Respond more deliberately to misbehaving proxies that leave
483       leftover data on their connections, so as to make Tor even less
484       likely to allow the proxies to pass their data off as having come
485       from a relay. Closes ticket 40017.
487   o Minor features (safety):
488     - Log a warning at startup if Tor is built with compile-time options
489       that are likely to make it less stable or reliable. Closes
490       ticket 18888.
492   o Minor bugfixes (circuit, handshake):
493     - In the v3 handshaking code, use connection_or_change_state() to
494       change the state. Previously, we changed the state directly, but
495       this did not pass the state change to the pubsub or channel
496       objects, potentially leading to bugs. Fixes bug 32880; bugfix on
497       0.2.3.6-alpha. Patch by Neel Chauhan.
499   o Minor bugfixes (compilation):
500     - Use the correct 'ranlib' program when building libtor.a.
501       Previously we used the default ranlib, which broke some kinds of
502       cross-compilation. Fixes bug 40172; bugfix on 0.4.5.1-alpha.
503     - Remove a duplicate typedef in metrics_store.c. Fixes bug 40177;
504       bugfix on 0.4.5.1-alpha.
505     - When USDT tracing is enabled, and STAP_PROBEV() is missing, don't
506       attempt to build. Linux supports that macro but not the BSDs.
507       Fixes bug 40174; bugfix on 0.4.5.1-alpha.
509   o Minor bugfixes (configuration):
510     - Exit Tor on a misconfiguration when the Bridge line is configured
511       to use a transport but no corresponding ClientTransportPlugin can
512       be found. Prior to this fix, Tor would attempt to connect to the
513       bridge directly without using the transport, making it easier for
514       adversaries to notice the bridge. Fixes bug 25528; bugfix
515       on 0.2.6.1-alpha.
516     - Fix an issue where an ORPort was compared with other kinds of
517       ports, when it should have been only checked against other
518       ORPorts. This bug would lead to "DirPort auto" getting ignored.
519       Fixes bug 40195; bugfix on 0.4.5.1-alpha.
520     - Fix a bug where a second non-ORPort with a variant family (ex:
521       SocksPort [::1]:9050) would be ignored due to a configuration
522       parsing error. Fixes bug 40183; bugfix on 0.4.5.1-alpha.
524   o Minor bugfixes (crash, relay, signing key):
525     - Avoid assertion failures when we run Tor from the command line
526       with `--key-expiration sign`, but an ORPort is not set. Fixes bug
527       40015; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
529   o Minor bugfixes (logging):
530     - Remove trailing whitespace from control event log messages. Fixes
531       bug 32178; bugfix on 0.1.1.1-alpha. Based on a patch by
532       Amadeusz Pawlik.
533     - Turn warning-level log message about SENDME failure into a debug-
534       level message. (This event can happen naturally, and is no reason
535       for concern). Fixes bug 40142; bugfix on 0.4.1.1-alpha.
537   o Minor bugfixes (relay, address discovery):
538     - Don't trigger an IP change when no new valid IP can be found.
539       Fixes bug 40071; bugfix on 0.4.5.1-alpha.
540     - When attempting to discover our IP, use a simple test circuit,
541       rather than a descriptor fetch: the same address information is
542       present in NETINFO cells, and is better authenticated there. Fixes
543       bug 40071; bugfix on 0.4.5.1-alpha.
545   o Minor bugfixes (testing):
546     - Fix the `config/parse_tcp_proxy_line` test so that it works
547       correctly on systems where the DNS provider hijacks invalid
548       queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha.
549     - Fix unit tests that used newly generated list of routers so that
550       they check them with respect to the date when they were generated,
551       not with respect to the current time. Fixes bug 40187; bugfix
552       on 0.4.5.1-alpha.
553     - Fix our Python reference-implementation for the v3 onion service
554       handshake so that it works correctly with the version of hashlib
555       provided by Python 3.9. Fixes part of bug 40179; bugfix
556       on 0.3.1.6-rc.
557     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
558       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
560   o Removed features (controller):
561     - Remove the "GETINFO network-status" controller command. It has
562       been deprecated since 0.3.1.1-alpha. Closes ticket 22473.
565 Changes in version 0.4.4.6 - 2020-11-12
566   Tor 0.4.4.6 is the second stable release in the 0.4.4.x series. It
567   backports fixes from later releases, including a fix for TROVE-2020-
568   005, a security issue that could be used, under certain cases, by an
569   adversary to observe traffic patterns on a limited number of circuits
570   intended for a different relay.
572   o Major bugfixes (security, backport from 0.4.5.1-alpha):
573     - When completing a channel, relays now check more thoroughly to
574       make sure that it matches any pending circuits before attaching
575       those circuits. Previously, address correctness and Ed25519
576       identities were not checked in this case, but only when extending
577       circuits on an existing channel. Fixes bug 40080; bugfix on
578       0.2.7.2-alpha. Resolves TROVE-2020-005.
580   o Minor features (directory authorities, backport from 0.4.5.1-alpha):
581     - Authorities now list a different set of protocols as required and
582       recommended. These lists have been chosen so that only truly
583       recommended and/or required protocols are included, and so that
584       clients using 0.2.9 or later will continue to work (even though
585       they are not supported), whereas only relays running 0.3.5 or
586       later will meet the requirements. Closes ticket 40162.
587     - Make it possible to specify multiple ConsensusParams torrc lines.
588       Now directory authority operators can for example put the main
589       ConsensusParams config in one torrc file and then add to it from a
590       different torrc file. Closes ticket 40164.
592   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
593     - Tor no longer allows subprotocol versions larger than 63.
594       Previously version numbers up to UINT32_MAX were allowed, which
595       significantly complicated our code. Implements proposal 318;
596       closes ticket 40133.
598   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
599     - Fix a rendezvous cache unit test that was triggering an underflow
600       on the global rend cache allocation. Fixes bug 40125; bugfix
601       on 0.2.8.1-alpha.
602     - Fix another rendezvous cache unit test that was triggering an
603       underflow on the global rend cache allocation. Fixes bug 40126;
604       bugfix on 0.2.8.1-alpha.
606   o Minor bugfixes (compilation, backport from 0.4.5.1-alpha):
607     - Fix compiler warnings that would occur when building with
608       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
609       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
610     - Resolve a compilation warning that could occur in
611       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
613   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
614     - Remove a debug logging statement that uselessly spammed the logs.
615       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
617   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
618     - Avoid a fatal assert() when failing to create a listener
619       connection for an address that was in use. Fixes bug 40073; bugfix
620       on 0.3.5.1-alpha.
622   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
623     - For HSFETCH commands on v2 onion services addresses, check the
624       length of bytes decoded, not the base32 length. Fixes bug 34400;
625       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
628 Changes in version 0.4.3.7 - 2020-11-12
629   Tor 0.4.3.7 backports several bugfixes from later releases. It
630   includes a fix for TROVE-2020-005, a security issue that could be
631   used, under certain cases, by an adversary to observe traffic patterns
632   on a limited number of circuits intended for a different relay.
634   Please be aware that support for the 0.4.3.x series will end on 15
635   February 2021. Please upgrade to 0.4.4.x or 0.4.5.x before then, or
636   downgrade to 0.3.5.x, which will be supported until at least 1
637   February 2022.
639   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
640     - Replace the 148 fallback directories originally included in Tor
641       0.4.1.4-rc (of which around 105 are still functional) with a list
642       of 144 fallbacks generated in July 2020. Closes ticket 40061.
644   o Major bugfixes (security, backport from 0.4.5.1-alpha):
645     - When completing a channel, relays now check more thoroughly to
646       make sure that it matches any pending circuits before attaching
647       those circuits. Previously, address correctness and Ed25519
648       identities were not checked in this case, but only when extending
649       circuits on an existing channel. Fixes bug 40080; bugfix on
650       0.2.7.2-alpha. Resolves TROVE-2020-005.
652   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
653     - When running with NSS enabled, make sure that NSS knows to expect
654       nonblocking sockets. Previously, we set our TCP sockets as
655       nonblocking, but did not tell NSS, which in turn could lead to
656       unexpected blocking behavior. Fixes bug 40035; bugfix
657       on 0.3.5.1-alpha.
659   o Minor features (security, backport from 0.4.4.4-rc):
660     - Channels using obsolete versions of the Tor link protocol are no
661       longer allowed to circumvent address-canonicity checks. (This is
662       only a minor issue, since such channels have no way to set ed25519
663       keys, and therefore should always be rejected for circuits that
664       specify ed25519 identities.) Closes ticket 40081.
666   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
667     - Tor no longer allows subprotocol versions larger than 63.
668       Previously version numbers up to UINT32_MAX were allowed, which
669       significantly complicated our code. Implements proposal 318;
670       closes ticket 40133.
672   o Minor features (tests, backport from 0.4.4.5):
673     - Our "make check" target now runs the unit tests in 8 parallel
674       chunks. Doing this speeds up hardened CI builds by more than a
675       factor of two. Closes ticket 40098.
677   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
678     - Fix a rendezvous cache unit test that was triggering an underflow
679       on the global rend cache allocation. Fixes bug 40125; bugfix
680       on 0.2.8.1-alpha.
681     - Fix another rendezvous cache unit test that was triggering an
682       underflow on the global rend cache allocation. Fixes bug 40126;
683       bugfix on 0.2.8.1-alpha.
685   o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc):
686     - Fix a correctness bug that could cause an assertion failure if we
687       ever tried using the buf_move_all() function with an empty input
688       buffer. As far as we know, no released versions of Tor do this.
689       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
691   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
692     - Remove a debug logging statement that uselessly spammed the logs.
693       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
695   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
696     - On a bridge, treat all connections from an ExtORPort as remote by
697       default for the purposes of rate-limiting. Previously, bridges
698       would treat the connection as local unless they explicitly
699       received a "USERADDR" command. ExtORPort connections still count
700       as local if there is a USERADDR command with an explicit local
701       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
703   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
704     - Avoid a fatal assert() when failing to create a listener
705       connection for an address that was in use. Fixes bug 40073; bugfix
706       on 0.3.5.1-alpha.
708   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
709     - Adjust the rules for when to warn about having too many
710       connections to other relays. Previously we'd tolerate up to 1.5
711       connections per relay on average. Now we tolerate more connections
712       for directory authorities, and raise the number of total
713       connections we need to see before we warn. Fixes bug 33880; bugfix
714       on 0.3.1.1-alpha.
716   o Minor bugfixes (tests, 0.4.4.5):
717     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
718       on its own. Previously, it would exit with an error. Fixes bug
719       40099; bugfix on 0.2.8.1-alpha.
721   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
722     - For HSFETCH commands on v2 onion services addresses, check the
723       length of bytes decoded, not the base32 length. Fixes bug 34400;
724       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
726   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
727     - Fix a bug that prevented Tor from starting if its log file grew
728       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
730   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
731     - Add a deprecation warning for version 2 onion services. Closes
732       ticket 40003.
734   o Removed features (backport from 0.4.4.3-alpha):
735     - Our "check-local" test target no longer tries to use the
736       Coccinelle semantic patching tool parse all the C files. While it
737       is a good idea to try to make sure Coccinelle works on our C
738       before we run a Coccinelle patch, doing so on every test run has
739       proven to be disruptive. You can still run this tool manually with
740       "make check-cocci". Closes ticket 40030. ticket 40030.
743 Changes in version 0.3.5.12 - 2020-11-12
744   Tor 0.4.3.7 backports several bugfixes from later releases. It
745   includes a fix for TROVE-2020-005, a security issue that could be
746   used, under certain cases, by an adversary to observe traffic patterns
747   on a limited number of circuits intended for a different relay.
749   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
750     - Replace the 148 fallback directories originally included in Tor
751       0.4.1.4-rc (of which around 105 are still functional) with a list
752       of 144 fallbacks generated in July 2020. Closes ticket 40061.
754   o Major bugfixes (security, backport from 0.4.5.1-alpha):
755     - When completing a channel, relays now check more thoroughly to
756       make sure that it matches any pending circuits before attaching
757       those circuits. Previously, address correctness and Ed25519
758       identities were not checked in this case, but only when extending
759       circuits on an existing channel. Fixes bug 40080; bugfix on
760       0.2.7.2-alpha. Resolves TROVE-2020-005.
762   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
763     - When running with NSS enabled, make sure that NSS knows to expect
764       nonblocking sockets. Previously, we set our TCP sockets as
765       nonblocking, but did not tell NSS, which in turn could lead to
766       unexpected blocking behavior. Fixes bug 40035; bugfix
767       on 0.3.5.1-alpha.
769   o Minor features (security, backport from 0.4.4.4-rc):
770     - Channels using obsolete versions of the Tor link protocol are no
771       longer allowed to circumvent address-canonicity checks. (This is
772       only a minor issue, since such channels have no way to set ed25519
773       keys, and therefore should always be rejected for circuits that
774       specify ed25519 identities.) Closes ticket 40081.
776   o Minor features (debugging, directory system):
777     - Don't crash when we find a non-guard with a guard-fraction value
778       set. Instead, log a bug warning, in an attempt to figure out how
779       this happened. Diagnostic for ticket 32868.
781   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
782     - Tor no longer allows subprotocol versions larger than 63.
783       Previously version numbers up to UINT32_MAX were allowed, which
784       significantly complicated our code. Implements proposal 318;
785       closes ticket 40133.
787   o Minor features (tests, backport from 0.4.4.5):
788     - Our "make check" target now runs the unit tests in 8 parallel
789       chunks. Doing this speeds up hardened CI builds by more than a
790       factor of two. Closes ticket 40098.
792   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
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 (correctness, buffers, backport from 0.4.4.4-rc):
801     - Fix a correctness bug that could cause an assertion failure if we
802       ever tried using the buf_move_all() function with an empty input
803       buffer. As far as we know, no released versions of Tor do this.
804       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
806   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
807     - Remove a debug logging statement that uselessly spammed the logs.
808       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
810   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
811     - On a bridge, treat all connections from an ExtORPort as remote by
812       default for the purposes of rate-limiting. Previously, bridges
813       would treat the connection as local unless they explicitly
814       received a "USERADDR" command. ExtORPort connections still count
815       as local if there is a USERADDR command with an explicit local
816       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
818   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
819     - Avoid a fatal assert() when failing to create a listener
820       connection for an address that was in use. Fixes bug 40073; bugfix
821       on 0.3.5.1-alpha.
823   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
824     - Adjust the rules for when to warn about having too many
825       connections to other relays. Previously we'd tolerate up to 1.5
826       connections per relay on average. Now we tolerate more connections
827       for directory authorities, and raise the number of total
828       connections we need to see before we warn. Fixes bug 33880; bugfix
829       on 0.3.1.1-alpha.
831   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
832     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
833       descriptors, when the IPv6 port was configured as "auto". Fixes
834       bug 32588; bugfix on 0.2.3.9-alpha.
836   o Minor bugfixes (tests, 0.4.4.5):
837     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
838       on its own. Previously, it would exit with an error. Fixes bug
839       40099; bugfix on 0.2.8.1-alpha.
841   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
842     - Fix a bug that prevented Tor from starting if its log file grew
843       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
845   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
846     - Add a deprecation warning for version 2 onion services. Closes
847       ticket 40003.
850 Changes in version 0.4.5.1-alpha - 2020-11-01
851   Tor 0.4.5.1-alpha is the first alpha release in the 0.4.5.x series. It
852   improves support for IPv6, address discovery and self-testing, code
853   metrics and tracing.
855   This release also fixes TROVE-2020-005, a security issue that could be
856   used, under certain cases, by an adversary to observe traffic patterns
857   on a limited number of circuits intended for a different relay. To
858   mount this attack, the adversary would need to actively extend
859   circuits to an incorrect address, as well as compromise a relay's
860   legacy RSA-1024 key. We'll be backporting this fix to other release
861   series soon, after it has had some testing.
863   Here are the changes since 0.4.4.5.
865   o Major features (build):
866     - When building Tor, first link all object files into a single
867       static library. This may help with embedding Tor in other
868       programs. Note that most Tor functions do not constitute a part of
869       a stable or supported API: only those functions in tor_api.h
870       should be used if embedding Tor. Closes ticket 40127.
872   o Major features (metrics):
873     - Introduce a new MetricsPort which exposes, through an HTTP
874       interface, a series of metrics that tor collects at runtime. At
875       the moment, the only supported output format is Prometheus data
876       model. Closes ticket 40063. See the manual page for more
877       information and security considerations.
878   o Major features (relay, IPv6):
879     - The torrc option Address now supports IPv6. This unifies our
880       address discovery interface to support IPv4, IPv6, and hostnames.
881       Closes ticket 33233.
882     - Launch IPv4 and IPv6 ORPort self-test circuits on relays and
883       bridges. Closes ticket 33222.
884     - Relays now automatically bind on IPv6 for their ORPort, unless
885       specified otherwise with the IPv4Only flag. Closes ticket 33246.
886     - When a relay with IPv6 support is told to open a connection to
887       another relay, and the extend cell lists both IPv4 and IPv6
888       addresses, the first relay now picks randomly which address to
889       use. Closes ticket 33220.
890     - Relays now track their IPv6 ORPort reachability separately from
891       the reachability of their IPv4 ORPort. They will not publish a
892       descriptor unless _both_ ports appear to be externally reachable.
893       Closes ticket 34067.
895   o Major features (tracing):
896     - Add event-tracing library support for USDT and LTTng-UST, and a
897       few tracepoints in the circuit subsystem. More will come
898       incrementally. This feature is compiled out by default: it needs
899       to be enabled at configure time. See documentation in
900       doc/HACKING/Tracing.md. Closes ticket 32910.
902   o Major bugfixes (security):
903     - When completing a channel, relays now check more thoroughly to
904       make sure that it matches any pending circuits before attaching
905       those circuits. Previously, address correctness and Ed25519
906       identities were not checked in this case, but only when extending
907       circuits on an existing channel. Fixes bug 40080; bugfix on
908       0.2.7.2-alpha. Resolves TROVE-2020-005.
910   o Major bugfixes (TLS, buffer):
911     - When attempting to read N bytes on a TLS connection, really try to
912       read all N bytes. Previously, Tor would stop reading after the
913       first TLS record, which can be smaller than the N bytes requested,
914       and not check for more data until the next mainloop event. Fixes
915       bug 40006; bugfix on 0.1.0.5-rc.
917   o Minor features (address discovery):
918     - If no Address statements are found, relays now prioritize guessing
919       their address by looking at the local interface instead of the
920       local hostname. If the interface address can't be found, the local
921       hostname is used. Closes ticket 33238.
923   o Minor features (admin tools):
924     - Add a new --format argument to -key-expiration option to allow
925       specifying the time format of the expiration date. Adds Unix
926       timestamp format support. Patch by Daniel Pinto. Closes
927       ticket 30045.
929   o Minor features (bootstrap reporting):
930     - When reporting bootstrapping status on a relay, do not consider
931       connections that have never been the target of an origin circuit.
932       Previously, all connection failures were treated as potential
933       bootstrapping failures, including connections that had been opened
934       because of client requests. Closes ticket 25061.
936   o Minor features (build):
937     - When running the configure script, try to detect version
938       mismatches between the OpenSSL headers and libraries, and suggest
939       that the user should try "--with-openssl-dir". Closes 40138.
940     - If the configure script has given any warnings, remind the user
941       about them at the end of the script. Related to 40138.
943   o Minor features (configuration):
944     - Allow using wildcards (* and ?) with the %include option on
945       configuration files. Closes ticket 25140. Patch by Daniel Pinto.
946     - Allow the configuration options EntryNodes, ExcludeNodes,
947       ExcludeExitNodes, ExitNodes, MiddleNodes, HSLayer2Nodes and
948       HSLayer3Nodes to be specified multiple times. Closes ticket 28361.
949       Patch by Daniel Pinto.
951   o Minor features (control port):
952     - Add a DROPTIMEOUTS command to drop circuit build timeout history
953       and reset the current timeout. Closes ticket 40002.
954     - When a stream enters the AP_CONN_STATE_CONTROLLER_WAIT status,
955       send a control port event. Closes ticket 32190. Patch by
956       Neel Chauhan.
957     - Introduce GETINFO "stats/ntor/{assigned/requested}" and
958       "stats/tap/{assigned/requested}" to get the NTor and TAP circuit
959       onion handshake counts respectively. Closes ticket 28279. Patch by
960       Neel Chauhan.
962   o Minor features (control port, IPv6):
963     - Tor relays now try to report to the controller when they are
964       launching an IPv6 self-test. Closes ticket 34068.
965     - Introduce "GETINFO address/v4" and "GETINFO address/v6" in the
966       control port to fetch the Tor host's respective IPv4 or IPv6
967       address. We keep "GETINFO address" for backwards-compatibility.
968       Closes ticket 40039. Patch by Neel Chauhan.
970   o Minor features (directory authorities):
971     - Authorities now list a different set of protocols as required and
972       recommended. These lists have been chosen so that only truly
973       recommended and/or required protocols are included, and so that
974       clients using 0.2.9 or later will continue to work (even though
975       they are not supported), whereas only relays running 0.3.5 or
976       later will meet the requirements. Closes ticket 40162.
977     - Add a new consensus method 30 that removes the unnecessary "="
978       padding from ntor-onion-key. Closes ticket 7869. Patch by
979       Daniel Pinto.
980     - Directory authorities now reject descriptors from relays running
981       Tor versions from the obsolete 0.4.1 series. Resolves ticket
982       34357. Patch by Neel Chauhan.
983     - Make it possible to specify multiple ConsensusParams torrc lines.
984       Now directory authority operators can for example put the main
985       ConsensusParams config in one torrc file and then add to it from a
986       different torrc file. Closes ticket 40164.
987     - The AssumeReachable option no longer stops directory authorities
988       from checking whether other relays are running. A new
989       AuthDirTestReachability option can be used to disable these
990       checks. Closes ticket 34445.
991     - When looking for possible Sybil attacks, also consider IPv6
992       addresses. Two routers are considered to have "the same" address
993       by this metric if they are in the same /64 network. Patch from
994       Maurice Pibouin. Closes ticket 7193.
996   o Minor features (directory authorities, IPv6):
997     - Make authorities add their IPv6 ORPort (if any) to the trusted
998       servers list. Authorities previously added only their IPv4
999       addresses. Closes ticket 32822.
1001   o Minor features (ed25519, relay):
1002     - Save a relay's base64-encoded ed25519 identity key to the data
1003       directory in a file named fingerprint-ed25519. Closes ticket
1004       30642. Patch by Neel Chauhan.
1006   o Minor features (heartbeat):
1007     - Include the total number of inbound and outbound IPv4 and IPv6
1008       connections in the heartbeat message. Closes ticket 29113.
1010   o Minor features (IPv6, ExcludeNodes):
1011     - Handle IPv6 addresses in ExcludeNodes; previously they were
1012       ignored. Closes ticket 34065. Patch by Neel Chauhan.
1014   o Minor features (logging):
1015     - Add the running glibc version to the log, and the compiled glibc
1016       version to the library list returned when using --library-versions.
1017       Patch from Daniel Pinto. Closes ticket 40047.
1018     - Consider an HTTP 301 response to be an error (like a 404) when
1019       processing a directory response. Closes ticket 40053.
1020     - Log directory fetch statistics as a single line. Closes
1021       ticket 40159.
1022     - Provide more complete descriptions of our connections when logging
1023       about them. Closes ticket 40041.
1024     - When describing a relay in the logs, we now include its ed25519
1025       identity. Closes ticket 22668.
1027   o Minor features (onion services):
1028     - Only overwrite an onion service's existing hostname file if its
1029       contents are wrong. This enables read-only onion-service
1030       directories. Resolves ticket 40062. Patch by Neel Chauhan.
1032   o Minor features (pluggable transports):
1033     - Add an OutboundBindAddressPT option to allow users to specify
1034       which IPv4 and IPv6 address pluggable transports should use for
1035       outgoing IP packets. Tor does not have a way to enforce that the
1036       pluggable transport honors this option, so each pluggable transport
1037       needs to implement support on its own. Closes ticket 5304.
1039   o Minor features (relay address tracking):
1040     - We now store relay addresses for OR connections in a more logical
1041       way. Previously we would sometimes overwrite the actual address of
1042       a connection with a "canonical address", and then store the "real
1043       address" elsewhere to remember it. We now track the "canonical
1044       address" elsewhere for the cases where we need it, and leave the
1045       connection's address alone. Closes ticket 33898.
1047   o Minor features (relay):
1048     - If a relay is unable to discover its address, attempt to learn it
1049       from the NETINFO cell. Closes ticket 40022.
1050     - Log immediately when launching a relay self-check. Previously we
1051       would try to log before launching checks, or approximately when we
1052       intended to launch checks, but this tended to be error-prone.
1053       Closes ticket 34137.
1055   o Minor features (relay, address discovery):
1056     - If Address option is not found in torrc, attempt to learn our
1057       address with the configured ORPort address if any. Closes
1058       ticket 33236.
1060   o Minor features (relay, IPv6):
1061     - Add an AssumeReachableIPv6 option to disable self-checking IPv6
1062       reachability. Closes part of ticket 33224.
1063     - Add new "assume-reachable" and "assume-reachable-ipv6" consensus
1064       parameters to be used in an emergency to tell relays that they
1065       should publish even if they cannot complete their ORPort self-
1066       checks. Closes ticket 34064 and part of 33224.
1067     - Allow relays to send IPv6-only extend cells. Closes ticket 33222.
1068     - Declare support for the Relay=3 subprotocol version. Closes
1069       ticket 33226.
1070     - When launching IPv6 ORPort self-test circuits, make sure that the
1071       second-last hop can initiate an IPv6 extend. Closes ticket 33222.
1073   o Minor features (specification update):
1074     - Several fields in microdescriptors, router descriptors, and
1075       consensus documents that were formerly optional are now required.
1076       Implements proposal 315; closes ticket 40132.
1078   o Minor features (state management):
1079     - When loading the state file, remove entries from the statefile
1080       that have been obsolete for a long time. Ordinarily Tor preserves
1081       unrecognized entries in order to keep forward-compatibility, but
1082       these entries have not actually been used in any release since
1083       before 0.3.5.x. Closes ticket 40137.
1085   o Minor features (statistics, ipv6):
1086     - Relays now publish IPv6-specific counts of single-direction versus
1087       bidirectional relay connections. Closes ticket 33264.
1088     - Relays now publish their IPv6 read and write statistics over time,
1089       if statistics are enabled. Closes ticket 33263.
1091   o Minor features (subprotocol versions):
1092     - Tor no longer allows subprotocol versions larger than 63.
1093       Previously version numbers up to UINT32_MAX were allowed, which
1094       significantly complicated our code. Implements proposal 318;
1095       closes ticket 40133.
1096     - Use the new limitations on subprotocol versions due to proposal
1097       318 to simplify our implementation. Part of ticket 40133.
1099   o Minor features (testing configuration):
1100     - The TestingTorNetwork option no longer implicitly sets
1101       AssumeReachable to 1. This change allows us to test relays' self-
1102       testing mechanisms, and to test authorities' relay-testing
1103       functionality. Closes ticket 34446.
1105   o Minor features (testing):
1106     - Added unit tests for channel_matches_target_addr_for_extend().
1107       Closes Ticket 33919. Patch by MrSquanchee.
1109   o Minor features (tests, v2 onion services):
1110     - Fix a rendezvous cache unit test that was triggering an underflow
1111       on the global rend cache allocation. Fixes bug 40125; bugfix
1112       on 0.2.8.1-alpha.
1113     - Fix another rendezvous cache unit test that was triggering an
1114       underflow on the global rend cache allocation. Fixes bug 40126;
1115       bugfix on 0.2.8.1-alpha.
1117   o Minor bugfixes (circuit padding):
1118     - When circpad_send_padding_cell_for_callback is called,
1119       `is_padding_timer_scheduled` flag was not reset. Now it is set to
1120       0 at the top of that function. Fixes bug 32671; bugfix
1121       on 0.4.0.1-alpha.
1122     - Add a per-circuit padding machine instance counter, so we can
1123       differentiate between shutdown requests for old machines on a
1124       circuit. Fixes bug 30992; bugfix on 0.4.1.1-alpha.
1125     - Add the ability to keep circuit padding machines if they match a
1126       set of circuit states or purposes. This allows us to have machines
1127       that start up under some conditions but don't shut down under
1128       others. We now use this mask to avoid starting up introduction
1129       circuit padding again after the machines have already completed.
1130       Fixes bug 32040; bugfix on 0.4.1.1-alpha.
1132   o Minor bugfixes (compatibility):
1133     - Strip '\r' characters when reading text files on Unix platforms.
1134       This should resolve an issue where a relay operator migrates a
1135       relay from Windows to Unix, but does not change the line ending of
1136       Tor's various state files to match the platform, and the CRLF line
1137       endings from Windows end up leaking into other files such as the
1138       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
1140   o Minor bugfixes (compilation):
1141     - Fix compiler warnings that would occur when building with
1142       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
1143       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
1144     - Resolve a compilation warning that could occur in
1145       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
1147   o Minor bugfixes (configuration):
1148     - Fix bug where %including a pattern ending with */ would include
1149       files and folders (instead of folders only) in versions of glibc <
1150       2.19. Fixes bug 40141; bugfix on 0.4.5.0-alpha-dev. Patch by
1151       Daniel Pinto.
1153   o Minor bugfixes (control port):
1154     - Make sure we send the SOCKS request address in relay begin cells
1155       when a stream is attached with the purpose
1156       CIRCUIT_PURPOSE_CONTROLLER. Fixes bug 33124; bugfix on 0.0.5.
1157       Patch by Neel Chauhan.
1159   o Minor bugfixes (logging):
1160     - Remove a debug logging statement that uselessly spammed the logs.
1161       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
1162     - When logging a rate-limited message about how many messages have
1163       been suppressed in the last N seconds, give an accurate value for
1164       N, rounded up to the nearest minute. Previously we would report
1165       the size of the rate-limiting interval, regardless of when the
1166       messages started to occur. Fixes bug 19431; bugfix
1167       on 0.2.2.16-alpha.
1169   o Minor bugfixes (relay configuration, crash):
1170     - Avoid a fatal assert() when failing to create a listener
1171       connection for an address that was in use. Fixes bug 40073; bugfix
1172       on 0.3.5.1-alpha.
1174   o Minor bugfixes (rust, protocol versions):
1175     - Declare support for the onion service introduction point denial of
1176       service extensions when building with Rust. Fixes bug 34248;
1177       bugfix on 0.4.2.1-alpha.
1178     - Make Rust protocol version support checks consistent with the
1179       undocumented error behavior of the corresponding C code. Fixes bug
1180       34251; bugfix on 0.3.3.5-rc.
1182   o Minor bugfixes (self-testing):
1183     - When receiving an incoming circuit, only accept it as evidence
1184       that we are reachable if the declared address of its channel is
1185       the same address we think that we have. Otherwise, it could be
1186       evidence that we're reachable on some other address. Fixes bug
1187       20165; bugfix on 0.1.0.1-rc.
1189   o Minor bugfixes (spec conformance):
1190     - Use the correct key type when generating signing->link
1191       certificates. Fixes bug 40124; bugfix on 0.2.7.2-alpha.
1193   o Minor bugfixes (subprotocol versions):
1194     - Consistently reject extra commas, instead of only rejecting
1195       leading commas. Fixes bug 27194; bugfix on 0.2.9.4-alpha.
1196     - In summarize_protover_flags(), treat empty strings the same as
1197       NULL. This prevents protocols_known from being set. Previously, we
1198       treated empty strings as normal strings, which led to
1199       protocols_known being set. Fixes bug 34232; bugfix on
1200       0.3.3.2-alpha. Patch by Neel Chauhan.
1202   o Minor bugfixes (v2 onion services):
1203     - For HSFETCH commands on v2 onion services addresses, check the
1204       length of bytes decoded, not the base32 length. Fixes bug 34400;
1205       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
1207   o Code simplification and refactoring:
1208     - Add and use a set of functions to perform down-casts on constant
1209       connection and channel pointers. Closes ticket 40046.
1210     - Refactor our code that logs descriptions of connections, channels,
1211       and the peers on them, to use a single call path. This change
1212       enables us to refactor the data types that they use, and eliminates
1213       many confusing usages of those types. Closes ticket 40041.
1214     - Refactor some common node selection code into a single function.
1215       Closes ticket 34200.
1216     - Remove the now-redundant 'outbuf_flushlen' field from our
1217       connection type. It was previously used for an older version of
1218       our rate-limiting logic. Closes ticket 33097.
1219     - Rename "fascist_firewall_*" identifiers to "reachable_addr_*"
1220       instead, for consistency with other code. Closes ticket 18106.
1221     - Rename functions about "advertised" ports which are not in fact
1222       guaranteed to return the ports that have been advertised. Closes
1223       ticket 40055.
1224     - Split implementation of several command line options from
1225       options_init_from_torrc into smaller isolated functions. Patch by
1226       Daniel Pinto. Closes ticket 40102.
1227     - When an extend cell is missing an IPv4 or IPv6 address, fill in
1228       the address from the extend info. This is similar to what was done
1229       in ticket 33633 for ed25519 keys. Closes ticket 33816. Patch by
1230       Neel Chauhan.
1232   o Deprecated features:
1233     - The "non-builtin" argument to the "--dump-config" command is now
1234       deprecated. When it works, it behaves the same as "short", which
1235       you should use instead. Closes ticket 33398.
1237   o Documentation:
1238     - Replace URLs from our old bugtracker so that they refer to the new
1239       bugtracker and wiki. Closes ticket 40101.
1241   o Removed features:
1242     - We no longer ship or build a "tor.service" file for use with
1243       systemd. No distribution included this script unmodified, and we
1244       don't have the expertise ourselves to maintain this in a way that
1245       all the various systemd-based distributions can use. Closes
1246       ticket 30797.
1247     - We no longer ship support for the Android logging API. Modern
1248       versions of Android can use the syslog API instead. Closes
1249       ticket 32181.
1250     - The "optimistic data" feature is now always on; there is no longer
1251       an option to disable it from the torrc file or from the consensus
1252       directory. Closes part of 40139.
1253     - The "usecreatefast" network parameter is now removed; there is no
1254       longer an option for authorities to turn it off. Closes part
1255       of 40139.
1257   o Testing:
1258     - Add unit tests for bandwidth statistics manipulation functions.
1259       Closes ticket 33812. Patch by MrSquanchee.
1261   o Code simplification and refactoring (autoconf):
1262     - Remove autoconf checks for unused funcs and headers. Closes ticket
1263       31699; Patch by @bduszel
1265   o Code simplification and refactoring (maintainer scripts):
1266     - Disable by default the pre-commit hook. Use the environment
1267       variable TOR_EXTRA_PRE_COMMIT_CHECKS in order to run it.
1268       Furthermore, stop running practracker in the pre-commit hook and
1269       make check-local. Closes ticket 40019.
1271   o Code simplification and refactoring (relay address):
1272     - Most of IPv4 representation was using "uint32_t". It has now been
1273       moved to use the internal "tor_addr_t" interface instead. This is
1274       so we can properly integrate IPv6 along IPv4 with common
1275       interfaces. Closes ticket 40043.
1277   o Documentation (manual page):
1278     - Move them from doc/ to doc/man/. Closes ticket 40044.
1279     - Describe the status of the "Sandbox" option more accurately. It is
1280       no longer "experimental", but it _is_ dependent on kernel and libc
1281       versions. Closes ticket 23378.
1283   o Documentation (tracing):
1284     - Document in depth the circuit subsystem trace events in the new
1285       doc/tracing/EventsCircuit.md. Closes ticket 40036.
1288 Changes in version 0.4.4.5 - 2020-09-15
1289   Tor 0.4.4.5 is the first stable release in the 0.4.4.x series. This
1290   series improves our guard selection algorithms, adds v3 onion balance
1291   support, improves the amount of code that can be disabled when running
1292   without relay support, and includes numerous small bugfixes and
1293   enhancements. It also lays the ground for some IPv6 features that
1294   we'll be developing more in the next (0.4.5) series.
1296   Per our support policy, we support each stable release series for nine
1297   months after its first stable release, or three months after the first
1298   stable release of the next series: whichever is longer. This means
1299   that 0.4.4.x will be supported until around June 2021--or later, if
1300   0.4.5.x is later than anticipated.
1302   Note also that support for 0.4.2.x has just ended; support for 0.4.3
1303   will continue until Feb 15, 2021. We still plan to continue supporting
1304   0.3.5.x, our long-term stable series, until Feb 2022.
1306   Below are the changes since 0.4.4.4-rc. For a complete list of changes
1307   since 0.4.3.6, see the ReleaseNotes file.
1309   o Major bugfixes (onion services, DoS):
1310     - Correct handling of parameters for the onion service DoS defense.
1311       Previously, the consensus parameters for the onion service DoS
1312       defenses were overwriting the parameters set by the service
1313       operator using HiddenServiceEnableIntroDoSDefense. Fixes bug
1314       40109; bugfix on 0.4.2.1-alpha.
1316   o Major bugfixes (stats, onion services):
1317     - Fix a bug where we were undercounting the Tor network's total
1318       onion service traffic, by ignoring any traffic originating from
1319       clients. Now we count traffic from both clients and services.
1320       Fixes bug 40117; bugfix on 0.2.6.2-alpha.
1322   o Minor features (control port):
1323     - If a ClientName was specified in ONION_CLIENT_AUTH_ADD for an
1324       onion service, display it when we use ONION_CLIENT_AUTH_VIEW.
1325       Closes ticket 40089. Patch by Neel Chauhan.
1327   o Minor features (denial-of-service memory limiter):
1328     - Allow the user to configure even lower values for the
1329       MaxMemInQueues parameter. Relays now enforce a minimum of 64 MB,
1330       when previously the minimum was 256 MB. On clients, there is no
1331       minimum. Relays and clients will both warn if the value is set so
1332       low that Tor is likely to stop working. Closes ticket 24308.
1334   o Minor features (tests):
1335     - Our "make check" target now runs the unit tests in 8 parallel
1336       chunks. Doing this speeds up hardened CI builds by more than a
1337       factor of two. Closes ticket 40098.
1339   o Minor bugfixes (guard selection algorithm):
1340     - Avoid needless guard-related warning when upgrading from 0.4.3 to
1341       0.4.4. Fixes bug 40105; bugfix on 0.4.4.1-alpha.
1343   o Minor bugfixes (tests):
1344     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
1345       on its own. Previously, it would exit with an error. Fixes bug
1346       40099; bugfix on 0.2.8.1-alpha.
1349 Changes in version 0.4.4.3-alpha - 2020-07-27
1350   Tor 0.4.4.3-alpha fixes several annoyances in previous versions,
1351   including one affecting NSS users, and several affecting the Linux
1352   seccomp2 sandbox.
1354   o Major features (fallback directory list):
1355     - Replace the 148 fallback directories originally included in Tor
1356       0.4.1.4-rc (of which around 105 are still functional) with a list
1357       of 144 fallbacks generated in July 2020. Closes ticket 40061.
1359   o Major bugfixes (NSS):
1360     - When running with NSS enabled, make sure that NSS knows to expect
1361       nonblocking sockets. Previously, we set our TCP sockets as
1362       nonblocking, but did not tell NSS, which in turn could lead to
1363       unexpected blocking behavior. Fixes bug 40035; bugfix
1364       on 0.3.5.1-alpha.
1366   o Minor bugfixes (linux seccomp2 sandbox):
1367     - Fix a regression on sandboxing rules for the openat() syscall. The
1368       fix for bug 25440 fixed the problem on systems with glibc >= 2.27
1369       but broke with versions of glibc. We now choose a rule based on
1370       the glibc version. Patch from Daniel Pinto. Fixes bug 27315;
1371       bugfix on 0.3.5.11.
1372     - Makes the seccomp sandbox allow the correct syscall for opendir
1373       according to the running glibc version. This fixes crashes when
1374       reloading torrc with sandbox enabled when running on glibc 2.15 to
1375       2.21 and 2.26. Patch from Daniel Pinto. Fixes bug 40020; bugfix
1376       on 0.3.5.11.
1378   o Minor bugfixes (relay, usability):
1379     - Adjust the rules for when to warn about having too many
1380       connections to other relays. Previously we'd tolerate up to 1.5
1381       connections per relay on average. Now we tolerate more connections
1382       for directory authorities, and raise the number of total
1383       connections we need to see before we warn. Fixes bug 33880; bugfix
1384       on 0.3.1.1-alpha.
1386   o Documentation:
1387     - Replace most http:// URLs in our code and documentation with
1388       https:// URLs. (We have left unchanged the code in src/ext/, and
1389       the text in LICENSE.) Closes ticket 31812. Patch from Jeremy Rand.
1391   o Removed features:
1392     - Our "check-local" test target no longer tries to use the
1393       Coccinelle semantic patching tool parse all the C files. While it
1394       is a good idea to try to make sure Coccinelle works on our C
1395       before we run a Coccinelle patch, doing so on every test run has
1396       proven to be disruptive. You can still run this tool manually with
1397       "make check-cocci". Closes ticket 40030.
1400 Changes in version 0.3.5.11 - 2020-07-09
1401   Tor 0.3.5.11 backports fixes from later tor releases, including several
1402   usability, portability, and reliability fixes.
1404   This release also fixes TROVE-2020-001, a medium-severity denial of
1405   service vulnerability affecting all versions of Tor when compiled with
1406   the NSS encryption library. (This is not the default configuration.)
1407   Using this vulnerability, an attacker could cause an affected Tor
1408   instance to crash remotely. This issue is also tracked as CVE-2020-
1409   15572. Anybody running a version of Tor built with the NSS library
1410   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1411   or later.
1413   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
1414     - Fix a crash due to an out-of-bound memory access when Tor is
1415       compiled with NSS support. Fixes bug 33119; bugfix on
1416       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1417       and CVE-2020-15572.
1419   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
1420     - Fix a bug that was preventing DoS defenses from running on bridges
1421       with a pluggable transport. Previously, the DoS subsystem was not
1422       given the transport name of the client connection, thus failed to
1423       find the GeoIP cache entry for that client address. Fixes bug
1424       33491; bugfix on 0.3.3.2-alpha.
1426   o Minor features (testing, backport from 0.4.3.4-rc):
1427     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
1428       variable to specify a list of space-separated test cases that
1429       should not be executed. We will use this to disable certain tests
1430       that are failing on Appveyor because of mismatched OpenSSL
1431       libraries. Part of ticket 33643.
1433   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
1434     - Use the correct 64-bit printf format when compiling with MINGW on
1435       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1437   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
1438     - Warn if the ContactInfo field is not set, and tell the relay
1439       operator that not having a ContactInfo field set might cause their
1440       relay to get rejected in the future. Fixes bug 33361; bugfix
1441       on 0.1.1.10-alpha.
1443   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
1444     - Resume use of preemptively-built circuits when UseEntryGuards is set
1445       to 0. We accidentally disabled this feature with that config
1446       setting, leading to slower load times. Fixes bug 34303; bugfix
1447       on 0.3.3.2-alpha.
1449   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
1450     - Avoid compiler warnings from Clang 10 related to the use of GCC-
1451       style "/* falls through */" comments. Both Clang and GCC allow
1452       __attribute__((fallthrough)) instead, so that's what we're using
1453       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
1455   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
1456     - Fix a compiler warning on platforms with 32-bit time_t values.
1457       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1459   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
1460     - When starting Tor any time after the first time in a process,
1461       register the thread in which it is running as the main thread.
1462       Previously, we only did this on Windows, which could lead to bugs
1463       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
1464       on 0.3.3.1-alpha.
1466   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
1467     - When reading PEM-encoded key data, tolerate CRLF line-endings even
1468       if we are not running on Windows. Previously, non-Windows hosts
1469       would reject these line-endings in certain positions, making
1470       certain key files hard to move from one host to another. Fixes bug
1471       33032; bugfix on 0.3.5.1-alpha.
1473   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
1474     - Downgrade a noisy log message that could occur naturally when
1475       receiving an extrainfo document that we no longer want. Fixes bug
1476       16016; bugfix on 0.2.6.3-alpha.
1478   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
1479     - Remove a BUG() warning that would cause a stack trace if an onion
1480       service descriptor was freed while we were waiting for a
1481       rendezvous circuit to complete. Fixes bug 28992; bugfix
1482       on 0.3.2.1-alpha.
1484   o Testing (CI, backport from 0.4.3.4-rc):
1485     - In our Appveyor Windows CI, copy required DLLs to test and app
1486       directories, before running tor's tests. This ensures that tor.exe
1487       and test*.exe use the correct version of each DLL. This fix is not
1488       required, but we hope it will avoid DLL search issues in future.
1489       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
1490     - On Appveyor, skip the crypto/openssl_version test, which is
1491       failing because of a mismatched library installation. Fix
1492       for 33643.
1495 Changes in version 0.4.2.8 - 2020-07-09
1496   Tor 0.4.2.8 backports various fixes from later releases, including
1497   several that affect usability and portability.
1499   This release also fixes TROVE-2020-001, a medium-severity denial of
1500   service vulnerability affecting all versions of Tor when compiled with
1501   the NSS encryption library. (This is not the default configuration.)
1502   Using this vulnerability, an attacker could cause an affected Tor
1503   instance to crash remotely. This issue is also tracked as CVE-2020-
1504   15572. Anybody running a version of Tor built with the NSS library
1505   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1506   or later.
1508   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
1509     - Fix a crash due to an out-of-bound memory access when Tor is
1510       compiled with NSS support. Fixes bug 33119; bugfix on
1511       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1512       and CVE-2020-15572.
1514   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
1515     - Fix a bug that was preventing DoS defenses from running on bridges
1516       with a pluggable transport. Previously, the DoS subsystem was not
1517       given the transport name of the client connection, thus failed to
1518       find the GeoIP cache entry for that client address. Fixes bug
1519       33491; bugfix on 0.3.3.2-alpha.
1521   o Minor feature (sendme, flow control, backport form 0.4.3.4-rc):
1522     - Default to sending SENDME version 1 cells. (Clients are already
1523       sending these, because of a consensus parameter telling them to do
1524       so: this change only affects what clients would do if the
1525       consensus didn't contain a recommendation.) Closes ticket 33623.
1527   o Minor features (diagnostic, backport from 0.4.3.3-alpha):
1528     - Improve assertions and add some memory-poisoning code to try to
1529       track down possible causes of a rare crash (32564) in the EWMA
1530       code. Closes ticket 33290.
1532   o Minor features (testing, backport from 0.4.3.4-rc):
1533     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
1534       variable to specify a list of space-separated test cases that
1535       should not be executed. We will use this to disable certain tests
1536       that are failing on Appveyor because of mismatched OpenSSL
1537       libraries. Part of ticket 33643.
1539   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
1540     - Use the correct 64-bit printf format when compiling with MINGW on
1541       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1543   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
1544     - Warn if the ContactInfo field is not set, and tell the relay
1545       operator that not having a ContactInfo field set might cause their
1546       relay to get rejected in the future. Fixes bug 33361; bugfix
1547       on 0.1.1.10-alpha.
1549   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
1550     - Resume use of preemptively-built circuits when UseEntryGuards is set
1551       to 0. We accidentally disabled this feature with that config
1552       setting, leading to slower load times. Fixes bug 34303; bugfix
1553       on 0.3.3.2-alpha.
1555   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
1556     - Avoid compiler warnings from Clang 10 related to the use of GCC-
1557       style "/* falls through */" comments. Both Clang and GCC allow
1558       __attribute__((fallthrough)) instead, so that's what we're using
1559       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
1560     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
1561       on 0.4.0.3-alpha.
1563   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
1564     - Fix a compiler warning on platforms with 32-bit time_t values.
1565       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1567   o Minor bugfixes (controller protocol, backport from 0.4.3.2-alpha):
1568     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
1569       report them as SIGNAL events. Previously we would log a bug
1570       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
1572   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
1573     - When starting Tor any time after the first time in a process,
1574       register the thread in which it is running as the main thread.
1575       Previously, we only did this on Windows, which could lead to bugs
1576       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
1577       on 0.3.3.1-alpha.
1579   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
1580     - When reading PEM-encoded key data, tolerate CRLF line-endings even
1581       if we are not running on Windows. Previously, non-Windows hosts
1582       would reject these line-endings in certain positions, making
1583       certain key files hard to move from one host to another. Fixes bug
1584       33032; bugfix on 0.3.5.1-alpha.
1586   o Minor bugfixes (logging, backport from 0.4.3.2-rc):
1587     - When logging a bug, do not say "Future instances of this warning
1588       will be silenced" unless we are actually going to silence them.
1589       Previously we would say this whenever a BUG() check failed in the
1590       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
1592   o Minor bugfixes (logging, backport from 0.4.3.4-rc):
1593     - Flush stderr, stdout, and file logs during shutdown, if supported
1594       by the OS. This change helps make sure that any final logs are
1595       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
1597   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
1598     - Downgrade a noisy log message that could occur naturally when
1599       receiving an extrainfo document that we no longer want. Fixes bug
1600       16016; bugfix on 0.2.6.3-alpha.
1602   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
1603     - Remove a BUG() warning that would cause a stack trace if an onion
1604       service descriptor was freed while we were waiting for a
1605       rendezvous circuit to complete. Fixes bug 28992; bugfix
1606       on 0.3.2.1-alpha.
1608   o Testing (CI, backport from 0.4.3.4-rc):
1609     - In our Appveyor Windows CI, copy required DLLs to test and app
1610       directories, before running tor's tests. This ensures that tor.exe
1611       and test*.exe use the correct version of each DLL. This fix is not
1612       required, but we hope it will avoid DLL search issues in future.
1613       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
1614     - On Appveyor, skip the crypto/openssl_version test, which is
1615       failing because of a mismatched library installation. Fix
1616       for 33643.
1619 Changes in version 0.4.3.6 - 2020-07-09
1620   Tor 0.4.3.6 backports several bugfixes from later releases, including
1621   some affecting usability.
1623   This release also fixes TROVE-2020-001, a medium-severity denial of
1624   service vulnerability affecting all versions of Tor when compiled with
1625   the NSS encryption library. (This is not the default configuration.)
1626   Using this vulnerability, an attacker could cause an affected Tor
1627   instance to crash remotely. This issue is also tracked as CVE-2020-
1628   15572. Anybody running a version of Tor built with the NSS library
1629   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1630   or later.
1632   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
1633     - Fix a crash due to an out-of-bound memory access when Tor is
1634       compiled with NSS support. Fixes bug 33119; bugfix on
1635       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1636       and CVE-2020-15572.
1638   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
1639     - Use the correct 64-bit printf format when compiling with MINGW on
1640       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1642   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
1643     - Resume use of preemptively-built circuits when UseEntryGuards is set
1644       to 0. We accidentally disabled this feature with that config
1645       setting, leading to slower load times. Fixes bug 34303; bugfix
1646       on 0.3.3.2-alpha.
1648   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
1649     - Fix a compiler warning on platforms with 32-bit time_t values.
1650       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1652   o Minor bugfixes (linux seccomp sandbox, nss, backport from 0.4.4.1-alpha):
1653     - Fix a startup crash when tor is compiled with --enable-nss and
1654       sandbox support is enabled. Fixes bug 34130; bugfix on
1655       0.3.5.1-alpha. Patch by Daniel Pinto.
1657   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
1658     - Downgrade a noisy log message that could occur naturally when
1659       receiving an extrainfo document that we no longer want. Fixes bug
1660       16016; bugfix on 0.2.6.3-alpha.
1662   o Minor bugfixes (manual page, backport from 0.4.4.1-alpha):
1663     - Update the man page to reflect that MinUptimeHidServDirectoryV2
1664       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
1666   o Minor bugfixes (onion service v3, backport from 0.4.4.1-alpha):
1667     - Prevent an assert() that would occur when cleaning the client
1668       descriptor cache, and attempting to close circuits for a non-
1669       decrypted descriptor (lacking client authorization). Fixes bug
1670       33458; bugfix on 0.4.2.1-alpha.
1672   o Minor bugfixes (portability, backport from 0.4.4.1-alpha):
1673     - Fix a portability error in the configure script, where we were
1674       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
1676   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
1677     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
1678       descriptors, when the IPv6 port was configured as "auto". Fixes
1679       bug 32588; bugfix on 0.2.3.9-alpha.
1681   o Documentation (backport from 0.4.4.1-alpha):
1682     - Fix several doxygen warnings related to imbalanced groups. Closes
1683       ticket 34255.
1686 Changes in version 0.4.4.2-alpha - 2020-07-09
1687   This is the second alpha release in the 0.4.4.x series. It fixes a few
1688   bugs in the previous release, and solves a few usability,
1689   compatibility, and portability issues.
1691   This release also fixes TROVE-2020-001, a medium-severity denial of
1692   service vulnerability affecting all versions of Tor when compiled with
1693   the NSS encryption library. (This is not the default configuration.)
1694   Using this vulnerability, an attacker could cause an affected Tor
1695   instance to crash remotely. This issue is also tracked as CVE-2020-
1696   15572. Anybody running a version of Tor built with the NSS library
1697   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1698   or later.
1700   o Major bugfixes (NSS, security):
1701     - Fix a crash due to an out-of-bound memory access when Tor is
1702       compiled with NSS support. Fixes bug 33119; bugfix on
1703       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1704       and CVE-2020-15572.
1706   o Minor features (bootstrap reporting):
1707     - Report more detailed reasons for bootstrap failure when the
1708       failure happens due to a TLS error. Previously we would just call
1709       these errors "MISC" when they happened during read, and "DONE"
1710       when they happened during any other TLS operation. Closes
1711       ticket 32622.
1713   o Minor features (directory authority):
1714     - Authorities now recommend the protocol versions that are supported
1715       by Tor 0.3.5 and later. (Earlier versions of Tor have been
1716       deprecated since January of this year.) This recommendation will
1717       cause older clients and relays to give a warning on startup, or
1718       when they download a consensus directory. Closes ticket 32696.
1720   o Minor features (entry guards):
1721     - Reinstate support for GUARD NEW/UP/DOWN control port events.
1722       Closes ticket 40001.
1724   o Minor features (linux seccomp2 sandbox, portability):
1725     - Allow Tor to build on platforms where it doesn't know how to
1726       report which syscall caused the linux seccomp2 sandbox to fail.
1727       This change should make the sandbox code more portable to less
1728       common Linux architectures. Closes ticket 34382.
1729     - Permit the unlinkat() syscall, which some Libc implementations use
1730       to implement unlink(). Closes ticket 33346.
1732   o Minor bugfix (CI, Windows):
1733     - Use the correct 64-bit printf format when compiling with MINGW on
1734       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1736   o Minor bugfix (onion service v3 client):
1737     - Remove a BUG() warning that could occur naturally. Fixes bug
1738       34087; bugfix on 0.3.2.1-alpha.
1740   o Minor bugfix (SOCKS, onion service client):
1741     - Detect v3 onion service addresses of the wrong length when
1742       returning the F6 ExtendedErrors code. Fixes bug 33873; bugfix
1743       on 0.4.3.1-alpha.
1745   o Minor bugfixes (compiler warnings):
1746     - Fix a compiler warning on platforms with 32-bit time_t values.
1747       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1749   o Minor bugfixes (control port, onion service):
1750     - Consistently use 'address' in "Invalid v3 address" response to
1751       ONION_CLIENT_AUTH commands. Previously, we would sometimes say
1752       'addr'. Fixes bug 40005; bugfix on 0.4.3.1-alpha.
1754   o Minor bugfixes (logging):
1755     - Downgrade a noisy log message that could occur naturally when
1756       receiving an extrainfo document that we no longer want. Fixes bug
1757       16016; bugfix on 0.2.6.3-alpha.
1759   o Minor bugfixes (onion services v3):
1760     - Avoid a non-fatal assertion failure in certain edge-cases when
1761       opening an intro circuit as a client. Fixes bug 34084; bugfix
1762       on 0.3.2.1-alpha.
1764   o Deprecated features (onion service v2):
1765     - Add a deprecation warning for version 2 onion services. Closes
1766       ticket 40003.
1768   o Removed features (IPv6, revert):
1769     - Revert the change in the default value of ClientPreferIPv6OrPort:
1770       it breaks the torsocks use case. The SOCKS resolve command has no
1771       mechanism to ask for a specific address family (v4 or v6), and so
1772       prioritizing IPv6 when an IPv4 address is requested on the SOCKS
1773       interface resulted in a failure. Tor Browser explicitly sets
1774       PreferIPv6, so this should not affect the majority of our users.
1775       Closes ticket 33796; bugfix on 0.4.4.1-alpha.
1778 Changes in version 0.4.4.1-alpha - 2020-06-16
1779   This is the first alpha release in the 0.4.4.x series.  It improves
1780   our guard selection algorithms, improves the amount of code that
1781   can be disabled when running without relay support, and includes numerous
1782   small bugfixes and enhancements.  It also lays the ground for some IPv6
1783   features that we'll be developing more in the next (0.4.5) series.
1785   Here are the changes since 0.4.3.5.
1787   o Major features (Proposal 310, performance + security):
1788     - Implements Proposal 310, "Bandaid on guard selection". Proposal
1789       310 solves load-balancing issues with older versions of the guard
1790       selection algorithm, and improves its security. Under this new
1791       algorithm, a newly selected guard never becomes Primary unless all
1792       previously sampled guards are unreachable. Implements
1793       recommendation from 32088. (Proposal 310 is linked to the CLAPS
1794       project researching optimal client location-aware path selections.
1795       This project is a collaboration between the UCLouvain Crypto Group,
1796       the U.S. Naval Research Laboratory, and Princeton University.)
1798   o Major features (IPv6, relay):
1799     - Consider IPv6-only EXTEND2 cells valid on relays. Log a protocol
1800       warning if the IPv4 or IPv6 address is an internal address, and
1801       internal addresses are not allowed. But continue to use the other
1802       address, if it is valid. Closes ticket 33817.
1803     - If a relay can extend over IPv4 and IPv6, and both addresses are
1804       provided, it chooses between them uniformly at random. Closes
1805       ticket 33817.
1806     - Re-use existing IPv6 connections for circuit extends. Closes
1807       ticket 33817.
1808     - Relays may extend circuits over IPv6, if the relay has an IPv6
1809       ORPort, and the client supplies the other relay's IPv6 ORPort in
1810       the EXTEND2 cell. IPv6 extends will be used by the relay IPv6
1811       ORPort self-tests in 33222. Closes ticket 33817.
1813   o Major features (v3 onion services):
1814     - Allow v3 onion services to act as OnionBalance backend instances,
1815       by using the HiddenServiceOnionBalanceInstance torrc option.
1816       Closes ticket 32709.
1818   o Minor feature (developer tools):
1819     - Add a script to help check the alphabetical ordering of option
1820       names in the manual page. Closes ticket 33339.
1822   o Minor feature (onion service client, SOCKS5):
1823     - Add 3 new SocksPort ExtendedErrors (F2, F3, F7) that reports back
1824       new type of onion service connection failures. The semantics of
1825       these error codes are documented in proposal 309. Closes
1826       ticket 32542.
1828   o Minor feature (onion service v3):
1829     - If a service cannot upload its descriptor(s), log why at INFO
1830       level. Closes ticket 33400; bugfix on 0.3.2.1-alpha.
1832   o Minor feature (python scripts):
1833     - Stop assuming that /usr/bin/python exists. Instead of using a
1834       hardcoded path in scripts that still use Python 2, use
1835       /usr/bin/env, similarly to the scripts that use Python 3. Fixes
1836       bug 33192; bugfix on 0.4.2.
1838   o Minor features (client-only compilation):
1839     - Disable more code related to the ext_orport protocol when
1840       compiling without support for relay mode. Closes ticket 33368.
1841     - Disable more of our self-testing code when support for relay mode
1842       is disabled. Closes ticket 33370.
1844   o Minor features (code safety):
1845     - Check for failures of tor_inet_ntop() and tor_inet_ntoa()
1846       functions in DNS and IP address processing code, and adjust
1847       codepaths to make them less likely to crash entire Tor instances.
1848       Resolves issue 33788.
1850   o Minor features (compilation size):
1851     - Most server-side DNS code is now disabled when building without
1852       support for relay mode. Closes ticket 33366.
1854   o Minor features (continuous integration):
1855     - Run unit-test and integration test (Stem, Chutney) jobs with
1856       ALL_BUGS_ARE_FATAL macro being enabled on Travis and Appveyor.
1857       Resolves ticket 32143.
1859   o Minor features (control port):
1860     - Return a descriptive error message from the 'GETINFO status/fresh-
1861       relay-descs' command on the control port. Previously, we returned
1862       a generic error of "Error generating descriptor". Closes ticket
1863       32873. Patch by Neel Chauhan.
1865   o Minor features (developer tooling):
1866     - Refrain from listing all .a files that are generated by the Tor
1867       build in .gitignore. Add a single wildcard *.a entry that covers
1868       all of them for present and future. Closes ticket 33642.
1869     - Add a script ("git-install-tools.sh") to install git hooks and
1870       helper scripts. Closes ticket 33451.
1872   o Minor features (directory authority, shared random):
1873     - Refactor more authority-only parts of the shared-random scheduling
1874       code to reside in the dirauth module, and to be disabled when
1875       compiling with --disable-module-dirauth. Closes ticket 33436.
1877   o Minor features (directory):
1878     - Remember the number of bytes we have downloaded for each directory
1879       purpose while bootstrapping, and while fully bootstrapped. Log
1880       this information as part of the heartbeat message. Closes
1881       ticket 32720.
1883   o Minor features (IPv6 support):
1884     - Adds IPv6 support to tor_addr_is_valid(). Adds tests for the above
1885       changes and tor_addr_is_null(). Closes ticket 33679. Patch
1886       by MrSquanchee.
1887     - Allow clients and relays to send dual-stack and IPv6-only EXTEND2
1888       cells. Parse dual-stack and IPv6-only EXTEND2 cells on relays.
1889       Closes ticket 33901.
1891   o Minor features (logging):
1892     - When trying to find our own address, add debug-level logging to
1893       report the sources of candidate addresses. Closes ticket 32888.
1895   o Minor features (testing, architecture):
1896     - Our test scripts now double-check that subsystem initialization
1897       order is consistent with the inter-module dependencies established
1898       by our .may_include files. Implements ticket 31634.
1899     - Initialize all subsystems at the beginning of our unit test
1900       harness, to avoid crashes due to uninitialized subsystems. Follow-
1901       up from ticket 33316.
1903   o Minor features (v3 onion services):
1904     - Add v3 onion service status to the dumpstats() call which is
1905       triggered by a SIGUSR1 signal. Previously, we only did v2 onion
1906       services. Closes ticket 24844. Patch by Neel Chauhan.
1908   o Minor features (windows):
1909     - Add support for console control signals like Ctrl+C in Windows.
1910       Closes ticket 34211. Patch from Damon Harris (TheDcoder).
1912   o Minor bugfix (onion service v3):
1913     - Prevent an assert() that would occur when cleaning the client
1914       descriptor cache, and attempting to close circuits for a non-
1915       decrypted descriptor (lacking client authorization). Fixes bug
1916       33458; bugfix on 0.4.2.1-alpha.
1918   o Minor bugfix (refactoring):
1919     - Lift circuit_build_times_disabled() out of the
1920       circuit_expire_building() loop, to save CPU time when there are
1921       many circuits open. Fixes bug 33977; bugfix on 0.3.5.9.
1923   o Minor bugfixes (client performance):
1924     - Resume use of preemptively-built circuits when UseEntryGuards is set
1925       to 0. We accidentally disabled this feature with that config
1926       setting, leading to slower load times. Fixes bug 34303; bugfix
1927       on 0.3.3.2-alpha.
1929   o Minor bugfixes (directory authorities):
1930     - Directory authorities now reject votes that arrive too late. In
1931       particular, once an authority has started fetching missing votes,
1932       it no longer accepts new votes posted by other authorities. This
1933       change helps prevent a consensus split, where only some authorities
1934       have the late vote. Fixes bug 4631; bugfix on 0.2.0.5-alpha.
1936   o Minor bugfixes (git scripts):
1937     - Stop executing the checked-out pre-commit hook from the pre-push
1938       hook. Instead, execute the copy in the user's git directory. Fixes
1939       bug 33284; bugfix on 0.4.1.1-alpha.
1941   o Minor bugfixes (initialization):
1942     - Initialize the subsystems in our code in an order more closely
1943       corresponding to their dependencies, so that every system is
1944       initialized before the ones that (theoretically) depend on it.
1945       Fixes bug 33316; bugfix on 0.4.0.1-alpha.
1947   o Minor bugfixes (IPv4, relay):
1948     - Check for invalid zero IPv4 addresses and ports when sending and
1949       receiving extend cells. Fixes bug 33900; bugfix on 0.2.4.8-alpha.
1951   o Minor bugfixes (IPv6, relay):
1952     - Consider IPv6 addresses when checking if a connection is
1953       canonical. In 17604, relays assumed that a remote relay could
1954       consider an IPv6 connection canonical, but did not set the
1955       canonical flag on their side of the connection. Fixes bug 33899;
1956       bugfix on 0.3.1.1-alpha.
1957     - Log IPv6 addresses on connections where this relay is the
1958       responder. Previously, responding relays would replace the remote
1959       IPv6 address with the IPv4 address from the consensus. Fixes bug
1960       33899; bugfix on 0.3.1.1-alpha.
1962   o Minor bugfixes (linux seccomp sandbox nss):
1963     - Fix a startup crash when tor is compiled with --enable-nss and
1964       sandbox support is enabled. Fixes bug 34130; bugfix on
1965       0.3.5.1-alpha. Patch by Daniel Pinto.
1967   o Minor bugfixes (logging, testing):
1968     - Make all of tor's assertion macros support the ALL_BUGS_ARE_FATAL
1969       and DISABLE_ASSERTS_IN_UNIT_TESTS debugging modes. (IF_BUG_ONCE()
1970       used to log a non-fatal warning, regardless of the debugging
1971       mode.) Fixes bug 33917; bugfix on 0.2.9.1-alpha.
1973   o Minor bugfixes (logs):
1974     - Remove surprising empty line in the INFO-level log about circuit
1975       build timeout. Fixes bug 33531; bugfix on 0.3.3.1-alpha.
1977   o Minor bugfixes (mainloop):
1978     - Better guard against growing a buffer past its maximum 2GB in
1979       size. Fixes bug 33131; bugfix on 0.3.0.4-rc.
1981   o Minor bugfixes (manual page):
1982     - Update the man page to reflect that MinUptimeHidServDirectoryV2
1983       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
1985   o Minor bugfixes (onion service v3, client):
1986     - Remove a BUG() that was causing a stacktrace when a descriptor
1987       changed at an unexpected time. Fixes bug 28992; bugfix
1988       on 0.3.2.1-alpha.
1990   o Minor bugfixes (onion service, logging):
1991     - Fix a typo in a log message PublishHidServDescriptors is set to 0.
1992       Fixes bug 33779; bugfix on 0.3.2.1-alpha.
1994   o Minor bugfixes (portability):
1995     - Fix a portability error in the configure script, where we were
1996       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
1998   o Minor bugfixes (protocol versions):
1999     - Sort tor's supported protocol version lists, as recommended by the
2000       tor directory specification. Fixes bug 33285; bugfix
2001       on 0.4.0.1-alpha.
2003   o Minor bugfixes (relays):
2004     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
2005       descriptors, when the IPv6 port was configured as "auto". Fixes
2006       bug 32588; bugfix on 0.2.3.9-alpha.
2008   o Code simplification and refactoring:
2009     - Define and use a new constant TOR_ADDRPORT_BUF_LEN which is like
2010       TOR_ADDR_BUF_LEN but includes enough space for an IP address,
2011       brackets, separating colon, and port number. Closes ticket 33956.
2012       Patch by Neel Chauhan.
2013     - Merge the orconn and ocirc events into the "core" subsystem, which
2014       manages or connections and origin circuits. Previously they were
2015       isolated in subsystems of their own.
2016     - Move LOG_PROTOCOL_WARN to app/config. Resolves a dependency
2017       inversion. Closes ticket 33633.
2018     - Move the circuit extend code to the relay module. Split the
2019       circuit extend function into smaller functions. Closes
2020       ticket 33633.
2021     - Rewrite port_parse_config() to use the default port flags from
2022       port_cfg_new(). Closes ticket 32994. Patch by MrSquanchee.
2023     - Updated comments in 'scheduler.c' to reflect old code changes, and
2024       simplified the scheduler channel state change code. Closes
2025       ticket 33349.
2027   o Documentation:
2028     - Document the limitations of using %include on config files with
2029       seccomp sandbox enabled. Fixes documentation bug 34133; bugfix on
2030       0.3.1.1-alpha. Patch by Daniel Pinto.
2031     - Fix several doxygen warnings related to imbalanced groups. Closes
2032       ticket 34255.
2034   o Removed features:
2035     - Remove the ClientAutoIPv6ORPort option. This option attempted to
2036       randomly choose between IPv4 and IPv6 for client connections, and
2037       wasn't a true implementation of Happy Eyeballs. Often, this option
2038       failed on IPv4-only or IPv6-only connections. Closes ticket 32905.
2039       Patch by Neel Chauhan.
2040     - Stop shipping contrib/dist/rc.subr file, as it is not being used
2041       on FreeBSD anymore. Closes issue 31576.
2043   o Testing:
2044     - Add a basic IPv6 test to "make test-network". This test only runs
2045       when the local machine has an IPv6 stack. Closes ticket 33300.
2046     - Add test-network-ipv4 and test-network-ipv6 jobs to the Makefile.
2047       These jobs run the IPv4-only and dual-stack chutney flavours from
2048       test-network-all. Closes ticket 33280.
2049     - Remove a redundant distcheck job. Closes ticket 33194.
2050     - Run the test-network-ipv6 Makefile target in the Travis CI IPv6
2051       chutney job. This job runs on macOS, so it's a bit slow. Closes
2052       ticket 33303.
2053     - Sort the Travis jobs in order of speed. Putting the slowest jobs
2054       first takes full advantage of Travis job concurrency. Closes
2055       ticket 33194.
2056     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2057       previously configured to fast_finish (which requires
2058       allow_failure), to speed up the build. Closes ticket 33195.
2059     - Test v3 onion services to tor's mixed IPv4 chutney network. And
2060       add a mixed IPv6 chutney network. These networks are used in the
2061       test-network-all, test-network-ipv4, and test-network-ipv6 make
2062       targets. Closes ticket 33334.
2063     - Use the "bridges+hs-v23" chutney network flavour in "make test-
2064       network". This test requires a recent version of chutney (mid-
2065       February 2020). Closes ticket 28208.
2066     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2067       tool to produce detailed diagnostic output. Closes ticket 32792.
2069   o Code simplification and refactoring (onion service):
2070     - Refactor configuration parsing to use the new config subsystem
2071       code. Closes ticket 33014.
2073   o Code simplification and refactoring (relay address):
2074     - Move a series of functions related to address resolving into their
2075       own files. Closes ticket 33789.
2077   o Documentation (manual page):
2078     - Add cross reference links and a table of contents to the HTML tor
2079       manual page. Closes ticket 33369. Work by Swati Thacker as part of
2080       Google Season of Docs.
2081     - Alphabetize the Denial of Service Mitigation Options, Directory
2082       Authority Server Options, Hidden Service Options, and Testing
2083       Network Options sections of the tor(1) manual page. Closes ticket
2084       33275. Work by Swati Thacker as part of Google Season of Docs.
2085     - Refrain from mentioning nicknames in manpage section for MyFamily
2086       torrc option. Resolves issue 33417.
2087     - Updated the options set by TestingTorNetwork in the manual page.
2088       Closes ticket 33778.
2091 Changes in version 0.4.3.5 - 2020-05-15
2092   Tor 0.4.3.5 is the first stable release in the 0.4.3.x series. This
2093   series adds support for building without relay code enabled, and
2094   implements functionality needed for OnionBalance with v3 onion
2095   services. It includes significant refactoring of our configuration and
2096   controller functionality, and fixes numerous smaller bugs and
2097   performance issues.
2099   Per our support policy, we support each stable release series for nine
2100   months after its first stable release, or three months after the first
2101   stable release of the next series: whichever is longer. This means
2102   that 0.4.3.x will be supported until around February 2021--later, if
2103   0.4.4.x is later than anticipated.
2105   Note also that support for 0.4.1.x is about to end on May 20 of this
2106   year; 0.4.2.x will be supported until September 15. We still plan to
2107   continue supporting 0.3.5.x, our long-term stable series, until
2108   Feb 2022.
2110   Below are the changes since 0.4.3.4-rc. For a complete list of changes
2111   since 0.4.2.6, see the ReleaseNotes file.
2113   o Minor bugfixes (compiler compatibility):
2114     - Avoid compiler warnings from Clang 10 related to the use of GCC-
2115       style "/* falls through */" comments. Both Clang and GCC allow
2116       __attribute__((fallthrough)) instead, so that's what we're using
2117       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
2118     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
2119       on 0.4.0.3-alpha.
2121   o Minor bugfixes (logging):
2122     - Stop truncating IPv6 addresses and ports in channel and connection
2123       logs. Fixes bug 33918; bugfix on 0.2.4.4-alpha.
2124     - Fix a logic error in a log message about whether an address was
2125       invalid. Previously, the code would never report that onion
2126       addresses were onion addresses. Fixes bug 34131; bugfix
2127       on 0.4.3.1-alpha.
2130 Changes in version 0.4.3.4-rc - 2020-04-13
2131   Tor 0.4.3.4-rc is the first release candidate in its series. It fixes
2132   several bugs from earlier versions, including one affecting DoS
2133   defenses on bridges using pluggable transports.
2135   o Major bugfixes (DoS defenses, bridges, pluggable transport):
2136     - Fix a bug that was preventing DoS defenses from running on bridges
2137       with a pluggable transport. Previously, the DoS subsystem was not
2138       given the transport name of the client connection, thus failed to
2139       find the GeoIP cache entry for that client address. Fixes bug
2140       33491; bugfix on 0.3.3.2-alpha.
2142   o Minor feature (sendme, flow control):
2143     - Default to sending SENDME version 1 cells. (Clients are already
2144       sending these, because of a consensus parameter telling them to do
2145       so: this change only affects what clients would do if the
2146       consensus didn't contain a recommendation.) Closes ticket 33623.
2148   o Minor features (testing):
2149     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
2150       variable to specify a list of space-separated test cases that
2151       should not be executed. We will use this to disable certain tests
2152       that are failing on Appveyor because of mismatched OpenSSL
2153       libraries. Part of ticket 33643.
2155   o Minor bugfixes (--disable-module-relay):
2156     - Fix an assertion failure when Tor is built without the relay
2157       module, and then invoked with the "User" option. Fixes bug 33668;
2158       bugfix on 0.4.3.1-alpha.
2160   o Minor bugfixes (--disable-module-relay,--disable-module-dirauth):
2161     - Set some output arguments in the relay and dirauth module stubs,
2162       to guard against future stub argument handling bugs like 33668.
2163       Fixes bug 33674; bugfix on 0.4.3.1-alpha.
2165   o Minor bugfixes (build system):
2166     - Correctly output the enabled module in the configure summary.
2167       Before that, the list shown was just plain wrong. Fixes bug 33646;
2168       bugfix on 0.4.3.2-alpha.
2170   o Minor bugfixes (client, IPv6):
2171     - Stop forcing all non-SocksPorts to prefer IPv6 exit connections.
2172       Instead, prefer IPv6 connections by default, but allow users to
2173       change their configs using the "NoPreferIPv6" port flag. Fixes bug
2174       33608; bugfix on 0.4.3.1-alpha.
2175     - Revert PreferIPv6 set by default on the SocksPort because it broke
2176       the torsocks use case. Tor doesn't have a way for an application
2177       to request the hostname to be resolved for a specific IP version,
2178       but torsocks requires that. Up until now, IPv4 was used by default
2179       so torsocks is expecting that, and can't handle a possible IPv6
2180       being returned. Fixes bug 33804; bugfix on 0.4.3.1-alpha.
2182   o Minor bugfixes (key portability):
2183     - When reading PEM-encoded key data, tolerate CRLF line-endings even
2184       if we are not running on Windows. Previously, non-Windows hosts
2185       would reject these line-endings in certain positions, making
2186       certain key files hard to move from one host to another. Fixes bug
2187       33032; bugfix on 0.3.5.1-alpha.
2189   o Minor bugfixes (logging):
2190     - Flush stderr, stdout, and file logs during shutdown, if supported
2191       by the OS. This change helps make sure that any final logs are
2192       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
2193     - Stop closing stderr and stdout during shutdown. Closing these file
2194       descriptors can hide sanitiser logs. Fixes bug 33087; bugfix
2195       on 0.4.1.6.
2197   o Minor bugfixes (onion services v3):
2198     - Relax severity of a log message that can appear naturally when
2199       decoding onion service descriptors as a relay. Also add some
2200       diagnostics to debug any future bugs in that area. Fixes bug
2201       31669; bugfix on 0.3.0.1-alpha.
2202     - Block a client-side assertion by disallowing the registration of
2203       an x25519 client auth key that's all zeroes. Fixes bug 33545;
2204       bugfix on 0.4.3.1-alpha. Based on patch from "cypherpunks".
2206   o Code simplification and refactoring:
2207     - Disable our coding standards best practices tracker in our git
2208       hooks. (0.4.3 branches only.) Closes ticket 33678.
2210   o Testing:
2211     - Avoid conflicts between the fake sockets in tor's unit tests, and
2212       real file descriptors. Resolves issues running unit tests with
2213       GitHub Actions, where the process that embeds or launches the
2214       tests has already opened a large number of file descriptors. Fixes
2215       bug 33782; bugfix on 0.2.8.1-alpha. Found and fixed by
2216       Putta Khunchalee.
2218   o Testing (CI):
2219     - In our Appveyor Windows CI, copy required DLLs to test and app
2220       directories, before running tor's tests. This ensures that tor.exe
2221       and test*.exe use the correct version of each DLL. This fix is not
2222       required, but we hope it will avoid DLL search issues in future.
2223       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
2224     - On Appveyor, skip the crypto/openssl_version test, which is
2225       failing because of a mismatched library installation. Fix
2226       for 33643.
2229 Changes in version 0.4.3.3-alpha - 2020-03-18
2230   Tor 0.4.3.3-alpha fixes several bugs in previous releases, including
2231   TROVE-2020-002, a major denial-of-service vulnerability that affected
2232   all released Tor instances since 0.2.1.5-alpha. Using this
2233   vulnerability, an attacker could cause Tor instances to consume a huge
2234   amount of CPU, disrupting their operations for several seconds or
2235   minutes. This attack could be launched by anybody against a relay, or
2236   by a directory cache against any client that had connected to it. The
2237   attacker could launch this attack as much as they wanted, thereby
2238   disrupting service or creating patterns that could aid in traffic
2239   analysis. This issue was found by OSS-Fuzz, and is also tracked
2240   as CVE-2020-10592.
2242   We do not have reason to believe that this attack is currently being
2243   exploited in the wild, but nonetheless we advise everyone to upgrade
2244   as soon as packages are available.
2246   o Major bugfixes (security, denial-of-service):
2247     - Fix a denial-of-service bug that could be used by anyone to
2248       consume a bunch of CPU on any Tor relay or authority, or by
2249       directories to consume a bunch of CPU on clients or hidden
2250       services. Because of the potential for CPU consumption to
2251       introduce observable timing patterns, we are treating this as a
2252       high-severity security issue. Fixes bug 33119; bugfix on
2253       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2254       as TROVE-2020-002 and CVE-2020-10592.
2256   o Major bugfixes (circuit padding, memory leak):
2257     - Avoid a remotely triggered memory leak in the case that a circuit
2258       padding machine is somehow negotiated twice on the same circuit.
2259       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
2260       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
2262   o Major bugfixes (directory authority):
2263     - Directory authorities will now send a 503 (not enough bandwidth)
2264       code to clients when under bandwidth pressure. Known relays and
2265       other authorities will always be answered regardless of the
2266       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
2268   o Minor features (diagnostic):
2269     - Improve assertions and add some memory-poisoning code to try to
2270       track down possible causes of a rare crash (32564) in the EWMA
2271       code. Closes ticket 33290.
2273   o Minor features (directory authorities):
2274     - Directory authorities now reject descriptors from relays running
2275       Tor versions from the 0.2.9 and 0.4.0 series. The 0.3.5 series is
2276       still allowed. Resolves ticket 32672. Patch by Neel Chauhan.
2278   o Minor features (usability):
2279     - Include more information when failing to parse a configuration
2280       value. This should make it easier to tell what's going wrong when
2281       a configuration file doesn't parse. Closes ticket 33460.
2283   o Minor bugfix (relay, configuration):
2284     - Warn if the ContactInfo field is not set, and tell the relay
2285       operator that not having a ContactInfo field set might cause their
2286       relay to get rejected in the future. Fixes bug 33361; bugfix
2287       on 0.1.1.10-alpha.
2289   o Minor bugfixes (coding best practices checks):
2290     - Allow the "practracker" script to read unicode files when using
2291       Python 2. We made the script use unicode literals in 0.4.3.1-alpha,
2292       but didn't change the codec for opening files. Fixes bug 33374;
2293       bugfix on 0.4.3.1-alpha.
2295   o Minor bugfixes (continuous integration):
2296     - Remove the buggy and unused mirroring job. Fixes bug 33213; bugfix
2297       on 0.3.2.2-alpha.
2299   o Minor bugfixes (onion service v3, client):
2300     - Remove a BUG() warning that would cause a stack trace if an onion
2301       service descriptor was freed while we were waiting for a
2302       rendezvous circuit to complete. Fixes bug 28992; bugfix
2303       on 0.3.2.1-alpha.
2305   o Minor bugfixes (onion services v3):
2306     - Fix an assertion failure that could result from a corrupted
2307       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2308       bugfix on 0.3.3.1-alpha. This issue is also tracked
2309       as TROVE-2020-003.
2311   o Documentation (manpage):
2312     - Alphabetize the Server and Directory server sections of the tor
2313       manpage. Also split Statistics options into their own section of
2314       the manpage. Closes ticket 33188. Work by Swati Thacker as part of
2315       Google Season of Docs.
2316     - Document the __OwningControllerProcess torrc option and specify
2317       its polling interval. Resolves issue 32971.
2319   o Testing (Travis CI):
2320     - Remove a redundant distcheck job. Closes ticket 33194.
2321     - Sort the Travis jobs in order of speed: putting the slowest jobs
2322       first takes full advantage of Travis job concurrency. Closes
2323       ticket 33194.
2324     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2325       previously configured to fast_finish (which requires
2326       allow_failure), to speed up the build. Closes ticket 33195.
2327     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2328       tool to produce detailed diagnostic output. Closes ticket 32792.
2331 Changes in version 0.4.2.7 - 2020-03-18
2332   This is the third stable release in the 0.4.2.x series. It backports
2333   numerous fixes from later releases, including a fix for TROVE-2020-
2334   002, a major denial-of-service vulnerability that affected all
2335   released Tor instances since 0.2.1.5-alpha. Using this vulnerability,
2336   an attacker could cause Tor instances to consume a huge amount of CPU,
2337   disrupting their operations for several seconds or minutes. This
2338   attack could be launched by anybody against a relay, or by a directory
2339   cache against any client that had connected to it. The attacker could
2340   launch this attack as much as they wanted, thereby disrupting service
2341   or creating patterns that could aid in traffic analysis. This issue
2342   was found by OSS-Fuzz, and is also tracked as CVE-2020-10592.
2344   We do not have reason to believe that this attack is currently being
2345   exploited in the wild, but nonetheless we advise everyone to upgrade
2346   as soon as packages are available.
2348   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
2349     - Fix a denial-of-service bug that could be used by anyone to
2350       consume a bunch of CPU on any Tor relay or authority, or by
2351       directories to consume a bunch of CPU on clients or hidden
2352       services. Because of the potential for CPU consumption to
2353       introduce observable timing patterns, we are treating this as a
2354       high-severity security issue. Fixes bug 33119; bugfix on
2355       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2356       as TROVE-2020-002 and CVE-2020-10592.
2358   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
2359     - Avoid a remotely triggered memory leak in the case that a circuit
2360       padding machine is somehow negotiated twice on the same circuit.
2361       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
2362       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
2364   o Major bugfixes (directory authority, backport from 0.4.3.3-alpha):
2365     - Directory authorities will now send a 503 (not enough bandwidth)
2366       code to clients when under bandwidth pressure. Known relays and
2367       other authorities will always be answered regardless of the
2368       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
2370   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
2371     - Stop allowing failures on the Travis CI stem tests job. It looks
2372       like all the stem hangs we were seeing before are now fixed.
2373       Closes ticket 33075.
2375   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
2376     - Lowercase the configured value of BridgeDistribution before adding
2377       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2379   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
2380     - If we encounter a bug when flushing a buffer to a TLS connection,
2381       only log the bug once per invocation of the Tor process.
2382       Previously we would log with every occurrence, which could cause
2383       us to run out of disk space. Fixes bug 33093; bugfix
2384       on 0.3.2.2-alpha.
2386   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
2387     - Fix an assertion failure that could result from a corrupted
2388       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2389       bugfix on 0.3.3.1-alpha. This issue is also tracked
2390       as TROVE-2020-003.
2392   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
2393     - Fix a syntax warning given by newer versions of Rust that was
2394       creating problems for our continuous integration. Fixes bug 33212;
2395       bugfix on 0.3.5.1-alpha.
2397   o Testing (Travis CI, backport from 0.4.3.3-alpha):
2398     - Remove a redundant distcheck job. Closes ticket 33194.
2399     - Sort the Travis jobs in order of speed: putting the slowest jobs
2400       first takes full advantage of Travis job concurrency. Closes
2401       ticket 33194.
2402     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2403       previously configured to fast_finish (which requires
2404       allow_failure), to speed up the build. Closes ticket 33195.
2405     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2406       tool to produce detailed diagnostic output. Closes ticket 32792.
2409 Changes in version 0.4.1.9 - 2020-03-18
2410   Tor 0.4.1.9 backports important fixes from later Tor releases,
2411   including a fix for TROVE-2020-002, a major denial-of-service
2412   vulnerability that affected all released Tor instances since
2413   0.2.1.5-alpha. Using this vulnerability, an attacker could cause Tor
2414   instances to consume a huge amount of CPU, disrupting their operations
2415   for several seconds or minutes. This attack could be launched by
2416   anybody against a relay, or by a directory cache against any client
2417   that had connected to it. The attacker could launch this attack as
2418   much as they wanted, thereby disrupting service or creating patterns
2419   that could aid in traffic analysis. This issue was found by OSS-Fuzz,
2420   and is also tracked as CVE-2020-10592.
2422   We do not have reason to believe that this attack is currently being
2423   exploited in the wild, but nonetheless we advise everyone to upgrade
2424   as soon as packages are available.
2426   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
2427     - Fix a denial-of-service bug that could be used by anyone to
2428       consume a bunch of CPU on any Tor relay or authority, or by
2429       directories to consume a bunch of CPU on clients or hidden
2430       services. Because of the potential for CPU consumption to
2431       introduce observable timing patterns, we are treating this as a
2432       high-severity security issue. Fixes bug 33119; bugfix on
2433       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2434       as TROVE-2020-002 and CVE-2020-10592.
2436   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
2437     - Avoid a remotely triggered memory leak in the case that a circuit
2438       padding machine is somehow negotiated twice on the same circuit.
2439       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
2440       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
2442   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
2443     - Lowercase the configured value of BridgeDistribution before adding
2444       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2446   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
2447     - If we encounter a bug when flushing a buffer to a TLS connection,
2448       only log the bug once per invocation of the Tor process.
2449       Previously we would log with every occurrence, which could cause
2450       us to run out of disk space. Fixes bug 33093; bugfix
2451       on 0.3.2.2-alpha.
2453   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
2454     - Fix an assertion failure that could result from a corrupted
2455       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2456       bugfix on 0.3.3.1-alpha. This issue is also tracked
2457       as TROVE-2020-003.
2459   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
2460     - Fix a syntax warning given by newer versions of Rust that was
2461       creating problems for our continuous integration. Fixes bug 33212;
2462       bugfix on 0.3.5.1-alpha.
2464   o Testing (Travis CI, backport from 0.4.3.3-alpha):
2465     - Remove a redundant distcheck job. Closes ticket 33194.
2466     - Sort the Travis jobs in order of speed: putting the slowest jobs
2467       first takes full advantage of Travis job concurrency. Closes
2468       ticket 33194.
2469     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2470       previously configured to fast_finish (which requires
2471       allow_failure), to speed up the build. Closes ticket 33195.
2472     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2473       tool to produce detailed diagnostic output. Closes ticket 32792.
2476 Changes in version 0.3.5.10 - 2020-03-18
2477   Tor 0.3.5.10 backports many fixes from later Tor releases, including a
2478   fix for TROVE-2020-002, a major denial-of-service vulnerability that
2479   affected all released Tor instances since 0.2.1.5-alpha. Using this
2480   vulnerability, an attacker could cause Tor instances to consume a huge
2481   amount of CPU, disrupting their operations for several seconds or
2482   minutes. This attack could be launched by anybody against a relay, or
2483   by a directory cache against any client that had connected to it. The
2484   attacker could launch this attack as much as they wanted, thereby
2485   disrupting service or creating patterns that could aid in traffic
2486   analysis. This issue was found by OSS-Fuzz, and is also tracked
2487   as CVE-2020-10592.
2489   We do not have reason to believe that this attack is currently being
2490   exploited in the wild, but nonetheless we advise everyone to upgrade
2491   as soon as packages are available.
2493   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
2494     - Fix a denial-of-service bug that could be used by anyone to
2495       consume a bunch of CPU on any Tor relay or authority, or by
2496       directories to consume a bunch of CPU on clients or hidden
2497       services. Because of the potential for CPU consumption to
2498       introduce observable timing patterns, we are treating this as a
2499       high-severity security issue. Fixes bug 33119; bugfix on
2500       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2501       as TROVE-2020-002 and CVE-2020-10592.
2503   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
2504     - Correct how we use libseccomp. Particularly, stop assuming that
2505       rules are applied in a particular order or that more rules are
2506       processed after the first match. Neither is the case! In
2507       libseccomp <2.4.0 this lead to some rules having no effect.
2508       libseccomp 2.4.0 changed how rules are generated, leading to a
2509       different ordering, which in turn led to a fatal crash during
2510       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2511       Peter Gerber.
2513   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
2514     - Stop allowing failures on the Travis CI stem tests job. It looks
2515       like all the stem hangs we were seeing before are now fixed.
2516       Closes ticket 33075.
2518   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
2519     - Lowercase the configured value of BridgeDistribution before adding
2520       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2522   o Minor bugfixes (crash, backport from 0.4.2.4-rc):
2523     - When running Tor with an option like --verify-config or
2524       --dump-config that does not start the event loop, avoid crashing
2525       if we try to exit early because of an error. Fixes bug 32407;
2526       bugfix on 0.3.3.1-alpha.
2528   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
2529     - If we encounter a bug when flushing a buffer to a TLS connection,
2530       only log the bug once per invocation of the Tor process.
2531       Previously we would log with every occurrence, which could cause
2532       us to run out of disk space. Fixes bug 33093; bugfix
2533       on 0.3.2.2-alpha.
2535   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
2536     - Fix an assertion failure that could result from a corrupted
2537       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2538       bugfix on 0.3.3.1-alpha. This issue is also tracked
2539       as TROVE-2020-003.
2541   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
2542     - Fix a syntax warning given by newer versions of Rust that was
2543       creating problems for our continuous integration. Fixes bug 33212;
2544       bugfix on 0.3.5.1-alpha.
2546   o Testing (backport from 0.4.3.1-alpha):
2547     - Re-enable the Travis CI macOS Chutney build, but don't let it
2548       prevent the Travis job from finishing. (The Travis macOS jobs are
2549       slow, so we don't want to have it delay the whole CI process.)
2550       Closes ticket 32629.
2551     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2552       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2553       fix the sandbox errors in 32722. Closes ticket 32240.
2555   o Testing (continuous integration, backport from 0.4.3.1-alpha):
2556     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2558   o Testing (Travis CI, backport from 0.4.3.3-alpha):
2559     - Remove a redundant distcheck job. Closes ticket 33194.
2560     - Sort the Travis jobs in order of speed: putting the slowest jobs
2561       first takes full advantage of Travis job concurrency. Closes
2562       ticket 33194.
2563     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2564       previously configured to fast_finish (which requires
2565     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2566       tool to produce detailed diagnostic output. Closes ticket 32792.
2569 Changes in version 0.4.3.2-alpha - 2020-02-10
2570   This is the second stable alpha release in the Tor 0.4.3.x series. It
2571   fixes several bugs present in the previous alpha release. Anybody
2572   running the previous alpha should upgrade, and look for bugs in this
2573   one instead.
2575   o Major bugfixes (onion service client, authorization):
2576     - On a NEWNYM signal, purge entries from the ephemeral client
2577       authorization cache. The permanent ones are kept. Fixes bug 33139;
2578       bugfix on 0.4.3.1-alpha.
2580   o Minor features (best practices tracker):
2581     - Practracker now supports a --regen-overbroad option to regenerate
2582       the exceptions file, but only to revise exceptions to be _less_
2583       tolerant of best-practices violations. Closes ticket 32372.
2585   o Minor features (continuous integration):
2586     - Run Doxygen Makefile target on Travis, so we can learn about
2587       regressions in our internal documentation. Closes ticket 32455.
2588     - Stop allowing failures on the Travis CI stem tests job. It looks
2589       like all the stem hangs we were seeing before are now fixed.
2590       Closes ticket 33075.
2592   o Minor bugfixes (build system):
2593     - Revise configure options that were either missing or incorrect in
2594       the configure summary. Fixes bug 32230; bugfix on 0.4.3.1-alpha.
2596   o Minor bugfixes (controller protocol):
2597     - Fix a memory leak introduced by refactoring of control reply
2598       formatting code. Fixes bug 33039; bugfix on 0.4.3.1-alpha.
2599     - Fix a memory leak in GETINFO responses. Fixes bug 33103; bugfix
2600       on 0.4.3.1-alpha.
2601     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
2602       report them as SIGNAL events. Previously we would log a bug
2603       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
2605   o Minor bugfixes (logging):
2606     - If we encounter a bug when flushing a buffer to a TLS connection,
2607       only log the bug once per invocation of the Tor process.
2608       Previously we would log with every occurrence, which could cause
2609       us to run out of disk space. Fixes bug 33093; bugfix
2610       on 0.3.2.2-alpha.
2611     - When logging a bug, do not say "Future instances of this warning
2612       will be silenced" unless we are actually going to silence them.
2613       Previously we would say this whenever a BUG() check failed in the
2614       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
2616   o Minor bugfixes (onion service v2):
2617     - Move a series of v2 onion service warnings to protocol-warning
2618       level because they can all be triggered remotely by a malformed
2619       request. Fixes bug 32706; bugfix on 0.1.1.14-alpha.
2621   o Minor bugfixes (onion service v3, client authorization):
2622     - When removing client authorization credentials using the control
2623       port, also remove the associated descriptor, so the onion service
2624       can no longer be contacted. Fixes bug 33148; bugfix
2625       on 0.4.3.1-alpha.
2627   o Minor bugfixes (pluggable transports):
2628     - When receiving a message on standard error from a pluggable
2629       transport, log it at info level, rather than as a warning. Fixes
2630       bug 33005; bugfix on 0.4.0.1-alpha.
2632   o Minor bugfixes (rust, build):
2633     - Fix a syntax warning given by newer versions of Rust that was
2634       creating problems for our continuous integration. Fixes bug 33212;
2635       bugfix on 0.3.5.1-alpha.
2637   o Minor bugfixes (TLS bug handling):
2638     - When encountering a bug in buf_read_from_tls(), return a "MISC"
2639       error code rather than "WANTWRITE". This change might help avoid
2640       some CPU-wasting loops if the bug is ever triggered. Bug reported
2641       by opara. Fixes bug 32673; bugfix on 0.3.0.4-alpha.
2643   o Code simplification and refactoring (mainloop):
2644     - Simplify the ip_address_changed() function by removing redundant
2645       checks. Closes ticket 33091.
2647   o Documentation (manpage):
2648     - Split "Circuit Timeout" options and "Node Selection" options into
2649       their own sections of the tor manpage. Closes tickets 32928 and
2650       32929. Work by Swati Thacker as part of Google Season of Docs.
2653 Changes in version 0.4.2.6 - 2020-01-30
2654   This is the second stable release in the 0.4.2.x series. It backports
2655   several bugfixes from 0.4.3.1-alpha, including some that had affected
2656   the Linux seccomp2 sandbox or Windows services. If you're running with
2657   one of those configurations, you'll probably want to upgrade;
2658   otherwise, you should be fine with 0.4.2.5.
2660   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
2661     - Correct how we use libseccomp. Particularly, stop assuming that
2662       rules are applied in a particular order or that more rules are
2663       processed after the first match. Neither is the case! In
2664       libseccomp <2.4.0 this led to some rules having no effect.
2665       libseccomp 2.4.0 changed how rules are generated, leading to a
2666       different ordering, which in turn led to a fatal crash during
2667       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2668       Peter Gerber.
2669     - Fix crash when reloading logging configuration while the
2670       experimental sandbox is enabled. Fixes bug 32841; bugfix on
2671       0.4.1.7. Patch by Peter Gerber.
2673   o Minor bugfixes (correctness checks, backport from 0.4.3.1-alpha):
2674     - Use GCC/Clang's printf-checking feature to make sure that
2675       tor_assertf() arguments are correctly typed. Fixes bug 32765;
2676       bugfix on 0.4.1.1-alpha.
2678   o Minor bugfixes (logging, crash, backport from 0.4.3.1-alpha):
2679     - Avoid a possible crash when trying to log a (fatal) assertion
2680       failure about mismatched magic numbers in configuration objects.
2681       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
2683   o Minor bugfixes (testing, backport from 0.4.3.1-alpha):
2684     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
2685       test_practracker.sh script. Doing so caused a test failure. Fixes
2686       bug 32705; bugfix on 0.4.2.1-alpha.
2687     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
2688       skipping practracker checks. Fixes bug 32705; bugfix
2689       on 0.4.2.1-alpha.
2691   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
2692     - Initialize the publish/subscribe system when running as a windows
2693       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
2695   o Testing (backport from 0.4.3.1-alpha):
2696     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2697       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2698       fix the sandbox errors in 32722. Closes ticket 32240.
2699     - Re-enable the Travis CI macOS Chutney build, but don't let it
2700       prevent the Travis job from finishing. (The Travis macOS jobs are
2701       slow, so we don't want to have it delay the whole CI process.)
2702       Closes ticket 32629.
2704   o Testing (continuous integration, backport from 0.4.3.1-alpha):
2705     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2708 Changes in version 0.4.1.8 - 2020-01-30
2709   This release backports several bugfixes from later release series,
2710   including some that had affected the Linux seccomp2 sandbox or Windows
2711   services. If you're running with one of those configurations, you'll
2712   probably want to upgrade; otherwise, you should be fine with your
2713   current version of 0.4.1.x.
2715   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
2716     - Correct how we use libseccomp. Particularly, stop assuming that
2717       rules are applied in a particular order or that more rules are
2718       processed after the first match. Neither is the case! In
2719       libseccomp <2.4.0 this led to some rules having no effect.
2720       libseccomp 2.4.0 changed how rules are generated, leading to a
2721       different ordering, which in turn led to a fatal crash during
2722       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2723       Peter Gerber.
2724     - Fix crash when reloading logging configuration while the
2725       experimental sandbox is enabled. Fixes bug 32841; bugfix on
2726       0.4.1.7. Patch by Peter Gerber.
2728   o Minor bugfixes (crash, backport form 0.4.2.4-rc):
2729     - When running Tor with an option like --verify-config or
2730       --dump-config that does not start the event loop, avoid crashing
2731       if we try to exit early because of an error. Fixes bug 32407;
2732       bugfix on 0.3.3.1-alpha.
2734   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
2735     - Initialize the publish/subscribe system when running as a windows
2736       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
2738   o Testing (backport from 0.4.3.1-alpha):
2739     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2740       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2741       fix the sandbox errors in 32722. Closes ticket 32240.
2742     - Re-enable the Travis CI macOS Chutney build, but don't let it
2743       prevent the Travis job from finishing. (The Travis macOS jobs are
2744       slow, so we don't want to have it delay the whole CI process.)
2745       Closes ticket 32629.
2747   o Testing (continuous integration, backport from 0.4.3.1-alpha):
2748     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2751 Changes in version 0.4.3.1-alpha - 2020-01-22
2752   This is the first alpha release in the 0.4.3.x series. It includes
2753   improved support for application integration of onion services, support
2754   for building in a client-only mode, and newly improved internal
2755   documentation (online at https://src-ref.docs.torproject.org/tor/). It
2756   also has numerous other small bugfixes and features, as well as
2757   improvements to our code's internal organization that should help us
2758   write better code in the future.
2760   o New system requirements:
2761     - When building Tor, you now need to have Python 3 in order to run
2762       the integration tests. (Python 2 is officially unsupported
2763       upstream, as of 1 Jan 2020.) Closes ticket 32608.
2765   o Major features (build system):
2766     - The relay code can now be disabled using the --disable-module-relay
2767       configure option. When this option is set, we also disable the
2768       dirauth module. Closes ticket 32123.
2769     - When Tor is compiled --disable-module-relay, we also omit the code
2770       used to act as a directory cache. Closes ticket 32487.
2772   o Major features (directory authority, ed25519):
2773     - Add support for banning a relay's ed25519 keys in the approved-
2774       routers file. This will help us migrate away from RSA keys in the
2775       future. Previously, only RSA keys could be banned in approved-
2776       routers. Resolves ticket 22029. Patch by Neel Chauhan.
2778   o Major features (onion service, controller):
2779     - New control port commands to manage client-side onion service
2780       authorization credentials. The ONION_CLIENT_AUTH_ADD command adds
2781       a credential, ONION_CLIENT_AUTH_REMOVE deletes a credential, and
2782       ONION_CLIENT_AUTH_VIEW lists the credentials. Closes ticket 30381.
2784   o Major features (onion service, SOCKS5):
2785     - Introduce a new SocksPort flag, ExtendedErrors, to support more
2786       detailed error codes in information for applications that support
2787       them. Closes ticket 30382; implements proposal 304.
2789   o Major features (proxy):
2790     - In addition to its current supported proxy types (HTTP CONNECT,
2791       SOCKS4, and SOCKS5), Tor can now make its OR connections through a
2792       HAProxy server. A new torrc option was added to specify the
2793       address/port of the server: TCPProxy <protocol> <host>:<port>.
2794       Currently the only supported protocol for the option is haproxy.
2795       Closes ticket 31518. Patch done by Suphanat Chunhapanya (haxxpop).
2797   o Major bugfixes (linux seccomp sandbox):
2798     - Correct how we use libseccomp. Particularly, stop assuming that
2799       rules are applied in a particular order or that more rules are
2800       processed after the first match. Neither is the case! In
2801       libseccomp <2.4.0 this led to some rules having no effect.
2802       libseccomp 2.4.0 changed how rules are generated, leading to a
2803       different ordering, which in turn led to a fatal crash during
2804       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2805       Peter Gerber.
2806     - Fix crash when reloading logging configuration while the
2807       experimental sandbox is enabled. Fixes bug 32841; bugfix on
2808       0.4.1.7. Patch by Peter Gerber.
2810   o Major bugfixes (networking):
2811     - Correctly handle IPv6 addresses in SOCKS5 RESOLVE_PTR requests,
2812       and accept strings as well as binary addresses. Fixes bug 32315;
2813       bugfix on 0.3.5.1-alpha.
2815   o Major bugfixes (onion service):
2816     - Report HS circuit failure back into the HS subsystem so we take
2817       appropriate action with regards to the client introduction point
2818       failure cache. This improves reachability of onion services, since
2819       now clients notice failing introduction circuits properly. Fixes
2820       bug 32020; bugfix on 0.3.2.1-alpha.
2822   o Minor feature (configure, build system):
2823     - Output a list of enabled/disabled features at the end of the
2824       configure process in a pleasing way. Closes ticket 31373.
2826   o Minor feature (heartbeat, onion service):
2827     - Add the DoS INTRODUCE2 defenses counter to the heartbeat DoS
2828       message. Closes ticket 31371.
2830   o Minor features (configuration validation):
2831     - Configuration validation can now be done by per-module callbacks,
2832       rather than a global validation function. This will let us reduce
2833       the size of config.c and some of its more cumbersome functions.
2834       Closes ticket 31241.
2836   o Minor features (configuration):
2837     - If a configured hardware crypto accelerator in AccelName is
2838       prefixed with "!", Tor now exits when it cannot be found. Closes
2839       ticket 32406.
2840     - We now use flag-driven logic to warn about obsolete configuration
2841       fields, so that we can include their names. In 0.4.2, we used a
2842       special type, which prevented us from generating good warnings.
2843       Implements ticket 32404.
2845   o Minor features (controller):
2846     - Add stream isolation data to STREAM event. Closes ticket 19859.
2847     - Implement a new GETINFO command to fetch microdescriptor
2848       consensus. Closes ticket 31684.
2850   o Minor features (debugging, directory system):
2851     - Don't crash when we find a non-guard with a guard-fraction value
2852       set. Instead, log a bug warning, in an attempt to figure out how
2853       this happened. Diagnostic for ticket 32868.
2855   o Minor features (defense in depth):
2856     - Add additional checks around tor_vasprintf() usage, in case the
2857       function returns an error. Patch by Tobias Stoeckmann. Fixes
2858       ticket 31147.
2860   o Minor features (developer tooling):
2861     - Remove the 0.2.9.x series branches from git scripts (git-merge-
2862       forward.sh, git-pull-all.sh, git-push-all.sh, git-setup-dirs.sh).
2863       Closes ticket 32772.
2865   o Minor features (developer tools):
2866     - Add a check_cocci_parse.sh script that checks that new code is
2867       parseable by Coccinelle. Add an exceptions file for unparseable
2868       files, and run the script from travis CI. Closes ticket 31919.
2869     - Call the check_cocci_parse.sh script from a 'check-cocci' Makefile
2870       target. Closes ticket 31919.
2871     - Add a rename_c_identifiers.py tool to rename a bunch of C
2872       identifiers at once, and generate a well-formed commit message
2873       describing the change. This should help with refactoring. Closes
2874       ticket 32237.
2875     - Add some scripts in "scripts/coccinelle" to invoke the Coccinelle
2876       semantic patching tool with the correct flags. These flags are
2877       fairly easy to forget, and these scripts should help us use
2878       Coccinelle more effectively in the future. Closes ticket 31705.
2880   o Minor features (Doxygen):
2881     - Update Doxygen configuration file to a more recent template (from
2882       1.8.15). Closes ticket 32110.
2883     - "make doxygen" now works with out-of-tree builds. Closes
2884       ticket 32113.
2885     - Make sure that doxygen outputs documentation for all of our C
2886       files. Previously, some were missing @file declarations, causing
2887       them to be ignored. Closes ticket 32307.
2888     - Our "make doxygen" target now respects --enable-fatal-warnings by
2889       default, and does not warn about items that are missing
2890       documentation. To warn about missing documentation, run configure
2891       with the "--enable-missing-doc-warnings" flag: doing so suspends
2892       fatal warnings for doxygen. Closes ticket 32385.
2894   o Minor features (git scripts):
2895     - Add TOR_EXTRA_CLONE_ARGS to git-setup-dirs.sh for git clone
2896       customisation. Closes ticket 32347.
2897     - Add git-setup-dirs.sh, which sets up an upstream git repository
2898       and worktrees for tor maintainers. Closes ticket 29603.
2899     - Add TOR_EXTRA_REMOTE_* to git-setup-dirs.sh for a custom extra
2900       remote. Closes ticket 32347.
2901     - Call the check_cocci_parse.sh script from the git commit and push
2902       hooks. Closes ticket 31919.
2903     - Make git-push-all.sh skip unchanged branches when pushing to
2904       upstream. The script already skipped unchanged test branches.
2905       Closes ticket 32216.
2906     - Make git-setup-dirs.sh create a master symlink in the worktree
2907       directory. Closes ticket 32347.
2908     - Skip unmodified source files when doing some existing git hook
2909       checks. Related to ticket 31919.
2911   o Minor features (IPv6, client):
2912     - Make Tor clients tell dual-stack exits that they prefer IPv6
2913       connections. This change is equivalent to setting the PreferIPv6
2914       flag on SOCKSPorts (and most other listener ports). Tor Browser
2915       has been setting this flag for some time, and we want to remove a
2916       client distinguisher at exits. Closes ticket 32637.
2918   o Minor features (portability, android):
2919     - When building for Android, disable some tests that depend on $HOME
2920       and/or pwdb, which Android doesn't have. Closes ticket 32825.
2921       Patch from Hans-Christoph Steiner.
2923   o Minor features (relay modularity):
2924     - Split the relay and server pluggable transport config code into
2925       separate files in the relay module. Disable this code when the
2926       relay module is disabled. Closes part of ticket 32213.
2927     - When the relay module is disabled, reject attempts to set the
2928       ORPort, DirPort, DirCache, BridgeRelay, ExtORPort, or
2929       ServerTransport* options, rather than ignoring the values of these
2930       options. Closes part of ticket 32213.
2932   o Minor features (relay):
2933     - When the relay module is disabled, change the default config so
2934       that DirCache is 0, and ClientOnly is 1. Closes ticket 32410.
2936   o Minor features (release tools):
2937     - Port our ChangeLog formatting and sorting tools to Python 3.
2938       Closes ticket 32704.
2940   o Minor features (testing):
2941     - Detect some common failure cases for test_parseconf.sh in
2942       src/test/conf_failures. Closes ticket 32451.
2943     - Allow test_parseconf.sh to test expected log outputs for successful
2944       configs, as well as failed configs. Closes ticket 32451.
2945     - The test_parseconf.sh script now supports result variants for any
2946       combination of the optional libraries lzma, nss, and zstd. Closes
2947       ticket 32397.
2949   o Minor features (tests, Android):
2950     - When running the unit tests on Android, create temporary files in
2951       a subdirectory of /data/local/tmp. Closes ticket 32172. Based on a
2952       patch from Hans-Christoph Steiner.
2954   o Minor bugfixes (bridges):
2955     - Lowercase the configured value of BridgeDistribution before adding
2956       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2958   o Minor bugfixes (build system):
2959     - Fix "make autostyle" for out-of-tree builds. Fixes bug 32370;
2960       bugfix on 0.4.1.2-alpha.
2962   o Minor bugfixes (configuration handling):
2963     - Make control_event_conf_changed() take in a config_line_t instead
2964       of a smartlist of alternating key/value entries. Fixes bug 31531;
2965       bugfix on 0.2.3.3-alpha. Patch by Neel Chauhan.
2967   o Minor bugfixes (configuration):
2968     - Check for multiplication overflow when parsing memory units inside
2969       configuration. Fixes bug 30920; bugfix on 0.0.9rc1.
2970     - When dumping the configuration, stop adding a trailing space after
2971       the option name when there is no option value. This issue only
2972       affects options that accept an empty value or list. (Most options
2973       reject empty values, or delete the entire line from the dumped
2974       options.) Fixes bug 32352; bugfix on 0.0.9pre6.
2975     - Avoid changing the user's value of HardwareAccel as stored by
2976       SAVECONF, when AccelName is set but HardwareAccel is not. Fixes
2977       bug 32382; bugfix on 0.2.2.1-alpha.
2978     - When creating a KeyDirectory with the same location as the
2979       DataDirectory (not recommended), respect the DataDirectory's
2980       group-readable setting if one has not been set for the
2981       KeyDirectory. Fixes bug 27992; bugfix on 0.3.3.1-alpha.
2983   o Minor bugfixes (controller):
2984     - In routerstatus_has_changed(), check all the fields that are
2985       output over the control port. Fixes bug 20218; bugfix
2986       on 0.1.1.11-alpha
2988   o Minor bugfixes (correctness checks):
2989     - Use GCC/Clang's printf-checking feature to make sure that
2990       tor_assertf() arguments are correctly typed. Fixes bug 32765;
2991       bugfix on 0.4.1.1-alpha.
2993   o Minor bugfixes (developer tools):
2994     - Allow paths starting with ./ in scripts/add_c_file.py. Fixes bug
2995       31336; bugfix on 0.4.1.2-alpha.
2997   o Minor bugfixes (dirauth module):
2998     - Split the dirauth config code into a separate file in the dirauth
2999       module. Disable this code when the dirauth module is disabled.
3000       Closes ticket 32213.
3001     - When the dirauth module is disabled, reject attempts to set the
3002       AuthoritativeDir option, rather than ignoring the value of the
3003       option. Fixes bug 32213; bugfix on 0.3.4.1-alpha.
3005   o Minor bugfixes (embedded Tor):
3006     - When starting Tor any time after the first time in a process,
3007       register the thread in which it is running as the main thread.
3008       Previously, we only did this on Windows, which could lead to bugs
3009       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
3010       on 0.3.3.1-alpha.
3012   o Minor bugfixes (git scripts):
3013     - Avoid sleeping before the last push in git-push-all.sh. Closes
3014       ticket 32216.
3015     - Forward all unrecognised arguments in git-push-all.sh to git push.
3016       Closes ticket 32216.
3018   o Minor bugfixes (hidden service v3):
3019     - Do not rely on a "circuit established" flag for intro circuits but
3020       instead always query the HS circuit map. This is to avoid sync
3021       issue with that flag and the map. Fixes bug 32094; bugfix
3022       on 0.3.2.1-alpha.
3024   o Minor bugfixes (logging, crash):
3025     - Avoid a possible crash when trying to log a (fatal) assertion
3026       failure about mismatched magic numbers in configuration objects.
3027       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
3029   o Minor bugfixes (onion service v2):
3030     - When sending the INTRO cell for a v2 Onion Service, look at the
3031       failure cache alongside timeout values to check if the intro point
3032       is marked as failed. Previously, we only looked at the relay
3033       timeout values. Fixes bug 25568; bugfix on 0.2.7.3-rc. Patch by
3034       Neel Chauhan.
3036   o Minor bugfixes (onion services v3, client):
3037     - Properly handle the client rendezvous circuit timeout. Previously
3038       Tor would sometimes timeout a rendezvous circuit awaiting the
3039       introduction ACK, and find itself unable to re-establish all
3040       circuits because the rendezvous circuit timed out too early. Fixes
3041       bug 32021; bugfix on 0.3.2.1-alpha.
3043   o Minor bugfixes (onion services):
3044     - In cancel_descriptor_fetches(), use
3045       connection_list_by_type_purpose() instead of
3046       connection_list_by_type_state(). Fixes bug 32639; bugfix on
3047       0.3.2.1-alpha. Patch by Neel Chauhan.
3049   o Minor bugfixes (scripts):
3050     - Fix update_versions.py for out-of-tree builds. Fixes bug 32371;
3051       bugfix on 0.4.0.1-alpha.
3053   o Minor bugfixes (test):
3054     - Use the same code to find the tor binary in all of our test
3055       scripts. This change makes sure we are always using the coverage
3056       binary when coverage is enabled. Fixes bug 32368; bugfix
3057       on 0.2.7.3-rc.
3059   o Minor bugfixes (testing):
3060     - Stop ignoring "tor --dump-config" errors in test_parseconf.sh.
3061       Fixes bug 32468; bugfix on 0.4.2.1-alpha.
3062     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
3063       test_practracker.sh script. Doing so caused a test failure. Fixes
3064       bug 32705; bugfix on 0.4.2.1-alpha.
3065     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
3066       skipping practracker checks. Fixes bug 32705; bugfix
3067       on 0.4.2.1-alpha.
3069   o Minor bugfixes (tests):
3070     - Our option-validation tests no longer depend on specially
3071       configured non-default, non-passing sets of options. Previously,
3072       the tests had been written to assume that options would _not_ be
3073       set to their defaults, which led to needless complexity and
3074       verbosity. Fixes bug 32175; bugfix on 0.2.8.1-alpha.
3076   o Minor bugfixes (windows service):
3077     - Initialize the publish/subscribe system when running as a windows
3078       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
3080   o Deprecated features:
3081     - Deprecate the ClientAutoIPv6ORPort option. This option was not
3082       true "Happy Eyeballs", and often failed on connections that
3083       weren't reliably dual-stack. Closes ticket 32942. Patch by
3084       Neel Chauhan.
3086   o Documentation:
3087     - Provide a quickstart guide for a Circuit Padding Framework, and
3088       documentation for researchers to implement and study circuit
3089       padding machines. Closes ticket 28804.
3090     - Add documentation in 'HelpfulTools.md' to describe how to build a
3091       tag file. Closes ticket 32779.
3092     - Create a high-level description of the long-term software
3093       architecture goals. Closes ticket 32206.
3094     - Describe the --dump-config command in the manual page. Closes
3095       ticket 32467.
3096     - Unite coding advice from this_not_that.md in torguts repo into our
3097       coding standards document. Resolves ticket 31853.
3099   o Removed features:
3100     - Our Doxygen configuration no longer generates LaTeX output. The
3101       reference manual produced by doing this was over 4000 pages long,
3102       and generally unusable. Closes ticket 32099.
3103     - The option "TestingEstimatedDescriptorPropagationTime" is now
3104       marked as obsolete. It has had no effect since 0.3.0.7, when
3105       clients stopped rejecting consensuses "from the future". Closes
3106       ticket 32807.
3107     - We no longer support consensus methods before method 28; these
3108       methods were only used by authorities running versions of Tor that
3109       are now at end-of-life. In effect, this means that clients,
3110       relays, and authorities now assume that authorities will be
3111       running version 0.3.5.x or later. Closes ticket 32695.
3113   o Testing:
3114     - Add more test cases for tor's UTF-8 validation function. Also,
3115       check the arguments passed to the function for consistency. Closes
3116       ticket 32845.
3117     - Improve test coverage for relay and dirauth config code, focusing
3118       on option validation and normalization. Closes ticket 32213.
3119     - Improve the consistency of test_parseconf.sh output, and run all
3120       the tests, even if one fails. Closes ticket 32213.
3121     - Re-enable the Travis CI macOS Chutney build, but don't let it
3122       prevent the Travis job from finishing. (The Travis macOS jobs are
3123       slow, so we don't want to have it delay the whole CI process.)
3124       Closes ticket 32629.
3125     - Run the practracker unit tests in the pre-commit git hook. Closes
3126       ticket 32609.
3127     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
3128       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
3129       fix the sandbox errors in 32722. Closes ticket 32240.
3131   o Code simplification and refactoring (channel):
3132     - Channel layer had a variable length cell handler that was not used
3133       and thus removed. Closes ticket 32892.
3135   o Code simplification and refactoring (configuration):
3136     - Immutability is now implemented as a flag on individual
3137       configuration options rather than as part of the option-transition
3138       checking code. Closes ticket 32344.
3139     - Instead of keeping a list of configuration options to check for
3140       relative paths, check all the options whose type is "FILENAME".
3141       Solves part of ticket 32339.
3142     - Our default log (which ordinarily sends NOTICE-level messages to
3143       standard output) is now handled in a more logical manner.
3144       Previously, we replaced the configured log options if they were
3145       empty. Now, we interpret an empty set of log options as meaning
3146       "use the default log". Closes ticket 31999.
3147     - Remove some unused arguments from the options_validate() function,
3148       to simplify our code and tests. Closes ticket 32187.
3149     - Simplify the options_validate() code so that it looks at the
3150       default options directly, rather than taking default options as an
3151       argument. This change lets us simplify its interface. Closes
3152       ticket 32185.
3153     - Use our new configuration architecture to move most authority-
3154       related options to the directory authority module. Closes
3155       ticket 32806.
3156     - When parsing the command line, handle options that determine our
3157       "quiet level" and our mode of operation (e.g., --dump-config and
3158       so on) all in one table. Closes ticket 32003.
3160   o Code simplification and refactoring (controller):
3161     - Create a new abstraction for formatting control protocol reply
3162       lines based on key-value pairs. Refactor some existing control
3163       protocol code to take advantage of this. Closes ticket 30984.
3164     - Create a helper function that can fetch network status or
3165       microdesc consensuses. Closes ticket 31684.
3167   o Code simplification and refactoring (dirauth modularization):
3168     - Remove the last remaining HAVE_MODULE_DIRAUTH inside a function.
3169       Closes ticket 32163.
3170     - Replace some confusing identifiers in process_descs.c. Closes
3171       ticket 29826.
3172     - Simplify some relay and dirauth config code. Closes ticket 32213.
3174   o Code simplification and refactoring (misc):
3175     - Make all the structs we declare follow the same naming convention
3176       of ending with "_t". Closes ticket 32415.
3177     - Move and rename some configuration-related code for clarity.
3178       Closes ticket 32304.
3179     - Our include.am files are now broken up by subdirectory.
3180       Previously, src/core/include.am covered all of the subdirectories
3181       in "core", "feature", and "app". Closes ticket 32137.
3182     - Remove underused NS*() macros from test code: they make our tests
3183       more confusing, especially for code-formatting tools. Closes
3184       ticket 32887.
3186   o Code simplification and refactoring (relay modularization):
3187     - Disable relay_periodic when the relay module is disabled. Closes
3188       ticket 32244.
3189     - Disable relay_sys when the relay module is disabled. Closes
3190       ticket 32245.
3192   o Code simplification and refactoring (tool support):
3193     - Add numerous missing dependencies to our include files, so that
3194       they can be included in different reasonable orders and still
3195       compile. Addresses part of ticket 32764.
3196     - Fix some parts of our code that were difficult for Coccinelle to
3197       parse. Related to ticket 31705.
3198     - Fix some small issues in our code that prevented automatic
3199       formatting tools from working. Addresses part of ticket 32764.
3201   o Documentation (manpage):
3202     - Alphabetize the Client Options section of the tor manpage. Closes
3203       ticket 32846.
3204     - Alphabetize the General Options section of the tor manpage. Closes
3205       ticket 32708.
3206     - In the tor(1) manpage, reword and improve formatting of the
3207       COMMAND-LINE OPTIONS and DESCRIPTION sections. Closes ticket
3208       32277. Based on work by Swati Thacker as part of Google Season
3209       of Docs.
3210     - In the tor(1) manpage, reword and improve formatting of the FILES,
3211       SEE ALSO, and BUGS sections. Closes ticket 32176. Based on work by
3212       Swati Thacker as part of Google Season of Docs.
3214   o Testing (circuit, EWMA):
3215     - Add unit tests for circuitmux and EWMA subsystems. Closes
3216       ticket 32196.
3218   o Testing (continuous integration):
3219     - Use zstd in our Travis Linux builds. Closes ticket 32242.
3222 Changes in version 0.4.2.5 - 2019-12-09
3223   This is the first stable release in the 0.4.2.x series. This series
3224   improves reliability and stability, and includes several stability and
3225   correctness improvements for onion services. It also fixes many smaller
3226   bugs present in previous series.
3228   Per our support policy, we will support the 0.4.2.x series for nine
3229   months, or until three months after the release of a stable 0.4.3.x:
3230   whichever is longer. If you need longer-term support, please stick
3231   with 0.3.5.x, which will we plan to support until Feb 2022.
3233   Per our support policy, we will support the 0.4.2.x series for nine
3234   months, or until three months after the release of a stable 0.4.3.x:
3235   whichever is longer. If you need longer-term support, please stick
3236   with 0.3.5.x, which will we plan to support until Feb 2022.
3238   Below are the changes since 0.4.1.4-rc. For a complete list of changes
3239   since 0.4.1.5, see the ReleaseNotes file.
3241   o Minor features (geoip):
3242     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3243       Country database. Closes ticket 32685.
3245   o Testing:
3246     - Require C99 standards-conforming code in Travis CI, but allow GNU
3247       gcc extensions. Also activates clang's -Wtypedef-redefinition
3248       warnings. Build some jobs with -std=gnu99, and some jobs without.
3249       Closes ticket 32500.
3252 Changes in version 0.4.1.7 - 2019-12-09
3253   This release backports several bugfixes to improve stability and
3254   correctness.  Anyone experiencing build problems or crashes with 0.4.1.6,
3255   including all relays relying on AccountingMax, should upgrade.
3257   o Major features (directory authorities, backport from 0.4.2.2-alpha):
3258     - Directory authorities now reject relays running all currently
3259       deprecated release series. The currently supported release series
3260       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
3262   o Major bugfixes (embedded Tor, backport from 0.4.2.2-alpha):
3263     - Avoid a possible crash when restarting Tor in embedded mode and
3264       enabling a different set of publish/subscribe messages. Fixes bug
3265       31898; bugfix on 0.4.1.1-alpha.
3267   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
3268     - Relays now respect their AccountingMax bandwidth again. When
3269       relays entered "soft" hibernation (which typically starts when
3270       we've hit 90% of our AccountingMax), we had stopped checking
3271       whether we should enter hard hibernation. Soft hibernation refuses
3272       new connections and new circuits, but the existing circuits can
3273       continue, meaning that relays could have exceeded their configured
3274       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
3276   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
3277     - Stop ignoring torrc options after an %include directive, when the
3278       included directory ends with a file that does not contain any
3279       config options (but does contain comments or whitespace). Fixes
3280       bug 31408; bugfix on 0.3.1.1-alpha.
3282   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
3283     - Onion services now always use the exact number of intro points
3284       configured with the HiddenServiceNumIntroductionPoints option (or
3285       fewer if nodes are excluded). Before, a service could sometimes
3286       pick more intro points than configured. Fixes bug 31548; bugfix
3287       on 0.3.2.1-alpha.
3289   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
3290     - When building on Appveyor and Travis, pass the "-k" flag to make,
3291       so that we are informed of all compilation failures, not just the
3292       first one or two. Closes ticket 31372.
3294   o Minor features (geoip, backport from 0.4.2.5):
3295     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3296       Country database. Closes ticket 32685.
3298   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
3299     - Avoid spurious errors when Appveyor CI fails before the install step.
3300       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
3302   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
3303     - Fix a BUG() assertion that occurs within a very small race window
3304       between when a client intro circuit opens and when its descriptor
3305       gets cleaned up from the cache. The circuit is now closed early,
3306       which will trigger a re-fetch of the descriptor and continue the
3307       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
3309   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
3310     - Avoid trying to read data from closed connections, which can cause
3311       needless loops in Libevent and infinite loops in Shadow. Fixes bug
3312       30344; bugfix on 0.1.1.1-alpha.
3314   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
3315     - On abort, try harder to flush the output buffers of log messages.
3316       On some platforms (macOS), log messages could be discarded when
3317       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3318     - Report the tor version whenever an assertion fails. Previously, we
3319       only reported the Tor version on some crashes, and some non-fatal
3320       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3321     - When tor aborts due to an error, close log file descriptors before
3322       aborting. Closing the logs makes some OSes flush log file buffers,
3323       rather than deleting buffered log lines. Fixes bug 31594; bugfix
3324       on 0.2.5.2-alpha.
3326   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
3327     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
3328       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
3329     - Disable backtrace signal handlers when shutting down tor. Fixes
3330       bug 31614; bugfix on 0.2.5.2-alpha.
3331     - Rate-limit our the logging message about the obsolete .exit
3332       notation. Previously, there was no limit on this warning, which
3333       could potentially be triggered many times by a hostile website.
3334       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
3336   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
3337     - Do not log a nonfatal assertion failure when receiving a VERSIONS
3338       cell on a connection using the obsolete v1 link protocol. Log a
3339       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
3341   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
3342     - Reset the periodic events' "enabled" flag when Tor is shut down
3343       cleanly. Previously, this flag was left on, which caused periodic
3344       events not to be re-enabled when Tor was relaunched in-process
3345       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
3346       on 0.3.3.1-alpha.
3348   o Minor bugfixes (multithreading, backport from 0.4.2.2-alpha):
3349     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
3350       31736; bugfix on 0.0.7.
3352   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
3353     - Remove overly strict assertions that triggered when a pluggable
3354       transport failed to launch. Fixes bug 31091; bugfix
3355       on 0.4.0.1-alpha.
3356     - Remove an assertion in the Unix process backend. This assertion
3357       would trigger when we failed to find the executable for a child
3358       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
3360   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
3361     - Avoid crashing when starting with a corrupt keys directory where
3362       the old ntor key and the new ntor key are identical. Fixes bug
3363       30916; bugfix on 0.2.4.8-alpha.
3365   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
3366     - When testing port rebinding, don't busy-wait for tor to log.
3367       Instead, actually sleep for a short time before polling again.
3368       Also improve the formatting of control commands and log messages.
3369       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
3371   o Minor bugfixes (tests, SunOS, backport from 0.4.2.2-alpha):
3372     - Avoid a map_anon_nofork test failure due to a signed/unsigned
3373       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
3375   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
3376     - Log bugs about the TLS read buffer's length only once, rather than
3377       filling the logs with similar warnings. Fixes bug 31939; bugfix
3378       on 0.3.0.4-rc.
3380   o Documentation (backport from 0.4.2.2-alpha):
3381     - Explain why we can't destroy the backtrace buffer mutex. Explain
3382       why we don't need to destroy the log mutex. Closes ticket 31736.
3384   o Testing (continuous integration, backport from 0.4.2.3-alpha):
3385     - Disable all but one Travis CI macOS build, to mitigate slow
3386       scheduling of Travis macOS jobs. Closes ticket 32177.
3387     - Run the chutney IPv6 networks as part of Travis CI. Closes
3388       ticket 30860.
3389     - Simplify the Travis CI build matrix, and optimise for build time.
3390       Closes ticket 31859.
3391     - Use Windows Server 2019 instead of Windows Server 2016 in our
3392       Appveyor builds. Closes ticket 32086.
3394   o Testing (continuous integration, backport from 0.4.2.4-rc):
3395     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
3396     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
3397       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
3398       until we can fix some Bionic permissions issues (see ticket
3399       32240). Related to ticket 31919.
3400     - Install the mingw OpenSSL package in Appveyor. This makes sure
3401       that the OpenSSL headers and libraries match in Tor's Appveyor
3402       builds. (This bug was triggered by an Appveyor image update.)
3403       Fixes bug 32449; bugfix on 0.3.5.6-rc.
3405   o Testing (continuous integration, backport from 0.4.2.5):
3406     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
3407       extensions. Also activates clang's -Wtypedef-redefinition warnings.
3408       Build some jobs with -std=gnu99, and some jobs without.
3409       Closes ticket 32500.
3412 Changes in version 0.4.0.6 - 2019-12-09
3413   This is the second stable release in the 0.4.0.x series. This release
3414   backports several bugfixes to improve stability and correctness.  Anyone
3415   experiencing build problems or crashes with 0.4.0.5, including all relays
3416   relying on AccountingMax, should upgrade.
3418   Note that, per our support policy, support for the 0.4.0.x series will end
3419   on 2 Feb 2020.  Anyone still running 0.4.0.x should plan to upgrade to the
3420   latest stable release, or downgrade to 0.3.5.x, which will get long-term
3421   support until 1 Feb 2022.
3423   o Directory authority changes (backport from 0.4.1.5):
3424     - The directory authority "dizum" has a new IP address. Closes
3425       ticket 31406.
3427   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
3428     - Consider our directory information to have changed when our list
3429       of bridges changes. Previously, Tor would not re-compute the
3430       status of its directory information when bridges changed, and
3431       therefore would not realize that it was no longer able to build
3432       circuits. Fixes part of bug 29875.
3433     - Do not count previously configured working bridges towards our
3434       total of working bridges. Previously, when Tor's list of bridges
3435       changed, it would think that the old bridges were still usable,
3436       and delay fetching router descriptors for the new ones. Fixes part
3437       of bug 29875; bugfix on 0.3.0.1-alpha.
3439   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
3440     - When considering upgrading circuits from "waiting for guard" to
3441       "open", always ignore circuits that are marked for close. Otherwise,
3442       we can end up in the situation where a subsystem is notified that
3443       a closing circuit has just opened, leading to undesirable
3444       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
3446   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
3447     - Properly clean up the introduction point map when circuits change
3448       purpose from onion service circuits to pathbias, measurement, or
3449       other circuit types. This should fix some service-side instances
3450       of introduction point failure. Fixes bug 29034; bugfix
3451       on 0.3.2.1-alpha.
3453   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
3454     - Fix an unreachable bug in which an introduction point could try to
3455       send an INTRODUCE_ACK with a status code that Trunnel would refuse
3456       to encode, leading the relay to assert(). We've consolidated the
3457       ABI values into Trunnel now. Fixes bug 30454; bugfix
3458       on 0.3.0.1-alpha.
3459     - Clients can now handle unknown status codes from INTRODUCE_ACK
3460       cells. (The NACK behavior will stay the same.) This will allow us
3461       to extend status codes in the future without breaking the normal
3462       client behavior. Fixes another part of bug 30454; bugfix
3463       on 0.3.0.1-alpha.
3465   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
3466     - Relays now respect their AccountingMax bandwidth again. When
3467       relays entered "soft" hibernation (which typically starts when
3468       we've hit 90% of our AccountingMax), we had stopped checking
3469       whether we should enter hard hibernation. Soft hibernation refuses
3470       new connections and new circuits, but the existing circuits can
3471       continue, meaning that relays could have exceeded their configured
3472       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
3474   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
3475     - Stop ignoring torrc options after an %include directive, when the
3476       included directory ends with a file that does not contain any
3477       config options (but does contain comments or whitespace). Fixes
3478       bug 31408; bugfix on 0.3.1.1-alpha.
3480   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
3481     - Onion services now always use the exact number of intro points
3482       configured with the HiddenServiceNumIntroductionPoints option (or
3483       fewer if nodes are excluded). Before, a service could sometimes
3484       pick more intro points than configured. Fixes bug 31548; bugfix
3485       on 0.3.2.1-alpha.
3487   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
3488     - Add a "--list-modules" command to print a list of which compile-
3489       time modules are enabled. Closes ticket 30452.
3491   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
3492     - Remove sudo configuration lines from .travis.yml as they are no
3493       longer needed with current Travis build environment. Resolves
3494       issue 30213.
3496   o Minor features (continuous integration, backport from 0.4.1.4-rc):
3497     - Our Travis configuration now uses Chutney to run some network
3498       integration tests automatically. Closes ticket 29280.
3500   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
3501     - When building on Appveyor and Travis, pass the "-k" flag to make,
3502       so that we are informed of all compilation failures, not just the
3503       first one or two. Closes ticket 31372.
3505   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
3506     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
3507       in December 2018 (of which ~122 were still functional), with a
3508       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
3509       in June 2019. Closes ticket 28795.
3511   o Minor features (geoip, backport from 0.4.2.5):
3512     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3513       Country database. Closes ticket 32685.
3515   o Minor features (stem tests, backport from 0.4.2.1-alpha):
3516     - Change "make test-stem" so it only runs the stem tests that use
3517       tor. This change makes test-stem faster and more reliable. Closes
3518       ticket 31554.
3520   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
3521     - Avoid spurious errors when Appveyor CI fails before the install step.
3522       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
3524   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
3525     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
3526       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
3528   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
3529     - Fix a logic error that prevented the SessionGroup sub-option from
3530       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
3532   o Minor bugfixes (circuit padding, backport from 0.4.1.4-rc):
3533     - On relays, properly check that a padding machine is absent before
3534       logging a warning about it being absent. Fixes bug 30649; bugfix
3535       on 0.4.0.1-alpha.
3537   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
3538     - Fix a BUG() assertion that occurs within a very small race window
3539       between when a client intro circuit opens and when its descriptor
3540       gets cleaned up from the cache. The circuit is now closed early,
3541       which will trigger a re-fetch of the descriptor and continue the
3542       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
3544   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
3545     - Don't believe clock skew results from NETINFO cells that appear to
3546       arrive before we sent the VERSIONS cells they are responding to.
3547       Previously, we would accept them up to 3 minutes "in the past".
3548       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3550   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
3551     - Fix a compilation warning on Windows about casting a function
3552       pointer for GetTickCount64(). Fixes bug 31374; bugfix
3553       on 0.2.9.1-alpha.
3555   o Minor bugfixes (compilation, backport from 0.4.1.5):
3556     - Avoid using labs() on time_t, which can cause compilation warnings
3557       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3559   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
3560     - Suppress spurious float-conversion warnings from GCC when calling
3561       floating-point classifier functions on FreeBSD. Fixes part of bug
3562       31687; bugfix on 0.3.1.5-alpha.
3564   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
3565     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
3566       due to missing declarations of abort(), and prevent other such
3567       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
3569   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
3570     - Fix a bug that prevented us from supporting SOCKS5 proxies that
3571       want authentication along with configured (but unused!)
3572       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
3574   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
3575     - Avoid trying to read data from closed connections, which can cause
3576       needless loops in Libevent and infinite loops in Shadow. Fixes bug
3577       30344; bugfix on 0.1.1.1-alpha.
3579   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
3580     - Allow the test-stem job to fail in Travis, because it sometimes
3581       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
3582     - Skip test_rebind on macOS in Travis, because it is unreliable on
3583       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3584     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
3585       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3587   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
3588     - Avoid a set of possible code paths that could try to use freed
3589       memory in routerlist_free() while Tor was exiting. Fixes bug
3590       31003; bugfix on 0.1.2.2-alpha.
3592   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
3593     - Stop crashing after parsing an unknown descriptor purpose
3594       annotation. We think this bug can only be triggered by modifying a
3595       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
3597   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
3598     - Move the "bandwidth-file-headers" line in directory authority
3599       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
3600       on 0.3.5.1-alpha.
3602   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
3603     - On abort, try harder to flush the output buffers of log messages.
3604       On some platforms (macOS), log messages could be discarded when
3605       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3606     - Report the tor version whenever an assertion fails. Previously, we
3607       only reported the Tor version on some crashes, and some non-fatal
3608       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3610   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
3611     - When extracting an IPv6 address from a PF-based proxy, verify that
3612       we are actually configured to receive an IPv6 address, and log an
3613       internal error if not. Fixes part of bug 31687; bugfix
3614       on 0.2.3.4-alpha.
3616   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
3617     - When tor is missing descriptors for some primary entry guards,
3618       make the log message less alarming. It's normal for descriptors to
3619       expire, as long as tor fetches new ones soon after. Fixes bug
3620       31657; bugfix on 0.3.3.1-alpha.
3622   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
3623     - Do not log a warning when running with an OpenSSL version other
3624       than the one Tor was compiled with, if the two versions should be
3625       compatible. Previously, we would warn whenever the version was
3626       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
3628   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
3629     - Change log level of message "Hash of session info was not as
3630       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
3631       on 0.1.1.10-alpha.
3633   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
3634     - Rate-limit our the logging message about the obsolete .exit
3635       notation. Previously, there was no limit on this warning, which
3636       could potentially be triggered many times by a hostile website.
3637       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
3639   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
3640     - Do not log a nonfatal assertion failure when receiving a VERSIONS
3641       cell on a connection using the obsolete v1 link protocol. Log a
3642       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
3644   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
3645     - Reset the periodic events' "enabled" flag when Tor is shut down
3646       cleanly. Previously, this flag was left on, which caused periodic
3647       events not to be re-enabled when Tor was relaunched in-process
3648       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
3649       on 0.3.3.1-alpha.
3651   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
3652     - Avoid a minor memory leak that could occur on relays when failing
3653       to create a "keys" directory. Fixes bug 30148; bugfix
3654       on 0.3.3.1-alpha.
3656   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
3657     - Fix a trivial memory leak when parsing an invalid value
3658       from a download schedule in the configuration. Fixes bug
3659       30894; bugfix on 0.3.4.1-alpha.
3661   o Minor bugfixes (NetBSD, backport from 0.4.1.2-alpha):
3662     - Fix usage of minherit() on NetBSD and other platforms that define
3663       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
3664       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
3666   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
3667     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
3668       implemenation) when failing to load an onion service client
3669       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
3671   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
3672     - When purging the DNS cache because of an out-of-memory condition,
3673       try purging just the older entries at first. Previously, we would
3674       always purge the whole thing. Fixes bug 29617; bugfix
3675       on 0.3.5.1-alpha.
3677   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
3678     - Avoid crashing in our tor_vasprintf() implementation on systems
3679       that define neither vasprintf() nor _vscprintf(). (This bug has
3680       been here long enough that we question whether people are running
3681       Tor on such systems, but we're applying the fix out of caution.)
3682       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
3683       Tobias Stoeckmann.
3685   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
3686     - Remove overly strict assertions that triggered when a pluggable
3687       transport failed to launch. Fixes bug 31091; bugfix
3688       on 0.4.0.1-alpha.
3689     - Remove an assertion in the Unix process backend. This assertion
3690       would trigger when we failed to find the executable for a child
3691       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
3693   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
3694     - Avoid crashing when starting with a corrupt keys directory where
3695       the old ntor key and the new ntor key are identical. Fixes bug
3696       30916; bugfix on 0.2.4.8-alpha.
3698   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
3699     - Correctly exclude a redundant rust build job in Travis. Fixes bug
3700       31463; bugfix on 0.3.5.4-alpha.
3702   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
3703     - When testing port rebinding, don't busy-wait for tor to log.
3704       Instead, actually sleep for a short time before polling again.
3705       Also improve the formatting of control commands and log messages.
3706       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
3708   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
3709     - Log bugs about the TLS read buffer's length only once, rather than
3710       filling the logs with similar warnings. Fixes bug 31939; bugfix
3711       on 0.3.0.4-rc.
3713   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
3714     - Always retry v2 single onion service intro and rend circuits with
3715       a 3-hop path. Previously, v2 single onion services used a 3-hop
3716       path when rendezvous circuits were retried after a remote or
3717       delayed failure, but a 1-hop path for immediate retries. Fixes bug
3718       23818; bugfix on 0.2.9.3-alpha.
3719     - Make v3 single onion services fall back to a 3-hop intro, when all
3720       intro points are unreachable via a 1-hop path. Previously, v3
3721       single onion services failed when all intro nodes were unreachable
3722       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
3724   o Documentation (backport from 0.4.2.1-alpha):
3725     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
3726       notice.html so that operators no longer have to host it
3727       themselves. Closes ticket 31089.
3729   o Testing (backport from 0.4.1.2-alpha):
3730     - Specify torrc paths (with empty files) when launching tor in
3731       integration tests; refrain from reading user and system torrcs.
3732       Resolves issue 29702.
3734   o Testing (continuous integration, backport from 0.4.1.1-alpha):
3735     - In Travis, show stem's tor log after failure. Closes ticket 30234.
3737   o Testing (continuous integration, backport from 0.4.1.5):
3738     - In Travis, make stem log a controller trace to the console, and
3739       tail stem's tor log after failure. Closes ticket 30591.
3740     - In Travis, only run the stem tests that use a tor binary. Closes
3741       ticket 30694.
3743   o Testing (continuous integration, backport from 0.4.2.3-alpha):
3744     - Disable all but one Travis CI macOS build, to mitigate slow
3745       scheduling of Travis macOS jobs. Closes ticket 32177.
3746     - Run the chutney IPv6 networks as part of Travis CI. Closes
3747       ticket 30860.
3748     - Simplify the Travis CI build matrix, and optimise for build time.
3749       Closes ticket 31859.
3750     - Use Windows Server 2019 instead of Windows Server 2016 in our
3751       Appveyor builds. Closes ticket 32086.
3753   o Testing (continuous integration, backport from 0.4.2.4-rc):
3754     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
3755       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
3756       until we can fix some Bionic permissions issues (see ticket
3757       32240). Related to ticket 31919.
3758     - Install the mingw OpenSSL package in Appveyor. This makes sure
3759       that the OpenSSL headers and libraries match in Tor's Appveyor
3760       builds. (This bug was triggered by an Appveyor image update.)
3761       Fixes bug 32449; bugfix on 0.3.5.6-rc.
3762     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
3764   o Testing (continuous integration, backport from 0.4.2.5):
3765     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
3766       extensions. Also activates clang's -Wtypedef-redefinition warnings.
3767       Build some jobs with -std=gnu99, and some jobs without.
3768       Closes ticket 32500.
3770 Changes in version 0.3.5.9 - 2019-12-09
3771   Tor 0.3.5.9 backports serveral fixes from later releases, including
3772   several that affect bridge users, relay stability, onion services,
3773   and much more.
3775   o Directory authority changes (backport from 0.4.1.5):
3776     - The directory authority "dizum" has a new IP address. Closes
3777       ticket 31406.
3779   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
3780     - Consider our directory information to have changed when our list
3781       of bridges changes. Previously, Tor would not re-compute the
3782       status of its directory information when bridges changed, and
3783       therefore would not realize that it was no longer able to build
3784       circuits. Fixes part of bug 29875.
3785     - Do not count previously configured working bridges towards our
3786       total of working bridges. Previously, when Tor's list of bridges
3787       changed, it would think that the old bridges were still usable,
3788       and delay fetching router descriptors for the new ones. Fixes part
3789       of bug 29875; bugfix on 0.3.0.1-alpha.
3791   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
3792     - When considering upgrading circuits from "waiting for guard" to
3793       "open", always ignore circuits that are marked for close. Otherwise,
3794       we can end up in the situation where a subsystem is notified that
3795       a closing circuit has just opened, leading to undesirable
3796       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
3798   o Major bugfixes (NSS, relay, backport from 0.4.0.4-rc):
3799     - When running with NSS, disable TLS 1.2 ciphersuites that use
3800       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
3801       these ciphersuites don't work -- which caused relays to fail to
3802       handshake with one another when these ciphersuites were enabled.
3803       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
3805   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
3806     - Properly clean up the introduction point map when circuits change
3807       purpose from onion service circuits to pathbias, measurement, or
3808       other circuit types. This should fix some service-side instances
3809       of introduction point failure. Fixes bug 29034; bugfix
3810       on 0.3.2.1-alpha.
3812   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
3813     - Fix an unreachable bug in which an introduction point could try to
3814       send an INTRODUCE_ACK with a status code that Trunnel would refuse
3815       to encode, leading the relay to assert(). We've consolidated the
3816       ABI values into Trunnel now. Fixes bug 30454; bugfix
3817       on 0.3.0.1-alpha.
3818     - Clients can now handle unknown status codes from INTRODUCE_ACK
3819       cells. (The NACK behavior will stay the same.) This will allow us
3820       to extend status codes in the future without breaking the normal
3821       client behavior. Fixes another part of bug 30454; bugfix
3822       on 0.3.0.1-alpha.
3824   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
3825     - Stop ignoring torrc options after an %include directive, when the
3826       included directory ends with a file that does not contain any
3827       config options (but does contain comments or whitespace). Fixes
3828       bug 31408; bugfix on 0.3.1.1-alpha.
3830   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
3831     - Onion services now always use the exact number of intro points
3832       configured with the HiddenServiceNumIntroductionPoints option (or
3833       fewer if nodes are excluded). Before, a service could sometimes
3834       pick more intro points than configured. Fixes bug 31548; bugfix
3835       on 0.3.2.1-alpha.
3837   o Minor features (address selection, backport from 0.4.0.3-alpha):
3838     - Treat the subnet 100.64.0.0/10 as public for some purposes;
3839       private for others. This subnet is the RFC 6598 (Carrier Grade
3840       NAT) IP range, and is deployed by many ISPs as an alternative to
3841       RFC 1918 that does not break existing internal networks. Tor now
3842       blocks SOCKS and control ports on these addresses and warns users
3843       if client ports or ExtORPorts are listening on a RFC 6598 address.
3844       Closes ticket 28525. Patch by Neel Chauhan.
3846   o Minor features (bandwidth authority, backport from 0.4.0.4-rc):
3847     - Make bandwidth authorities ignore relays that are reported in the
3848       bandwidth file with the flag "vote=0". This change allows us to
3849       report unmeasured relays for diagnostic reasons without including
3850       their bandwidth in the bandwidth authorities' vote. Closes
3851       ticket 29806.
3853   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
3854     - Add a "--list-modules" command to print a list of which compile-
3855       time modules are enabled. Closes ticket 30452.
3857   o Minor features (continuous integration, backport from 0.4.0.4-rc):
3858     - On Travis Rust builds, cleanup Rust registry and refrain from
3859       caching the "target/" directory to speed up builds. Resolves
3860       issue 29962.
3862   o Minor features (continuous integration, backport from 0.4.0.5):
3863     - In Travis, tell timelimit to use stem's backtrace signals, and
3864       launch python directly from timelimit, so python receives the
3865       signals from timelimit, rather than make. Closes ticket 30117.
3867   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
3868     - Remove sudo configuration lines from .travis.yml as they are no
3869       longer needed with current Travis build environment. Resolves
3870       issue 30213.
3872   o Minor features (continuous integration, backport from 0.4.1.4-rc):
3873     - Our Travis configuration now uses Chutney to run some network
3874       integration tests automatically. Closes ticket 29280.
3876   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
3877     - When building on Appveyor and Travis, pass the "-k" flag to make,
3878       so that we are informed of all compilation failures, not just the
3879       first one or two. Closes ticket 31372.
3881   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
3882     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
3883       in December 2018 (of which ~122 were still functional), with a
3884       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
3885       in June 2019. Closes ticket 28795.
3887   o Minor features (geoip, backport from 0.4.2.5):
3888     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3889       Country database. Closes ticket 32685.
3891   o Minor features (NSS, diagnostic, backport from 0.4.0.4-rc):
3892     - Try to log an error from NSS (if there is any) and a more useful
3893       description of our situation if we are using NSS and a call to
3894       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
3896   o Minor features (stem tests, backport from 0.4.2.1-alpha):
3897     - Change "make test-stem" so it only runs the stem tests that use
3898       tor. This change makes test-stem faster and more reliable. Closes
3899       ticket 31554.
3901   o Minor bugfixes (security, backport from 0.4.0.4-rc):
3902     - Verify in more places that we are not about to create a buffer
3903       with more than INT_MAX bytes, to avoid possible OOB access in the
3904       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
3905       fixed by Tobias Stoeckmann.
3906     - Fix a potential double free bug when reading huge bandwidth files.
3907       The issue is not exploitable in the current Tor network because
3908       the vulnerable code is only reached when directory authorities
3909       read bandwidth files, but bandwidth files come from a trusted
3910       source (usually the authorities themselves). Furthermore, the
3911       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
3912       which are not used by any of the current authorities. Fixes bug
3913       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
3914       Tobias Stoeckmann.
3916   o Minor bugfix (continuous integration, backport from 0.4.0.4-rc):
3917     - Reset coverage state on disk after Travis CI has finished. This
3918       should prevent future coverage merge errors from causing the test
3919       suite for the "process" subsystem to fail. The process subsystem
3920       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
3921       on 0.2.9.15.
3922     - Terminate test-stem if it takes more than 9.5 minutes to run.
3923       (Travis terminates the job after 10 minutes of no output.)
3924       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
3926   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
3927     - Avoid spurious errors when Appveyor CI fails before the install step.
3928       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
3930   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
3931     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
3932       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
3934   o Minor bugfixes (C correctness, backport from 0.4.0.4-rc):
3935     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
3936       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
3937       CID 1444119.
3939   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
3940     - Fix a logic error that prevented the SessionGroup sub-option from
3941       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
3943   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
3944     - Fix a BUG() assertion that occurs within a very small race window
3945       between when a client intro circuit opens and when its descriptor
3946       gets cleaned up from the cache. The circuit is now closed early,
3947       which will trigger a re-fetch of the descriptor and continue the
3948       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
3950   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
3951     - Don't believe clock skew results from NETINFO cells that appear to
3952       arrive before we sent the VERSIONS cells they are responding to.
3953       Previously, we would accept them up to 3 minutes "in the past".
3954       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3956   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
3957     - Fix a compilation warning on Windows about casting a function
3958       pointer for GetTickCount64(). Fixes bug 31374; bugfix
3959       on 0.2.9.1-alpha.
3961   o Minor bugfixes (compilation, backport from 0.4.0.2-alpha):
3962     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
3963       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
3965   o Minor bugfixes (compilation, backport from 0.4.1.5):
3966     - Avoid using labs() on time_t, which can cause compilation warnings
3967       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3969   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
3970     - Suppress spurious float-conversion warnings from GCC when calling
3971       floating-point classifier functions on FreeBSD. Fixes part of bug
3972       31687; bugfix on 0.3.1.5-alpha.
3974   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
3975     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
3976       due to missing declarations of abort(), and prevent other such
3977       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
3979   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
3980     - Fix a bug that prevented us from supporting SOCKS5 proxies that
3981       want authentication along with configured (but unused!)
3982       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
3984   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
3985     - Avoid trying to read data from closed connections, which can cause
3986       needless loops in Libevent and infinite loops in Shadow. Fixes bug
3987       30344; bugfix on 0.1.1.1-alpha.
3989   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
3990     - Allow the test-stem job to fail in Travis, because it sometimes
3991       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
3992     - Skip test_rebind on macOS in Travis, because it is unreliable on
3993       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3994     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
3995       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3997   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
3998     - Avoid a set of possible code paths that could try to use freed
3999       memory in routerlist_free() while Tor was exiting. Fixes bug
4000       31003; bugfix on 0.1.2.2-alpha.
4002   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
4003     - Stop crashing after parsing an unknown descriptor purpose
4004       annotation. We think this bug can only be triggered by modifying a
4005       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
4007   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
4008     - Move the "bandwidth-file-headers" line in directory authority
4009       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
4010       on 0.3.5.1-alpha.
4012   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
4013     - On abort, try harder to flush the output buffers of log messages.
4014       On some platforms (macOS), log messages could be discarded when
4015       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4016     - Report the tor version whenever an assertion fails. Previously, we
4017       only reported the Tor version on some crashes, and some non-fatal
4018       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4020   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
4021     - When extracting an IPv6 address from a PF-based proxy, verify that
4022       we are actually configured to receive an IPv6 address, and log an
4023       internal error if not. Fixes part of bug 31687; bugfix
4024       on 0.2.3.4-alpha.
4026   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
4027     - When tor is missing descriptors for some primary entry guards,
4028       make the log message less alarming. It's normal for descriptors to
4029       expire, as long as tor fetches new ones soon after. Fixes bug
4030       31657; bugfix on 0.3.3.1-alpha.
4032   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
4033     - Avoid logging that we are relaxing a circuit timeout when that
4034       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
4036   o Minor bugfixes (logging, backport from 0.4.0.3-alpha):
4037     - Correct a misleading error message when IPv4Only or IPv6Only is
4038       used but the resolved address can not be interpreted as an address
4039       of the specified IP version. Fixes bug 13221; bugfix on
4040       0.2.3.9-alpha. Patch from Kris Katterjohn.
4041     - Log the correct port number for listening sockets when "auto" is
4042       used to let Tor pick the port number. Previously, port 0 was
4043       logged instead of the actual port number. Fixes bug 29144; bugfix
4044       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
4045     - Stop logging a BUG() warning when Tor is waiting for exit
4046       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
4048   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
4049     - Do not log a warning when running with an OpenSSL version other
4050       than the one Tor was compiled with, if the two versions should be
4051       compatible. Previously, we would warn whenever the version was
4052       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
4054   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
4055     - Change log level of message "Hash of session info was not as
4056       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
4057       on 0.1.1.10-alpha.
4059   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
4060     - Rate-limit our the logging message about the obsolete .exit
4061       notation. Previously, there was no limit on this warning, which
4062       could potentially be triggered many times by a hostile website.
4063       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
4065   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
4066     - Do not log a nonfatal assertion failure when receiving a VERSIONS
4067       cell on a connection using the obsolete v1 link protocol. Log a
4068       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
4070   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
4071     - Reset the periodic events' "enabled" flag when Tor is shut down
4072       cleanly. Previously, this flag was left on, which caused periodic
4073       events not to be re-enabled when Tor was relaunched in-process
4074       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
4075       on 0.3.3.1-alpha.
4077   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
4078     - Avoid a minor memory leak that could occur on relays when failing
4079       to create a "keys" directory. Fixes bug 30148; bugfix
4080       on 0.3.3.1-alpha.
4082   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
4083     - Fix a trivial memory leak when parsing an invalid value
4084       from a download schedule in the configuration. Fixes bug
4085       30894; bugfix on 0.3.4.1-alpha.
4087   o Minor bugfixes (memory management, backport from 0.4.0.3-alpha):
4088     - Refactor the shared random state's memory management so that it
4089       actually takes ownership of the shared random value pointers.
4090       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
4092   o Minor bugfixes (memory management, testing, backport from 0.4.0.3-alpha):
4093     - Stop leaking parts of the shared random state in the shared-random
4094       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
4096   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
4097     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
4098       implemenation) when failing to load an onion service client
4099       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
4101   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
4102     - When purging the DNS cache because of an out-of-memory condition,
4103       try purging just the older entries at first. Previously, we would
4104       always purge the whole thing. Fixes bug 29617; bugfix
4105       on 0.3.5.1-alpha.
4107   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
4108     - Avoid crashing in our tor_vasprintf() implementation on systems
4109       that define neither vasprintf() nor _vscprintf(). (This bug has
4110       been here long enough that we question whether people are running
4111       Tor on such systems, but we're applying the fix out of caution.)
4112       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
4113       Tobias Stoeckmann.
4115   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
4116     - Avoid crashing when starting with a corrupt keys directory where
4117       the old ntor key and the new ntor key are identical. Fixes bug
4118       30916; bugfix on 0.2.4.8-alpha.
4120   o Minor bugfixes (rust, backport from 0.4.0.5):
4121     - Abort on panic in all build profiles, instead of potentially
4122       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
4124   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
4125     - Correctly exclude a redundant rust build job in Travis. Fixes bug
4126       31463; bugfix on 0.3.5.4-alpha.
4128   o Minor bugfixes (single onion services, backport from 0.4.0.3-alpha):
4129     - Allow connections to single onion services to remain idle without
4130       being disconnected. Previously, relays acting as rendezvous points
4131       for single onion services were mistakenly closing idle rendezvous
4132       circuits after 60 seconds, thinking that they were unused
4133       directory-fetching circuits that had served their purpose. Fixes
4134       bug 29665; bugfix on 0.2.1.26.
4136   o Minor bugfixes (stats, backport from 0.4.0.3-alpha):
4137     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
4138       relay and bridge extra-info documents. Fixes bug 29017; bugfix
4139       on 0.3.1.1-alpha.
4141   o Minor bugfixes (testing, backport from 0.4.0.3-alpha):
4142     - Downgrade some LOG_ERR messages in the address/* tests to
4143       warnings. The LOG_ERR messages were occurring when we had no
4144       configured network. We were failing the unit tests, because we
4145       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
4146       29530; bugfix on 0.3.5.8.
4147     - Fix our gcov wrapper script to look for object files at the
4148       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
4150   o Minor bugfixes (testing, backport from 0.4.0.4-rc):
4151     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
4152       recent test-network.sh to use new chutney features in CI. Fixes
4153       bug 29703; bugfix on 0.2.9.1-alpha.
4154     - Fix a test failure on Windows caused by an unexpected "BUG"
4155       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
4156       on 0.2.9.3-alpha.
4158   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
4159     - When testing port rebinding, don't busy-wait for tor to log.
4160       Instead, actually sleep for a short time before polling again.
4161       Also improve the formatting of control commands and log messages.
4162       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
4164   o Minor bugfixes (TLS protocol, backport form 0.4.0.4-rc):
4165     - When classifying a client's selection of TLS ciphers, if the
4166       client ciphers are not yet available, do not cache the result.
4167       Previously, we had cached the unavailability of the cipher list
4168       and never looked again, which in turn led us to assume that the
4169       client only supported the ancient V1 link protocol. This, in turn,
4170       was causing Stem integration tests to stall in some cases. Fixes
4171       bug 30021; bugfix on 0.2.4.8-alpha.
4173   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
4174     - Log bugs about the TLS read buffer's length only once, rather than
4175       filling the logs with similar warnings. Fixes bug 31939; bugfix
4176       on 0.3.0.4-rc.
4178   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
4179     - Always retry v2 single onion service intro and rend circuits with
4180       a 3-hop path. Previously, v2 single onion services used a 3-hop
4181       path when rendezvous circuits were retried after a remote or
4182       delayed failure, but a 1-hop path for immediate retries. Fixes bug
4183       23818; bugfix on 0.2.9.3-alpha.
4184     - Make v3 single onion services fall back to a 3-hop intro, when all
4185       intro points are unreachable via a 1-hop path. Previously, v3
4186       single onion services failed when all intro nodes were unreachable
4187       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
4189   o Minor bugfixes (Windows, CI, backport from 0.4.0.3-alpha):
4190     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
4191       Windows Server 2012 R2 job. The remaining 2 jobs still provide
4192       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
4193       fast_finish, so failed jobs terminate the build immediately. Fixes
4194       bug 29601; bugfix on 0.3.5.4-alpha.
4196   o Documentation (backport from 0.4.2.1-alpha):
4197     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
4198       notice.html so that operators no longer have to host it
4199       themselves. Closes ticket 31089.
4201   o Testing (backport from 0.4.1.2-alpha):
4202     - Specify torrc paths (with empty files) when launching tor in
4203       integration tests; refrain from reading user and system torrcs.
4204       Resolves issue 29702.
4206   o Testing (continuous integration, backport from 0.4.1.1-alpha):
4207     - In Travis, show stem's tor log after failure. Closes ticket 30234.
4209   o Testing (continuous integration, backport from 0.4.1.5):
4210     - In Travis, make stem log a controller trace to the console, and
4211       tail stem's tor log after failure. Closes ticket 30591.
4212     - In Travis, only run the stem tests that use a tor binary. Closes
4213       ticket 30694.
4215   o Testing (continuous integration, backport from 0.4.2.3-alpha):
4216     - Disable all but one Travis CI macOS build, to mitigate slow
4217       scheduling of Travis macOS jobs. Closes ticket 32177.
4218     - Run the chutney IPv6 networks as part of Travis CI. Closes
4219       ticket 30860.
4220     - Simplify the Travis CI build matrix, and optimise for build time.
4221       Closes ticket 31859.
4222     - Use Windows Server 2019 instead of Windows Server 2016 in our
4223       Appveyor builds. Closes ticket 32086.
4225   o Testing (continuous integration, backport from 0.4.2.4-rc):
4226     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
4227       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
4228       until we can fix some Bionic permissions issues (see ticket
4229       32240). Related to ticket 31919.
4230     - Install the mingw OpenSSL package in Appveyor. This makes sure
4231       that the OpenSSL headers and libraries match in Tor's Appveyor
4232       builds. (This bug was triggered by an Appveyor image update.)
4233       Fixes bug 32449; bugfix on 0.3.5.6-rc.
4234     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
4236   o Testing (continuous integration, backport from 0.4.2.5):
4237     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
4238       extensions. Also activates clang's -Wtypedef-redefinition warnings.
4239       Build some jobs with -std=gnu99, and some jobs without.
4240       Closes ticket 32500.
4242 Changes in version 0.4.2.4-rc - 2019-11-15
4243   Tor 0.4.2.4-rc is the first release candidate in its series. It fixes
4244   several bugs from earlier versions, including a few that would result in
4245   stack traces or incorrect behavior.
4247   o Minor features (build system):
4248     - Make pkg-config use --prefix when cross-compiling, if
4249       PKG_CONFIG_PATH is not set. Closes ticket 32191.
4251   o Minor features (geoip):
4252     - Update geoip and geoip6 to the November 6 2019 Maxmind GeoLite2
4253       Country database. Closes ticket 32440.
4255   o Minor bugfixes (client, onion service v3):
4256     - Fix a BUG() assertion that occurs within a very small race window
4257       between when a client intro circuit opens and when its descriptor
4258       gets cleaned up from the cache. The circuit is now closed early,
4259       which will trigger a re-fetch of the descriptor and continue the
4260       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
4262   o Minor bugfixes (code quality):
4263     - Fix "make check-includes" so it runs correctly on out-of-tree
4264       builds. Fixes bug 31335; bugfix on 0.3.5.1-alpha.
4266   o Minor bugfixes (configuration):
4267     - Log the option name when skipping an obsolete option. Fixes bug
4268       32295; bugfix on 0.4.2.1-alpha.
4270   o Minor bugfixes (crash):
4271     - When running Tor with an option like --verify-config or
4272       --dump-config that does not start the event loop, avoid crashing
4273       if we try to exit early because of an error. Fixes bug 32407;
4274       bugfix on 0.3.3.1-alpha.
4276   o Minor bugfixes (directory):
4277     - When checking if a directory connection is anonymous, test if the
4278       circuit was marked for close before looking at its channel. This
4279       avoids a BUG() stacktrace if the circuit was previously closed.
4280       Fixes bug 31958; bugfix on 0.4.2.1-alpha.
4282   o Minor bugfixes (shellcheck):
4283     - Fix minor shellcheck errors in the git-*.sh scripts. Fixes bug
4284       32402; bugfix on 0.4.2.1-alpha.
4285     - Start checking most scripts for shellcheck errors again. Fixes bug
4286       32402; bugfix on 0.4.2.1-alpha.
4288   o Testing (continuous integration):
4289     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
4290       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
4291       until we can fix some Bionic permissions issues (see ticket
4292       32240). Related to ticket 31919.
4293     - Install the mingw OpenSSL package in Appveyor. This makes sure
4294       that the OpenSSL headers and libraries match in Tor's Appveyor
4295       builds. (This bug was triggered by an Appveyor image update.)
4296       Fixes bug 32449; bugfix on 0.3.5.6-rc.
4297     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
4300 Changes in version 0.4.2.3-alpha - 2019-10-24
4301   This release fixes several bugs from the previous alpha release, and
4302   from earlier versions of Tor.
4304   o Major bugfixes (relay):
4305     - Relays now respect their AccountingMax bandwidth again. When
4306       relays entered "soft" hibernation (which typically starts when
4307       we've hit 90% of our AccountingMax), we had stopped checking
4308       whether we should enter hard hibernation. Soft hibernation refuses
4309       new connections and new circuits, but the existing circuits can
4310       continue, meaning that relays could have exceeded their configured
4311       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
4313   o Major bugfixes (v3 onion services):
4314     - Onion services now always use the exact number of intro points
4315       configured with the HiddenServiceNumIntroductionPoints option (or
4316       fewer if nodes are excluded). Before, a service could sometimes
4317       pick more intro points than configured. Fixes bug 31548; bugfix
4318       on 0.3.2.1-alpha.
4320   o Minor feature (onion services, control port):
4321     - The ADD_ONION command's keyword "BEST" now defaults to ED25519-V3
4322       (v3) onion services. Previously it defaulted to RSA1024 (v2).
4323       Closes ticket 29669.
4325   o Minor features (testing):
4326     - When running tests that attempt to look up hostnames, replace the
4327       libc name lookup functions with ones that do not actually touch
4328       the network. This way, the tests complete more quickly in the
4329       presence of a slow or missing DNS resolver. Closes ticket 31841.
4331   o Minor features (testing, continuous integration):
4332     - Disable all but one Travis CI macOS build, to mitigate slow
4333       scheduling of Travis macOS jobs. Closes ticket 32177.
4334     - Run the chutney IPv6 networks as part of Travis CI. Closes
4335       ticket 30860.
4336     - Simplify the Travis CI build matrix, and optimise for build time.
4337       Closes ticket 31859.
4338     - Use Windows Server 2019 instead of Windows Server 2016 in our
4339       Appveyor builds. Closes ticket 32086.
4341   o Minor bugfixes (build system):
4342     - Interpret "--disable-module-dirauth=no" correctly. Fixes bug
4343       32124; bugfix on 0.3.4.1-alpha.
4344     - Interpret "--with-tcmalloc=no" correctly. Fixes bug 32124; bugfix
4345       on 0.2.0.20-rc.
4346     - Stop failing when jemalloc is requested, but tcmalloc is not
4347       found. Fixes bug 32124; bugfix on 0.3.5.1-alpha.
4348     - When pkg-config is not installed, or a library that depends on
4349       pkg-config is not found, tell the user what to do to fix the
4350       problem. Fixes bug 31922; bugfix on 0.3.1.1-alpha.
4352   o Minor bugfixes (connections):
4353     - Avoid trying to read data from closed connections, which can cause
4354       needless loops in Libevent and infinite loops in Shadow. Fixes bug
4355       30344; bugfix on 0.1.1.1-alpha.
4357   o Minor bugfixes (error handling):
4358     - Always lock the backtrace buffer before it is used. Fixes bug
4359       31734; bugfix on 0.2.5.3-alpha.
4361   o Minor bugfixes (mainloop, periodic events, in-process API):
4362     - Reset the periodic events' "enabled" flag when Tor is shut down
4363       cleanly. Previously, this flag was left on, which caused periodic
4364       events not to be re-enabled when Tor was relaunched in-process
4365       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
4366       on 0.3.3.1-alpha.
4368   o Minor bugfixes (process management):
4369     - Remove overly strict assertions that triggered when a pluggable
4370       transport failed to launch. Fixes bug 31091; bugfix
4371       on 0.4.0.1-alpha.
4372     - Remove an assertion in the Unix process backend. This assertion
4373       would trigger when we failed to find the executable for a child
4374       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
4376   o Minor bugfixes (testing):
4377     - Avoid intermittent test failures due to a test that had relied on
4378       inconsistent timing sources. Fixes bug 31995; bugfix
4379       on 0.3.1.3-alpha.
4380     - When testing port rebinding, don't busy-wait for tor to log.
4381       Instead, actually sleep for a short time before polling again.
4382       Also improve the formatting of control commands and log messages.
4383       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
4385   o Minor bugfixes (tls, logging):
4386     - Log bugs about the TLS read buffer's length only once, rather than
4387       filling the logs with similar warnings. Fixes bug 31939; bugfix
4388       on 0.3.0.4-rc.
4390   o Minor bugfixes (v3 onion services):
4391     - Fix an implicit conversion from ssize_t to size_t discovered by
4392       Coverity. Fixes bug 31682; bugfix on 0.4.2.1-alpha.
4393     - Fix a memory leak in an unlikely error code path when encoding HS
4394       DoS establish intro extension cell. Fixes bug 32063; bugfix
4395       on 0.4.2.1-alpha.
4396     - When cleaning up intro circuits for a v3 onion service, don't
4397       remove circuits that have an established or pending circuit, even
4398       if they ran out of retries. This way, we don't remove a circuit on
4399       its last retry. Fixes bug 31652; bugfix on 0.3.2.1-alpha.
4401   o Documentation:
4402     - Correct the description of "GuardLifetime". Fixes bug 31189;
4403       bugfix on 0.3.0.1-alpha.
4404     - Make clear in the man page, in both the bandwidth section and the
4405       AccountingMax section, that Tor counts in powers of two, not
4406       powers of ten: 1 GByte is 1024*1024*1024 bytes, not one billion
4407       bytes. Resolves ticket 32106.
4410 Changes in version 0.4.2.2-alpha - 2019-10-07
4411   This release fixes several bugs from the previous alpha release, and
4412   from earlier versions. It also includes a change in authorities, so
4413   that they begin to reject the currently unsupported release series.
4415   o Major features (directory authorities):
4416     - Directory authorities now reject relays running all currently
4417       deprecated release series. The currently supported release series
4418       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
4420   o Major bugfixes (embedded Tor):
4421     - Avoid a possible crash when restarting Tor in embedded mode and
4422       enabling a different set of publish/subscribe messages. Fixes bug
4423       31898; bugfix on 0.4.1.1-alpha.
4425   o Major bugfixes (torrc parsing):
4426     - Stop ignoring torrc options after an %include directive, when the
4427       included directory ends with a file that does not contain any
4428       config options (but does contain comments or whitespace). Fixes
4429       bug 31408; bugfix on 0.3.1.1-alpha.
4431   o Minor features (auto-formatting scripts):
4432     - When annotating C macros, never generate a line that our check-
4433       spaces script would reject. Closes ticket 31759.
4434     - When annotating C macros, try to remove cases of double-negation.
4435       Closes ticket 31779.
4437   o Minor features (continuous integration):
4438     - When building on Appveyor and Travis, pass the "-k" flag to make,
4439       so that we are informed of all compilation failures, not just the
4440       first one or two. Closes ticket 31372.
4442   o Minor features (geoip):
4443     - Update geoip and geoip6 to the October 1 2019 Maxmind GeoLite2
4444       Country database. Closes ticket 31931.
4446   o Minor features (maintenance scripts):
4447     - Add a Coccinelle script to detect bugs caused by incrementing or
4448       decrementing a variable inside a call to log_debug(). Since
4449       log_debug() is a macro whose arguments are conditionally
4450       evaluated, it is usually an error to do this. One such bug was
4451       30628, in which SENDME cells were miscounted by a decrement
4452       operator inside a log_debug() call. Closes ticket 30743.
4454   o Minor features (onion services v3):
4455     - Assist users who try to setup v2 client authorization in v3 onion
4456       services by pointing them to the right documentation. Closes
4457       ticket 28966.
4459   o Minor bugfixes (Appveyor continuous integration):
4460     - Avoid spurious errors when Appveyor CI fails before the install
4461       step. Fixes bug 31884; bugfix on 0.3.4.2-alpha.
4463   o Minor bugfixes (best practices tracker):
4464     - When listing overbroad exceptions, do not also list problems, and
4465       do not list insufficiently broad exceptions. Fixes bug 31338;
4466       bugfix on 0.4.2.1-alpha.
4468   o Minor bugfixes (controller protocol):
4469     - Fix the MAPADDRESS controller command to accept one or more
4470       arguments. Previously, it required two or more arguments, and
4471       ignored the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
4473   o Minor bugfixes (logging):
4474     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
4475       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
4476     - Disable backtrace signal handlers when shutting down tor. Fixes
4477       bug 31614; bugfix on 0.2.5.2-alpha.
4478     - Rate-limit our the logging message about the obsolete .exit
4479       notation. Previously, there was no limit on this warning, which
4480       could potentially be triggered many times by a hostile website.
4481       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
4482     - When initialising log domain masks, only set known log domains.
4483       Fixes bug 31854; bugfix on 0.2.1.1-alpha.
4485   o Minor bugfixes (logging, protocol violations):
4486     - Do not log a nonfatal assertion failure when receiving a VERSIONS
4487       cell on a connection using the obsolete v1 link protocol. Log a
4488       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
4490   o Minor bugfixes (modules):
4491     - Explain what the optional Directory Authority module is, and what
4492       happens when it is disabled. Fixes bug 31825; bugfix
4493       on 0.3.4.1-alpha.
4495   o Minor bugfixes (multithreading):
4496     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
4497       31736; bugfix on 0.0.7.
4499   o Minor bugfixes (relay):
4500     - Avoid crashing when starting with a corrupt keys directory where
4501       the old ntor key and the new ntor key are identical. Fixes bug
4502       30916; bugfix on 0.2.4.8-alpha.
4504   o Minor bugfixes (tests, SunOS):
4505     - Avoid a map_anon_nofork test failure due to a signed/unsigned
4506       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
4508   o Code simplification and refactoring:
4509     - Refactor connection_control_process_inbuf() to reduce the size of
4510       a practracker exception. Closes ticket 31840.
4511     - Refactor the microdescs_parse_from_string() function into smaller
4512       pieces, for better comprehensibility. Closes ticket 31675.
4513     - Use SEVERITY_MASK_IDX() to find the LOG_* mask indexes in the unit
4514       tests and fuzzers, rather than using hard-coded values. Closes
4515       ticket 31334.
4516     - Interface for function `decrypt_desc_layer` cleaned up. Closes
4517       ticket 31589.
4519   o Documentation:
4520     - Document the signal-safe logging behaviour in the tor man page.
4521       Also add some comments to the relevant functions. Closes
4522       ticket 31839.
4523     - Explain why we can't destroy the backtrace buffer mutex. Explain
4524       why we don't need to destroy the log mutex. Closes ticket 31736.
4525     - The Tor source code repository now includes a (somewhat dated)
4526       description of Tor's modular architecture, in doc/HACKING/design.
4527       This is based on the old "tor-guts.git" repository, which we are
4528       adopting and superseding. Closes ticket 31849.
4531 Changes in version 0.4.1.6 - 2019-09-19
4532   This release backports several bugfixes to improve stability and
4533   correctness.  Anyone experiencing build problems or crashes with 0.4.1.5,
4534   or experiencing reliability issues with single onion services, should
4535   upgrade.
4537   o Major bugfixes (crash, Linux, Android, backport from 0.4.2.1-alpha):
4538     - Tolerate systems (including some Android installations) where
4539       madvise and MADV_DONTDUMP are available at build-time, but not at
4540       run time. Previously, these systems would notice a failed syscall
4541       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
4542     - Tolerate systems (including some Linux installations) where
4543       madvise and/or MADV_DONTFORK are available at build-time, but not
4544       at run time. Previously, these systems would notice a failed
4545       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
4547   o Minor features (stem tests, backport from 0.4.2.1-alpha):
4548     - Change "make test-stem" so it only runs the stem tests that use
4549       tor. This change makes test-stem faster and more reliable. Closes
4550       ticket 31554.
4552   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
4553     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
4554       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
4556   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
4557     - Add more stub functions to fix compilation on Android with link-
4558       time optimization when --disable-module-dirauth is used.
4559       Previously, these compilation settings would make the compiler
4560       look for functions that didn't exist. Fixes bug 31552; bugfix
4561       on 0.4.1.1-alpha.
4562     - Suppress spurious float-conversion warnings from GCC when calling
4563       floating-point classifier functions on FreeBSD. Fixes part of bug
4564       31687; bugfix on 0.3.1.5-alpha.
4566   o Minor bugfixes (controller protocol):
4567     - Fix the MAPADDRESS controller command to accept one or more
4568       arguments. Previously, it required two or more arguments, and ignored
4569       the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
4571   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
4572     - When extracting an IPv6 address from a PF-based proxy, verify that
4573       we are actually configured to receive an IPv6 address, and log an
4574       internal error if not. Fixes part of bug 31687; bugfix
4575       on 0.2.3.4-alpha.
4577   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
4578     - When tor is missing descriptors for some primary entry guards,
4579       make the log message less alarming. It's normal for descriptors to
4580       expire, as long as tor fetches new ones soon after. Fixes bug
4581       31657; bugfix on 0.3.3.1-alpha.
4583   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
4584     - Change log level of message "Hash of session info was not as
4585       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
4586       on 0.1.1.10-alpha.
4588   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
4589     - Correctly exclude a redundant rust build job in Travis. Fixes bug
4590       31463; bugfix on 0.3.5.4-alpha.
4592   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
4593     - Always retry v2 single onion service intro and rend circuits with
4594       a 3-hop path. Previously, v2 single onion services used a 3-hop
4595       path when rendezvous circuits were retried after a remote or
4596       delayed failure, but a 1-hop path for immediate retries. Fixes bug
4597       23818; bugfix on 0.2.9.3-alpha.
4599   o Minor bugfixes (v3 single onion services, backport from 0.4.2.1-alpha):
4600     - Always retry v3 single onion service intro and rend circuits with
4601       a 3-hop path. Previously, v3 single onion services used a 3-hop
4602       path when rend circuits were retried after a remote or delayed
4603       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
4604       bugfix on 0.3.2.1-alpha.
4605     - Make v3 single onion services fall back to a 3-hop intro, when all
4606       intro points are unreachable via a 1-hop path. Previously, v3
4607       single onion services failed when all intro nodes were unreachable
4608       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
4610   o Documentation (backport from 0.4.2.1-alpha):
4611     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
4612       notice.html so that operators no longer have to host it
4613       themselves. Closes ticket 31089.
4616 Changes in version 0.4.2.1-alpha - 2019-09-17
4617   This is the first alpha release in the 0.4.2.x series. It adds new
4618   defenses for denial-of-service attacks against onion services. It also
4619   includes numerous kinds of bugfixes and refactoring to help improve
4620   Tor's stability and ease of development.
4622   o Major features (onion service v3, denial of service):
4623     - Add onion service introduction denial of service defenses. Intro
4624       points can now rate-limit client introduction requests, using
4625       parameters that can be sent by the service within the
4626       ESTABLISH_INTRO cell. If the cell extension for this is not used,
4627       the intro point will honor the consensus parameters. Closes
4628       ticket 30924.
4630   o Major bugfixes (circuit build, guard):
4631     - When considering upgrading circuits from "waiting for guard" to
4632       "open", always ignore circuits that are marked for close.
4633       Previously we could end up in the situation where a subsystem is
4634       notified of a circuit opening, but the circuit is still marked for
4635       close, leading to undesirable behavior. Fixes bug 30871; bugfix
4636       on 0.3.0.1-alpha.
4638   o Major bugfixes (crash, Linux, Android):
4639     - Tolerate systems (including some Android installations) where
4640       madvise and MADV_DONTDUMP are available at build-time, but not at
4641       run time. Previously, these systems would notice a failed syscall
4642       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
4643     - Tolerate systems (including some Linux installations) where
4644       madvise and/or MADV_DONTFORK are available at build-time, but not
4645       at run time. Previously, these systems would notice a failed
4646       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
4648   o Minor features (best practices tracker):
4649     - Our best-practices tracker now integrates with our include-checker
4650       tool to keep track of how many layering violations we have not yet
4651       fixed. We hope to reduce this number over time to improve Tor's
4652       modularity. Closes ticket 31176.
4653     - Add a TOR_PRACTRACKER_OPTIONS variable for passing arguments to
4654       practracker from the environment. We may want this for continuous
4655       integration. Closes ticket 31309.
4656     - Give a warning rather than an error when a practracker exception
4657       is violated by a small amount, add a --list-overbroad option to
4658       practracker that lists exceptions that are stricter than they need
4659       to be, and provide an environment variable for disabling
4660       practracker. Closes ticket 30752.
4661     - Our best-practices tracker now looks at headers as well as C
4662       files. Closes ticket 31175.
4664   o Minor features (build system):
4665     - Add --disable-manpage and --disable-html-manual options to
4666       configure script. This will enable shortening build times by not
4667       building documentation. Resolves issue 19381.
4669   o Minor features (compilation):
4670     - Log a more useful error message when we are compiling and one of
4671       the compile-time hardening options we have selected can be linked
4672       but not executed. Closes ticket 27530.
4674   o Minor features (configuration):
4675     - The configuration code has been extended to allow splitting
4676       configuration data across multiple objects. Previously, all
4677       configuration data needed to be kept in a single object, which
4678       tended to become bloated. Closes ticket 31240.
4680   o Minor features (continuous integration):
4681     - When running CI builds on Travis, put some random data in
4682       ~/.torrc, to make sure no tests are reading the Tor configuration
4683       file from its default location. Resolves issue 30102.
4685   o Minor features (debugging):
4686     - Log a nonfatal assertion failure if we encounter a configuration
4687       line whose command is "CLEAR" but which has a nonempty value. This
4688       should be impossible, according to the rules of our configuration
4689       line parsing. Closes ticket 31529.
4691   o Minor features (git hooks):
4692     - Our pre-commit git hook now checks for a special file before
4693       running practracker, so that practracker only runs on branches
4694       that are based on master. Since the pre-push hook calls the pre-
4695       commit hook, practracker will also only run before pushes of
4696       branches based on master. Closes ticket 30979.
4698   o Minor features (git scripts):
4699     - Add a "--" command-line argument, to separate git-push-all.sh
4700       script arguments from arguments that are passed through to git
4701       push. Closes ticket 31314.
4702     - Add a -r <remote-name> argument to git-push-all.sh, so the script
4703       can push test branches to a personal remote. Closes ticket 31314.
4704     - Add a -t <test-branch-prefix> argument to git-merge-forward.sh and
4705       git-push-all.sh, which makes these scripts create, merge forward,
4706       and push test branches. Closes ticket 31314.
4707     - Add a -u argument to git-merge-forward.sh, so that the script can
4708       re-use existing test branches after a merge failure and fix.
4709       Closes ticket 31314.
4710     - Add a TOR_GIT_PUSH env var, which sets the default git push
4711       command and arguments for git-push-all.sh. Closes ticket 31314.
4712     - Add a TOR_PUSH_DELAY variable to git-push-all.sh, which makes the
4713       script push master and maint branches with a delay between each
4714       branch. These delays trigger the CI jobs in a set order, which
4715       should show the most likely failures first. Also make pushes
4716       atomic by default, and make the script pass any command-line
4717       arguments to git push. Closes ticket 29879.
4718     - Call the shellcheck script from the pre-commit hook. Closes
4719       ticket 30967.
4720     - Skip pushing test branches that are the same as a remote
4721       maint/release/master branch in git-push-all.sh by default. Add a
4722       -s argument, so git-push-all.sh can push all test branches. Closes
4723       ticket 31314.
4725   o Minor features (IPv6, logging):
4726     - Log IPv6 addresses as well as IPv4 addresses when describing
4727       routerinfos, routerstatuses, and nodes. Closes ticket 21003.
4729   o Minor features (onion service v3):
4730     - Do not allow single hop clients to fetch or post an HS descriptor
4731       from an HSDir. Closes ticket 24964.
4733   o Minor features (onion service):
4734     - Disallow single-hop clients at the introduction point. We've
4735       removed Tor2web support a while back and single-hop rendezvous
4736       attempts are blocked at the relays. This change should remove load
4737       off the network from spammy clients. Close ticket 24963.
4739   o Minor features (stem tests):
4740     - Change "make test-stem" so it only runs the stem tests that use
4741       tor. This change makes test-stem faster and more reliable. Closes
4742       ticket 31554.
4744   o Minor features (testing):
4745     - Add a script to invoke "tor --dump-config" and "tor
4746       --verify-config" with various configuration options, and see
4747       whether tor's resulting configuration or error messages are what
4748       we expect. Use it for integration testing of our +Option and
4749       /Option flags. Closes ticket 31637.
4750     - Improve test coverage for our existing configuration parsing and
4751       management API. Closes ticket 30893.
4752     - Add integration tests to make sure that practracker gives the
4753       outputs we expect. Closes ticket 31477.
4754     - The practracker self-tests are now run as part of the Tor test
4755       suite. Closes ticket 31304.
4757   o Minor features (token bucket):
4758     - Implement a generic token bucket that uses a single counter, for
4759       use in anti-DoS onion service work. Closes ticket 30687.
4761   o Minor bugfixes (best practices tracker):
4762     - Fix a few issues in the best-practices script, including tests,
4763       tab tolerance, error reporting, and directory-exclusion logic.
4764       Fixes bug 29746; bugfix on 0.4.1.1-alpha.
4765     - When running check-best-practices, only consider files in the src
4766       subdirectory. Previously we had recursively considered all
4767       subdirectories, which made us get confused by the temporary
4768       directories made by "make distcheck". Fixes bug 31578; bugfix
4769       on 0.4.1.1-alpha.
4771   o Minor bugfixes (build system):
4772     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
4773       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
4775   o Minor bugfixes (chutney, makefiles, documentation):
4776     - "make test-network-all" now shows the warnings from each test-
4777       network.sh run on the console, so developers see new warnings
4778       early. We've also improved the documentation for this feature, and
4779       renamed a Makefile variable so the code is self-documenting. Fixes
4780       bug 30455; bugfix on 0.3.0.4-rc.
4782   o Minor bugfixes (compilation):
4783     - Add more stub functions to fix compilation on Android with link-
4784       time optimization when --disable-module-dirauth is used.
4785       Previously, these compilation settings would make the compiler
4786       look for functions that didn't exist. Fixes bug 31552; bugfix
4787       on 0.4.1.1-alpha.
4788     - Suppress spurious float-conversion warnings from GCC when calling
4789       floating-point classifier functions on FreeBSD. Fixes part of bug
4790       31687; bugfix on 0.3.1.5-alpha.
4792   o Minor bugfixes (configuration):
4793     - Invalid floating-point values in the configuration file are now
4794       treated as errors in the configuration. Previously, they were
4795       ignored and treated as zero. Fixes bug 31475; bugfix on 0.0.1.
4797   o Minor bugfixes (coverity):
4798     - Add an assertion when parsing a BEGIN cell so that coverity can be
4799       sure that we are not about to dereference a NULL address. Fixes
4800       bug 31026; bugfix on 0.2.4.7-alpha. This is CID 1447296.
4801     - In our siphash implementation, when building for coverity, use
4802       memcpy in place of a switch statement, so that coverity can tell
4803       we are not accessing out-of-bounds memory. Fixes bug 31025; bugfix
4804       on 0.2.8.1-alpha. This is tracked as CID 1447293 and 1447295.
4805     - Fix several coverity warnings from our unit tests. Fixes bug
4806       31030; bugfix on 0.2.4.1-alpha, 0.3.2.1-alpha, and 0.4.0.1-alpha.
4808   o Minor bugfixes (developer tooling):
4809     - Only log git script changes in the post-merge script when the
4810       merge was to the master branch. Fixes bug 31040; bugfix
4811       on 0.4.1.1-alpha.
4813   o Minor bugfixes (directory authorities):
4814     - Return a distinct status when formatting annotations fails. Fixes
4815       bug 30780; bugfix on 0.2.0.8-alpha.
4817   o Minor bugfixes (error handling):
4818     - On abort, try harder to flush the output buffers of log messages.
4819       On some platforms (macOS), log messages could be discarded when
4820       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4821     - Report the tor version whenever an assertion fails. Previously, we
4822       only reported the Tor version on some crashes, and some non-fatal
4823       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4824     - When tor aborts due to an error, close log file descriptors before
4825       aborting. Closing the logs makes some OSes flush log file buffers,
4826       rather than deleting buffered log lines. Fixes bug 31594; bugfix
4827       on 0.2.5.2-alpha.
4829   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6):
4830     - When extracting an IPv6 address from a PF-based proxy, verify that
4831       we are actually configured to receive an IPv6 address, and log an
4832       internal error if not. Fixes part of bug 31687; bugfix
4833       on 0.2.3.4-alpha.
4835   o Minor bugfixes (git hooks):
4836     - Remove a duplicate call to practracker from the pre-push hook. The
4837       pre-push hook already calls the pre-commit hook, which calls
4838       practracker. Fixes bug 31462; bugfix on 0.4.1.1-alpha.
4840   o Minor bugfixes (git scripts):
4841     - Stop hard-coding the bash path in the git scripts. Some OSes don't
4842       have bash in /usr/bin, others have an ancient bash at this path.
4843       Fixes bug 30840; bugfix on 0.4.0.1-alpha.
4844     - Stop hard-coding the tor master branch name and worktree path in
4845       the git scripts. Fixes bug 30841; bugfix on 0.4.0.1-alpha.
4846     - Allow git-push-all.sh to be run from any directory. Previously,
4847       the script only worked if run from an upstream worktree directory.
4848       Closes ticket 31678.
4850   o Minor bugfixes (guards):
4851     - When tor is missing descriptors for some primary entry guards,
4852       make the log message less alarming. It's normal for descriptors to
4853       expire, as long as tor fetches new ones soon after. Fixes bug
4854       31657; bugfix on 0.3.3.1-alpha.
4856   o Minor bugfixes (ipv6):
4857     - Check for private IPv6 addresses alongside their IPv4 equivalents
4858       when authorities check descriptors. Previously, we only checked
4859       for private IPv4 addresses. Fixes bug 31088; bugfix on
4860       0.2.3.21-rc. Patch by Neel Chauhan.
4861     - When parsing microdescriptors, we should check the IPv6 exit
4862       policy alongside IPv4. Previously, we checked both exit policies
4863       for only router info structures, while microdescriptors were
4864       IPv4-only. Fixes bug 27284; bugfix on 0.2.3.1-alpha. Patch by
4865       Neel Chauhan.
4867   o Minor bugfixes (logging):
4868     - Change log level of message "Hash of session info was not as
4869       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
4870       on 0.1.1.10-alpha.
4871     - Fix a code issue that would have broken our parsing of log domains
4872       as soon as we had 33 of them. Fortunately, we still only have 29.
4873       Fixes bug 31451; bugfix on 0.4.1.4-rc.
4875   o Minor bugfixes (memory management):
4876     - Stop leaking a small amount of memory in nt_service_install(), in
4877       unreachable code. Fixes bug 30799; bugfix on 0.2.0.7-alpha. Patch
4878       by Xiaoyin Liu.
4880   o Minor bugfixes (networking, IP addresses):
4881     - When parsing addresses via Tor's internal DNS lookup API, reject
4882       IPv4 addresses in square brackets, and accept IPv6 addresses in
4883       square brackets. This change completes the work started in 23082,
4884       making address parsing consistent between tor's internal DNS
4885       lookup and address parsing APIs. Fixes bug 30721; bugfix
4886       on 0.2.1.5-alpha.
4887     - When parsing addresses via Tor's internal address:port parsing and
4888       DNS lookup APIs, require IPv6 addresses with ports to have square
4889       brackets. But allow IPv6 addresses without ports, whether or not
4890       they have square brackets. Fixes bug 30721; bugfix
4891       on 0.2.1.5-alpha.
4893   o Minor bugfixes (onion service v3):
4894     - When purging the client descriptor cache, close any introduction
4895       point circuits associated with purged cache entries. This avoids
4896       picking those circuits later when connecting to the same
4897       introduction points. Fixes bug 30921; bugfix on 0.3.2.1-alpha.
4899   o Minor bugfixes (onion services):
4900     - In the hs_ident_circuit_t data structure, remove the unused field
4901       circuit_type and the respective argument in hs_ident_circuit_new().
4902       This field was set by clients (for introduction) and services (for
4903       introduction and rendezvous) but was never used afterwards. Fixes
4904       bug 31490; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
4906   o Minor bugfixes (operator tools):
4907     - Make tor-print-ed-signing-cert(1) print certificate expiration
4908       date in RFC 1123 and UNIX timestamp formats, to make output
4909       machine readable. Fixes bug 31012; bugfix on 0.3.5.1-alpha.
4911   o Minor bugfixes (rust):
4912     - Correctly exclude a redundant rust build job in Travis. Fixes bug
4913       31463; bugfix on 0.3.5.4-alpha.
4914     - Raise the minimum rustc version to 1.31.0, as checked by configure
4915       and CI. Fixes bug 31442; bugfix on 0.3.5.4-alpha.
4917   o Minor bugfixes (sendme, code structure):
4918     - Rename the trunnel SENDME file definition from sendme.trunnel to
4919       sendme_cell.trunnel to avoid having twice sendme.{c|h} in the
4920       repository. Fixes bug 30769; bugfix on 0.4.1.1-alpha.
4922   o Minor bugfixes (statistics):
4923     - Stop removing the ed25519 signature if the extra info file is too
4924       big. If the signature data was removed, but the keyword was kept,
4925       this could result in an unparseable extra info file. Fixes bug
4926       30958; bugfix on 0.2.7.2-alpha.
4928   o Minor bugfixes (subsystems):
4929     - Make the subsystem init order match the subsystem module
4930       dependencies. Call windows process security APIs as early as
4931       possible. Initialize logging before network and time, so that
4932       network and time can use logging. Fixes bug 31615; bugfix
4933       on 0.4.0.1-alpha.
4935   o Minor bugfixes (testing):
4936     - Teach the util/socketpair_ersatz test to work correctly when we
4937       have no network stack configured. Fixes bug 30804; bugfix
4938       on 0.2.5.1-alpha.
4940   o Minor bugfixes (v2 single onion services):
4941     - Always retry v2 single onion service intro and rend circuits with
4942       a 3-hop path. Previously, v2 single onion services used a 3-hop
4943       path when rendezvous circuits were retried after a remote or
4944       delayed failure, but a 1-hop path for immediate retries. Fixes bug
4945       23818; bugfix on 0.2.9.3-alpha.
4947   o Minor bugfixes (v3 single onion services):
4948     - Always retry v3 single onion service intro and rend circuits with
4949       a 3-hop path. Previously, v3 single onion services used a 3-hop
4950       path when rend circuits were retried after a remote or delayed
4951       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
4952       bugfix on 0.3.2.1-alpha.
4953     - Make v3 single onion services fall back to a 3-hop intro, when all
4954       intro points are unreachable via a 1-hop path. Previously, v3
4955       single onion services failed when all intro nodes were unreachable
4956       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
4958   o Documentation:
4959     - Improve documentation in circuit padding subsystem. Patch by
4960       Tobias Pulls. Closes ticket 31113.
4961     - Include an example usage for IPv6 ORPort in our sample torrc.
4962       Closes ticket 31320; patch from Ali Raheem.
4963     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
4964       notice.html so that operators no longer have to host it
4965       themselves. Closes ticket 31089.
4967   o Removed features:
4968     - No longer include recommended package digests in votes as detailed
4969       in proposal 301. The RecommendedPackages torrc option is
4970       deprecated and will no longer have any effect. "package" lines
4971       will still be considered when computing consensuses for consensus
4972       methods that include them. (This change has no effect on the list
4973       of recommended Tor versions, which is still in use.) Closes
4974       ticket 29738.
4975     - Remove torctl.in from contrib/dist directory. Resolves
4976       ticket 30550.
4978   o Testing:
4979     - Run shellcheck for all non-third-party shell scripts that are
4980       shipped with Tor. Closes ticket 29533.
4981     - When checking shell scripts, ignore any user-created directories.
4982       Closes ticket 30967.
4984   o Code simplification and refactoring (config handling):
4985     - Extract our variable manipulation code from confparse.c to a new
4986       lower-level typedvar.h module. Closes ticket 30864.
4987     - Lower another layer of object management from confparse.c to a
4988       more general tool. Now typed structure members are accessible via
4989       an abstract type. Implements ticket 30914.
4990     - Move our backend logic for working with configuration and state
4991       files into a lower-level library, since it no longer depends on
4992       any tor-specific functionality. Closes ticket 31626.
4993     - Numerous simplifications in configuration-handling logic: remove
4994       duplicated macro definitions, replace magical names with flags,
4995       and refactor "TestingTorNetwork" to use the same default-option
4996       logic as the rest of Tor. Closes ticket 30935.
4997     - Replace our ad-hoc set of flags for configuration variables and
4998       configuration variable types with fine-grained orthogonal flags
4999       corresponding to the actual behavior we want. Closes ticket 31625.
5001   o Code simplification and refactoring (misc):
5002     - Eliminate some uses of lower-level control reply abstractions,
5003       primarily in the onion_helper functions. Closes ticket 30889.
5004     - Rework bootstrap tracking to use the new publish-subscribe
5005       subsystem. Closes ticket 29976.
5006     - Rewrite format_node_description() and router_get_verbose_nickname()
5007       to use strlcpy() and strlcat(). The previous implementation used
5008       memcpy() and pointer arithmetic, which was error-prone. Closes
5009       ticket 31545. This is CID 1452819.
5010     - Split extrainfo_dump_to_string() into smaller functions. Closes
5011       ticket 30956.
5012     - Use the ptrdiff_t type consistently for expressing variable
5013       offsets and pointer differences. Previously we incorrectly (but
5014       harmlessly) used int and sometimes off_t for these cases. Closes
5015       ticket 31532.
5016     - Use the subsystems mechanism to manage the main event loop code.
5017       Closes ticket 30806.
5018     - Various simplifications and minor improvements to the circuit
5019       padding machines. Patch by Tobias Pulls. Closes tickets 31112
5020       and 31098.
5022   o Documentation (hard-coded directories):
5023     - Improve the documentation for the DirAuthority and FallbackDir
5024       torrc options. Closes ticket 30955.
5026   o Documentation (tor.1 man page):
5027     - Fix typo in tor.1 man page: the option is "--help", not "-help".
5028       Fixes bug 31008; bugfix on 0.2.2.9-alpha.
5031 Changes in version 0.4.1.5 - 2019-08-20
5032   This is the first stable release in the 0.4.1.x series. This series
5033   adds experimental circuit-level padding, authenticated SENDME cells to
5034   defend against certain attacks, and several performance improvements
5035   to save on CPU consumption. It fixes bugs in bootstrapping and v3
5036   onion services. It also includes numerous smaller features and
5037   bugfixes on earlier versions.
5039   Per our support policy, we will support the 0.4.1.x series for nine
5040   months, or until three months after the release of a stable 0.4.2.x:
5041   whichever is longer. If you need longer-term support, please stick
5042   with 0.3.5.x, which will we plan to support until Feb 2022.
5044   Below are the changes since 0.4.1.4-rc. For a complete list of changes
5045   since 0.4.0.5, see the ReleaseNotes file.
5047   o Directory authority changes:
5048     - The directory authority "dizum" has a new IP address. Closes
5049       ticket 31406.
5051   o Minor features (circuit padding logging):
5052     - Demote noisy client-side warn logs about circuit padding to
5053       protocol warnings. Add additional log messages and circuit ID
5054       fields to help with bug 30992 and any other future issues.
5056   o Minor bugfixes (circuit padding negotiation):
5057     - Bump the circuit padding protocol version to explicitly signify
5058       that the HS setup machine support is finalized in 0.4.1.x-stable.
5059       This also means that 0.4.1.x-alpha clients will not negotiate
5060       padding with 0.4.1.x-stable relays, and 0.4.1.x-stable clients
5061       will not negotiate padding with 0.4.1.x-alpha relays (or 0.4.0.x
5062       relays). Fixes bug 31356; bugfix on 0.4.1.1-alpha.
5064   o Minor bugfixes (circuit padding):
5065     - Ignore non-padding cells on padding circuits. This addresses
5066       various warning messages from subsystems that were not expecting
5067       padding circuits. Fixes bug 30942; bugfix on 0.4.1.1-alpha.
5069   o Minor bugfixes (clock skew detection):
5070     - Don't believe clock skew results from NETINFO cells that appear to
5071       arrive before we sent the VERSIONS cells they are responding to.
5072       Previously, we would accept them up to 3 minutes "in the past".
5073       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
5075   o Minor bugfixes (compatibility, standards compliance):
5076     - Fix a bug that would invoke undefined behavior on certain
5077       operating systems when trying to asprintf() a string exactly
5078       INT_MAX bytes long. We don't believe this is exploitable, but it's
5079       better to fix it anyway. Fixes bug 31001; bugfix on 0.2.2.11-alpha.
5080       Found and fixed by Tobias Stoeckmann.
5082   o Minor bugfixes (compilation warning):
5083     - Fix a compilation warning on Windows about casting a function
5084       pointer for GetTickCount64(). Fixes bug 31374; bugfix
5085       on 0.2.9.1-alpha.
5087   o Minor bugfixes (compilation):
5088     - Avoid using labs() on time_t, which can cause compilation warnings
5089       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
5091   o Minor bugfixes (distribution):
5092     - Do not ship any temporary files found in the
5093       scripts/maint/practracker directory. Fixes bug 31311; bugfix
5094       on 0.4.1.1-alpha.
5096   o Testing (continuous integration):
5097     - In Travis, make stem log a controller trace to the console, and
5098       tail stem's tor log after failure. Closes ticket 30591.
5099     - In Travis, only run the stem tests that use a tor binary. Closes
5100       ticket 30694.
5103 Changes in version 0.4.1.4-rc - 2019-07-25
5104   Tor 0.4.1.4-rc fixes a few bugs from previous versions of Tor, and
5105   updates to a new list of fallback directories. If no new bugs are
5106   found, the next release in the 0.4.1.x serious should be stable.
5108   o Major bugfixes (circuit build, guard):
5109     - When considering upgrading circuits from "waiting for guard" to
5110       "open", always ignore circuits that are marked for close. Otherwise,
5111       we can end up in the situation where a subsystem is notified that
5112       a closing circuit has just opened, leading to undesirable
5113       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
5115   o Minor features (continuous integration):
5116     - Our Travis configuration now uses Chutney to run some network
5117       integration tests automatically. Closes ticket 29280.
5119   o Minor features (fallback directory list):
5120     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
5121       in December 2018 (of which ~122 were still functional), with a
5122       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
5123       in June 2019. Closes ticket 28795.
5125   o Minor bugfixes (circuit padding):
5126     - On relays, properly check that a padding machine is absent before
5127       logging a warning about it being absent. Fixes bug 30649; bugfix
5128       on 0.4.0.1-alpha.
5129     - Add two NULL checks in unreachable places to silence Coverity (CID
5130       144729 and 1447291) and better future-proof ourselves. Fixes bug
5131       31024; bugfix on 0.4.1.1-alpha.
5133   o Minor bugfixes (crash on exit):
5134     - Avoid a set of possible code paths that could try to use freed
5135       memory in routerlist_free() while Tor was exiting. Fixes bug
5136       31003; bugfix on 0.1.2.2-alpha.
5138   o Minor bugfixes (logging):
5139     - Fix a conflict between the flag used for messaging-domain log
5140       messages, and the LD_NO_MOCK testing flag. Fixes bug 31080; bugfix
5141       on 0.4.1.1-alpha.
5143   o Minor bugfixes (memory leaks):
5144     - Fix a trivial memory leak when parsing an invalid value from a
5145       download schedule in the configuration. Fixes bug 30894; bugfix
5146       on 0.3.4.1-alpha.
5148   o Code simplification and refactoring:
5149     - Remove some dead code from circpad_machine_remove_token() to fix
5150       some Coverity warnings (CID 1447298). Fixes bug 31027; bugfix
5151       on 0.4.1.1-alpha.
5154 Changes in version 0.4.1.3-alpha - 2019-06-25
5155   Tor 0.4.1.3-alpha resolves numerous bugs left over from the previous
5156   alpha, most of them from earlier release series.
5158   o Major bugfixes (Onion service reachability):
5159     - Properly clean up the introduction point map when circuits change
5160       purpose from onion service circuits to pathbias, measurement, or
5161       other circuit types. This should fix some service-side instances
5162       of introduction point failure. Fixes bug 29034; bugfix
5163       on 0.3.2.1-alpha.
5165   o Minor features (geoip):
5166     - Update geoip and geoip6 to the June 10 2019 Maxmind GeoLite2
5167       Country database. Closes ticket 30852.
5169   o Minor features (logging):
5170     - Give a more useful assertion failure message if we think we have
5171       minherit() but we fail to make a region non-inheritable. Give a
5172       compile-time warning if our support for minherit() is incomplete.
5173       Closes ticket 30686.
5175   o Minor bugfixes (circuit isolation):
5176     - Fix a logic error that prevented the SessionGroup sub-option from
5177       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
5179   o Minor bugfixes (continuous integration):
5180     - Allow the test-stem job to fail in Travis, because it sometimes
5181       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
5182     - Skip test_rebind on macOS in Travis, because it is unreliable on
5183       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
5184     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
5185       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
5187   o Minor bugfixes (directory authorities):
5188     - Stop crashing after parsing an unknown descriptor purpose
5189       annotation. We think this bug can only be triggered by modifying a
5190       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
5192   o Minor bugfixes (pluggable transports):
5193     - When running as a bridge with pluggable transports, always publish
5194       pluggable transport information in our extrainfo descriptor, even
5195       if ExtraInfoStatistics is 0. This information is needed by
5196       BridgeDB. Fixes bug 30956; bugfix on 0.4.1.1-alpha.
5198   o Documentation:
5199     - Mention URLs for Travis/Appveyor/Jenkins in ReleasingTor.md.
5200       Closes ticket 30630.
5203 Changes in version 0.4.1.2-alpha - 2019-06-06
5204   Tor 0.4.1.2-alpha resolves numerous bugs--some of them from the
5205   previous alpha, and some much older. It also contains minor testing
5206   improvements, and an improvement to the security of our authenticated
5207   SENDME implementation.
5209   o Major bugfixes (bridges):
5210     - Consider our directory information to have changed when our list
5211       of bridges changes. Previously, Tor would not re-compute the
5212       status of its directory information when bridges changed, and
5213       therefore would not realize that it was no longer able to build
5214       circuits. Fixes part of bug 29875.
5215     - Do not count previously configured working bridges towards our
5216       total of working bridges. Previously, when Tor's list of bridges
5217       changed, it would think that the old bridges were still usable,
5218       and delay fetching router descriptors for the new ones. Fixes part
5219       of bug 29875; bugfix on 0.3.0.1-alpha.
5221   o Major bugfixes (flow control, SENDME):
5222     - Decrement the stream-level package window after packaging a cell.
5223       Previously, it was done inside a log_debug() call, meaning that if
5224       debug logs were not enabled, the decrement would never happen, and
5225       thus the window would be out of sync with the other end point.
5226       Fixes bug 30628; bugfix on 0.4.1.1-alpha.
5228   o Major bugfixes (onion service reachability):
5229     - Properly clean up the introduction point map and associated state
5230       when circuits change purpose from onion service circuits to
5231       pathbias, measurement, or other circuit types. This may fix some
5232       instances of introduction point failure. Fixes bug 29034; bugfix
5233       on 0.3.2.1-alpha.
5235   o Minor features (authenticated SENDME):
5236     - Ensure that there is enough randomness on every circuit to prevent
5237       an attacker from successfully predicting the hashes they will need
5238       to include in authenticated SENDME cells. At a random interval, if
5239       we have not sent randomness already, we now leave some extra space
5240       at the end of a cell that we can fill with random bytes. Closes
5241       ticket 26846.
5243   o Minor features (continuous integration):
5244     - When running coverage builds on Travis, we now set
5245       TOR_TEST_RNG_SEED, to avoid RNG-based coverage differences. Part
5246       of ticket 28878.
5248   o Minor features (maintenance):
5249     - Add a new "make autostyle" target that developers can use to apply
5250       all automatic Tor style and consistency conversions to the
5251       codebase. Closes ticket 30539.
5253   o Minor features (testing):
5254     - The circuitpadding tests now use a reproducible RNG implementation,
5255       so that if a test fails, we can learn why. Part of ticket 28878.
5256     - Tor's tests now support an environment variable, TOR_TEST_RNG_SEED,
5257       to set the RNG seed for tests that use a reproducible RNG. Part of
5258       ticket 28878.
5259     - When running tests in coverage mode, take additional care to make
5260       our coverage deterministic, so that we can accurately track
5261       changes in code coverage. Closes ticket 30519.
5263   o Minor bugfixes (configuration, proxies):
5264     - Fix a bug that prevented us from supporting SOCKS5 proxies that
5265       want authentication along with configured (but unused!)
5266       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
5268   o Minor bugfixes (controller):
5269     - POSTDESCRIPTOR requests should work again. Previously, they were
5270       broken if a "purpose=" flag was specified. Fixes bug 30580; bugfix
5271       on 0.4.1.1-alpha.
5272     - Repair the HSFETCH command so that it works again. Previously, it
5273       expected a body when it shouldn't have. Fixes bug 30646; bugfix
5274       on 0.4.1.1-alpha.
5276   o Minor bugfixes (developer tooling):
5277     - Fix pre-push hook to allow fixup and squash commits when pushing
5278       to non-upstream git remote. Fixes bug 30286; bugfix
5279       on 0.4.0.1-alpha.
5281   o Minor bugfixes (directory authority):
5282     - Move the "bandwidth-file-headers" line in directory authority
5283       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
5284       on 0.3.5.1-alpha.
5286   o Minor bugfixes (NetBSD):
5287     - Fix usage of minherit() on NetBSD and other platforms that define
5288       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
5289       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
5291   o Minor bugfixes (out-of-memory handler):
5292     - When purging the DNS cache because of an out-of-memory condition,
5293       try purging just the older entries at first. Previously, we would
5294       always purge the whole thing. Fixes bug 29617; bugfix
5295       on 0.3.5.1-alpha.
5297   o Minor bugfixes (portability):
5298     - Avoid crashing in our tor_vasprintf() implementation on systems
5299       that define neither vasprintf() nor _vscprintf(). (This bug has
5300       been here long enough that we question whether people are running
5301       Tor on such systems, but we're applying the fix out of caution.)
5302       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
5303       Tobias Stoeckmann.
5305   o Minor bugfixes (shutdown, libevent, memory safety):
5306     - Avoid use-after-free bugs when shutting down, by making sure that
5307       we shut down libevent only after shutting down all of its users.
5308       We believe these are harmless in practice, since they only occur
5309       on the shutdown path, and do not involve any attacker-controlled
5310       data. Fixes bug 30629; bugfix on 0.4.1.1-alpha.
5312   o Minor bugfixes (static analysis):
5313     - Fix several spurious Coverity warnings about the unit tests, to
5314       lower our chances of missing real warnings in the future. Fixes
5315       bug 30150; bugfix on 0.3.5.1-alpha and various other Tor versions.
5317   o Testing:
5318     - Specify torrc paths (with empty files) when launching tor in
5319       integration tests; refrain from reading user and system torrcs.
5320       Resolves issue 29702.
5323 Changes in version 0.4.1.1-alpha - 2019-05-22
5324   This is the first alpha in the 0.4.1.x series. It introduces
5325   lightweight circuit padding to make some onion-service circuits harder
5326   to distinguish, includes a new "authenticated SENDME" feature to make
5327   certain denial-of-service attacks more difficult, and improves
5328   performance in several areas.
5330   o Major features (circuit padding):
5331     - Onion service clients now add padding cells at the start of their
5332       INTRODUCE and RENDEZVOUS circuits, to make those circuits' traffic
5333       look more like general purpose Exit traffic. The overhead for this
5334       is 2 extra cells in each direction for RENDEZVOUS circuits, and 1
5335       extra upstream cell and 10 downstream cells for INTRODUCE
5336       circuits. This feature is only enabled when also supported by the
5337       circuit's middle node. (Clients may specify fixed middle nodes
5338       with the MiddleNodes option, and may force-disable this feature
5339       with the CircuitPadding option.) Closes ticket 28634.
5341   o Major features (code organization):
5342     - Tor now includes a generic publish-subscribe message-passing
5343       subsystem that we can use to organize intermodule dependencies. We
5344       hope to use this to reduce dependencies between modules that don't
5345       need to be related, and to generally simplify our codebase. Closes
5346       ticket 28226.
5348   o Major features (controller protocol):
5349     - Controller commands are now parsed using a generalized parsing
5350       subsystem. Previously, each controller command was responsible for
5351       parsing its own input, which led to strange inconsistencies.
5352       Closes ticket 30091.
5354   o Major features (flow control):
5355     - Implement authenticated SENDMEs as detailed in proposal 289. A
5356       SENDME cell now includes the digest of the traffic that it
5357       acknowledges, so that once an end point receives the SENDME, it
5358       can confirm the other side's knowledge of the previous cells that
5359       were sent, and prevent certain types of denial-of-service attacks.
5360       This behavior is controlled by two new consensus parameters: see
5361       the proposal for more details. Fixes ticket 26288.
5363   o Major features (performance):
5364     - Our node selection algorithm now excludes nodes in linear time.
5365       Previously, the algorithm was quadratic, which could slow down
5366       heavily used onion services. Closes ticket 30307.
5368   o Major features (performance, RNG):
5369     - Tor now constructs a fast secure pseudorandom number generator for
5370       each thread, to use when performance is critical. This PRNG is
5371       based on AES-CTR, using a buffering construction similar to
5372       libottery and the (newer) OpenBSD arc4random() code. It
5373       outperforms OpenSSL 1.1.1a's CSPRNG by roughly a factor of 100 for
5374       small outputs. Although we believe it to be cryptographically
5375       strong, we are only using it when necessary for performance.
5376       Implements tickets 29023 and 29536.
5378   o Major bugfixes (onion service v3):
5379     - Fix an unreachable bug in which an introduction point could try to
5380       send an INTRODUCE_ACK with a status code that Trunnel would refuse
5381       to encode, leading the relay to assert(). We've consolidated the
5382       ABI values into Trunnel now. Fixes bug 30454; bugfix
5383       on 0.3.0.1-alpha.
5384     - Clients can now handle unknown status codes from INTRODUCE_ACK
5385       cells. (The NACK behavior will stay the same.) This will allow us
5386       to extend status codes in the future without breaking the normal
5387       client behavior. Fixes another part of bug 30454; bugfix
5388       on 0.3.0.1-alpha.
5390   o Minor features (circuit padding):
5391     - We now use a fast PRNG when scheduling circuit padding. Part of
5392       ticket 28636.
5393     - Allow the padding machine designer to pick the edges of their
5394       histogram instead of trying to compute them automatically using an
5395       exponential formula. Resolves some undefined behavior in the case
5396       of small histograms and allows greater flexibility on machine
5397       design. Closes ticket 29298; bugfix on 0.4.0.1-alpha.
5398     - Allow circuit padding machines to hold a circuit open until they
5399       are done padding it. Closes ticket 28780.
5401   o Minor features (compile-time modules):
5402     - Add a "--list-modules" command to print a list of which compile-
5403       time modules are enabled. Closes ticket 30452.
5405   o Minor features (continuous integration):
5406     - Remove sudo configuration lines from .travis.yml as they are no
5407       longer needed with current Travis build environment. Resolves
5408       issue 30213.
5409     - In Travis, show stem's tor log after failure. Closes ticket 30234.
5411   o Minor features (controller):
5412     - Add onion service version 3 support to the HSFETCH command.
5413       Previously, only version 2 onion services were supported. Closes
5414       ticket 25417. Patch by Neel Chauhan.
5416   o Minor features (debugging):
5417     - Introduce tor_assertf() and tor_assertf_nonfatal() to enable
5418       logging of additional information during assert failure. Now we
5419       can use format strings to include information for trouble
5420       shooting. Resolves ticket 29662.
5422   o Minor features (defense in depth):
5423     - In smartlist_remove_keeporder(), set unused pointers to NULL, in
5424       case a bug causes them to be used later. Closes ticket 30176.
5425       Patch from Tobias Stoeckmann.
5426     - Tor now uses a cryptographically strong PRNG even for decisions
5427       that we do not believe are security-sensitive. Previously, for
5428       performance reasons, we had used a trivially predictable linear
5429       congruential generator algorithm for certain load-balancing and
5430       statistical sampling decisions. Now we use our fast RNG in those
5431       cases. Closes ticket 29542.
5433   o Minor features (developer tools):
5434     - Tor's "practracker" test script now checks for files and functions
5435       that seem too long and complicated. Existing overlong functions
5436       and files are accepted for now, but should eventually be
5437       refactored. Closes ticket 29221.
5438     - Add some scripts used for git maintenance to scripts/git. Closes
5439       ticket 29391.
5440     - Call practracker from pre-push and pre-commit git hooks to let
5441       developers know if they made any code style violations. Closes
5442       ticket 30051.
5443     - Add a script to check that each header has a well-formed and
5444       unique guard macro. Closes ticket 29756.
5446   o Minor features (geoip):
5447     - Update geoip and geoip6 to the May 13 2019 Maxmind GeoLite2
5448       Country database. Closes ticket 30522.
5450   o Minor features (HTTP tunnel):
5451     - Return an informative web page when the HTTPTunnelPort is used as
5452       an HTTP proxy. Closes ticket 27821, patch by "eighthave".
5454   o Minor features (IPv6, v3 onion services):
5455     - Make v3 onion services put IPv6 addresses in service descriptors.
5456       Before this change, service descriptors only contained IPv4
5457       addresses. Implements 26992.
5459   o Minor features (modularity):
5460     - The "--disable-module-dirauth" compile-time option now disables
5461       even more dirauth-only code. Closes ticket 30345.
5463   o Minor features (performance):
5464     - Use OpenSSL's implementations of SHA3 when available (in OpenSSL
5465       1.1.1 and later), since they tend to be faster than tiny-keccak.
5466       Closes ticket 28837.
5468   o Minor features (testing):
5469     - Tor's unit test code now contains helper functions to replace the
5470       PRNG with a deterministic or reproducible version for testing.
5471       Previously, various tests implemented this in various ways.
5472       Implements ticket 29732.
5473     - We now have a script, cov-test-determinism.sh, to identify places
5474       where our unit test coverage has become nondeterministic. Closes
5475       ticket 29436.
5476     - Check that representative subsets of values of `int` and `unsigned
5477       int` can be represented by `void *`. Resolves issue 29537.
5479   o Minor bugfixes (bridge authority):
5480     - Bridge authorities now set bridges as running or non-running when
5481       about to dump their status to a file. Previously, they set bridges
5482       as running in response to a GETINFO command, but those shouldn't
5483       modify data structures. Fixes bug 24490; bugfix on 0.2.0.13-alpha.
5484       Patch by Neel Chauhan.
5486   o Minor bugfixes (channel padding statistics):
5487     - Channel padding write totals and padding-enabled totals are now
5488       counted properly in relay extrainfo descriptors. Fixes bug 29231;
5489       bugfix on 0.3.1.1-alpha.
5491   o Minor bugfixes (circuit padding):
5492     - Add a "CircuitPadding" torrc option to disable circuit padding.
5493       Fixes bug 28693; bugfix on 0.4.0.1-alpha.
5494     - Allow circuit padding machines to specify that they do not
5495       contribute much overhead, and provide consensus flags and torrc
5496       options to force clients to only use these low overhead machines.
5497       Fixes bug 29203; bugfix on 0.4.0.1-alpha.
5498     - Provide a consensus parameter to fully disable circuit padding, to
5499       be used in emergency network overload situations. Fixes bug 30173;
5500       bugfix on 0.4.0.1-alpha.
5501     - The circuit padding subsystem will no longer schedule padding if
5502       dormant mode is enabled. Fixes bug 28636; bugfix on 0.4.0.1-alpha.
5503     - Inspect a circuit-level cell queue before sending padding, to
5504       avoid sending padding while too much data is already queued. Fixes
5505       bug 29204; bugfix on 0.4.0.1-alpha.
5506     - Avoid calling monotime_absolute_usec() in circuit padding machines
5507       that do not use token removal or circuit RTT estimation. Fixes bug
5508       29085; bugfix on 0.4.0.1-alpha.
5510   o Minor bugfixes (compilation, unusual configurations):
5511     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
5512       due to missing declarations of abort(), and prevent other such
5513       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
5515   o Minor bugfixes (controller protocol):
5516     - Teach the controller parser to distinguish an object preceded by
5517       an argument list from one without. Previously, it couldn't
5518       distinguish an argument list from the first line of a multiline
5519       object. Fixes bug 29984; bugfix on 0.2.3.8-alpha.
5521   o Minor bugfixes (directory authority, ipv6):
5522     - Directory authorities with IPv6 support now always mark themselves
5523       as reachable via IPv6. Fixes bug 24338; bugfix on 0.2.4.1-alpha.
5524       Patch by Neel Chauhan.
5526   o Minor bugfixes (documentation):
5527     - Improve the documentation for using MapAddress with ".exit". Fixes
5528       bug 30109; bugfix on 0.1.0.1-rc.
5529     - Improve the monotonic time module and function documentation to
5530       explain what "monotonic" actually means, and document some results
5531       that have surprised people. Fixes bug 29640; bugfix
5532       on 0.2.9.1-alpha.
5533     - Use proper formatting when providing an example on quoting options
5534       that contain whitespace. Fixes bug 29635; bugfix on 0.2.3.18-rc.
5536   o Minor bugfixes (logging):
5537     - Do not log a warning when running with an OpenSSL version other
5538       than the one Tor was compiled with, if the two versions should be
5539       compatible. Previously, we would warn whenever the version was
5540       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
5541     - Warn operators when the MyFamily option is set but ContactInfo is
5542       missing, as the latter should be set too. Fixes bug 25110; bugfix
5543       on 0.3.3.1-alpha.
5545   o Minor bugfixes (memory leak):
5546     - Avoid a minor memory leak that could occur on relays when failing
5547       to create a "keys" directory. Fixes bug 30148; bugfix
5548       on 0.3.3.1-alpha.
5550   o Minor bugfixes (onion services):
5551     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
5552       implemenation) when failing to load an onion service client
5553       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
5554     - When refusing to launch a controller's HSFETCH request because of
5555       rate-limiting, respond to the controller with a new response,
5556       "QUERY_RATE_LIMITED". Previously, we would log QUERY_NO_HSDIR for
5557       this case. Fixes bug 28269; bugfix on 0.3.1.1-alpha. Patch by
5558       Neel Chauhan.
5559     - When relaunching a circuit to a rendezvous service, mark the
5560       circuit as needing high-uptime routers as appropriate. Fixes bug
5561       17357; bugfix on 0.1.0.1-rc. Patch by Neel Chauhan.
5562     - Stop ignoring IPv6 link specifiers sent to v3 onion services.
5563       (IPv6 support for v3 onion services is still incomplete: see
5564       ticket 23493 for details.) Fixes bug 23588; bugfix on
5565       0.3.2.1-alpha. Patch by Neel Chauhan.
5567   o Minor bugfixes (onion services, performance):
5568     - When building circuits to onion services, call tor_addr_parse()
5569       less often. Previously, we called tor_addr_parse() in
5570       circuit_is_acceptable() even if its output wasn't used. This
5571       change should improve performance when building circuits. Fixes
5572       bug 22210; bugfix on 0.2.8.12. Patch by Neel Chauhan.
5574   o Minor bugfixes (performance):
5575     - When checking whether a node is a bridge, use a fast check to make
5576       sure that its identity is set. Previously, we used a constant-time
5577       check, which is not necessary in this case. Fixes bug 30308;
5578       bugfix on 0.3.5.1-alpha.
5580   o Minor bugfixes (pluggable transports):
5581     - Tor now sets TOR_PT_EXIT_ON_STDIN_CLOSE=1 for client transports as
5582       well as servers. Fixes bug 25614; bugfix on 0.2.7.1-alpha.
5584   o Minor bugfixes (probability distributions):
5585     - Refactor and improve parts of the probability distribution code
5586       that made Coverity complain. Fixes bug 29805; bugfix
5587       on 0.4.0.1-alpha.
5589   o Minor bugfixes (python):
5590     - Stop assuming that /usr/bin/python3 exists. For scripts that work
5591       with python2, use /usr/bin/python. Otherwise, use /usr/bin/env
5592       python3. Fixes bug 29913; bugfix on 0.2.5.3-alpha.
5594   o Minor bugfixes (relay):
5595     - When running as a relay, if IPv6Exit is set to 1 while ExitRelay
5596       is auto, act as if ExitRelay is 1. Previously, we would ignore
5597       IPv6Exit if ExitRelay was 0 or auto. Fixes bug 29613; bugfix on
5598       0.3.5.1-alpha. Patch by Neel Chauhan.
5600   o Minor bugfixes (stats):
5601     - When ExtraInfoStatistics is 0, stop including bandwidth usage
5602       statistics, GeoIPFile hashes, ServerTransportPlugin lines, and
5603       bridge statistics by country in extra-info documents. Fixes bug
5604       29018; bugfix on 0.2.4.1-alpha.
5606   o Minor bugfixes (testing):
5607     - Call setrlimit() to disable core dumps in test_bt_cl.c. Previously
5608       we used `ulimit -c` in test_bt.sh, which violates POSIX shell
5609       compatibility. Fixes bug 29061; bugfix on 0.3.5.1-alpha.
5610     - Fix some incorrect code in the v3 onion service unit tests. Fixes
5611       bug 29243; bugfix on 0.3.2.1-alpha.
5612     - In the "routerkeys/*" tests, check the return values of mkdir()
5613       for possible failures. Fixes bug 29939; bugfix on 0.2.7.2-alpha.
5614       Found by Coverity as CID 1444254.
5615     - Split test_utils_general() into several smaller test functions.
5616       This makes it easier to perform resource deallocation on assert
5617       failure, and fixes Coverity warnings CID 1444117 and CID 1444118.
5618       Fixes bug 29823; bugfix on 0.2.9.1-alpha.
5620   o Minor bugfixes (tor-resolve):
5621     - Fix a memory leak in tor-resolve that could happen if Tor gave it
5622       a malformed SOCKS response. (Memory leaks in tor-resolve don't
5623       actually matter, but it's good to fix them anyway.) Fixes bug
5624       30151; bugfix on 0.4.0.1-alpha.
5626   o Code simplification and refactoring:
5627     - Abstract out the low-level formatting of replies on the control
5628       port. Implements ticket 30007.
5629     - Add several assertions in an attempt to fix some Coverity
5630       warnings. Closes ticket 30149.
5631     - Introduce a connection_dir_buf_add() helper function that checks
5632       for compress_state of dir_connection_t and automatically writes a
5633       string to directory connection with or without compression.
5634       Resolves issue 28816.
5635     - Make the base32_decode() API return the number of bytes written,
5636       for consistency with base64_decode(). Closes ticket 28913.
5637     - Move most relay-only periodic events out of mainloop.c into the
5638       relay subsystem. Closes ticket 30414.
5639     - Refactor and encapsulate parts of the codebase that manipulate
5640       crypt_path_t objects. Resolves issue 30236.
5641     - Refactor several places in our code that Coverity incorrectly
5642       believed might have memory leaks. Closes ticket 30147.
5643     - Remove redundant return values in crypto_format, and the
5644       associated return value checks elsewhere in the code. Make the
5645       implementations in crypto_format consistent, and remove redundant
5646       code. Resolves ticket 29660.
5647     - Rename tor_mem_is_zero() to fast_mem_is_zero(), to emphasize that
5648       it is not a constant-time function. Closes ticket 30309.
5649     - Replace hs_desc_link_specifier_t with link_specifier_t, and remove
5650       all hs_desc_link_specifier_t-specific code. Fixes bug 22781;
5651       bugfix on 0.3.2.1-alpha.
5652     - Simplify v3 onion service link specifier handling code. Fixes bug
5653       23576; bugfix on 0.3.2.1-alpha.
5654     - Split crypto_digest.c into NSS code, OpenSSL code, and shared
5655       code. Resolves ticket 29108.
5656     - Split control.c into several submodules, in preparation for
5657       distributing its current responsibilities throughout the codebase.
5658       Closes ticket 29894.
5659     - Start to move responsibility for knowing about periodic events to
5660       the appropriate subsystems, so that the mainloop doesn't need to
5661       know all the periodic events in the rest of the codebase.
5662       Implements tickets 30293 and 30294.
5664   o Documentation:
5665     - Document how to find git commits and tags for bug fixes in
5666       CodingStandards.md. Update some file documentation. Closes
5667       ticket 30261.
5669   o Removed features:
5670     - Remove the linux-tor-prio.sh script from contrib/operator-tools
5671       directory. Resolves issue 29434.
5672     - Remove the obsolete OpenSUSE initscript. Resolves issue 30076.
5673     - Remove the obsolete script at contrib/dist/tor.sh.in. Resolves
5674       issue 30075.
5676   o Code simplification and refactoring (shell scripts):
5677     - Clean up many of our shell scripts to fix shellcheck warnings.
5678       These include autogen.sh (ticket 26069), test_keygen.sh (ticket
5679       29062), test_switch_id.sh (ticket 29065), test_rebind.sh (ticket
5680       29063), src/test/fuzz/minimize.sh (ticket 30079), test_rust.sh
5681       (ticket 29064), torify (ticket 29070), asciidoc-helper.sh (29926),
5682       fuzz_multi.sh (30077), fuzz_static_testcases.sh (ticket 29059),
5683       nagios-check-tor-authority-cert (ticket 29071),
5684       src/test/fuzz/fixup_filenames.sh (ticket 30078), test-network.sh
5685       (ticket 29060), test_key_expiration.sh (ticket 30002),
5686       zero_length_keys.sh (ticket 29068), and test_workqueue_*.sh
5687       (ticket 29067).
5689   o Testing (chutney):
5690     - In "make test-network-all", test IPv6-only v3 single onion
5691       services, using the chutney network single-onion-v23-ipv6-md.
5692       Closes ticket 27251.
5695 Changes in version 0.4.0.5 - 2019-05-02
5696   This is the first stable release in the 0.4.0.x series. It contains
5697   improvements for power management and bootstrap reporting, as well as
5698   preliminary backend support for circuit padding to prevent some kinds
5699   of traffic analysis. It also continues our work in refactoring Tor for
5700   long-term maintainability.
5702   Per our support policy, we will support the 0.4.0.x series for nine
5703   months, or until three months after the release of a stable 0.4.1.x:
5704   whichever is longer. If you need longer-term support, please stick
5705   with 0.3.5.x, which will we plan to support until Feb 2022.
5707   Below are the changes since 0.4.0.4-rc. For a complete list of changes
5708   since 0.3.5.7, see the ReleaseNotes file.
5710   o Minor features (continuous integration):
5711     - In Travis, tell timelimit to use stem's backtrace signals, and
5712       launch python directly from timelimit, so python receives the
5713       signals from timelimit, rather than make. Closes ticket 30117.
5715   o Minor features (diagnostic):
5716     - Add more diagnostic log messages in an attempt to solve the issue
5717       of NUL bytes appearing in a microdescriptor cache. Related to
5718       ticket 28223.
5720   o Minor features (testing):
5721     - Use the approx_time() function when setting the "Expires" header
5722       in directory replies, to make them more testable. Needed for
5723       ticket 30001.
5725   o Minor bugfixes (rust):
5726     - Abort on panic in all build profiles, instead of potentially
5727       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
5729   o Minor bugfixes (shellcheck):
5730     - Look for scripts in their correct locations during "make
5731       shellcheck". Previously we had looked in the wrong place during
5732       out-of-tree builds. Fixes bug 30263; bugfix on 0.4.0.1-alpha.
5734   o Minor bugfixes (testing):
5735     - Check the time in the "Expires" header using approx_time(). Fixes
5736       bug 30001; bugfix on 0.4.0.4-rc.
5738   o Minor bugfixes (UI):
5739     - Lower log level of unlink() errors during bootstrap. Fixes bug
5740       29930; bugfix on 0.4.0.1-alpha.
5743 Changes in version 0.4.0.4-rc - 2019-04-11
5744   Tor 0.4.0.4-rc is the first release candidate in its series; it fixes
5745   several bugs from earlier versions, including some that had affected
5746   stability, and one that prevented relays from working with NSS.
5748   o Major bugfixes (NSS, relay):
5749     - When running with NSS, disable TLS 1.2 ciphersuites that use
5750       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
5751       these ciphersuites don't work -- which caused relays to fail to
5752       handshake with one another when these ciphersuites were enabled.
5753       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
5755   o Minor features (bandwidth authority):
5756     - Make bandwidth authorities ignore relays that are reported in the
5757       bandwidth file with the flag "vote=0". This change allows us to
5758       report unmeasured relays for diagnostic reasons without including
5759       their bandwidth in the bandwidth authorities' vote. Closes
5760       ticket 29806.
5761     - When a directory authority is using a bandwidth file to obtain the
5762       bandwidth values that will be included in the next vote, serve
5763       this bandwidth file at /tor/status-vote/next/bandwidth. Closes
5764       ticket 21377.
5766   o Minor features (circuit padding):
5767     - Stop warning about undefined behavior in the probability
5768       distribution tests. Float division by zero may technically be
5769       undefined behavior in C, but it's well defined in IEEE 754.
5770       Partial backport of 29298. Closes ticket 29527; bugfix
5771       on 0.4.0.1-alpha.
5773   o Minor features (continuous integration):
5774     - On Travis Rust builds, cleanup Rust registry and refrain from
5775       caching the "target/" directory to speed up builds. Resolves
5776       issue 29962.
5778   o Minor features (dormant mode):
5779     - Add a DormantCanceledByStartup option to tell Tor that it should
5780       treat a startup event as cancelling any previous dormant state.
5781       Integrators should use this option with caution: it should only be
5782       used if Tor is being started because of something that the user
5783       did, and not if Tor is being automatically started in the
5784       background. Closes ticket 29357.
5786   o Minor features (geoip):
5787     - Update geoip and geoip6 to the April 2 2019 Maxmind GeoLite2
5788       Country database. Closes ticket 29992.
5790   o Minor features (NSS, diagnostic):
5791     - Try to log an error from NSS (if there is any) and a more useful
5792       description of our situation if we are using NSS and a call to
5793       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
5795   o Minor bugfixes (security):
5796     - Fix a potential double free bug when reading huge bandwidth files.
5797       The issue is not exploitable in the current Tor network because
5798       the vulnerable code is only reached when directory authorities
5799       read bandwidth files, but bandwidth files come from a trusted
5800       source (usually the authorities themselves). Furthermore, the
5801       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
5802       which are not used by any of the current authorities. Fixes bug
5803       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
5804       Tobias Stoeckmann.
5805     - Verify in more places that we are not about to create a buffer
5806       with more than INT_MAX bytes, to avoid possible OOB access in the
5807       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
5808       fixed by Tobias Stoeckmann.
5810   o Minor bugfix (continuous integration):
5811     - Reset coverage state on disk after Travis CI has finished. This
5812       should prevent future coverage merge errors from causing the test
5813       suite for the "process" subsystem to fail. The process subsystem
5814       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
5815       on 0.2.9.15.
5816     - Terminate test-stem if it takes more than 9.5 minutes to run.
5817       (Travis terminates the job after 10 minutes of no output.)
5818       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
5820   o Minor bugfixes (bootstrap reporting):
5821     - During bootstrap reporting, correctly distinguish pluggable
5822       transports from plain proxies. Fixes bug 28925; bugfix
5823       on 0.4.0.1-alpha.
5825   o Minor bugfixes (C correctness):
5826     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
5827       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
5828       CID 1444119.
5830   o Minor bugfixes (circuitpadding testing):
5831     - Minor tweaks to avoid rare test failures related to timers and
5832       monotonic time. Fixes bug 29500; bugfix on 0.4.0.1-alpha.
5834   o Minor bugfixes (directory authorities):
5835     - Actually include the bandwidth-file-digest line in directory
5836       authority votes. Fixes bug 29959; bugfix on 0.4.0.2-alpha.
5838   o Minor bugfixes (logging):
5839     - On Windows, when errors cause us to reload a consensus from disk,
5840       tell the user that we are retrying at log level "notice".
5841       Previously we only logged this information at "info", which was
5842       confusing because the errors themselves were logged at "warning".
5843       Improves previous fix for 28614. Fixes bug 30004; bugfix
5844       on 0.4.0.2-alpha.
5846   o Minor bugfixes (pluggable transports):
5847     - Restore old behavior when it comes to discovering the path of a
5848       given Pluggable Transport executable file. A change in
5849       0.4.0.1-alpha had broken this behavior on paths containing a
5850       space. Fixes bug 29874; bugfix on 0.4.0.1-alpha.
5852   o Minor bugfixes (testing):
5853     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
5854       recent test-network.sh to use new chutney features in CI. Fixes
5855       bug 29703; bugfix on 0.2.9.1-alpha.
5856     - Fix a test failure on Windows caused by an unexpected "BUG"
5857       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
5858       on 0.2.9.3-alpha.
5860   o Minor bugfixes (TLS protocol):
5861     - When classifying a client's selection of TLS ciphers, if the
5862       client ciphers are not yet available, do not cache the result.
5863       Previously, we had cached the unavailability of the cipher list
5864       and never looked again, which in turn led us to assume that the
5865       client only supported the ancient V1 link protocol. This, in turn,
5866       was causing Stem integration tests to stall in some cases. Fixes
5867       bug 30021; bugfix on 0.2.4.8-alpha.
5869   o Code simplification and refactoring:
5870     - Introduce a connection_dir_buf_add() helper function that detects
5871       whether compression is in use, and adds a string accordingly.
5872       Resolves issue 28816.
5873     - Refactor handle_get_next_bandwidth() to use
5874       connection_dir_buf_add(). Implements ticket 29897.
5876   o Documentation:
5877     - Clarify that Tor performs stream isolation among *Port listeners
5878       by default. Resolves issue 29121.
5881 Changes in version 0.4.0.3-alpha - 2019-03-22
5882   Tor 0.4.0.3-alpha is the third in its series; it fixes several small
5883   bugs from earlier versions.
5885   o Minor features (address selection):
5886     - Treat the subnet 100.64.0.0/10 as public for some purposes;
5887       private for others. This subnet is the RFC 6598 (Carrier Grade
5888       NAT) IP range, and is deployed by many ISPs as an alternative to
5889       RFC 1918 that does not break existing internal networks. Tor now
5890       blocks SOCKS and control ports on these addresses and warns users
5891       if client ports or ExtORPorts are listening on a RFC 6598 address.
5892       Closes ticket 28525. Patch by Neel Chauhan.
5894   o Minor features (geoip):
5895     - Update geoip and geoip6 to the March 4 2019 Maxmind GeoLite2
5896       Country database. Closes ticket 29666.
5898   o Minor bugfixes (circuitpadding):
5899     - Inspect the circuit-level cell queue before sending padding, to
5900       avoid sending padding when too much data is queued. Fixes bug
5901       29204; bugfix on 0.4.0.1-alpha.
5903   o Minor bugfixes (logging):
5904     - Correct a misleading error message when IPv4Only or IPv6Only is
5905       used but the resolved address can not be interpreted as an address
5906       of the specified IP version. Fixes bug 13221; bugfix on
5907       0.2.3.9-alpha. Patch from Kris Katterjohn.
5908     - Log the correct port number for listening sockets when "auto" is
5909       used to let Tor pick the port number. Previously, port 0 was
5910       logged instead of the actual port number. Fixes bug 29144; bugfix
5911       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
5912     - Stop logging a BUG() warning when Tor is waiting for exit
5913       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
5915   o Minor bugfixes (memory management):
5916     - Refactor the shared random state's memory management so that it
5917       actually takes ownership of the shared random value pointers.
5918       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
5920   o Minor bugfixes (memory management, testing):
5921     - Stop leaking parts of the shared random state in the shared-random
5922       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
5924   o Minor bugfixes (pluggable transports):
5925     - Fix an assertion failure crash bug when a pluggable transport is
5926       terminated during the bootstrap phase. Fixes bug 29562; bugfix
5927       on 0.4.0.1-alpha.
5929   o Minor bugfixes (Rust, protover):
5930     - Add a missing "Padding" value to the Rust implementation of
5931       protover. Fixes bug 29631; bugfix on 0.4.0.1-alpha.
5933   o Minor bugfixes (single onion services):
5934     - Allow connections to single onion services to remain idle without
5935       being disconnected. Previously, relays acting as rendezvous points
5936       for single onion services were mistakenly closing idle rendezvous
5937       circuits after 60 seconds, thinking that they were unused
5938       directory-fetching circuits that had served their purpose. Fixes
5939       bug 29665; bugfix on 0.2.1.26.
5941   o Minor bugfixes (stats):
5942     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
5943       relay and bridge extra-info documents. Fixes bug 29017; bugfix
5944       on 0.3.1.1-alpha.
5946   o Minor bugfixes (testing):
5947     - Downgrade some LOG_ERR messages in the address/* tests to
5948       warnings. The LOG_ERR messages were occurring when we had no
5949       configured network. We were failing the unit tests, because we
5950       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
5951       29530; bugfix on 0.3.5.8.
5952     - Fix our gcov wrapper script to look for object files at the
5953       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
5954     - Decrease the false positive rate of stochastic probability
5955       distribution tests. Fixes bug 29693; bugfix on 0.4.0.1-alpha.
5957   o Minor bugfixes (Windows, CI):
5958     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
5959       Windows Server 2012 R2 job. The remaining 2 jobs still provide
5960       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
5961       fast_finish, so failed jobs terminate the build immediately. Fixes
5962       bug 29601; bugfix on 0.3.5.4-alpha.
5965 Changes in version 0.3.5.8 - 2019-02-21
5966   Tor 0.3.5.8 backports several fixes from later releases, including fixes
5967   for an annoying SOCKS-parsing bug that affected users in earlier 0.3.5.x
5968   releases.
5970   It also includes a fix for a medium-severity security bug affecting Tor
5971   0.3.2.1-alpha and later. All Tor instances running an affected release
5972   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
5974   o Major bugfixes (cell scheduler, KIST, security):
5975     - Make KIST consider the outbuf length when computing what it can
5976       put in the outbuf. Previously, KIST acted as though the outbuf
5977       were empty, which could lead to the outbuf becoming too full. It
5978       is possible that an attacker could exploit this bug to cause a Tor
5979       client or relay to run out of memory and crash. Fixes bug 29168;
5980       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
5981       TROVE-2019-001 and CVE-2019-8955.
5983   o Major bugfixes (networking, backport from 0.4.0.2-alpha):
5984     - Gracefully handle empty username/password fields in SOCKS5
5985       username/password auth message and allow SOCKS5 handshake to
5986       continue. Previously, we had rejected these handshakes, breaking
5987       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
5989   o Minor features (compilation, backport from 0.4.0.2-alpha):
5990     - Compile correctly when OpenSSL is built with engine support
5991       disabled, or with deprecated APIs disabled. Closes ticket 29026.
5992       Patches from "Mangix".
5994   o Minor features (geoip):
5995     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
5996       Country database. Closes ticket 29478.
5998   o Minor features (testing, backport from 0.4.0.2-alpha):
5999     - Treat all unexpected ERR and BUG messages as test failures. Closes
6000       ticket 28668.
6002   o Minor bugfixes (onion service v3, client, backport from 0.4.0.1-alpha):
6003     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
6004       connection waiting for a descriptor that we actually have in the
6005       cache. It turns out that this can actually happen, though it is
6006       rare. Now, tor will recover and retry the descriptor. Fixes bug
6007       28669; bugfix on 0.3.2.4-alpha.
6009   o Minor bugfixes (IPv6, backport from 0.4.0.1-alpha):
6010     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
6011       IPv6 socket was bound using an address family of AF_INET instead
6012       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
6013       Kris Katterjohn.
6015   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
6016     - Update Cargo.lock file to match the version made by the latest
6017       version of Rust, so that "make distcheck" will pass again. Fixes
6018       bug 29244; bugfix on 0.3.3.4-alpha.
6020   o Minor bugfixes (client, clock skew, backport from 0.4.0.1-alpha):
6021     - Select guards even if the consensus has expired, as long as the
6022       consensus is still reasonably live. Fixes bug 24661; bugfix
6023       on 0.3.0.1-alpha.
6025   o Minor bugfixes (compilation, backport from 0.4.0.1-alpha):
6026     - Compile correctly on OpenBSD; previously, we were missing some
6027       headers required in order to detect it properly. Fixes bug 28938;
6028       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
6030   o Minor bugfixes (documentation, backport from 0.4.0.2-alpha):
6031     - Describe the contents of the v3 onion service client authorization
6032       files correctly: They hold public keys, not private keys. Fixes
6033       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
6035   o Minor bugfixes (logging, backport from 0.4.0.1-alpha):
6036     - Rework rep_hist_log_link_protocol_counts() to iterate through all
6037       link protocol versions when logging incoming/outgoing connection
6038       counts. Tor no longer skips version 5, and we won't have to
6039       remember to update this function when new link protocol version is
6040       developed. Fixes bug 28920; bugfix on 0.2.6.10.
6042   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
6043     - Log more information at "warning" level when unable to read a
6044       private key; log more information at "info" level when unable to
6045       read a public key. We had warnings here before, but they were lost
6046       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
6048   o Minor bugfixes (misc, backport from 0.4.0.2-alpha):
6049     - The amount of total available physical memory is now determined
6050       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
6051       when it is defined and a 64-bit variant is not available. Fixes
6052       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
6054   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
6055     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
6056       than one private key for a hidden service. Fixes bug 29040; bugfix
6057       on 0.3.5.1-alpha.
6058     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
6059       "debug" level. Tor used to log it as a warning, which caused very
6060       long log lines to appear for some users. Fixes bug 29135; bugfix
6061       on 0.3.2.1-alpha.
6062     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
6063       as a warning. Instead, log it as a protocol warning, because there
6064       is nothing that relay operators can do to fix it. Fixes bug 29029;
6065       bugfix on 0.2.5.7-rc.
6067   o Minor bugfixes (tests, directory clients, backport from 0.4.0.1-alpha):
6068     - Mark outdated dirservers when Tor only has a reasonably live
6069       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
6071   o Minor bugfixes (tests, backport from 0.4.0.2-alpha):
6072     - Detect and suppress "bug" warnings from the util/time test on
6073       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
6074     - Do not log an error-level message if we fail to find an IPv6
6075       network interface from the unit tests. Fixes bug 29160; bugfix
6076       on 0.2.7.3-rc.
6078   o Minor bugfixes (usability, backport from 0.4.0.1-alpha):
6079     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
6080       Some users took this phrasing to mean that the mentioned guard was
6081       under their control or responsibility, which it is not. Fixes bug
6082       28895; bugfix on Tor 0.3.0.1-alpha.
6085 Changes in version 0.3.4.11 - 2019-02-21
6086   Tor 0.3.4.11 is the third stable release in its series.  It includes
6087   a fix for a medium-severity security bug affecting Tor 0.3.2.1-alpha and
6088   later. All Tor instances running an affected release should upgrade to
6089   0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
6091   o Major bugfixes (cell scheduler, KIST, security):
6092     - Make KIST consider the outbuf length when computing what it can
6093       put in the outbuf. Previously, KIST acted as though the outbuf
6094       were empty, which could lead to the outbuf becoming too full. It
6095       is possible that an attacker could exploit this bug to cause a Tor
6096       client or relay to run out of memory and crash. Fixes bug 29168;
6097       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
6098       TROVE-2019-001 and CVE-2019-8955.
6100   o Minor features (geoip):
6101     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
6102       Country database. Closes ticket 29478.
6104   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
6105     - Update Cargo.lock file to match the version made by the latest
6106       version of Rust, so that "make distcheck" will pass again. Fixes
6107       bug 29244; bugfix on 0.3.3.4-alpha.
6109   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
6110     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
6111       as a warning. Instead, log it as a protocol warning, because there
6112       is nothing that relay operators can do to fix it. Fixes bug 29029;
6113       bugfix on 0.2.5.7-rc.
6116 Changes in version 0.3.3.12 - 2019-02-21
6117   Tor 0.3.3.12 fixes a medium-severity security bug affecting Tor
6118   0.3.2.1-alpha and later. All Tor instances running an affected release
6119   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
6121   This release marks the end of support for the Tor 0.3.3.x series. We
6122   recommend that users switch to either the Tor 0.3.4 series (supported
6123   until at least 10 June 2019), or the Tor 0.3.5 series, which will
6124   receive long-term support until at least 1 Feb 2022.
6126   o Major bugfixes (cell scheduler, KIST, security):
6127     - Make KIST consider the outbuf length when computing what it can
6128       put in the outbuf. Previously, KIST acted as though the outbuf
6129       were empty, which could lead to the outbuf becoming too full. It
6130       is possible that an attacker could exploit this bug to cause a Tor
6131       client or relay to run out of memory and crash. Fixes bug 29168;
6132       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
6133       TROVE-2019-001 and CVE-2019-8955.
6135   o Minor features (geoip):
6136     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
6137       Country database. Closes ticket 29478.
6139   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
6140     - Update Cargo.lock file to match the version made by the latest
6141       version of Rust, so that "make distcheck" will pass again. Fixes
6142       bug 29244; bugfix on 0.3.3.4-alpha.
6144   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
6145     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
6146       as a warning. Instead, log it as a protocol warning, because there
6147       is nothing that relay operators can do to fix it. Fixes bug 29029;
6148       bugfix on 0.2.5.7-rc.
6151 Changes in version 0.4.0.2-alpha - 2019-02-21
6152   Tor 0.4.0.2-alpha is the second alpha in its series; it fixes several
6153   bugs from earlier versions, including several that had broken
6154   backward compatibility.
6156   It also includes a fix for a medium-severity security bug affecting Tor
6157   0.3.2.1-alpha and later. All Tor instances running an affected release
6158   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
6160   o Major bugfixes (cell scheduler, KIST, security):
6161     - Make KIST consider the outbuf length when computing what it can
6162       put in the outbuf. Previously, KIST acted as though the outbuf
6163       were empty, which could lead to the outbuf becoming too full. It
6164       is possible that an attacker could exploit this bug to cause a Tor
6165       client or relay to run out of memory and crash. Fixes bug 29168;
6166       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
6167       TROVE-2019-001 and CVE-2019-8955.
6169   o Major bugfixes (networking):
6170     - Gracefully handle empty username/password fields in SOCKS5
6171       username/password auth messsage and allow SOCKS5 handshake to
6172       continue. Previously, we had rejected these handshakes, breaking
6173       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
6175   o Major bugfixes (windows, startup):
6176     - When reading a consensus file from disk, detect whether it was
6177       written in text mode, and re-read it in text mode if so. Always
6178       write consensus files in binary mode so that we can map them into
6179       memory later. Previously, we had written in text mode, which
6180       confused us when we tried to map the file on windows. Fixes bug
6181       28614; bugfix on 0.4.0.1-alpha.
6183   o Minor features (compilation):
6184     - Compile correctly when OpenSSL is built with engine support
6185       disabled, or with deprecated APIs disabled. Closes ticket 29026.
6186       Patches from "Mangix".
6188   o Minor features (developer tooling):
6189     - Check that bugfix versions in changes files look like Tor versions
6190       from the versions spec. Warn when bugfixes claim to be on a future
6191       release. Closes ticket 27761.
6192     - Provide a git pre-commit hook that disallows committing if we have
6193       any failures in our code and changelog formatting checks. It is
6194       now available in scripts/maint/pre-commit.git-hook. Implements
6195       feature 28976.
6197   o Minor features (directory authority):
6198     - When a directory authority is using a bandwidth file to obtain
6199       bandwidth values, include the digest of that file in the vote.
6200       Closes ticket 26698.
6202   o Minor features (geoip):
6203     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
6204       Country database. Closes ticket 29478.
6206   o Minor features (testing):
6207     - Treat all unexpected ERR and BUG messages as test failures. Closes
6208       ticket 28668.
6210   o Minor bugfixes (build, compatibility, rust):
6211     - Update Cargo.lock file to match the version made by the latest
6212       version of Rust, so that "make distcheck" will pass again. Fixes
6213       bug 29244; bugfix on 0.3.3.4-alpha.
6215   o Minor bugfixes (compilation):
6216     - Fix compilation warnings in test_circuitpadding.c. Fixes bug
6217       29169; bugfix on 0.4.0.1-alpha.
6218     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
6219       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
6221   o Minor bugfixes (documentation):
6222     - Describe the contents of the v3 onion service client authorization
6223       files correctly: They hold public keys, not private keys. Fixes
6224       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
6226   o Minor bugfixes (linux seccomp sandbox):
6227     - Fix startup crash when experimental sandbox support is enabled.
6228       Fixes bug 29150; bugfix on 0.4.0.1-alpha. Patch by Peter Gerber.
6230   o Minor bugfixes (logging):
6231     - Avoid logging that we are relaxing a circuit timeout when that
6232       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
6233     - Log more information at "warning" level when unable to read a
6234       private key; log more information at "info" level when unable to
6235       read a public key. We had warnings here before, but they were lost
6236       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
6238   o Minor bugfixes (misc):
6239     - The amount of total available physical memory is now determined
6240       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
6241       when it is defined and a 64-bit variant is not available. Fixes
6242       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
6244   o Minor bugfixes (onion services):
6245     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
6246       than one private key for a hidden service. Fixes bug 29040; bugfix
6247       on 0.3.5.1-alpha.
6248     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
6249       "debug" level. Tor used to log it as a warning, which caused very
6250       long log lines to appear for some users. Fixes bug 29135; bugfix
6251       on 0.3.2.1-alpha.
6252     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
6253       as a warning. Instead, log it as a protocol warning, because there
6254       is nothing that relay operators can do to fix it. Fixes bug 29029;
6255       bugfix on 0.2.5.7-rc.
6257   o Minor bugfixes (scheduler):
6258     - When re-adding channels to the pending list, check the correct
6259       channel's sched_heap_idx. This issue has had no effect in mainline
6260       Tor, but could have led to bugs down the road in improved versions
6261       of our circuit scheduling code. Fixes bug 29508; bugfix
6262       on 0.3.2.10.
6264   o Minor bugfixes (tests):
6265     - Fix intermittent failures on an adaptive padding test. Fixes one
6266       case of bug 29122; bugfix on 0.4.0.1-alpha.
6267     - Disable an unstable circuit-padding test that was failing
6268       intermittently because of an ill-defined small histogram. Such
6269       histograms will be allowed again after 29298 is implemented. Fixes
6270       a second case of bug 29122; bugfix on 0.4.0.1-alpha.
6271     - Detect and suppress "bug" warnings from the util/time test on
6272       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
6273     - Do not log an error-level message if we fail to find an IPv6
6274       network interface from the unit tests. Fixes bug 29160; bugfix
6275       on 0.2.7.3-rc.
6277   o Documentation:
6278     - In the manpage entry describing MapAddress torrc setting, use
6279       example IP addresses from ranges specified for use in documentation
6280       by RFC 5737. Resolves issue 28623.
6282   o Removed features:
6283     - Remove the old check-tor script. Resolves issue 29072.
6286 Changes in version 0.4.0.1-alpha - 2019-01-18
6287   Tor 0.4.0.1-alpha is the first release in the new 0.4.0.x series. It
6288   introduces improved features for power and bandwidth conservation,
6289   more accurate reporting of bootstrap progress for user interfaces, and
6290   an experimental backend for an exciting new adaptive padding feature.
6291   There is also the usual assortment of bugfixes and minor features, all
6292   described below.
6294   o Major features (battery management, client, dormant mode):
6295     - When Tor is running as a client, and it is unused for a long time,
6296       it can now enter a "dormant" state. When Tor is dormant, it avoids
6297       network and CPU activity until it is reawoken either by a user
6298       request or by a controller command. For more information, see the
6299       configuration options starting with "Dormant". Implements tickets
6300       2149 and 28335.
6301     - The client's memory of whether it is "dormant", and how long it
6302       has spent idle, persists across invocations. Implements
6303       ticket 28624.
6304     - There is a DormantOnFirstStartup option that integrators can use
6305       if they expect that in many cases, Tor will be installed but
6306       not used.
6308   o Major features (bootstrap reporting):
6309     - When reporting bootstrap progress, report the first connection
6310       uniformly, regardless of whether it's a connection for building
6311       application circuits. This allows finer-grained reporting of early
6312       progress than previously possible, with the improvements of ticket
6313       27169. Closes tickets 27167 and 27103. Addresses ticket 27308.
6314     - When reporting bootstrap progress, treat connecting to a proxy or
6315       pluggable transport as separate from having successfully used that
6316       proxy or pluggable transport to connect to a relay. Closes tickets
6317       27100 and 28884.
6319   o Major features (circuit padding):
6320     - Implement preliminary support for the circuit padding portion of
6321       Proposal 254. The implementation supports Adaptive Padding (aka
6322       WTF-PAD) state machines for use between experimental clients and
6323       relays. Support is also provided for APE-style state machines that
6324       use probability distributions instead of histograms to specify
6325       inter-packet delay. At the moment, Tor does not provide any
6326       padding state machines that are used in normal operation: for now,
6327       this feature exists solely for experimentation. Closes
6328       ticket 28142.
6330   o Major features (refactoring):
6331     - Tor now uses an explicit list of its own subsystems when
6332       initializing and shutting down. Previously, these systems were
6333       managed implicitly in various places throughout the codebase.
6334       (There may still be some subsystems using the old system.) Closes
6335       ticket 28330.
6337   o Minor features (bootstrap reporting):
6338     - When reporting bootstrap progress, stop distinguishing between
6339       situations where only internal paths are available and situations
6340       where external paths are available. Previously, Tor would often
6341       erroneously report that it had only internal paths. Closes
6342       ticket 27402.
6344   o Minor features (continuous integration):
6345     - Log Python version during each Travis CI job. Resolves
6346       issue 28551.
6348   o Minor features (controller):
6349     - Add a DROPOWNERSHIP command to undo the effects of TAKEOWNERSHIP.
6350       Implements ticket 28843.
6352   o Minor features (developer tooling):
6353     - Provide a git hook script to prevent "fixup!" and "squash!"
6354       commits from ending up in the master branch, as scripts/main/pre-
6355       push.git-hook. Closes ticket 27993.
6357   o Minor features (directory authority):
6358     - Directory authorities support a new consensus algorithm, under
6359       which the family lines in microdescriptors are encoded in a
6360       canonical form. This change makes family lines more compressible
6361       in transit, and on the client. Closes ticket 28266; implements
6362       proposal 298.
6364   o Minor features (directory authority, relay):
6365     - Authorities now vote on a "StaleDesc" flag to indicate that a
6366       relay's descriptor is so old that the relay should upload again
6367       soon. Relays treat this flag as a signal to upload a new
6368       descriptor. This flag will eventually let us remove the
6369       'published' date from routerstatus entries, and make our consensus
6370       diffs much smaller. Closes ticket 26770; implements proposal 293.
6372   o Minor features (fallback directory mirrors):
6373     - Update the fallback whitelist based on operator opt-ins and opt-
6374       outs. Closes ticket 24805, patch by Phoul.
6376   o Minor features (FreeBSD):
6377     - On FreeBSD-based systems, warn relay operators if the
6378       "net.inet.ip.random_id" sysctl (IP ID randomization) is disabled.
6379       Closes ticket 28518.
6381   o Minor features (HTTP standards compliance):
6382     - Stop sending the header "Content-type: application/octet-stream"
6383       along with transparently compressed documents: this confused
6384       browsers. Closes ticket 28100.
6386   o Minor features (IPv6):
6387     - We add an option ClientAutoIPv6ORPort, to make clients randomly
6388       prefer a node's IPv4 or IPv6 ORPort. The random preference is set
6389       every time a node is loaded from a new consensus or bridge config.
6390       We expect that this option will enable clients to bootstrap more
6391       quickly without having to determine whether they support IPv4,
6392       IPv6, or both. Closes ticket 27490. Patch by Neel Chauhan.
6393     - When using addrs_in_same_network_family(), avoid choosing circuit
6394       paths that pass through the same IPv6 subnet more than once.
6395       Previously, we only checked IPv4 subnets. Closes ticket 24393.
6396       Patch by Neel Chauhan.
6398   o Minor features (log messages):
6399     - Improve log message in v3 onion services that could print out
6400       negative revision counters. Closes ticket 27707. Patch
6401       by "ffmancera".
6403   o Minor features (memory usage):
6404     - Save memory by storing microdescriptor family lists with a more
6405       compact representation. Closes ticket 27359.
6406     - Tor clients now use mmap() to read consensus files from disk, so
6407       that they no longer need keep the full text of a consensus in
6408       memory when parsing it or applying a diff. Closes ticket 27244.
6410   o Minor features (parsing):
6411     - Directory authorities now validate that router descriptors and
6412       ExtraInfo documents are in a valid subset of UTF-8, and reject
6413       them if they are not. Closes ticket 27367.
6415   o Minor features (performance):
6416     - Cache the results of summarize_protocol_flags(), so that we don't
6417       have to parse the same protocol-versions string over and over.
6418       This should save us a huge number of malloc calls on startup, and
6419       may reduce memory fragmentation with some allocators. Closes
6420       ticket 27225.
6421     - Remove a needless memset() call from get_token_arguments, thereby
6422       speeding up the tokenization of directory objects by about 20%.
6423       Closes ticket 28852.
6424     - Replace parse_short_policy() with a faster implementation, to
6425       improve microdescriptor parsing time. Closes ticket 28853.
6426     - Speed up directory parsing a little by avoiding use of the non-
6427       inlined strcmp_len() function. Closes ticket 28856.
6428     - Speed up microdescriptor parsing by about 30%, to help improve
6429       startup time. Closes ticket 28839.
6431   o Minor features (pluggable transports):
6432     - Add support for emitting STATUS updates to Tor's control port from
6433       a pluggable transport process. Closes ticket 28846.
6434     - Add support for logging to Tor's logging subsystem from a
6435       pluggable transport process. Closes ticket 28180.
6437   o Minor features (process management):
6438     - Add a new process API for handling child processes. This new API
6439       allows Tor to have bi-directional communication with child
6440       processes on both Unix and Windows. Closes ticket 28179.
6441     - Use the subsystem manager to initialize and shut down the process
6442       module. Closes ticket 28847.
6444   o Minor features (relay):
6445     - When listing relay families, list them in canonical form including
6446       the relay's own identity, and try to give a more useful set of
6447       warnings. Part of ticket 28266 and proposal 298.
6449   o Minor features (required protocols):
6450     - Before exiting because of a missing required protocol, Tor will
6451       now check the publication time of the consensus, and not exit
6452       unless the consensus is newer than the Tor program's own release
6453       date. Previously, Tor would not check the consensus publication
6454       time, and so might exit because of a missing protocol that might
6455       no longer be required in a current consensus. Implements proposal
6456       297; closes ticket 27735.
6458   o Minor features (testing):
6459     - Allow a HeartbeatPeriod of less than 30 minutes in testing Tor
6460       networks. Closes ticket 28840. Patch by Rob Jansen.
6462   o Minor bugfixes (client, clock skew):
6463     - Bootstrap successfully even when Tor's clock is behind the clocks
6464       on the authorities. Fixes bug 28591; bugfix on 0.2.0.9-alpha.
6465     - Select guards even if the consensus has expired, as long as the
6466       consensus is still reasonably live. Fixes bug 24661; bugfix
6467       on 0.3.0.1-alpha.
6469   o Minor bugfixes (compilation):
6470     - Compile correctly on OpenBSD; previously, we were missing some
6471       headers required in order to detect it properly. Fixes bug 28938;
6472       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
6474   o Minor bugfixes (directory clients):
6475     - Mark outdated dirservers when Tor only has a reasonably live
6476       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
6478   o Minor bugfixes (directory mirrors):
6479     - Even when a directory mirror's clock is behind the clocks on the
6480       authorities, we now allow the mirror to serve "future"
6481       consensuses. Fixes bug 28654; bugfix on 0.3.0.1-alpha.
6483   o Minor bugfixes (DNS):
6484     - Gracefully handle an empty or absent resolve.conf file by falling
6485       back to using "localhost" as a DNS server (and hoping it works).
6486       Previously, we would just stop running as an exit. Fixes bug
6487       21900; bugfix on 0.2.1.10-alpha.
6489   o Minor bugfixes (guards):
6490     - In count_acceptable_nodes(), the minimum number is now one bridge
6491       or guard node, and two non-guard nodes for a circuit. Previously,
6492       we had added up the sum of all nodes with a descriptor, but that
6493       could cause us to build failing circuits when we had either too
6494       many bridges or not enough guard nodes. Fixes bug 25885; bugfix on
6495       0.2.3.1-alpha. Patch by Neel Chauhan.
6497   o Minor bugfixes (IPv6):
6498     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
6499       IPv6 socket was bound using an address family of AF_INET instead
6500       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
6501       Kris Katterjohn.
6503   o Minor bugfixes (logging):
6504     - Rework rep_hist_log_link_protocol_counts() to iterate through all
6505       link protocol versions when logging incoming/outgoing connection
6506       counts. Tor no longer skips version 5, and we won't have to
6507       remember to update this function when new link protocol version is
6508       developed. Fixes bug 28920; bugfix on 0.2.6.10.
6510   o Minor bugfixes (networking):
6511     - Introduce additional checks into tor_addr_parse() to reject
6512       certain incorrect inputs that previously were not detected. Fixes
6513       bug 23082; bugfix on 0.2.0.10-alpha.
6515   o Minor bugfixes (onion service v3, client):
6516     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
6517       connection waiting for a descriptor that we actually have in the
6518       cache. It turns out that this can actually happen, though it is
6519       rare. Now, tor will recover and retry the descriptor. Fixes bug
6520       28669; bugfix on 0.3.2.4-alpha.
6522   o Minor bugfixes (periodic events):
6523     - Refrain from calling routerlist_remove_old_routers() from
6524       check_descriptor_callback(). Instead, create a new hourly periodic
6525       event. Fixes bug 27929; bugfix on 0.2.8.1-alpha.
6527   o Minor bugfixes (pluggable transports):
6528     - Make sure that data is continously read from standard output and
6529       standard error pipes of a pluggable transport child-process, to
6530       avoid deadlocking when a pipe's buffer is full. Fixes bug 26360;
6531       bugfix on 0.2.3.6-alpha.
6533   o Minor bugfixes (unit tests):
6534     - Instead of relying on hs_free_all() to clean up all onion service
6535       objects in test_build_descriptors(), we now deallocate them one by
6536       one. This lets Coverity know that we are not leaking memory there
6537       and fixes CID 1442277. Fixes bug 28989; bugfix on 0.3.5.1-alpha.
6539   o Minor bugfixes (usability):
6540     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
6541       Some users took this phrasing to mean that the mentioned guard was
6542       under their control or responsibility, which it is not. Fixes bug
6543       28895; bugfix on Tor 0.3.0.1-alpha.
6545   o Code simplification and refactoring:
6546     - Reimplement NETINFO cell parsing and generation to rely on
6547       trunnel-generated wire format handling code. Closes ticket 27325.
6548     - Remove unnecessary unsafe code from the Rust macro "cstr!". Closes
6549       ticket 28077.
6550     - Rework SOCKS wire format handling to rely on trunnel-generated
6551       parsing/generation code. Resolves ticket 27620.
6552     - Split out bootstrap progress reporting from control.c into a
6553       separate file. Part of ticket 27402.
6554     - The .may_include files that we use to describe our directory-by-
6555       directory dependency structure now describe a noncircular
6556       dependency graph over the directories that they cover. Our
6557       checkIncludes.py tool now enforces this noncircularity. Closes
6558       ticket 28362.
6560   o Documentation:
6561     - Mention that you cannot add a new onion service if Tor is already
6562       running with Sandbox enabled. Closes ticket 28560.
6563     - Improve ControlPort documentation. Mention that it accepts
6564       address:port pairs, and can be used multiple times. Closes
6565       ticket 28805.
6566     - Document the exact output of "tor --version". Closes ticket 28889.
6568   o Removed features:
6569     - Stop responding to the 'GETINFO status/version/num-concurring' and
6570       'GETINFO status/version/num-versioning' control port commands, as
6571       those were deprecated back in 0.2.0.30. Also stop listing them in
6572       output of 'GETINFO info/names'. Resolves ticket 28757.
6573     - The scripts used to generate and maintain the list of fallback
6574       directories have been extracted into a new "fallback-scripts"
6575       repository. Closes ticket 27914.
6577   o Testing:
6578     - Run shellcheck for scripts in the in scripts/ directory. Closes
6579       ticket 28058.
6580     - Add unit tests for tokenize_string() and get_next_token()
6581       functions. Resolves ticket 27625.
6583   o Code simplification and refactoring (onion service v3):
6584     - Consolidate the authorized client descriptor cookie computation
6585       code from client and service into one function. Closes
6586       ticket 27549.
6588   o Code simplification and refactoring (shell scripts):
6589     - Cleanup scan-build.sh to silence shellcheck warnings. Closes
6590       ticket 28007.
6591     - Fix issues that shellcheck found in chutney-git-bisect.sh.
6592       Resolves ticket 28006.
6593     - Fix issues that shellcheck found in updateRustDependencies.sh.
6594       Resolves ticket 28012.
6595     - Fix shellcheck warnings in cov-diff script. Resolves issue 28009.
6596     - Fix shellcheck warnings in run_calltool.sh. Resolves ticket 28011.
6597     - Fix shellcheck warnings in run_trunnel.sh. Resolves issue 28010.
6598     - Fix shellcheck warnings in scripts/test/coverage. Resolves
6599       issue 28008.
6602 Changes in version 0.3.3.11 - 2019-01-07
6603   Tor 0.3.3.11 backports numerous fixes from later versions of Tor.
6604   numerous fixes, including an important fix for anyone using OpenSSL
6605   1.1.1. Anyone running an earlier version of Tor 0.3.3 should upgrade
6606   to this version, or to a later series.
6608   As a reminder, support the Tor 0.3.3 series will end on 22 Feb 2019.
6609   We anticipate that this will be the last release of Tor 0.3.3, unless
6610   some major bug is before then. Some time between now and then, users
6611   should switch to either the Tor 0.3.4 series (supported until at least
6612   10 June 2019), or the Tor 0.3.5 series, which will receive long-term
6613   support until at least 1 Feb 2022.
6615   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
6616     - Fix our usage of named groups when running as a TLS 1.3 client in
6617       OpenSSL 1.1.1. Previously, we only initialized EC groups when
6618       running as a relay, which caused clients to fail to negotiate TLS
6619       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
6620       support was added).
6622   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
6623     - Fix a use-after-free error that could be caused by passing Tor an
6624       impossible set of options that would fail during options_act().
6625       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
6627   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
6628     - Only run one online rust build in Travis, to reduce network
6629       errors. Skip offline rust builds on Travis for Linux gcc, because
6630       they're redundant. Implements ticket 27252.
6631     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
6632       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
6633       Linux with default settings, because all the non-default builds
6634       use gcc on Linux. Implements ticket 27252.
6636   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
6637     - Use the Travis Homebrew addon to install packages on macOS during
6638       Travis CI. The package list is the same, but the Homebrew addon
6639       does not do a `brew update` by default. Implements ticket 27738.
6641   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
6642     - Replace the 150 fallbacks originally introduced in Tor
6643       0.3.3.1-alpha in January 2018 (of which ~115 were still
6644       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
6645       removed) generated in December 2018. Closes ticket 24803.
6647   o Minor features (geoip):
6648     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
6649       Country database. Closes ticket 29012.
6651   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
6652     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
6653       key export function from handling long labels. When this bug is
6654       detected, Tor will disable TLS 1.3. We recommend upgrading to a
6655       version of OpenSSL without this bug when it becomes available.
6656       Closes ticket 28973.
6658   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
6659     - Update relay descriptor on bandwidth changes only when the uptime
6660       is smaller than 24h, in order to reduce the efficiency of guard
6661       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
6663   o Minor bugfixes (C correctness, backport from 0.3.5.4-alpha):
6664     - Avoid undefined behavior in an end-of-string check when parsing
6665       the BEGIN line in a directory object. Fixes bug 28202; bugfix
6666       on 0.2.0.3-alpha.
6668   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
6669     - Rewrite our assertion macros so that they no longer suppress the
6670       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
6672   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
6673     - Initialize a variable unconditionally in aes_new_cipher(), since
6674       some compilers cannot tell that we always initialize it before
6675       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
6677   o Minor bugfixes (directory authority, backport from 0.3.5.4-alpha):
6678     - Log additional info when we get a relay that shares an ed25519 ID
6679       with a different relay, instead making a BUG() warning. Fixes bug
6680       27800; bugfix on 0.3.2.1-alpha.
6682   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
6683     - When a user requests a group-readable DataDirectory, give it to
6684       them. Previously, when the DataDirectory and the CacheDirectory
6685       were the same, the default setting (0) for
6686       CacheDirectoryGroupReadable would override the setting for
6687       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
6688       on 0.3.3.1-alpha.
6690   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
6691     - When the onion service directory can't be created or has the wrong
6692       permissions, do not log a stack trace. Fixes bug 27335; bugfix
6693       on 0.3.2.1-alpha.
6695   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
6696     - Close all SOCKS request (for the same .onion) if the newly fetched
6697       descriptor is unusable. Before that, we would close only the first
6698       one leaving the other hanging and let to time out by themselves.
6699       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
6701   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
6702     - Don't warn so loudly when Tor is unable to decode an onion
6703       descriptor. This can now happen as a normal use case if a client
6704       gets a descriptor with client authorization but the client is not
6705       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
6707   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
6708     - When deleting an ephemeral onion service (DEL_ONION), do not close
6709       any rendezvous circuits in order to let the existing client
6710       connections finish by themselves or closed by the application. The
6711       HS v2 is doing that already so now we have the same behavior for
6712       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
6714   o Minor bugfixes (HTTP tunnel):
6715     - Fix a bug warning when closing an HTTP tunnel connection due to
6716       an HTTP request we couldn't handle. Fixes bug 26470; bugfix on
6717       0.3.2.1-alpha.
6719   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
6720     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
6721       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
6723   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
6724     - Ensure circuitmux queues are empty before scheduling or sending
6725       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
6727   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
6728     - Reject protocol names containing bytes other than alphanumeric
6729       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
6730       on 0.2.9.4-alpha.
6732   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
6733     - Compute protover votes correctly in the rust version of the
6734       protover code. Previously, the protover rewrite in 24031 allowed
6735       repeated votes from the same voter for the same protocol version
6736       to be counted multiple times in protover_compute_vote(). Fixes bug
6737       27649; bugfix on 0.3.3.5-rc.
6738     - Reject protover names that contain invalid characters. Fixes bug
6739       27687; bugfix on 0.3.3.1-alpha.
6741   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
6742     - protover_all_supported() would attempt to allocate up to 16GB on
6743       some inputs, leading to a potential memory DoS. Fixes bug 27206;
6744       bugfix on 0.3.3.5-rc.
6746   o Minor bugfixes (rust, backport from 0.3.5.4-alpha):
6747     - Fix a potential null dereference in protover_all_supported(). Add
6748       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
6749     - Return a string that can be safely freed by C code, not one
6750       created by the rust allocator, in protover_all_supported(). Fixes
6751       bug 27740; bugfix on 0.3.3.1-alpha.
6752     - Fix an API mismatch in the rust implementation of
6753       protover_compute_vote(). This bug could have caused crashes on any
6754       directory authorities running Tor with Rust (which we do not yet
6755       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
6757   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
6758     - If a unit test running in a subprocess exits abnormally or with a
6759       nonzero status code, treat the test as having failed, even if the
6760       test reported success. Without this fix, memory leaks don't cause
6761       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
6762       bugfix on 0.2.2.4-alpha.
6764   o Minor bugfixes (testing, backport from 0.3.5.4-alpha):
6765     - Treat backtrace test failures as expected on BSD-derived systems
6766       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
6767       (FreeBSD failures have been treated as expected since 18204 in
6768       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
6770   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
6771     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
6772       bugfix on 0.3.0.1-alpha.
6775 Changes in version 0.3.4.10 - 2019-01-07
6776   Tor 0.3.4.9 is the second stable release in its series; it backports
6777   numerous fixes, including an important fix for relays, and for anyone
6778   using OpenSSL 1.1.1. Anyone running an  earlier version of Tor 0.3.4
6779   should upgrade.
6781   As a reminder, the Tor 0.3.4 series will be supported until 10 June
6782   2019. Some time between now and then, users should switch to the Tor
6783   0.3.5 series, which will receive long-term support until at least 1
6784   Feb 2022.
6786   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
6787     - Fix our usage of named groups when running as a TLS 1.3 client in
6788       OpenSSL 1.1.1. Previously, we only initialized EC groups when
6789       running as a relay, which caused clients to fail to negotiate TLS
6790       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
6791       support was added).
6793   o Major bugfixes (relay, directory, backport from 0.3.5.7):
6794     - Always reactivate linked connections in the main loop so long as
6795       any linked connection has been active. Previously, connections
6796       serving directory information wouldn't get reactivated after the
6797       first chunk of data was sent (usually 32KB), which would prevent
6798       clients from bootstrapping. Fixes bug 28912; bugfix on
6799       0.3.4.1-alpha. Patch by "cypherpunks3".
6801   o Minor features (continuous integration, Windows, backport from 0.3.5.6-rc):
6802     - Always show the configure and test logs, and upload them as build
6803       artifacts, when building for Windows using Appveyor CI.
6804       Implements 28459.
6806   o Minor features (controller, backport from 0.3.5.1-alpha):
6807     - For purposes of CIRC_BW-based dropped cell detection, track half-
6808       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
6809       bias check cells to arrive without counting it as dropped until
6810       either the END arrives, or the windows are empty. Closes
6811       ticket 25573.
6813   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
6814     - Replace the 150 fallbacks originally introduced in Tor
6815       0.3.3.1-alpha in January 2018 (of which ~115 were still
6816       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
6817       removed) generated in December 2018. Closes ticket 24803.
6819   o Minor features (geoip):
6820     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
6821       Country database. Closes ticket 28395.
6823   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
6824     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
6825       key export function from handling long labels. When this bug is
6826       detected, Tor will disable TLS 1.3. We recommend upgrading to a
6827       version of OpenSSL without this bug when it becomes available.
6828       Closes ticket 28973.
6830   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
6831     - Initialize a variable unconditionally in aes_new_cipher(), since
6832       some compilers cannot tell that we always initialize it before
6833       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
6835   o Minor bugfixes (connection, relay, backport from 0.3.5.5-alpha):
6836     - Avoid a logging a BUG() stacktrace when closing connection held
6837       open because the write side is rate limited but not the read side.
6838       Now, the connection read side is simply shut down until Tor is
6839       able to flush the connection and close it. Fixes bug 27750; bugfix
6840       on 0.3.4.1-alpha.
6842   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.5-alpha):
6843     - Manually configure the zstd compiler options, when building using
6844       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
6845       not come with a pkg-config file. Fixes bug 28454; bugfix
6846       on 0.3.4.1-alpha.
6847     - Stop using an external OpenSSL install, and stop installing MSYS2
6848       packages, when building using mingw on Appveyor Windows CI. Fixes
6849       bug 28399; bugfix on 0.3.4.1-alpha.
6851   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.6-rc):
6852     - Explicitly specify the path to the OpenSSL library and do not
6853       download OpenSSL from Pacman, but instead use the library that is
6854       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
6856   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
6857     - When a user requests a group-readable DataDirectory, give it to
6858       them. Previously, when the DataDirectory and the CacheDirectory
6859       were the same, the default setting (0) for
6860       CacheDirectoryGroupReadable would override the setting for
6861       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
6862       on 0.3.3.1-alpha.
6864   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
6865     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
6866       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
6868   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
6869     - Don't warn so loudly when Tor is unable to decode an onion
6870       descriptor. This can now happen as a normal use case if a client
6871       gets a descriptor with client authorization but the client is not
6872       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
6874   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
6875     - When deleting an ephemeral onion service (DEL_ONION), do not close
6876       any rendezvous circuits in order to let the existing client
6877       connections finish by themselves or closed by the application. The
6878       HS v2 is doing that already so now we have the same behavior for
6879       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
6881   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
6882     - Update relay descriptor on bandwidth changes only when the uptime
6883       is smaller than 24h, in order to reduce the efficiency of guard
6884       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
6886   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
6887     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
6888       bugfix on 0.3.0.1-alpha.
6891 Changes in version 0.3.5.7 - 2019-01-07
6892   Tor 0.3.5.7 is the first stable release in its series; it includes
6893   compilation and portability fixes, and a fix for a severe problem
6894   affecting directory caches.
6896   The Tor 0.3.5 series includes several new features and performance
6897   improvements, including client authorization for v3 onion services,
6898   cleanups to bootstrap reporting, support for improved bandwidth-
6899   measurement tools, experimental support for NSS in place of OpenSSL,
6900   and much more. It also begins a full reorganization of Tor's code
6901   layout, for improved modularity and maintainability in the future.
6902   Finally, there is the usual set of performance improvements and
6903   bugfixes that we try to do in every release series.
6905   There are a couple of changes in the 0.3.5 that may affect
6906   compatibility. First, the default version for newly created onion
6907   services is now v3. Use the HiddenServiceVersion option if you want to
6908   override this. Second, some log messages related to bootstrapping have
6909   changed; if you use stem, you may need to update to the latest version
6910   so it will recognize them.
6912   We have designated 0.3.5 as a "long-term support" (LTS) series: we
6913   will continue to patch major bugs in typical configurations of 0.3.5
6914   until at least 1 Feb 2022. (We do not plan to provide long-term
6915   support for embedding, Rust support, NSS support, running a directory
6916   authority, or unsupported platforms. For these, you will need to stick
6917   with the latest stable release.)
6919   Below are the changes since 0.3.5.6-rc. For a complete list of changes
6920   since 0.3.4.9, see the ReleaseNotes file.
6922   o Major bugfixes (relay, directory):
6923     - Always reactivate linked connections in the main loop so long as
6924       any linked connection has been active. Previously, connections
6925       serving directory information wouldn't get reactivated after the
6926       first chunk of data was sent (usually 32KB), which would prevent
6927       clients from bootstrapping. Fixes bug 28912; bugfix on
6928       0.3.4.1-alpha. Patch by "cypherpunks3".
6930   o Minor features (compilation):
6931     - When possible, place our warning flags in a separate file, to
6932       avoid flooding verbose build logs. Closes ticket 28924.
6934   o Minor features (geoip):
6935     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
6936       Country database. Closes ticket 29012.
6938   o Minor features (OpenSSL bug workaround):
6939     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
6940       key export function from handling long labels. When this bug is
6941       detected, Tor will disable TLS 1.3. We recommend upgrading to a
6942       version of OpenSSL without this bug when it becomes available.
6943       Closes ticket 28973.
6945   o Minor features (performance):
6946     - Remove about 96% of the work from the function that we run at
6947       startup to test our curve25519_basepoint implementation. Since
6948       this function has yet to find an actual failure, we now only run
6949       it for 8 iterations instead of 200. Based on our profile
6950       information, this change should save around 8% of our startup time
6951       on typical desktops, and may have a similar effect on other
6952       platforms. Closes ticket 28838.
6953     - Stop re-validating our hardcoded Diffie-Hellman parameters on
6954       every startup. Doing this wasted time and cycles, especially on
6955       low-powered devices. Closes ticket 28851.
6957   o Minor bugfixes (compilation):
6958     - Fix compilation for Android by adding a missing header to
6959       freespace.c. Fixes bug 28974; bugfix on 0.3.5.1-alpha.
6961   o Minor bugfixes (correctness):
6962     - Fix an unreached code path where we checked the value of
6963       "hostname" inside send_resolved_hostname_cell(). Previously, we
6964       used it before checking it; now we check it first. Fixes bug
6965       28879; bugfix on 0.1.2.7-alpha.
6967   o Minor bugfixes (testing):
6968     - Make sure that test_rebind.py actually obeys its timeout, even
6969       when it receives a large number of log messages. Fixes bug 28883;
6970       bugfix on 0.3.5.4-alpha.
6971     - Stop running stem's unit tests as part of "make test-stem", but
6972       continue to run stem's unit and online tests during "make test-
6973       stem-full". Fixes bug 28568; bugfix on 0.2.6.3-alpha.
6975   o Minor bugfixes (windows services):
6976     - Make Tor start correctly as an NT service again: previously it was
6977       broken by refactoring. Fixes bug 28612; bugfix on 0.3.5.3-alpha.
6979   o Code simplification and refactoring:
6980     - When parsing a port configuration, make it more obvious to static
6981       analyzer tools that we always initialize the address. Closes
6982       ticket 28881.
6985 Changes in version 0.3.5.6-rc - 2018-12-18
6986   Tor 0.3.5.6-rc fixes numerous small bugs in earlier versions of Tor.
6987   It is the first release candidate in the 0.3.5.x series; if no further
6988   huge bugs are found, our next release may be the stable 0.3.5.x.
6990   o Minor features (continuous integration, Windows):
6991     - Always show the configure and test logs, and upload them as build
6992       artifacts, when building for Windows using Appveyor CI.
6993       Implements 28459.
6995   o Minor features (fallback directory list):
6996     - Replace the 150 fallbacks originally introduced in Tor
6997       0.3.3.1-alpha in January 2018 (of which ~115 were still
6998       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
6999       removed) generated in December 2018. Closes ticket 24803.
7001   o Minor features (geoip):
7002     - Update geoip and geoip6 to the December 5 2018 Maxmind GeoLite2
7003       Country database. Closes ticket 28744.
7005   o Minor bugfixes (compilation):
7006     - Add missing dependency on libgdi32.dll for tor-print-ed-signing-
7007       cert.exe on Windows. Fixes bug 28485; bugfix on 0.3.5.1-alpha.
7009   o Minor bugfixes (continuous integration, Windows):
7010     - Explicitly specify the path to the OpenSSL library and do not
7011       download OpenSSL from Pacman, but instead use the library that is
7012       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
7014   o Minor bugfixes (onion service v3):
7015     - When deleting an ephemeral onion service (DEL_ONION), do not close
7016       any rendezvous circuits in order to let the existing client
7017       connections finish by themselves or closed by the application. The
7018       HS v2 is doing that already so now we have the same behavior for
7019       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
7021   o Minor bugfixes (restart-in-process, boostrap):
7022     - Add missing resets of bootstrap tracking state when shutting down
7023       (regression caused by ticket 27169). Fixes bug 28524; bugfix
7024       on 0.3.5.1-alpha.
7026   o Minor bugfixes (testing):
7027     - Use a separate DataDirectory for the test_rebind script.
7028       Previously, this script would run using the default DataDirectory,
7029       and sometimes fail. Fixes bug 28562; bugfix on 0.3.5.1-alpha.
7030       Patch from Taylor R Campbell.
7031     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
7032       bugfix on 0.3.0.1-alpha.
7034   o Minor bugfixes (Windows):
7035     - Correctly identify Windows 8.1, Windows 10, and Windows Server
7036       2008 and later from their NT versions. Fixes bug 28096; bugfix on
7037       0.2.2.34; reported by Keifer Bly.
7038     - On recent Windows versions, the GetVersionEx() function may report
7039       an earlier Windows version than the running OS. To avoid user
7040       confusion, add "[or later]" to Tor's version string on affected
7041       versions of Windows. Fixes bug 28096; bugfix on 0.2.2.34; reported
7042       by Keifer Bly.
7043     - Remove Windows versions that were never supported by the
7044       GetVersionEx() function. Stop duplicating the latest Windows
7045       version in get_uname(). Fixes bug 28096; bugfix on 0.2.2.34;
7046       reported by Keifer Bly.
7048   o Testing:
7049     - Increase logging and tag all log entries with timestamps in
7050       test_rebind.py. Provides diagnostics for issue 28229.
7052   o Code simplification and refactoring (shared random, dirauth):
7053     - Change many tor_assert() to use BUG() instead. The idea is to not
7054       crash a dirauth but rather scream loudly with a stacktrace and let
7055       it continue run. The shared random subsystem is very resilient and
7056       if anything wrong happens with it, at worst a non coherent value
7057       will be put in the vote and discarded by the other authorities.
7058       Closes ticket 19566.
7060   o Documentation (onion services):
7061     - Document in the man page that changing ClientOnionAuthDir value or
7062       adding a new file in the directory will not work at runtime upon
7063       sending a HUP if Sandbox 1. Closes ticket 28128.
7064     - Note in the man page that the only real way to fully revoke an
7065       onion service v3 client authorization is by restarting the tor
7066       process. Closes ticket 28275.
7069 Changes in version 0.3.5.5-alpha - 2018-11-16
7070   Tor 0.3.5.5-alpha includes numerous bugfixes on earlier releases,
7071   including several that we hope to backport to older release series in
7072   the future.
7074   o Major bugfixes (OpenSSL, portability):
7075     - Fix our usage of named groups when running as a TLS 1.3 client in
7076       OpenSSL 1.1.1. Previously, we only initialized EC groups when
7077       running as a relay, which caused clients to fail to negotiate TLS
7078       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
7079       support was added).
7081   o Minor features (geoip):
7082     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
7083       Country database. Closes ticket 28395.
7085   o Minor bugfixes (compilation):
7086     - Initialize a variable unconditionally in aes_new_cipher(), since
7087       some compilers cannot tell that we always initialize it before
7088       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
7090   o Minor bugfixes (connection, relay):
7091     - Avoid a logging a BUG() stacktrace when closing connection held
7092       open because the write side is rate limited but not the read side.
7093       Now, the connection read side is simply shut down until Tor is
7094       able to flush the connection and close it. Fixes bug 27750; bugfix
7095       on 0.3.4.1-alpha.
7097   o Minor bugfixes (continuous integration, Windows):
7098     - Manually configure the zstd compiler options, when building using
7099       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
7100       not come with a pkg-config file. Fixes bug 28454; bugfix
7101       on 0.3.4.1-alpha.
7102     - Stop using an external OpenSSL install, and stop installing MSYS2
7103       packages, when building using mingw on Appveyor Windows CI. Fixes
7104       bug 28399; bugfix on 0.3.4.1-alpha.
7106   o Minor bugfixes (documentation):
7107     - Make Doxygen work again after the code movement in the 0.3.5
7108       source tree. Fixes bug 28435; bugfix on 0.3.5.1-alpha.
7110   o Minor bugfixes (Linux seccomp2 sandbox):
7111     - Permit the "shutdown()" system call, which is apparently used by
7112       OpenSSL under some circumstances. Fixes bug 28183; bugfix
7113       on 0.2.5.1-alpha.
7115   o Minor bugfixes (logging):
7116     - Stop talking about the Named flag in log messages. Clients have
7117       ignored the Named flag since 0.3.2. Fixes bug 28441; bugfix
7118       on 0.3.2.1-alpha.
7120   o Minor bugfixes (memory leaks):
7121     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
7122       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
7124   o Minor bugfixes (onion services):
7125     - On an intro point for a version 3 onion service, stop closing
7126       introduction circuits on an NACK. This lets the client decide
7127       whether to reuse the circuit or discard it. Previously, we closed
7128       intro circuits when sending NACKs. Fixes bug 27841; bugfix on
7129       0.3.2.1-alpha. Patch by Neel Chaunan.
7130     - When replacing a descriptor in the client cache, make sure to
7131       close all client introduction circuits for the old descriptor, so
7132       we don't end up with unusable leftover circuits. Fixes bug 27471;
7133       bugfix on 0.3.2.1-alpha.
7136 Changes in version 0.3.5.4-alpha - 2018-11-08
7137   Tor 0.3.5.4-alpha includes numerous bugfixes on earlier versions and
7138   improves our continuous integration support. It continues our attempts
7139   to stabilize this alpha branch and build it into a foundation for an
7140   acceptable long-term-support release.
7142   o Major bugfixes (compilation, rust):
7143     - Rust tests can now build and run successfully with the
7144       --enable-fragile-hardening option enabled. Doing this currently
7145       requires the rust beta channel; it will be possible with stable
7146       rust once Rust version 1.31 is released. Patch from Alex Crichton.
7147       Fixes bugs 27272, 27273, and 27274. Bugfix on 0.3.1.1-alpha.
7149   o Major bugfixes (embedding, main loop):
7150     - When DisableNetwork becomes set, actually disable periodic events
7151       that are already enabled. (Previously, we would refrain from
7152       enabling new ones, but we would leave the old ones turned on.)
7153       Fixes bug 28348; bugfix on 0.3.4.1-alpha.
7155   o Minor features (continuous integration):
7156     - Add a Travis CI build for --enable-nss on Linux gcc. Closes
7157       ticket 27751.
7158     - Add new CI job to Travis configuration to run stem-based
7159       integration tests. Closes ticket 27913.
7161   o Minor features (Windows, continuous integration):
7162     - Build tor on Windows Server 2012 R2 and Windows Server 2016 using
7163       Appveyor's CI. Closes ticket 28318.
7165   o Minor bugfixes (C correctness, also in 0.3.4.9):
7166     - Avoid undefined behavior in an end-of-string check when parsing
7167       the BEGIN line in a directory object. Fixes bug 28202; bugfix
7168       on 0.2.0.3-alpha.
7170   o Minor bugfixes (compilation):
7171     - Fix a pair of missing headers on OpenBSD. Fixes bug 28303; bugfix
7172       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
7174   o Minor bugfixes (compilation, OpenSolaris):
7175     - Fix compilation on OpenSolaris and its descendants by adding a
7176       missing include to compat_pthreads.c. Fixes bug 27963; bugfix
7177       on 0.3.5.1-alpha.
7179   o Minor bugfixes (configuration):
7180     - Refuse to start with relative file paths and RunAsDaemon set
7181       (regression from the fix for bug 22731). Fixes bug 28298; bugfix
7182       on 0.3.3.1-alpha.
7184   o Minor bugfixes (directory authority, also in 0.3.4.9):
7185     - Log additional info when we get a relay that shares an ed25519 ID
7186       with a different relay, instead of a BUG() warning with a
7187       backtrace. Fixes bug 27800; bugfix on 0.3.2.1-alpha.
7189   o Minor bugfixes (onion service v3):
7190     - Build the service descriptor's signing key certificate before
7191       uploading, so we always have a fresh one: leaving no chances for
7192       it to expire service side. Fixes bug 27838; bugfix
7193       on 0.3.2.1-alpha.
7195   o Minor bugfixes (onion service v3, client authorization):
7196     - Fix an assert() when adding a client authorization for the first
7197       time and then sending a HUP signal to the service. Before that,
7198       Tor would stop abruptly. Fixes bug 27995; bugfix on 0.3.5.1-alpha.
7200   o Minor bugfixes (onion services):
7201     - Unless we have explicitly set HiddenServiceVersion, detect the
7202       onion service version and then look for invalid options.
7203       Previously, we did the reverse, but that broke existing configs
7204       which were pointed to a v2 service and had options like
7205       HiddenServiceAuthorizeClient set. Fixes bug 28127; bugfix on
7206       0.3.5.1-alpha. Patch by Neel Chauhan.
7208   o Minor bugfixes (portability):
7209     - Make the OPE code (which is used for v3 onion services) run
7210       correctly on big-endian platforms. Fixes bug 28115; bugfix
7211       on 0.3.5.1-alpha.
7213   o Minor bugfixes (protover, rust):
7214     - Reject extra commas in version strings. Fixes bug 27197; bugfix
7215       on 0.3.3.3-alpha.
7217   o Minor bugfixes (relay shutdown, systemd):
7218     - Notify systemd of ShutdownWaitLength so it can be set to longer
7219       than systemd's TimeoutStopSec. In Tor's systemd service file, set
7220       TimeoutSec to 60 seconds to allow Tor some time to shut down.
7221       Fixes bug 28113; bugfix on 0.2.6.2-alpha.
7223   o Minor bugfixes (rust, also in 0.3.4.9):
7224     - Fix a potential null dereference in protover_all_supported(). Add
7225       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
7226     - Return a string that can be safely freed by C code, not one
7227       created by the rust allocator, in protover_all_supported(). Fixes
7228       bug 27740; bugfix on 0.3.3.1-alpha.
7230   o Minor bugfixes (rust, directory authority, also in 0.3.4.9):
7231     - Fix an API mismatch in the rust implementation of
7232       protover_compute_vote(). This bug could have caused crashes on any
7233       directory authorities running Tor with Rust (which we do not yet
7234       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
7236   o Minor bugfixes (testing):
7237     - Avoid hangs and race conditions in test_rebind.py. Fixes bug
7238       27968; bugfix on 0.3.5.1-alpha.
7240   o Minor bugfixes (testing, also in 0.3.4.9):
7241     - Treat backtrace test failures as expected on BSD-derived systems
7242       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
7243       (FreeBSD failures have been treated as expected since 18204 in
7244       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
7246   o Documentation (onion service manpage):
7247     - Improve HSv3 client authorization by making some options more
7248       explicit and detailed. Closes ticket 28026. Patch by Mike Tigas.
7251 Changes in version 0.3.4.9 - 2018-11-02
7252   Tor 0.3.4.9 is the second stable release in its series; it backports
7253   numerous fixes, including a fix for a bandwidth management bug that
7254   was causing memory exhaustion on relays. Anyone running an earlier
7255   version of Tor 0.3.4.9 should upgrade.
7257   o Major bugfixes (compilation, backport from 0.3.5.3-alpha):
7258     - Fix compilation on ARM (and other less-used CPUs) when compiling
7259       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
7261   o Major bugfixes (mainloop, bootstrap, backport from 0.3.5.3-alpha):
7262     - Make sure Tor bootstraps and works properly if only the
7263       ControlPort is set. Prior to this fix, Tor would only bootstrap
7264       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
7265       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
7267   o Major bugfixes (relay, backport from 0.3.5.3-alpha):
7268     - When our write bandwidth limit is exhausted, stop writing on the
7269       connection. Previously, we had a typo in the code that would make
7270       us stop reading instead, leading to relay connections being stuck
7271       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
7272       on 0.3.4.1-alpha.
7274   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
7275     - Fix a use-after-free error that could be caused by passing Tor an
7276       impossible set of options that would fail during options_act().
7277       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
7279   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
7280     - Don't do a distcheck with --disable-module-dirauth in Travis.
7281       Implements ticket 27252.
7282     - Only run one online rust build in Travis, to reduce network
7283       errors. Skip offline rust builds on Travis for Linux gcc, because
7284       they're redundant. Implements ticket 27252.
7285     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
7286       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
7287       Linux with default settings, because all the non-default builds
7288       use gcc on Linux. Implements ticket 27252.
7290   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
7291     - Use the Travis Homebrew addon to install packages on macOS during
7292       Travis CI. The package list is the same, but the Homebrew addon
7293       does not do a `brew update` by default. Implements ticket 27738.
7295   o Minor features (geoip):
7296     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
7297       Country database. Closes ticket 27991.
7299   o Minor bugfixes (32-bit OSX and iOS, timing, backport from 0.3.5.2-alpha):
7300     - Fix an integer overflow bug in our optimized 32-bit millisecond-
7301       difference algorithm for 32-bit Apple platforms. Previously, it
7302       would overflow when calculating the difference between two times
7303       more than 47 days apart. Fixes part of bug 27139; bugfix
7304       on 0.3.4.1-alpha.
7305     - Improve the precision of our 32-bit millisecond difference
7306       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
7307       bugfix on 0.3.4.1-alpha.
7308     - Relax the tolerance on the mainloop/update_time_jumps test when
7309       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
7310       on 0.3.4.1-alpha.
7312   o Minor bugfixes (C correctness, to appear in 0.3.5.4-alpha):
7313     - Avoid undefined behavior in an end-of-string check when parsing
7314       the BEGIN line in a directory object. Fixes bug 28202; bugfix
7315       on 0.2.0.3-alpha.
7317   o Minor bugfixes (CI, appveyor, to appear in 0.3.5.4-alpha):
7318     - Only install the necessary mingw packages during our appveyor
7319       builds. This change makes the build a little faster, and prevents
7320       a conflict with a preinstalled mingw openssl that appveyor now
7321       ships. Fixes bugs 27943 and 27765; bugfix on 0.3.4.2-alpha.
7323   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
7324     - Rewrite our assertion macros so that they no longer suppress the
7325       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
7327   o Minor bugfixes (continuous integration, backport from 0.3.5.1-alpha):
7328     - Stop reinstalling identical packages in our Windows CI. Fixes bug
7329       27464; bugfix on 0.3.4.1-alpha.
7331   o Minor bugfixes (directory authority, to appear in 0.3.5.4-alpha):
7332     - Log additional info when we get a relay that shares an ed25519 ID
7333       with a different relay, instead making a BUG() warning. Fixes bug
7334       27800; bugfix on 0.3.2.1-alpha.
7336   o Minor bugfixes (directory connection shutdown, backport from 0.3.5.1-alpha):
7337     - Avoid a double-close when shutting down a stalled directory
7338       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
7340   o Minor bugfixes (HTTP tunnel, backport from 0.3.5.1-alpha):
7341     - Fix a bug warning when closing an HTTP tunnel connection due to an
7342       HTTP request we couldn't handle. Fixes bug 26470; bugfix
7343       on 0.3.2.1-alpha.
7345   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
7346     - Ensure circuitmux queues are empty before scheduling or sending
7347       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
7349   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
7350     - When the onion service directory can't be created or has the wrong
7351       permissions, do not log a stack trace. Fixes bug 27335; bugfix
7352       on 0.3.2.1-alpha.
7354   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
7355     - Close all SOCKS request (for the same .onion) if the newly fetched
7356       descriptor is unusable. Before that, we would close only the first
7357       one leaving the other hanging and let to time out by themselves.
7358       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
7360   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
7361     - When selecting a v3 rendezvous point, don't only look at the
7362       protover, but also check whether the curve25519 onion key is
7363       present. This way we avoid picking a relay that supports the v3
7364       rendezvous but for which we don't have the microdescriptor. Fixes
7365       bug 27797; bugfix on 0.3.2.1-alpha.
7367   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
7368     - Reject protocol names containing bytes other than alphanumeric
7369       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
7370       on 0.2.9.4-alpha.
7372   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
7373     - Compute protover votes correctly in the rust version of the
7374       protover code. Previously, the protover rewrite in 24031 allowed
7375       repeated votes from the same voter for the same protocol version
7376       to be counted multiple times in protover_compute_vote(). Fixes bug
7377       27649; bugfix on 0.3.3.5-rc.
7378     - Reject protover names that contain invalid characters. Fixes bug
7379       27687; bugfix on 0.3.3.1-alpha.
7381   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
7382     - protover_all_supported() would attempt to allocate up to 16GB on
7383       some inputs, leading to a potential memory DoS. Fixes bug 27206;
7384       bugfix on 0.3.3.5-rc.
7386   o Minor bugfixes (rust, directory authority, to appear in 0.3.5.4-alpha):
7387     - Fix an API mismatch in the rust implementation of
7388       protover_compute_vote(). This bug could have caused crashes on any
7389       directory authorities running Tor with Rust (which we do not yet
7390       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
7392   o Minor bugfixes (rust, to appear in 0.3.5.4-alpha):
7393     - Fix a potential null dereference in protover_all_supported(). Add
7394       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
7395     - Return a string that can be safely freed by C code, not one
7396       created by the rust allocator, in protover_all_supported(). Fixes
7397       bug 27740; bugfix on 0.3.3.1-alpha.
7399   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
7400     - If a unit test running in a subprocess exits abnormally or with a
7401       nonzero status code, treat the test as having failed, even if the
7402       test reported success. Without this fix, memory leaks don't cause
7403       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
7404       bugfix on 0.2.2.4-alpha.
7406   o Minor bugfixes (testing, backport from 0.3.5.3-alpha):
7407     - Make the hs_service tests use the same time source when creating
7408       the introduction point and when testing it. Now tests work better
7409       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
7410       on 0.3.2.1-alpha.
7412   o Minor bugfixes (testing, to appear in 0.3.5.4-alpha):
7413     - Treat backtrace test failures as expected on BSD-derived systems
7414       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
7415       (FreeBSD failures have been treated as expected since 18204 in
7416       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
7419 Changes in version 0.3.5.3-alpha - 2018-10-17
7420   Tor 0.3.5.3-alpha fixes several bugs, mostly from previous 0.3.5.x
7421   versions. One important fix for relays addresses a problem with rate-
7422   limiting code from back in 0.3.4.x: If the fix works out, we'll be
7423   backporting it soon. This release is still an alpha, but we hope it's
7424   getting closer and closer to stability.
7426   o Major features (onion services):
7427     - Version 3 onion services can now use the per-service
7428       HiddenServiceExportCircuitID option to differentiate client
7429       circuits. It communicates with the service by using the HAProxy
7430       protocol to assign virtual IP addresses to inbound client
7431       circuits. Closes ticket 4700. Patch by Mahrud Sayrafi.
7433   o Major bugfixes (compilation):
7434     - Fix compilation on ARM (and other less-used CPUs) when compiling
7435       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
7437   o Major bugfixes (initialization, crash):
7438     - Fix an assertion crash that would stop Tor from starting up if it
7439       tried to activate a periodic event too early. Fixes bug 27861;
7440       bugfix on 0.3.5.1-alpha.
7442   o Major bugfixes (mainloop, bootstrap):
7443     - Make sure Tor bootstraps and works properly if only the
7444       ControlPort is set. Prior to this fix, Tor would only bootstrap
7445       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
7446       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
7448   o Major bugfixes (relay):
7449     - When our write bandwidth limit is exhausted, stop writing on the
7450       connection. Previously, we had a typo in the code that would make
7451       us stop reading instead, leading to relay connections being stuck
7452       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
7453       on 0.3.4.1-alpha.
7455   o Minor features (continuous integration):
7456     - Use the Travis Homebrew addon to install packages on macOS during
7457       Travis CI. The package list is the same, but the Homebrew addon
7458       does not do a `brew update` by default. Implements ticket 27738.
7459     - Report what program produced the mysterious core file that we
7460       occasionally see on Travis CI during make distcheck. Closes
7461       ticket 28024.
7463   o Minor features (geoip):
7464     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
7465       Country database. Closes ticket 27991.
7467   o Minor bugfixes (code safety):
7468     - Rewrite our assertion macros so that they no longer suppress the
7469       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
7470       on 0.0.6.
7472   o Minor bugfixes (compilation):
7473     - Compile the ed25519-donna code with a correct declaration of
7474       crypto_strongest_rand(). Previously, we built it with one type,
7475       but linked it against another in the unit tests, which caused
7476       compilation failures with LTO enabled. This could have caused
7477       other undefined behavior in the tests. Fixes bug 27728; bugfix
7478       on 0.3.5.1-alpha.
7480   o Minor bugfixes (compilation, netbsd):
7481     - Add a missing include back into procmon.c. Fixes bug 27990; bugfix
7482       on 0.3.5.1-alpha.
7484   o Minor bugfixes (continuous integration, appveyor):
7485     - Install only the necessary mingw packages during our appveyor
7486       builds. This change makes the build a little faster, and prevents
7487       a conflict with a preinstalled mingw openssl that appveyor now
7488       ships. Fixes bugs 27765 and 27943; bugfix on 0.3.4.2-alpha.
7490   o Minor bugfixes (directory permissions):
7491     - When a user requests a group-readable DataDirectory, give it to
7492       them. Previously, when the DataDirectory and the CacheDirectory
7493       were the same, the default setting (0) for
7494       CacheDirectoryGroupReadable would override the setting for
7495       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
7496       on 0.3.3.1-alpha.
7498   o Minor bugfixes (memory leaks):
7499     - Fix a small memory leak when calling Tor with --dump-config. Fixes
7500       bug 27893; bugfix on 0.3.2.1-alpha.
7502   o Minor bugfixes (networking):
7503     - In retry_listeners_ports(), make sure that we're removing a member
7504       of old_conns smartlist at most once. Fixes bug 27808; bugfix
7505       on 0.3.5.1-alpha.
7506     - Refrain from attempting socket rebinding when old and new
7507       listeners are in different address families. Fixes bug 27928;
7508       bugfix on 0.3.5.1-alpha.
7510   o Minor bugfixes (onion service v3):
7511     - Stop dumping a stack trace when trying to connect to an intro
7512       point without having a descriptor for it. Fixes bug 27774; bugfix
7513       on 0.3.2.1-alpha.
7514     - Don't warn so loudly when Tor is unable to decode an onion
7515       descriptor. This can now happen as a normal use case if a client
7516       gets a descriptor with client authorization but the client is not
7517       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
7518     - When selecting a v3 rendezvous point, don't only look at the
7519       protover, but also check whether the curve25519 onion key is
7520       present. This way we avoid picking a relay that supports the v3
7521       rendezvous but for which we don't have the microdescriptor. Fixes
7522       bug 27797; bugfix on 0.3.2.1-alpha.
7524   o Minor bugfixes (protover):
7525     - Reject protocol names containing bytes other than alphanumeric
7526       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
7527       on 0.2.9.4-alpha.
7529   o Minor bugfixes (testing):
7530     - Make the hs_service tests use the same time source when creating
7531       the introduction point and when testing it. Now tests work better
7532       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
7533       on 0.3.2.1-alpha.
7534     - In test_rebind.py, check if the Python version is in the supported
7535       range. Fixes bug 27675; bugfix on 0.3.5.1-alpha.
7537   o Code simplification and refactoring:
7538     - Divide more large Tor source files -- especially ones that span
7539       multiple areas of functionality -- into smaller parts, including
7540       onion.c and main.c. Closes ticket 26747.
7541     - Divide the "routerparse.c" module into separate modules for each
7542       group of parsed objects. Closes ticket 27924.
7543     - Move protover_rust.c to the same place protover.c was moved to.
7544       Closes ticket 27814.
7545     - Split directory.c into separate pieces for client, server, and
7546       common functionality. Closes ticket 26744.
7547     - Split the non-statistics-related parts from the rephist.c and
7548       geoip.c modules. Closes ticket 27892.
7549     - Split the router.c file into relay-only and shared components, to
7550       help with future modularization. Closes ticket 27864.
7552   o Documentation:
7553     - In the tor-resolve(1) manpage, fix the reference to socks-
7554       extensions.txt by adding a web URL. Resolves ticket 27853.
7555     - Mention that we require Python to be 2.7 or newer for some
7556       integration tests that we ship with Tor. Resolves ticket 27677.
7559 Changes in version 0.3.5.2-alpha - 2018-09-21
7560   Tor 0.3.5.2-alpha fixes several bugs in 0.3.5.1-alpha, including one
7561   that made Tor think it had run out of sockets. Anybody running a relay
7562   or an onion service on 0.3.5.1-alpha should upgrade.
7564   o Major bugfixes (relay bandwidth statistics):
7565     - When we close relayed circuits, report the data in the circuit
7566       queues as being written in our relay bandwidth stats. This
7567       mitigates guard discovery and other attacks that close circuits
7568       for the explicit purpose of noticing this discrepancy in
7569       statistics. Fixes bug 23512; bugfix on 0.0.8pre3.
7571   o Major bugfixes (socket accounting):
7572     - In our socket accounting code, count a socket as closed even when
7573       it is closed indirectly by the TLS layer. Previously, we would
7574       count these sockets as still in use, and incorrectly believe that
7575       we had run out of sockets. Fixes bug 27795; bugfix
7576       on 0.3.5.1-alpha.
7578   o Minor bugfixes (32-bit OSX and iOS, timing):
7579     - Fix an integer overflow bug in our optimized 32-bit millisecond-
7580       difference algorithm for 32-bit Apple platforms. Previously, it
7581       would overflow when calculating the difference between two times
7582       more than 47 days apart. Fixes part of bug 27139; bugfix
7583       on 0.3.4.1-alpha.
7584     - Improve the precision of our 32-bit millisecond difference
7585       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
7586       bugfix on 0.3.4.1-alpha.
7587     - Relax the tolerance on the mainloop/update_time_jumps test when
7588       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
7589       on 0.3.4.1-alpha.
7591   o Minor bugfixes (onion service v3):
7592     - Close all SOCKS request (for the same .onion) if the newly fetched
7593       descriptor is unusable. Before that, we would close only the first
7594       one leaving the other hanging and let to time out by themselves.
7595       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
7597   o Minor bugfixes (memory leak):
7598     - Fix an unlikely memory leak when trying to read a private key from
7599       a ridiculously large file. Fixes bug 27764; bugfix on
7600       0.3.5.1-alpha. This is CID 1439488.
7602   o Minor bugfixes (NSS):
7603     - Correctly detect failure to open a dummy TCP socket when stealing
7604       ownership of an fd from the NSS layer. Fixes bug 27782; bugfix
7605       on 0.3.5.1-alpha.
7607   o Minor bugfixes (rust):
7608     - protover_all_supported() would attempt to allocate up to 16GB on
7609       some inputs, leading to a potential memory DoS. Fixes bug 27206;
7610       bugfix on 0.3.3.5-rc.
7612   o Minor bugfixes (testing):
7613     - Revise the "conditionvar_timeout" test so that it succeeds even on
7614       heavily loaded systems where the test threads are not scheduled
7615       within 200 msec. Fixes bug 27073; bugfix on 0.2.6.3-alpha.
7617   o Code simplification and refactoring:
7618     - Divide the routerlist.c and dirserv.c modules into smaller parts.
7619       Closes ticket 27799.
7622 Changes in version 0.3.5.1-alpha - 2018-09-18
7623   Tor 0.3.5.1-alpha is the first release of the 0.3.5.x series. It adds
7624   client authorization for modern (v3) onion services, improves
7625   bootstrap reporting, begins reorganizing Tor's codebase, adds optional
7626   support for NSS in place of OpenSSL, and much more.
7628   o Major features (onion services, UI change):
7629     - For a newly created onion service, the default version is now 3.
7630       Tor still supports existing version 2 services, but the operator
7631       now needs to set "HiddenServiceVersion 2" in order to create a new
7632       version 2 service. For existing services, Tor now learns the
7633       version by reading the key file. Closes ticket 27215.
7635   o Major features (relay, UI change):
7636     - Relays no longer run as exits by default. If the "ExitRelay"
7637       option is auto (or unset), and no exit policy is specified with
7638       ExitPolicy or ReducedExitPolicy, we now treat ExitRelay as 0.
7639       Previously in this case, we allowed exit traffic and logged a
7640       warning message. Closes ticket 21530. Patch by Neel Chauhan.
7641     - Tor now validates that the ContactInfo config option is valid UTF-
7642       8 when parsing torrc. Closes ticket 27428.
7644   o Major features (bootstrap):
7645     - Don't report directory progress until after a connection to a
7646       relay or bridge has succeeded. Previously, we'd report 80%
7647       progress based on cached directory information when we couldn't
7648       even connect to the network. Closes ticket 27169.
7650   o Major features (new code layout):
7651     - Nearly all of Tor's source code has been moved around into more
7652       logical places. The "common" directory is now divided into a set
7653       of libraries in "lib", and files in the "or" directory have been
7654       split into "core" (logic absolutely needed for onion routing),
7655       "feature" (independent modules in Tor), and "app" (to configure
7656       and invoke the rest of Tor). See doc/HACKING/CodeStructure.md for
7657       more information. Closes ticket 26481.
7659       This refactoring is not complete: although the libraries have been
7660       refactored to be acyclic, the main body of Tor is still too
7661       interconnected. We will attempt to improve this in the future.
7663   o Major features (onion services v3):
7664     - Implement onion service client authorization at the descriptor
7665       level: only authorized clients can decrypt a service's descriptor
7666       to find out how to contact it. A new torrc option was added to
7667       control this client side: ClientOnionAuthDir <path>. On the
7668       service side, if the "authorized_clients/" directory exists in the
7669       onion service directory path, client configurations are read from
7670       the files within. See the manpage for more details. Closes ticket
7671       27547. Patch done by Suphanat Chunhapanya (haxxpop).
7672     - Improve revision counter generation in next-gen onion services.
7673       Onion services can now scale by hosting multiple instances on
7674       different hosts without synchronization between them, which was
7675       previously impossible because descriptors would get rejected by
7676       HSDirs. Addresses ticket 25552.
7678   o Major features (portability, cryptography, experimental, TLS):
7679     - Tor now has the option to compile with the NSS library instead of
7680       OpenSSL. This feature is experimental, and we expect that bugs may
7681       remain. It is mainly intended for environments where Tor's
7682       performance is not CPU-bound, and where NSS is already known to be
7683       installed. To try it out, configure Tor with the --enable-nss
7684       flag. Closes tickets 26631, 26815, and 26816.
7686       If you are experimenting with this option and using an old cached
7687       consensus, Tor may fail to start. To solve this, delete your
7688       "cached-consensus" and "cached-microdesc-consensus" files,
7689       (if present), and restart Tor.
7691   o Major bugfixes (directory authority):
7692     - Actually check that the address we get from DirAuthority
7693       configuration line is valid IPv4. Explicitly disallow DirAuthority
7694       address to be a DNS hostname. Fixes bug 26488; bugfix
7695       on 0.1.2.10-rc.
7697   o Major bugfixes (restart-in-process):
7698     - Fix a use-after-free error that could be caused by passing Tor an
7699       impossible set of options that would fail during options_act().
7700       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
7702   o Minor features (admin tools):
7703     - Add a new --key-expiration option to print the expiration date of
7704       the signing cert in an ed25519_signing_cert file. Resolves
7705       issue 19506.
7707   o Minor features (build):
7708     - If you pass the "--enable-pic" option to configure, Tor will try
7709       to tell the compiler to build position-independent code suitable
7710       to link into a dynamic library. (The default remains -fPIE, for
7711       code suitable for a relocatable executable.) Closes ticket 23846.
7713   o Minor features (code correctness, testing):
7714     - Tor's build process now includes a "check-includes" make target to
7715       verify that no module of Tor relies on any headers from a higher-
7716       level module. We hope to use this feature over time to help
7717       refactor our codebase. Closes ticket 26447.
7719   o Minor features (code layout):
7720     - We have a new "lowest-level" error-handling API for use by code
7721       invoked from within the logging module. With this interface, the
7722       logging code is no longer at risk of calling into itself if a
7723       failure occurs while it is trying to log something. Closes
7724       ticket 26427.
7726   o Minor features (compilation):
7727     - Tor's configure script now supports a --with-malloc= option to
7728       select your malloc implementation. Supported options are
7729       "tcmalloc", "jemalloc", "openbsd" (deprecated), and "system" (the
7730       default). Addresses part of ticket 20424. Based on a patch from
7731       Alex Xu.
7733   o Minor features (config):
7734     - The "auto" keyword in torrc is now case-insensitive. Closes
7735       ticket 26663.
7737   o Minor features (continuous integration):
7738     - Don't do a distcheck with --disable-module-dirauth in Travis.
7739       Implements ticket 27252.
7740     - Install libcap-dev and libseccomp2-dev so these optional
7741       dependencies get tested on Travis CI. Closes ticket 26560.
7742     - Only run one online rust build in Travis, to reduce network
7743       errors. Skip offline rust builds on Travis for Linux gcc, because
7744       they're redundant. Implements ticket 27252.
7745     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
7746       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
7747       Linux with default settings, because all the non-default builds
7748       use gcc on Linux. Implements ticket 27252.
7750   o Minor features (controller):
7751     - Emit CIRC_BW events as soon as we detect that we processed an
7752       invalid or otherwise dropped cell on a circuit. This allows
7753       vanguards and other controllers to react more quickly to dropped
7754       cells. Closes ticket 27678.
7755     - For purposes of CIRC_BW-based dropped cell detection, track half-
7756       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
7757       bias check cells to arrive without counting it as dropped until
7758       either the END arrives, or the windows are empty. Closes
7759       ticket 25573.
7760     - Implement a 'GETINFO md/all' controller command to enable getting
7761       all known microdescriptors. Closes ticket 8323.
7762     - The GETINFO command now support an "uptime" argument, to return
7763       Tor's uptime in seconds. Closes ticket 25132.
7765   o Minor features (denial-of-service avoidance):
7766     - Make our OOM handler aware of the DNS cache so that it doesn't
7767       fill up the memory. This check is important for our DoS mitigation
7768       subsystem. Closes ticket 18642. Patch by Neel Chauhan.
7770   o Minor features (development):
7771     - Tor's makefile now supports running the "clippy" Rust style tool
7772       on our Rust code. Closes ticket 22156.
7774   o Minor features (directory authority):
7775     - There is no longer an artificial upper limit on the length of
7776       bandwidth lines. Closes ticket 26223.
7777     - When a bandwidth file is used to obtain the bandwidth measurements,
7778       include this bandwidth file headers in the votes. Closes
7779       ticket 3723.
7780     - Improved support for networks with only a single authority or a
7781       single fallback directory. Patch from Gabriel Somlo. Closes
7782       ticket 25928.
7784   o Minor features (embedding API):
7785     - The Tor controller API now supports a function to launch Tor with
7786       a preconstructed owning controller FD, so that embedding
7787       applications don't need to manage controller ports and
7788       authentication. Closes ticket 24204.
7789     - The Tor controller API now has a function that returns the name
7790       and version of the backend implementing the API. Closes
7791       ticket 26947.
7793   o Minor features (geoip):
7794     - Update geoip and geoip6 to the September 6 2018 Maxmind GeoLite2
7795       Country database. Closes ticket 27631.
7797   o Minor features (memory management):
7798     - Get Libevent to use the same memory allocator as Tor, by calling
7799       event_set_mem_functions() during initialization. Resolves
7800       ticket 8415.
7802   o Minor features (memory usage):
7803     - When not using them, store legacy TAP public onion keys in DER-
7804       encoded format, rather than as expanded public keys. This should
7805       save several megabytes on typical clients. Closes ticket 27246.
7807   o Minor features (OpenSSL):
7808     - When possible, use RFC5869 HKDF implementation from OpenSSL rather
7809       than our own. Resolves ticket 19979.
7811   o Minor features (Rust, code quality):
7812     - Improve rust code quality in the rust protover implementation by
7813       making it more idiomatic. Includes changing an internal API to
7814       take &str instead of &String. Closes ticket 26492.
7816   o Minor features (testing):
7817     - Add scripts/test/chutney-git-bisect.sh, for bisecting using
7818       chutney. Implements ticket 27211.
7820   o Minor features (tor-resolve):
7821     - The tor-resolve utility can now be used with IPv6 SOCKS proxies.
7822       Side-effect of the refactoring for ticket 26526.
7824   o Minor features (UI):
7825     - Log each included configuration file or directory as we read it,
7826       to provide more visibility about where Tor is reading from. Patch
7827       from Unto Sten; closes ticket 27186.
7828     - Lower log level of "Scheduler type KIST has been enabled" to INFO.
7829       Closes ticket 26703.
7831   o Minor bugfixes (bootstrap):
7832     - Try harder to get descriptors in non-exit test networks, by using
7833       the mid weight for the third hop when there are no exits. Fixes
7834       bug 27237; bugfix on 0.2.6.2-alpha.
7836   o Minor bugfixes (C correctness):
7837     - Avoid casting smartlist index to int implicitly, as it may trigger
7838       a warning (-Wshorten-64-to-32). Fixes bug 26282; bugfix on
7839       0.2.3.13-alpha, 0.2.7.1-alpha and 0.2.1.1-alpha.
7840     - Use time_t for all values in
7841       predicted_ports_prediction_time_remaining(). Rework the code that
7842       computes difference between durations/timestamps. Fixes bug 27165;
7843       bugfix on 0.3.1.1-alpha.
7845   o Minor bugfixes (client, memory usage):
7846     - When not running as a directory cache, there is no need to store
7847       the text of the current consensus networkstatus in RAM.
7848       Previously, however, clients would store it anyway, at a cost of
7849       over 5 MB. Now, they do not. Fixes bug 27247; bugfix
7850       on 0.3.0.1-alpha.
7852   o Minor bugfixes (client, reachableaddresses):
7853     - Instead of adding a "reject *:*" line to ReachableAddresses when
7854       loading the configuration, add one to the policy after parsing it
7855       in parse_reachable_addresses(). This prevents extra "reject *.*"
7856       lines from accumulating on reloads. Fixes bug 20874; bugfix on
7857       0.1.1.5-alpha. Patch by Neel Chauhan.
7859   o Minor bugfixes (code quality):
7860     - Rename sandbox_getaddrinfo() and other functions to no longer
7861       misleadingly suggest that they are sandbox-only. Fixes bug 26525;
7862       bugfix on 0.2.7.1-alpha.
7864   o Minor bugfixes (configuration, Onion Services):
7865     - In rend_service_parse_port_config(), disallow any input to remain
7866       after address-port pair was parsed. This will catch address and
7867       port being whitespace-separated by mistake of the user. Fixes bug
7868       27044; bugfix on 0.2.9.10.
7870   o Minor bugfixes (continuous integration):
7871     - Stop reinstalling identical packages in our Windows CI. Fixes bug
7872       27464; bugfix on 0.3.4.1-alpha.
7874   o Minor bugfixes (controller):
7875     - Consider all routerinfo errors other than "not a server" to be
7876       transient for the purpose of "GETINFO exit-policy/*" controller
7877       request. Print stacktrace in the unlikely case of failing to
7878       recompute routerinfo digest. Fixes bug 27034; bugfix
7879       on 0.3.4.1-alpha.
7881   o Minor bugfixes (directory connection shutdown):
7882     - Avoid a double-close when shutting down a stalled directory
7883       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
7885   o Minor bugfixes (HTTP tunnel):
7886     - Fix a bug warning when closing an HTTP tunnel connection due to an
7887       HTTP request we couldn't handle. Fixes bug 26470; bugfix
7888       on 0.3.2.1-alpha.
7890   o Minor bugfixes (ipv6):
7891     - In addrs_in_same_network_family(), we choose the subnet size based
7892       on the IP version (IPv4 or IPv6). Previously, we chose a fixed
7893       subnet size of /16 for both IPv4 and IPv6 addresses. Fixes bug
7894       15518; bugfix on 0.2.3.1-alpha. Patch by Neel Chauhan.
7896   o Minor bugfixes (logging):
7897     - As a precaution, do an early return from log_addr_has_changed() if
7898       Tor is running as client. Also, log a stack trace for debugging as
7899       this function should only be called when Tor runs as server. Fixes
7900       bug 26892; bugfix on 0.1.1.9-alpha.
7901     - Refrain from mentioning bug 21018 in the logs, as it is already
7902       fixed. Fixes bug 25477; bugfix on 0.2.9.8.
7904   o Minor bugfixes (logging, documentation):
7905     - When SafeLogging is enabled, scrub IP address in
7906       channel_tls_process_netinfo_cell(). Also, add a note to manpage
7907       that scrubbing is not guaranteed on loglevels below Notice. Fixes
7908       bug 26882; bugfix on 0.2.4.10-alpha.
7910   o Minor bugfixes (netflow padding):
7911     - Ensure circuitmux queues are empty before scheduling or sending
7912       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
7914   o Minor bugfixes (onion service v2):
7915     - Log at level "info", not "warning", in the case that we do not
7916       have a consensus when a .onion request comes in. This can happen
7917       normally while bootstrapping. Fixes bug 27040; bugfix
7918       on 0.2.8.2-alpha.
7920   o Minor bugfixes (onion service v3):
7921     - When the onion service directory can't be created or has the wrong
7922       permissions, do not log a stack trace. Fixes bug 27335; bugfix
7923       on 0.3.2.1-alpha.
7925   o Minor bugfixes (OS compatibility):
7926     - Properly handle configuration changes that move a listener to/from
7927       wildcard IP address. If the first attempt to bind a socket fails,
7928       close the old listener and try binding the socket again. Fixes bug
7929       17873; bugfix on 0.0.8pre-1.
7931   o Minor bugfixes (performance)::
7932     - Rework node_is_a_configured_bridge() to no longer call
7933       node_get_all_orports(), which was performing too many memory
7934       allocations. Fixes bug 27224; bugfix on 0.2.3.9.
7936   o Minor bugfixes (relay statistics):
7937     - Update relay descriptor on bandwidth changes only when the uptime
7938       is smaller than 24h, in order to reduce the efficiency of guard
7939       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
7941   o Minor bugfixes (relays):
7942     - Consider the fact that we'll be making direct connections to our
7943       entry and guard nodes when computing the fraction of nodes that
7944       have their descriptors. Also, if we are using bridges and there is
7945       at least one bridge with a full descriptor, treat the fraction of
7946       guards available as 100%. Fixes bug 25886; bugfix on 0.2.4.10-alpha.
7947       Patch by Neel Chauhan.
7948     - Update the message logged on relays when DirCache is disabled.
7949       Since 0.3.3.5-rc, authorities require DirCache (V2Dir) for the
7950       Guard flag. Fixes bug 24312; bugfix on 0.3.3.5-rc.
7952   o Minor bugfixes (rust, protover):
7953     - Compute protover votes correctly in the rust version of the
7954       protover code. Previously, the protover rewrite in 24031 allowed
7955       repeated votes from the same voter for the same protocol version
7956       to be counted multiple times in protover_compute_vote(). Fixes bug
7957       27649; bugfix on 0.3.3.5-rc.
7958     - Reject protover names that contain invalid characters. Fixes bug
7959       27687; bugfix on 0.3.3.1-alpha.
7961   o Minor bugfixes (testing):
7962     - Fix two unit tests to work when HOME environment variable is not
7963       set. Fixes bug 27096; bugfix on 0.2.8.1-alpha.
7964     - If a unit test running in a subprocess exits abnormally or with a
7965       nonzero status code, treat the test as having failed, even if the
7966       test reported success. Without this fix, memory leaks don't cause
7967       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
7968       bugfix on 0.2.2.4-alpha.
7969     - When logging a version mismatch in our openssl_version tests,
7970       report the actual offending version strings. Fixes bug 26152;
7971       bugfix on 0.2.9.1-alpha.
7972     - Fix forking tests on Windows when there is a space somewhere in
7973       the path. Fixes bug 26437; bugfix on 0.2.2.4-alpha.
7975   o Code simplification and refactoring:
7976     - 'updateFallbackDirs.py' now ignores the blacklist file, as it's not
7977       longer needed. Closes ticket 26502.
7978     - Include paths to header files within Tor are now qualified by
7979       directory within the top-level src directory.
7980     - Many structures have been removed from the centralized "or.h"
7981       header, and moved into their own headers. This will allow us to
7982       reduce the number of places in the code that rely on each
7983       structure's contents and layout. Closes ticket 26383.
7984     - Remove ATTR_NONNULL macro from codebase. Resolves ticket 26527.
7985     - Remove GetAdaptersAddresses_fn_t. The code that used it was
7986       removed as part of the 26481 refactor. Closes ticket 27467.
7987     - Rework Tor SOCKS server code to use Trunnel and benefit from
7988       autogenerated functions for parsing and generating SOCKS wire
7989       format. New implementation is cleaner, more maintainable and
7990       should be less prone to heartbleed-style vulnerabilities.
7991       Implements a significant fraction of ticket 3569.
7992     - Split sampled_guards_update_from_consensus() and
7993       select_entry_guard_for_circuit() into subfunctions. In
7994       entry_guards_update_primary() unite three smartlist enumerations
7995       into one and move smartlist comparison code out of the function.
7996       Closes ticket 21349.
7997     - Tor now assumes that you have standards-conformant stdint.h and
7998       inttypes.h headers when compiling. Closes ticket 26626.
7999     - Unify our bloom filter logic. Previously we had two copies of this
8000       code: one for routerlist filtering, and one for address set
8001       calculations. Closes ticket 26510.
8002     - Use the simpler strcmpstart() helper in
8003       rend_parse_v2_service_descriptor instead of strncmp(). Closes
8004       ticket 27630.
8005     - Utility functions that can perform a DNS lookup are now wholly
8006       separated from those that can't, in separate headers and C
8007       modules. Closes ticket 26526.
8009   o Documentation:
8010     - Copy paragraph and URL to Tor's code of conduct document from
8011       CONTRIBUTING to new CODE_OF_CONDUCT file. Resolves ticket 26638.
8012     - Remove old instructions from INSTALL document. Closes ticket 26588.
8013     - Warn users that they should not include MyFamily line(s) in their
8014       torrc when running Tor bridge. Closes ticket 26908.
8016   o Removed features:
8017     - Tor no longer supports building with the dmalloc library. For
8018       debugging memory issues, we suggest using gperftools or msan
8019       instead. Closes ticket 26426.
8020     - Tor no longer attempts to run on Windows environments without the
8021       GetAdaptersAddresses() function. This function has existed since
8022       Windows XP, which is itself already older than we support.
8023     - Remove Tor2web functionality for version 2 onion services. The
8024       Tor2webMode and Tor2webRendezvousPoints options are now obsolete.
8025       (This feature was never shipped in vanilla Tor and it was only
8026       possible to use this feature by building the support at compile
8027       time. Tor2webMode is not implemented for version 3 onion services.)
8028       Closes ticket 26367.
8031 Changes in version 0.2.9.17 - 2018-09-10
8032   Tor 0.2.9.17 backports numerous bugfixes from later versions of Tor.
8034   o Minor features (compatibility, backport from 0.3.4.8):
8035     - Tell OpenSSL to maintain backward compatibility with previous
8036       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
8037       ciphers are disabled by default. Closes ticket 27344.
8039   o Minor features (continuous integration, backport from 0.3.4.7-rc):
8040     - Enable macOS builds in our Travis CI configuration. Closes
8041       ticket 24629.
8042     - Install libcap-dev and libseccomp2-dev so these optional
8043       dependencies get tested on Travis CI. Closes ticket 26560.
8044     - Run asciidoc during Travis CI. Implements ticket 27087.
8045     - Use ccache in our Travis CI configuration. Closes ticket 26952.
8047   o Minor features (geoip):
8048     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
8049       Country database. Closes ticket 27089.
8051   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
8052     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
8053       tell the compiler not to include the system malloc implementation.
8054       Fixes bug 20424; bugfix on 0.2.0.20-rc.
8056   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
8057     - Silence a spurious compiler warning on the GetAdaptersAddresses
8058       function pointer cast. This issue is already fixed by 26481 in
8059       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8060       bugfix on 0.2.3.11-alpha.
8061     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8062       supported, and always fails. Some compilers warn about the
8063       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8064       on 0.2.2.23-alpha.
8066   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
8067     - Don't link or search for pthreads when building for Windows, even
8068       if we are using build environment (like mingw) that provides a
8069       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8071   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
8072     - Skip a pair of unreliable key generation tests on Windows, until
8073       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8074       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8076   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
8077     - Pass the module flags to distcheck configure, and log the flags
8078       before running configure. (Backported to 0.2.9 and later as a
8079       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8081   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
8082     - When a Travis build fails, and showing a log fails, keep trying to
8083       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8084     - When we use echo in Travis, don't pass a --flag as the first
8085       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8087   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
8088     - When voting for recommended versions, make sure that all of the
8089       versions are well-formed and parsable. Fixes bug 26485; bugfix
8090       on 0.1.1.6-alpha.
8092   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
8093     - Fix a bug in out sandboxing rules for the openat() syscall.
8094       Previously, no openat() call would be permitted, which would break
8095       filesystem operations on recent glibc versions. Fixes bug 25440;
8096       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8098   o Minor bugfixes (onion services, backport from 0.3.4.8):
8099     - Silence a spurious compiler warning in
8100       rend_client_send_introduction(). Fixes bug 27463; bugfix
8101       on 0.1.1.2-alpha.
8103   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
8104     - Log a protocol warning when single onion services or Tor2web clients
8105       fail to authenticate direct connections to relays.
8106       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
8108   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
8109     - Disable core dumps in test_bt.sh, to avoid failures in "make
8110       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8112   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
8113     - Before running make test-network-all, delete old logs and test
8114       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8115       on 0.2.7.3-rc.
8117   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
8118     - Our "tortls/cert_matches_key" unit test no longer relies on
8119       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8120       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8121       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8123   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
8124     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8125       27185; bugfix on 0.2.2.2-alpha.
8128 Changes in version 0.3.2.12 - 2018-09-10
8129   Tor 0.3.2.12 backport numerous fixes from later versions of Tor.
8131   o Minor features (compatibility, backport from 0.3.4.8):
8132     - Tell OpenSSL to maintain backward compatibility with previous
8133       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
8134       ciphers are disabled by default. Closes ticket 27344.
8136   o Minor features (continuous integration, backport from 0.3.4.7-rc):
8137     - Enable macOS builds in our Travis CI configuration. Closes
8138       ticket 24629.
8139     - Install libcap-dev and libseccomp2-dev so these optional
8140       dependencies get tested on Travis CI. Closes ticket 26560.
8141     - Run asciidoc during Travis CI. Implements ticket 27087.
8142     - Use ccache in our Travis CI configuration. Closes ticket 26952.
8144   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
8145     - Use cargo cache in our Travis CI configuration. Closes
8146       ticket 26952.
8148   o Minor features (controller, backport from 0.3.4.6-rc):
8149     - The control port now exposes the list of HTTPTunnelPorts and
8150       ExtOrPorts via GETINFO net/listeners/httptunnel and
8151       net/listeners/extor respectively. Closes ticket 26647.
8153   o Minor features (directory authorities, backport from 0.3.4.7-rc):
8154     - Authorities no longer vote to make the subprotocol version
8155       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
8156       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
8158   o Minor features (geoip):
8159     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
8160       Country database. Closes ticket 27089.
8162   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
8163     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
8164       tell the compiler not to include the system malloc implementation.
8165       Fixes bug 20424; bugfix on 0.2.0.20-rc.
8166     - Don't try to use a pragma to temporarily disable the
8167       -Wunused-const-variable warning if the compiler doesn't support
8168       it. Fixes bug 26785; bugfix on 0.3.2.11.
8170   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
8171     - Silence a spurious compiler warning on the GetAdaptersAddresses
8172       function pointer cast. This issue is already fixed by 26481 in
8173       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8174       bugfix on 0.2.3.11-alpha.
8175     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8176       supported, and always fails. Some compilers warn about the
8177       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8178       on 0.2.2.23-alpha.
8180   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
8181     - Don't link or search for pthreads when building for Windows, even
8182       if we are using build environment (like mingw) that provides a
8183       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8185   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
8186     - Skip a pair of unreliable key generation tests on Windows, until
8187       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8188       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8190   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
8191     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
8192     - Pass the module flags to distcheck configure, and log the flags
8193       before running configure. (Backported to 0.2.9 and later as a
8194       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8196   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
8197     - When a Travis build fails, and showing a log fails, keep trying to
8198       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8199     - When we use echo in Travis, don't pass a --flag as the first
8200       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8202   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
8203     - When voting for recommended versions, make sure that all of the
8204       versions are well-formed and parsable. Fixes bug 26485; bugfix
8205       on 0.1.1.6-alpha.
8207   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
8208     - Fix a bug in out sandboxing rules for the openat() syscall.
8209       Previously, no openat() call would be permitted, which would break
8210       filesystem operations on recent glibc versions. Fixes bug 25440;
8211       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8213   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
8214     - Improve the log message when connection initiators fail to
8215       authenticate direct connections to relays. Fixes bug 26927; bugfix
8216       on 0.3.0.1-alpha.
8218   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
8219     - Fix bug that causes services to not ever rotate their descriptors
8220       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
8221       on 0.3.2.1-alpha.
8223   o Minor bugfixes (onion services, backport from 0.3.4.8):
8224     - Silence a spurious compiler warning in
8225       rend_client_send_introduction(). Fixes bug 27463; bugfix
8226       on 0.1.1.2-alpha.
8228   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
8229     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
8230       on 0.3.1.5-alpha.
8231     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
8232       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
8233     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
8234       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
8236   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
8237     - Log a protocol warning when single onion services or Tor2web clients
8238       fail to authenticate direct connections to relays.
8239       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
8241   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
8242     - Disable core dumps in test_bt.sh, to avoid failures in "make
8243       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8245   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
8246     - When running make test-network-all, use the mixed+hs-v2 network.
8247       (A previous fix to chutney removed v3 onion services from the
8248       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
8249       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
8250     - Before running make test-network-all, delete old logs and test
8251       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8252       on 0.2.7.3-rc.
8254   o Minor bugfixes (testing, openssl compatibility):
8255     - Our "tortls/cert_matches_key" unit test no longer relies on OpenSSL
8256       internals.  Previously, it relied on unsupported OpenSSL behavior in
8257       a way that caused it to crash with OpenSSL 1.0.2p. Fixes bug 27226;
8258       bugfix on 0.2.5.1-alpha.
8260   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
8261     - Our "tortls/cert_matches_key" unit test no longer relies on
8262       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8263       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8264       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8266   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
8267     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8268       27185; bugfix on 0.2.2.2-alpha.
8271 Changes in version 0.3.3.10 - 2018-09-10
8272   Tor 0.3.3.10 backports numerous fixes from later versions of Tor.
8274   o Minor features (bug workaround, backport from 0.3.4.7-rc):
8275     - Compile correctly on systems that provide the C11 stdatomic.h
8276       header, but where C11 atomic functions don't actually compile.
8277       Closes ticket 26779; workaround for Debian issue 903709.
8279   o Minor features (compatibility, backport from 0.3.4.8):
8280     - Tell OpenSSL to maintain backward compatibility with previous
8281       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
8282       ciphers are disabled by default. Closes ticket 27344.
8284   o Minor features (continuous integration, backport from 0.3.4.7-rc):
8285     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
8286     - Enable macOS builds in our Travis CI configuration. Closes
8287       ticket 24629.
8288     - Install libcap-dev and libseccomp2-dev so these optional
8289       dependencies get tested on Travis CI. Closes ticket 26560.
8290     - Run asciidoc during Travis CI. Implements ticket 27087.
8291     - Use ccache in our Travis CI configuration. Closes ticket 26952.
8293   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
8294     - Use cargo cache in our Travis CI configuration. Closes
8295       ticket 26952.
8297   o Minor features (controller, backport from 0.3.4.6-rc):
8298     - The control port now exposes the list of HTTPTunnelPorts and
8299       ExtOrPorts via GETINFO net/listeners/httptunnel and
8300       net/listeners/extor respectively. Closes ticket 26647.
8302   o Minor features (directory authorities, backport from 0.3.4.7-rc):
8303     - Authorities no longer vote to make the subprotocol version
8304       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
8305       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
8307   o Minor features (geoip):
8308     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
8309       Country database. Closes ticket 27089.
8311   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
8312     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
8313       tell the compiler not to include the system malloc implementation.
8314       Fixes bug 20424; bugfix on 0.2.0.20-rc.
8315     - Don't try to use a pragma to temporarily disable the
8316       -Wunused-const-variable warning if the compiler doesn't support
8317       it. Fixes bug 26785; bugfix on 0.3.2.11.
8319   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
8320     - Silence a spurious compiler warning on the GetAdaptersAddresses
8321       function pointer cast. This issue is already fixed by 26481 in
8322       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8323       bugfix on 0.2.3.11-alpha.
8324     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8325       supported, and always fails. Some compilers warn about the
8326       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8327       on 0.2.2.23-alpha.
8329   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
8330     - Don't link or search for pthreads when building for Windows, even
8331       if we are using build environment (like mingw) that provides a
8332       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8334   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
8335     - Skip a pair of unreliable key generation tests on Windows, until
8336       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8337       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8339   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
8340     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
8341     - Pass the module flags to distcheck configure, and log the flags
8342       before running configure. (Backported to 0.2.9 and later as a
8343       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8345   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
8346     - When a Travis build fails, and showing a log fails, keep trying to
8347       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8348     - When we use echo in Travis, don't pass a --flag as the first
8349       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8351   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
8352     - When voting for recommended versions, make sure that all of the
8353       versions are well-formed and parsable. Fixes bug 26485; bugfix
8354       on 0.1.1.6-alpha.
8356   o Minor bugfixes (in-process restart, backport from 0.3.4.7-rc):
8357     - Always call tor_free_all() when leaving tor_run_main(). When we
8358       did not, restarting tor in-process would cause an assertion
8359       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
8361   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
8362     - Fix a bug in our sandboxing rules for the openat() syscall.
8363       Previously, no openat() call would be permitted, which would break
8364       filesystem operations on recent glibc versions. Fixes bug 25440;
8365       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8367   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
8368     - Improve the log message when connection initiators fail to
8369       authenticate direct connections to relays. Fixes bug 26927; bugfix
8370       on 0.3.0.1-alpha.
8372   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
8373     - Fix bug that causes services to not ever rotate their descriptors
8374       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
8375       on 0.3.2.1-alpha.
8377   o Minor bugfixes (onion services, backport from 0.3.4.8):
8378     - Silence a spurious compiler warning in
8379       rend_client_send_introduction(). Fixes bug 27463; bugfix
8380       on 0.1.1.2-alpha.
8382   o Minor bugfixes (portability, backport from 0.3.4.6-rc):
8383     - Work around two different bugs in the OS X 10.10 and later SDKs
8384       that would prevent us from successfully targeting earlier versions
8385       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
8387   o Minor bugfixes (portability, backport from 0.3.4.7-rc):
8388     - Fix compilation of the unit tests on GNU/Hurd, which does not
8389       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
8390       from "paulusASol".
8392   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
8393     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
8394       on 0.3.1.5-alpha.
8395     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
8396       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
8397     - Protover parsing was accepting the presence of whitespace in
8398       version strings, which the C implementation would choke on, e.g.
8399       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
8400     - Protover parsing was ignoring a 2nd hyphen and everything after
8401       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
8402       on 0.3.3.1-alpha.
8403     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
8404       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
8405     - cd to ${abs_top_builddir}/src/rust before running cargo in
8406       src/test/test_rust.sh. This makes the working directory consistent
8407       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
8409   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
8410     - Log a protocol warning when single onion services or Tor2web clients
8411       fail to authenticate direct connections to relays.
8412       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
8414   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
8415     - Disable core dumps in test_bt.sh, to avoid failures in "make
8416       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8418   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
8419     - When running make test-network-all, use the mixed+hs-v2 network.
8420       (A previous fix to chutney removed v3 onion services from the
8421       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
8422       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
8423     - Before running make test-network-all, delete old logs and test
8424       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8425       on 0.2.7.3-rc.
8427   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
8428     - Our "tortls/cert_matches_key" unit test no longer relies on
8429       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8430       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8431       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8433   o Minor bugfixes (v3 onion services, backport from 0.3.4.6-rc):
8434     - Stop sending ed25519 link specifiers in v3 onion service introduce
8435       cells and descriptors, when the rendezvous or introduction point
8436       doesn't support ed25519 link authentication. Fixes bug 26627;
8437       bugfix on 0.3.2.4-alpha.
8439   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
8440     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8441       27185; bugfix on 0.2.2.2-alpha.
8444 Changes in version 0.3.4.8 - 2018-09-10
8445   Tor 0.3.4.8 is the first stable release in its series; it includes
8446   compilation and portability fixes.
8448   The Tor 0.3.4 series includes improvements for running Tor in
8449   low-power and embedded environments, which should help performance in
8450   general. We've begun work on better modularity, and included preliminary
8451   changes on the directory authority side to accommodate a new bandwidth
8452   measurement system.  We've also integrated more continuous-integration
8453   systems into our development process, and made corresponding changes to
8454   Tor's testing infrastructure.  Finally, we've continued to refine
8455   our anti-denial-of-service code.
8457   Below are the changes since 0.3.4.7-rc.  For a complete list of changes
8458   since 0.3.3.9, see the ReleaseNotes file.
8460   o Minor features (compatibility):
8461     - Tell OpenSSL to maintain backward compatibility with previous
8462       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
8463       ciphers are disabled by default. Closes ticket 27344.
8465   o Minor features (continuous integration):
8466     - Log the compiler path and version during Appveyor builds.
8467       Implements ticket 27449.
8468     - Show config.log and test-suite.log after failed Appveyor builds.
8469       Also upload the zipped full logs as a build artifact. Implements
8470       ticket 27430.
8472   o Minor bugfixes (compilation):
8473     - Silence a spurious compiler warning on the GetAdaptersAddresses
8474       function pointer cast. This issue is already fixed by 26481 in
8475       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8476       bugfix on 0.2.3.11-alpha.
8477     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8478       supported, and always fails. Some compilers warn about the
8479       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8480       on 0.2.2.23-alpha.
8482   o Minor bugfixes (continuous integration):
8483     - Disable gcc hardening in Appveyor Windows 64-bit builds. As of
8484       August 29 2018, Appveyor images come with gcc 8.2.0 by default.
8485       Executables compiled for 64-bit Windows with this version of gcc
8486       crash when Tor's --enable-gcc-hardening flag is set. Fixes bug
8487       27460; bugfix on 0.3.4.1-alpha.
8488     - When a Travis build fails, and showing a log fails, keep trying to
8489       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8490     - When we use echo in Travis, don't pass a --flag as the first
8491       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8493   o Minor bugfixes (onion services):
8494     - Silence a spurious compiler warning in
8495       rend_client_send_introduction(). Fixes bug 27463; bugfix
8496       on 0.1.1.2-alpha.
8498   o Minor bugfixes (testing, chutney):
8499     - When running make test-network-all, use the mixed+hs-v2 network.
8500       (A previous fix to chutney removed v3 onion services from the
8501       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
8502       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
8503     - Before running make test-network-all, delete old logs and test
8504       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8505       on 0.2.7.3-rc.
8507 Changes in version 0.3.4.7-rc - 2018-08-24
8508   Tor 0.3.4.7-rc fixes several small compilation, portability, and
8509   correctness issues in previous versions of Tor. This version is a
8510   release candidate: if no serious bugs are found, we expect that the
8511   stable 0.3.4 release will be (almost) the same as this release.
8513   o Minor features (bug workaround):
8514     - Compile correctly on systems that provide the C11 stdatomic.h
8515       header, but where C11 atomic functions don't actually compile.
8516       Closes ticket 26779; workaround for Debian issue 903709.
8518   o Minor features (continuous integration):
8519     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
8520     - Enable macOS builds in our Travis CI configuration. Closes
8521       ticket 24629.
8522     - Install libcap-dev and libseccomp2-dev so these optional
8523       dependencies get tested on Travis CI. Closes ticket 26560.
8524     - Only post Appveyor IRC notifications when the build fails.
8525       Implements ticket 27275.
8526     - Run asciidoc during Travis CI. Implements ticket 27087.
8527     - Use ccache in our Travis CI configuration. Closes ticket 26952.
8529   o Minor features (continuous integration, rust):
8530     - Use cargo cache in our Travis CI configuration. Closes
8531       ticket 26952.
8533   o Minor features (directory authorities):
8534     - Authorities no longer vote to make the subprotocol version
8535       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
8536       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
8538   o Minor features (geoip):
8539     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
8540       Country database. Closes ticket 27089.
8542   o Minor bugfixes (compilation, windows):
8543     - Don't link or search for pthreads when building for Windows, even
8544       if we are using build environment (like mingw) that provides a
8545       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8547   o Minor bugfixes (continuous integration):
8548     - Improve Appveyor CI IRC logging. Generate correct branches and
8549       URLs for pull requests and tags. Use unambiguous short commits.
8550       Fixes bug 26979; bugfix on master.
8551     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
8552     - Pass the module flags to distcheck configure, and log the flags
8553       before running configure. (Backported to 0.2.9 and later as a
8554       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8556   o Minor bugfixes (in-process restart):
8557     - Always call tor_free_all() when leaving tor_run_main(). When we
8558       did not, restarting tor in-process would cause an assertion
8559       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
8561   o Minor bugfixes (linux seccomp2 sandbox):
8562     - Fix a bug in out sandboxing rules for the openat() syscall.
8563       Previously, no openat() call would be permitted, which would break
8564       filesystem operations on recent glibc versions. Fixes bug 25440;
8565       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8567   o Minor bugfixes (onion services):
8568     - Fix bug that causes services to not ever rotate their descriptors
8569       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
8570       on 0.3.2.1-alpha.
8572   o Minor bugfixes (portability):
8573     - Fix compilation of the unit tests on GNU/Hurd, which does not
8574       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
8575       from "paulusASol".
8577   o Minor bugfixes (rust):
8578     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
8579       on 0.3.1.5-alpha.
8580     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
8581       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
8582     - Protover parsing was accepting the presence of whitespace in
8583       version strings, which the C implementation would choke on, e.g.
8584       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
8585     - Protover parsing was ignoring a 2nd hyphen and everything after
8586       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
8587       on 0.3.3.1-alpha.
8588     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
8589       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
8590     - cd to ${abs_top_builddir}/src/rust before running cargo in
8591       src/test/test_rust.sh. This makes the working directory consistent
8592       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
8594   o Minor bugfixes (testing, bootstrap):
8595     - When calculating bootstrap progress, check exit policies and the
8596       exit flag. Previously, Tor would only check the exit flag, which
8597       caused race conditions in small and fast networks like chutney.
8598       Fixes bug 27236; bugfix on 0.2.6.3-alpha.
8600   o Minor bugfixes (testing, openssl compatibility):
8601     - Our "tortls/cert_matches_key" unit test no longer relies on
8602       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8603       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8604       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8606   o Minor bugfixes (Windows, compilation):
8607     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8608       27185; bugfix on 0.2.2.2-alpha.
8611 Changes in version 0.3.4.6-rc - 2018-08-06
8612   Tor 0.3.4.6-rc fixes several small compilation, portability, and
8613   correctness issues in previous versions of Tor. This version is a
8614   release candidate: if no serious bugs are found, we expect that the
8615   stable 0.3.4 release will be (almost) the same as this release.
8617   o Major bugfixes (event scheduler):
8618     - When we enable a periodic event, schedule it in the event loop
8619       rather than running it immediately. Previously, we would re-run
8620       periodic events immediately in the middle of (for example)
8621       changing our options, with unpredictable effects. Fixes bug 27003;
8622       bugfix on 0.3.4.1-alpha.
8624   o Minor features (compilation):
8625     - When building Tor, prefer to use Python 3 over Python 2, and more
8626       recent (contemplated) versions over older ones. Closes
8627       ticket 26372.
8628     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
8629       tell the compiler not to include the system malloc implementation.
8630       Fixes bug 20424; bugfix on 0.2.0.20-rc.
8631     - Don't try to use a pragma to temporarily disable the
8632       -Wunused-const-variable warning if the compiler doesn't support
8633       it. Fixes bug 26785; bugfix on 0.3.2.11.
8635   o Minor bugfixes (continuous integration):
8636     - Skip a pair of unreliable key generation tests on Windows, until
8637       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8638       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8640   o Minor features (controller):
8641     - The control port now exposes the list of HTTPTunnelPorts and
8642       ExtOrPorts via GETINFO net/listeners/httptunnel and
8643       net/listeners/extor respectively. Closes ticket 26647.
8645   o Minor bugfixes (directory authority):
8646     - When voting for recommended versions, make sure that all of the
8647       versions are well-formed and parsable. Fixes bug 26485; bugfix
8648       on 0.1.1.6-alpha.
8650   o Minor features (geoip):
8651     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8652       Country database. Closes ticket 26674.
8654   o Minor features (Rust, portability):
8655     - Rust cross-compilation is now supported. Closes ticket 25895.
8657   o Minor bugfixes (compilation):
8658     - Update build system so that tor builds again with --disable-unittests
8659       after recent refactoring. Fixes bug 26789; bugfix on 0.3.4.3-alpha.
8660     - Fix a compilation warning on some versions of GCC when building
8661       code that calls routerinfo_get_my_routerinfo() twice, assuming
8662       that the second call will succeed if the first one did. Fixes bug
8663       26269; bugfix on 0.2.8.2-alpha.
8665   o Minor bugfixes (controller):
8666     - Report the port correctly when a port is configured to bind to
8667       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
8668     - Parse the "HSADDRESS=" parameter in HSPOST commands properly.
8669       Previously, it was misparsed and ignored. Fixes bug 26523; bugfix
8670       on 0.3.3.1-alpha. Patch by "akwizgran".
8672   o Minor bugfixes (correctness, flow control):
8673     - Upon receiving a stream-level SENDME cell, verify that our window
8674       has not grown too large. Fixes bug 26214; bugfix on svn
8675       r54 (pre-0.0.1).
8677   o Minor bugfixes (memory, correctness):
8678     - Fix a number of small memory leaks identified by coverity. Fixes
8679       bug 26467; bugfix on numerous Tor versions.
8681   o Minor bugfixes (logging):
8682     - Improve the log message when connection initiators fail to
8683       authenticate direct connections to relays. Fixes bug 26927; bugfix
8684       on 0.3.0.1-alpha.
8686   o Minor bugfixes (portability):
8687     - Avoid a compilation error in test_bwmgt.c on Solaris 10. Fixes bug
8688       26994; bugfix on 0.3.4.1-alpha.
8689     - Work around two different bugs in the OS X 10.10 and later SDKs
8690       that would prevent us from successfully targeting earlier versions
8691       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
8693   o Minor bugfixes (single onion services, Tor2web):
8694     - Log a protocol warning when single onion services or Tor2web
8695       clients fail to authenticate direct connections to relays. Fixes
8696       bug 26924; bugfix on 0.2.9.1-alpha.
8698   o Minor bugfixes (testing):
8699     - Disable core dumps in test_bt.sh, to avoid failures in "make
8700       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8702   o Minor bugfixes (testing, compatibility):
8703     - When running the ntor_ref.py and hs_ntor_ref.py tests, make sure
8704       only to pass strings (rather than "bytes" objects) to the Python
8705       subprocess module. Python 3 on Windows seems to require this.
8706       Fixes bug 26535; bugfix on 0.2.5.5-alpha (for ntor_ref.py) and
8707       0.3.1.1-alpha (for hs_ntor_ref.py).
8709   o Minor bugfixes (v3 onion services):
8710     - Stop sending ed25519 link specifiers in v3 onion service introduce
8711       cells and descriptors, when the rendezvous or introduction point
8712       doesn't support ed25519 link authentication. Fixes bug 26627;
8713       bugfix on 0.3.2.4-alpha.
8716 Changes in version 0.3.4.5-rc - 2018-07-13
8717   Tor 0.3.4.5-rc moves to a new bridge authority, meaning people running
8718   bridge relays should upgrade.
8720   o Directory authority changes:
8721     - The "Bifroest" bridge authority has been retired; the new bridge
8722       authority is "Serge", and it is operated by George from the
8723       TorBSD project. Closes ticket 26771.
8726 Changes in version 0.3.3.9 - 2018-07-13
8727   Tor 0.3.3.9 moves to a new bridge authority, meaning people running
8728   bridge relays should upgrade.
8730   o Directory authority changes:
8731     - The "Bifroest" bridge authority has been retired; the new bridge
8732       authority is "Serge", and it is operated by George from the
8733       TorBSD project. Closes ticket 26771.
8736 Changes in version 0.3.2.11 - 2018-07-13
8737   Tor 0.3.2.11 moves to a new bridge authority, meaning people running
8738   bridge relays should upgrade. We also take this opportunity to backport
8739   other minor fixes.
8741   o Directory authority changes:
8742     - The "Bifroest" bridge authority has been retired; the new bridge
8743       authority is "Serge", and it is operated by George from the
8744       TorBSD project. Closes ticket 26771.
8746   o Directory authority changes (backport from 0.3.3.7):
8747     - Add an IPv6 address for the "dannenberg" directory authority.
8748       Closes ticket 26343.
8750   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
8751     - When directory authorities read a zero-byte bandwidth file, they
8752       would previously log a warning with the contents of an
8753       uninitialised buffer. They now log a warning about the empty file
8754       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
8756   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
8757     - Correctly detect when onion services get disabled after HUP. Fixes
8758       bug 25761; bugfix on 0.3.2.1.
8760   o Minor features (sandbox, backport from 0.3.3.4-alpha):
8761     - Explicitly permit the poll() system call when the Linux
8762       seccomp2-based sandbox is enabled: apparently, some versions of
8763       libc use poll() when calling getpwnam(). Closes ticket 25313.
8765   o Minor feature (continuous integration, backport from 0.3.3.5-rc):
8766     - Update the Travis CI configuration to use the stable Rust channel,
8767       now that we have decided to require that. Closes ticket 25714.
8769   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
8770     - Our .travis.yml configuration now includes support for testing the
8771       results of "make distcheck". (It's not uncommon for "make check"
8772       to pass but "make distcheck" to fail.) Closes ticket 25814.
8773     - Our Travis CI configuration now integrates with the Coveralls
8774       coverage analysis tool. Closes ticket 25818.
8776   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
8777     - Add several checks to detect whether Tor relays are uploading
8778       their descriptors without specifying why they regenerated them.
8779       Diagnostic for ticket 25686.
8781   o Minor features (compilation, backport from 0.3.4.4-rc):
8782     - When building Tor, prefer to use Python 3 over Python 2, and more
8783       recent (contemplated) versions over older ones. Closes
8784       ticket 26372.
8786   o Minor features (geoip):
8787     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8788       Country database. Closes ticket 26674.
8790   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
8791     - Upon receiving a malformed connected cell, stop processing the
8792       cell immediately. Previously we would mark the connection for
8793       close, but continue processing the cell as if the connection were
8794       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
8796   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
8797     - Allow the nanosleep() system call, which glibc uses to implement
8798       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
8800   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
8801     - When running the hs_ntor_ref.py test, make sure only to pass
8802       strings (rather than "bytes" objects) to the Python subprocess
8803       module. Python 3 on Windows seems to require this. Fixes bug
8804       26535; bugfix on 0.3.1.1-alpha.
8805     - When running the ntor_ref.py test, make sure only to pass strings
8806       (rather than "bytes" objects) to the Python subprocess module.
8807       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
8808       on 0.2.5.5-alpha.
8810   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
8811     - Work around a change in OpenSSL 1.1.1 where return values that
8812       would previously indicate "no password" now indicate an empty
8813       password. Without this workaround, Tor instances running with
8814       OpenSSL 1.1.1 would accept descriptors that other Tor instances
8815       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
8817   o Minor bugfixes (documentation, backport from 0.3.3.5-rc):
8818     - Document that the PerConnBW{Rate,Burst} options will fall back to
8819       their corresponding consensus parameters only if those parameters
8820       are set. Previously we had claimed that these values would always
8821       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
8823   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
8824     - Fix a compilation warning on some versions of GCC when building
8825       code that calls routerinfo_get_my_routerinfo() twice, assuming
8826       that the second call will succeed if the first one did. Fixes bug
8827       26269; bugfix on 0.2.8.2-alpha.
8829   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
8830     - Don't consider Tor running as a client if the ControlPort is open,
8831       but no actual client ports are open. Fixes bug 26062; bugfix
8832       on 0.2.9.4-alpha.
8834   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
8835     - Prevent a possible out-of-bounds smartlist read in
8836       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
8838   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
8839     - Fix a very unlikely (impossible, we believe) null pointer
8840       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
8841       Coverity; this is CID 1430932.
8843   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
8844     - Fix a memory leak when a v3 onion service is configured and gets a
8845       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
8846     - When parsing the descriptor signature, look for the token plus an
8847       extra white-space at the end. This is more correct but also will
8848       allow us to support new fields that might start with "signature".
8849       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
8851   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
8852     - Relays now correctly block attempts to re-extend to the previous
8853       relay by Ed25519 identity. Previously they would warn in this
8854       case, but not actually reject the attempt. Fixes bug 26158; bugfix
8855       on 0.3.0.1-alpha.
8857   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
8858     - Avoid a crash when running with DirPort set but ORPort turned off.
8859       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
8861   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
8862     - Silence unused-const-variable warnings in zstd.h with some GCC
8863       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
8865   o Minor bugfixes (testing, backport from 0.3.3.4-alpha):
8866     - Avoid intermittent test failures due to a test that had relied on
8867       onion service introduction point creation finishing within 5
8868       seconds of real clock time. Fixes bug 25450; bugfix
8869       on 0.3.1.3-alpha.
8871   o Minor bugfixes (compilation, backport from 0.3.3.4-alpha):
8872     - Fix a C99 compliance issue in our configuration script that caused
8873       compilation issues when compiling Tor with certain versions of
8874       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
8876   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
8877     - Fix a number of small memory leaks identified by coverity. Fixes
8878       bug 26467; bugfix on numerous Tor versions.
8880   o Code simplification and refactoring (backport from 0.3.3.5-rc):
8881     - Move the list of default directory authorities to its own file.
8882       Closes ticket 24854. Patch by "beastr0".
8885 Changes in version 0.2.9.16 - 2018-07-13
8886   Tor 0.2.9.16 moves to a new bridge authority, meaning people running
8887   bridge relays should upgrade. We also take this opportunity to backport
8888   other minor fixes.
8890   o Directory authority changes:
8891     - The "Bifroest" bridge authority has been retired; the new bridge
8892       authority is "Serge", and it is operated by George from the
8893       TorBSD project. Closes ticket 26771.
8895   o Directory authority changes (backport from 0.3.3.7):
8896     - Add an IPv6 address for the "dannenberg" directory authority.
8897       Closes ticket 26343.
8899   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
8900     - When directory authorities read a zero-byte bandwidth file, they
8901       would previously log a warning with the contents of an
8902       uninitialised buffer. They now log a warning about the empty file
8903       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
8905   o Minor features (sandbox, backport from 0.3.3.4-alpha):
8906     - Explicitly permit the poll() system call when the Linux
8907       seccomp2-based sandbox is enabled: apparently, some versions of
8908       libc use poll() when calling getpwnam(). Closes ticket 25313.
8910   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
8911     - Our .travis.yml configuration now includes support for testing the
8912       results of "make distcheck". (It's not uncommon for "make check"
8913       to pass but "make distcheck" to fail.) Closes ticket 25814.
8914     - Our Travis CI configuration now integrates with the Coveralls
8915       coverage analysis tool. Closes ticket 25818.
8917   o Minor features (compilation, backport from 0.3.4.4-rc):
8918     - When building Tor, prefer to use Python 3 over Python 2, and more
8919       recent (contemplated) versions over older ones. Closes
8920       ticket 26372.
8922   o Minor features (geoip):
8923     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8924       Country database. Closes ticket 26674.
8926   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
8927     - Upon receiving a malformed connected cell, stop processing the
8928       cell immediately. Previously we would mark the connection for
8929       close, but continue processing the cell as if the connection were
8930       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
8932   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
8933     - Allow the nanosleep() system call, which glibc uses to implement
8934       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
8936   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
8937     - When running the ntor_ref.py test, make sure only to pass strings
8938       (rather than "bytes" objects) to the Python subprocess module.
8939       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
8940       on 0.2.5.5-alpha.
8942   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
8943     - Work around a change in OpenSSL 1.1.1 where return values that
8944       would previously indicate "no password" now indicate an empty
8945       password. Without this workaround, Tor instances running with
8946       OpenSSL 1.1.1 would accept descriptors that other Tor instances
8947       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
8949   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
8950     - Fix a compilation warning on some versions of GCC when building
8951       code that calls routerinfo_get_my_routerinfo() twice, assuming
8952       that the second call will succeed if the first one did. Fixes bug
8953       26269; bugfix on 0.2.8.2-alpha.
8955   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
8956     - Don't consider Tor running as a client if the ControlPort is open,
8957       but no actual client ports are open. Fixes bug 26062; bugfix
8958       on 0.2.9.4-alpha.
8960   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
8961     - Prevent a possible out-of-bounds smartlist read in
8962       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
8964   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
8965     - Fix a very unlikely (impossible, we believe) null pointer
8966       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
8967       Coverity; this is CID 1430932.
8969   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
8970     - Fix a number of small memory leaks identified by coverity. Fixes
8971       bug 26467; bugfix on numerous Tor versions.
8973   o Code simplification and refactoring (backport from 0.3.3.5-rc):
8974     - Move the list of default directory authorities to its own file.
8975       Closes ticket 24854. Patch by "beastr0".
8978 Changes in version 0.3.4.4-rc - 2018-07-09
8979   Tor 0.3.4.4-rc fixes several small compilation, portability, and
8980   correctness issues in previous versions of Tor. This version is a
8981   release candidate: if no serious bugs are found, we expect that the
8982   stable 0.3.4 release will be (almost) the same as this release.
8984   o Minor features (compilation):
8985     - When building Tor, prefer to use Python 3 over Python 2, and more
8986       recent (contemplated) versions over older ones. Closes
8987       ticket 26372.
8989   o Minor features (geoip):
8990     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8991       Country database. Closes ticket 26674.
8993   o Minor features (Rust, portability):
8994     - Rust cross-compilation is now supported. Closes ticket 25895.
8996   o Minor bugfixes (compilation):
8997     - Fix a compilation warning on some versions of GCC when building
8998       code that calls routerinfo_get_my_routerinfo() twice, assuming
8999       that the second call will succeed if the first one did. Fixes bug
9000       26269; bugfix on 0.2.8.2-alpha.
9002   o Minor bugfixes (control port):
9003     - Report the port correctly when a port is configured to bind to
9004       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
9005     - Handle the HSADDRESS= argument to the HSPOST command properly.
9006       (Previously, this argument was misparsed and thus ignored.) Fixes
9007       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
9009   o Minor bugfixes (correctness, flow control):
9010     - Upon receiving a stream-level SENDME cell, verify that our window
9011       has not grown too large. Fixes bug 26214; bugfix on svn
9012       r54 (pre-0.0.1).
9014   o Minor bugfixes (memory, correctness):
9015     - Fix a number of small memory leaks identified by coverity. Fixes
9016       bug 26467; bugfix on numerous Tor versions.
9018   o Minor bugfixes (testing, compatibility):
9019     - When running the hs_ntor_ref.py test, make sure only to pass
9020       strings (rather than "bytes" objects) to the Python subprocess
9021       module. Python 3 on Windows seems to require this. Fixes bug
9022       26535; bugfix on 0.3.1.1-alpha.
9023     - When running the ntor_ref.py test, make sure only to pass strings
9024       (rather than "bytes" objects) to the Python subprocess module.
9025       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
9026       on 0.2.5.5-alpha.
9029 Changes in version 0.3.3.8 - 2018-07-09
9030   Tor 0.3.3.8 backports several changes from the 0.3.4.x series, including
9031   fixes for a memory leak affecting directory authorities.
9033   o Major bugfixes (directory authority, backport from 0.3.4.3-alpha):
9034     - Stop leaking memory on directory authorities when planning to
9035       vote. This bug was crashing authorities by exhausting their
9036       memory. Fixes bug 26435; bugfix on 0.3.3.6.
9038   o Major bugfixes (rust, testing, backport from 0.3.4.3-alpha):
9039     - Make sure that failing tests in Rust will actually cause the build
9040       to fail: previously, they were ignored. Fixes bug 26258; bugfix
9041       on 0.3.3.4-alpha.
9043   o Minor features (compilation, backport from 0.3.4.4-rc):
9044     - When building Tor, prefer to use Python 3 over Python 2, and more
9045       recent (contemplated) versions over older ones. Closes
9046       ticket 26372.
9048   o Minor features (geoip):
9049     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
9050       Country database. Closes ticket 26674.
9052   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
9053     - Add several checks to detect whether Tor relays are uploading
9054       their descriptors without specifying why they regenerated them.
9055       Diagnostic for ticket 25686.
9057   o Minor bugfixes (circuit path selection, backport from 0.3.4.1-alpha):
9058     - Don't count path selection failures as circuit build failures.
9059       This change should eliminate cases where Tor blames its guard or
9060       the network for situations like insufficient microdescriptors
9061       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
9062       on 0.3.3.1-alpha.
9064   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
9065     - Fix a compilation warning on some versions of GCC when building
9066       code that calls routerinfo_get_my_routerinfo() twice, assuming
9067       that the second call will succeed if the first one did. Fixes bug
9068       26269; bugfix on 0.2.8.2-alpha.
9070   o Minor bugfixes (control port, backport from 0.3.4.4-rc):
9071     - Handle the HSADDRESS= argument to the HSPOST command properly.
9072       (Previously, this argument was misparsed and thus ignored.) Fixes
9073       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
9075   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
9076     - Fix a number of small memory leaks identified by coverity. Fixes
9077       bug 26467; bugfix on numerous Tor versions.
9079   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
9080     - Relays now correctly block attempts to re-extend to the previous
9081       relay by Ed25519 identity. Previously they would warn in this
9082       case, but not actually reject the attempt. Fixes bug 26158; bugfix
9083       on 0.3.0.1-alpha.
9085   o Minor bugfixes (restart-in-process, backport from 0.3.4.1-alpha):
9086     - When shutting down, Tor now clears all the flags in the control.c
9087       module. This should prevent a bug where authentication cookies are
9088       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
9090   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
9091     - When running the hs_ntor_ref.py test, make sure only to pass
9092       strings (rather than "bytes" objects) to the Python subprocess
9093       module. Python 3 on Windows seems to require this. Fixes bug
9094       26535; bugfix on 0.3.1.1-alpha.
9095     - When running the ntor_ref.py test, make sure only to pass strings
9096       (rather than "bytes" objects) to the Python subprocess module.
9097       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
9098       on 0.2.5.5-alpha.
9101 Changes in version 0.3.4.3-alpha - 2018-06-26
9102   Tor 0.3.4.3-alpha fixes several bugs in earlier versions, including
9103   one that was causing stability issues on directory authorities.
9105   o Major bugfixes (directory authority):
9106     - Stop leaking memory on directory authorities when planning to
9107       vote. This bug was crashing authorities by exhausting their
9108       memory. Fixes bug 26435; bugfix on 0.3.3.6.
9110   o Major bugfixes (rust, testing):
9111     - Make sure that failing tests in Rust will actually cause the build
9112       to fail: previously, they were ignored. Fixes bug 26258; bugfix
9113       on 0.3.3.4-alpha.
9115   o Minor feature (directory authorities):
9116     - Stop warning about incomplete bw lines before the first complete
9117       bw line has been found, so that additional header lines can be
9118       ignored. Fixes bug 25960; bugfix on 0.2.2.1-alpha
9120   o Minor features (relay, diagnostic):
9121     - Add several checks to detect whether Tor relays are uploading
9122       their descriptors without specifying why they regenerated them.
9123       Diagnostic for ticket 25686.
9125   o Minor features (unit tests):
9126     - Test complete bandwidth measurements files, and test that
9127       incomplete bandwidth lines only give warnings when the end of the
9128       header has not been detected. Fixes bug 25947; bugfix
9129       on 0.2.2.1-alpha
9131   o Minor bugfixes (compilation):
9132     - Refrain from compiling unit testing related object files when
9133       --disable-unittests is set to configure script. Fixes bug 24891;
9134       bugfix on 0.2.5.1-alpha.
9135     - When linking the libtor_testing.a library, only include the
9136       dirauth object files once. Previously, they were getting added
9137       twice. Fixes bug 26402; bugfix on 0.3.4.1-alpha.
9138     - The --enable-fatal-warnings flag now affects Rust code as well.
9139       Closes ticket 26245.
9141   o Minor bugfixes (onion services):
9142     - Recompute some consensus information after detecting a clock jump,
9143       or after transitioning from a non-live consensus to a live
9144       consensus. We do this to avoid having an outdated state, and
9145       miscalculating the index for next-generation onion services. Fixes
9146       bug 24977; bugfix on 0.3.2.1-alpha.
9148   o Minor bugfixes (relay):
9149     - Relays now correctly block attempts to re-extend to the previous
9150       relay by Ed25519 identity. Previously they would warn in this
9151       case, but not actually reject the attempt. Fixes bug 26158; bugfix
9152       on 0.3.0.1-alpha.
9154   o Minor bugfixes (testing):
9155     - Fix compilation of the doctests in the Rust crypto crate. Fixes
9156       bug 26415; bugfix on 0.3.4.1-alpha.
9157     - Instead of trying to read the geoip configuration files from
9158       within the unit tests, instead create our own ersatz files with
9159       just enough geoip data in the format we expect. Trying to read
9160       from the source directory created problems on Windows with mingw,
9161       where the build system's paths are not the same as the platform's
9162       paths. Fixes bug 25787; bugfix on 0.3.4.1-alpha.
9163     - Refrain from trying to get an item from an empty smartlist in
9164       test_bridges_clear_bridge_list. Set DEBUG_SMARTLIST in unit tests
9165       to catch improper smartlist usage. Furthermore, enable
9166       DEBUG_SMARTLIST globally when build is configured with fragile
9167       hardening. Fixes bug 26196; bugfix on 0.3.4.1-alpha.
9170 Changes in version 0.3.3.7 - 2018-06-12
9171   Tor 0.3.3.7 backports several changes from the 0.3.4.x series, including
9172   fixes for bugs affecting compatibility and stability.
9174   o Directory authority changes:
9175     - Add an IPv6 address for the "dannenberg" directory authority.
9176       Closes ticket 26343.
9178   o Minor features (geoip):
9179     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
9180       Country database. Closes ticket 26351.
9182   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
9183     - Work around a change in OpenSSL 1.1.1 where return values that
9184       would previously indicate "no password" now indicate an empty
9185       password. Without this workaround, Tor instances running with
9186       OpenSSL 1.1.1 would accept descriptors that other Tor instances
9187       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
9189   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
9190     - Silence unused-const-variable warnings in zstd.h with some GCC
9191       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
9193   o Minor bugfixes (controller, backport from 0.3.4.2-alpha):
9194     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
9195       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
9196       miscounting the total number of circuits for these field values.)
9197       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
9199   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
9200     - Prevent a possible out-of-bounds smartlist read in
9201       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
9203   o Minor bugfixes (path selection, backport from 0.3.4.1-alpha):
9204     - Only select relays when they have the descriptors we prefer to use
9205       for them. This change fixes a bug where we could select a relay
9206       because it had _some_ descriptor, but reject it later with a
9207       nonfatal assertion error because it didn't have the exact one we
9208       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
9211 Changes in version 0.3.4.2-alpha - 2018-06-12
9212   Tor 0.3.4.2-alpha fixes several minor bugs in the previous alpha
9213   release, and forward-ports an authority-only security fix from 0.3.3.6.
9215   o Directory authority changes:
9216     - Add an IPv6 address for the "dannenberg" directory authority.
9217       Closes ticket 26343.
9219   o Major bugfixes (security, directory authority, denial-of-service, also in 0.3.3.6):
9220     - Fix a bug that could have allowed an attacker to force a directory
9221       authority to use up all its RAM by passing it a maliciously
9222       crafted protocol versions string. Fixes bug 25517; bugfix on
9223       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
9225   o Minor features (continuous integration):
9226     - Add the necessary configuration files for continuous integration
9227       testing on Windows, via the Appveyor platform. Closes ticket
9228       25549. Patches from Marcin Cieślak and Isis Lovecruft.
9230   o Minor features (geoip):
9231     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
9232       Country database. Closes ticket 26351.
9234   o Minor bugfixes (compatibility, openssl):
9235     - Work around a change in OpenSSL 1.1.1 where return values that
9236       would previously indicate "no password" now indicate an empty
9237       password. Without this workaround, Tor instances running with
9238       OpenSSL 1.1.1 would accept descriptors that other Tor instances
9239       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
9241   o Minor bugfixes (compilation):
9242     - Silence unused-const-variable warnings in zstd.h with some GCC
9243       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
9244     - Fix compilation when using OpenSSL 1.1.0 with the "no-deprecated"
9245       flag enabled. Fixes bug 26156; bugfix on 0.3.4.1-alpha.
9246     - Avoid a compiler warning when casting the return value of
9247       smartlist_len() to double with DEBUG_SMARTLIST enabled. Fixes bug
9248       26283; bugfix on 0.2.4.10-alpha.
9250   o Minor bugfixes (control port):
9251     - Do not count 0-length RELAY_COMMAND_DATA cells as valid data in
9252       CIRC_BW events. Previously, such cells were counted entirely in
9253       the OVERHEAD field. Now they are not. Fixes bug 26259; bugfix
9254       on 0.3.4.1-alpha.
9256   o Minor bugfixes (controller):
9257     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
9258       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
9259       miscounting the total number of circuits for these field values.)
9260       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
9262   o Minor bugfixes (hardening):
9263     - Prevent a possible out-of-bounds smartlist read in
9264       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
9266   o Minor bugfixes (onion services):
9267     - Fix a bug that blocked the creation of ephemeral v3 onion
9268       services. Fixes bug 25939; bugfix on 0.3.4.1-alpha.
9270   o Minor bugfixes (test coverage tools):
9271     - Update our "cov-diff" script to handle output from the latest
9272       version of gcov, and to remove extraneous timestamp information
9273       from its output. Fixes bugs 26101 and 26102; bugfix
9274       on 0.2.5.1-alpha.
9277 Changes in version 0.3.3.6 - 2018-05-22
9278   Tor 0.3.3.6 is the first stable release in the 0.3.3 series. It
9279   backports several important fixes from the 0.3.4.1-alpha.
9281   The Tor 0.3.3 series includes controller support and other
9282   improvements for v3 onion services, official support for embedding Tor
9283   within other applications, and our first non-trivial module written in
9284   the Rust programming language. (Rust is still not enabled by default
9285   when building Tor.) And as usual, there are numerous other smaller
9286   bugfixes, features, and improvements.
9288   Below are the changes since 0.3.3.5-rc. For a list of all changes
9289   since 0.3.2.10, see the ReleaseNotes file.
9291   o Major bugfixes (directory authorities, security, backport from 0.3.4.1-alpha):
9292     - When directory authorities read a zero-byte bandwidth file, they
9293       would previously log a warning with the contents of an
9294       uninitialised buffer. They now log a warning about the empty file
9295       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
9297   o Major bugfixes (security, directory authority, denial-of-service):
9298     - Fix a bug that could have allowed an attacker to force a directory
9299       authority to use up all its RAM by passing it a maliciously
9300       crafted protocol versions string. Fixes bug 25517; bugfix on
9301       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
9303   o Major bugfixes (crash, backport from 0.3.4.1-alpha):
9304     - Avoid a rare assertion failure in the circuit build timeout code
9305       if we fail to allow any circuits to actually complete. Fixes bug
9306       25733; bugfix on 0.2.2.2-alpha.
9308   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
9309     - Avoid a crash when testing router reachability on a router that
9310       could have an ed25519 ID, but which does not. Fixes bug 25415;
9311       bugfix on 0.3.3.2-alpha.
9313   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
9314     - Correctly detect when onion services get disabled after HUP. Fixes
9315       bug 25761; bugfix on 0.3.2.1.
9317   o Major bugfixes (relay, denial of service, backport from 0.3.4.1-alpha):
9318     - Impose a limit on circuit cell queue size. The limit can be
9319       controlled by a consensus parameter. Fixes bug 25226; bugfix
9320       on 0.2.4.14-alpha.
9322   o Minor features (compatibility, backport from 0.3.4.1-alpha):
9323     - Avoid some compilation warnings with recent versions of LibreSSL.
9324       Closes ticket 26006.
9326   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
9327     - Our .travis.yml configuration now includes support for testing the
9328       results of "make distcheck". (It's not uncommon for "make check"
9329       to pass but "make distcheck" to fail.) Closes ticket 25814.
9330     - Our Travis CI configuration now integrates with the Coveralls
9331       coverage analysis tool. Closes ticket 25818.
9333   o Minor features (geoip):
9334     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
9335       database. Closes ticket 26104.
9337   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
9338     - Don't consider Tor running as a client if the ControlPort is open,
9339       but no actual client ports are open. Fixes bug 26062; bugfix
9340       on 0.2.9.4-alpha.
9342   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
9343     - Upon receiving a malformed connected cell, stop processing the
9344       cell immediately. Previously we would mark the connection for
9345       close, but continue processing the cell as if the connection were
9346       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
9348   o Minor bugfixes (documentation, backport from 0.3.4.1-alpha):
9349     - Stop saying in the manual that clients cache ipv4 dns answers from
9350       exit relays. We haven't used them since 0.2.6.3-alpha, and in
9351       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
9352       we forgot to say so in the man page. Fixes bug 26052; bugfix
9353       on 0.3.2.6-alpha.
9355   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
9356     - Allow the nanosleep() system call, which glibc uses to implement
9357       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
9359   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
9360     - Fix a memory leak when a v3 onion service is configured and gets a
9361       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
9362     - When parsing the descriptor signature, look for the token plus an
9363       extra white-space at the end. This is more correct but also will
9364       allow us to support new fields that might start with "signature".
9365       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
9367   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
9368     - Avoid a crash when running with DirPort set but ORPort turned off.
9369       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
9371   o Documentation (backport from 0.3.4.1-alpha):
9372     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
9373       ticket 25857. Patch from "CTassisF".
9376 Changes in version 0.3.4.1-alpha - 2018-05-17
9377   Tor 0.3.4.1-alpha is the first release in the 0.3.4.x series. It
9378   includes refactoring to begin reducing Tor's binary size and idle CPU
9379   usage on mobile, along with prep work for new bandwidth scanners,
9380   improvements to the experimental "vanguards" feature, and numerous
9381   other small features and bugfixes.
9383   o New system requirements:
9384     - Tor no longer tries to support old operating systems without
9385       mmap() or some local equivalent. Apparently, compilation on such
9386       systems has been broken for some time, without anybody noticing or
9387       complaining. Closes ticket 25398.
9389   o Major feature (directory authority, modularization):
9390     - The directory authority subsystem has been modularized. The code
9391       is now located in src/or/dirauth/, and is compiled in by default.
9392       To disable the module, the configure option
9393       --disable-module-dirauth has been added. This module may be
9394       disabled by default in some future release. Closes ticket 25610.
9396   o Major features (main loop, CPU usage):
9397     - When Tor is disabled (via DisableNetwork or via hibernation), it
9398       no longer needs to run any per-second events. This change should
9399       make it easier for mobile applications to disable Tor while the
9400       device is sleeping, or Tor is not running. Closes ticket 26063.
9401     - Tor no longer enables all of its periodic events by default.
9402       Previously, Tor would enable all possible main loop events,
9403       regardless of whether it needed them. Furthermore, many of these
9404       events are now disabled with Tor is hibernating or DisableNetwork
9405       is set. This is a big step towards reducing client CPU usage by
9406       reducing the amount of wake-ups the daemon does. Closes ticket
9407       25376 and 25762.
9408     - The bandwidth-limitation logic has been refactored so that
9409       bandwidth calculations are performed on-demand, rather than every
9410       TokenBucketRefillInterval milliseconds. This change should improve
9411       the granularity of our bandwidth calculations, and limit the
9412       number of times that the Tor process needs to wake up when it is
9413       idle. Closes ticket 25373.
9414     - Move responsibility for many operations from a once-per-second
9415       callback to a callback that is only scheduled as needed. Moving
9416       this functionality has allowed us to disable the callback when
9417       Tor's network is disabled. Once enough items are removed from our
9418       once-per-second callback, we can eliminate it entirely to conserve
9419       CPU when idle. The functionality removed includes: closing
9420       connections, circuits, and channels (ticket 25932); consensus
9421       voting (25937); flushing log callbacks (25951); honoring delayed
9422       SIGNEWNYM requests (25949); rescanning the consensus cache
9423       (25931); saving the state file to disk (25948); warning relay
9424       operators about unreachable ports (25952); and keeping track of
9425       Tor's uptime (26009).
9427   o Major bugfixes (directory authorities, security):
9428     - When directory authorities read a zero-byte bandwidth file, they
9429       would previously log a warning with the contents of an
9430       uninitialised buffer. They now log a warning about the empty file
9431       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
9433   o Major bugfixes (crash):
9434     - Avoid a rare assertion failure in the circuit build timeout code
9435       if we fail to allow any circuits to actually complete. Fixes bug
9436       25733; bugfix on 0.2.2.2-alpha.
9438   o Major bugfixes (directory authority):
9439     - Avoid a crash when testing router reachability on a router that
9440       could have an ed25519 ID, but which does not. Fixes bug 25415;
9441       bugfix on 0.3.3.2-alpha.
9443   o Major bugfixes (onion service):
9444     - Correctly detect when onion services get disabled after HUP. Fixes
9445       bug 25761; bugfix on 0.3.2.1.
9447   o Major bugfixes (protover, voting):
9448     - Revise Rust implementation of protover to use a more memory-
9449       efficient voting algorithm and corresponding data structures, thus
9450       avoiding a potential (but small impact) DoS attack where specially
9451       crafted protocol strings would expand to several potential
9452       megabytes in memory. In the process, several portions of code were
9453       revised to be methods on new, custom types, rather than functions
9454       taking interchangeable types, thus increasing type safety of the
9455       module. Custom error types and handling were added as well, in
9456       order to facilitate better error dismissal/handling in outside
9457       crates and avoid mistakenly passing an internal error string to C
9458       over the FFI boundary. Many tests were added, and some previous
9459       differences between the C and Rust implementations have been
9460       remedied. Fixes bug 24031; bugfix on 0.3.3.1-alpha.
9462   o Major bugfixes (relay, denial of service):
9463     - Impose a limit on circuit cell queue size. The limit can be
9464       controlled by a consensus parameter. Fixes bug 25226; bugfix
9465       on 0.2.4.14-alpha.
9467   o Minor features (accounting):
9468     - When Tor becomes dormant, it now uses a scheduled event to wake up
9469       at the right time. Previously, we would use the per-second timer
9470       to check whether to wake up, but we no longer have any per-second
9471       timers enabled when the network is disabled. Closes ticket 26064.
9473   o Minor features (code quality):
9474     - Add optional spell-checking for the Tor codebase, using the
9475       "misspell" program. To use this feature, run "make check-typos".
9476       Closes ticket 25024.
9478   o Minor features (compatibility):
9479     - Tor now detects versions of OpenSSL 1.1.0 and later compiled with
9480       the no-deprecated option, and builds correctly with them. Closes
9481       tickets 19429, 19981, and 25353.
9482     - Avoid some compilation warnings with recent versions of LibreSSL.
9483       Closes ticket 26006.
9485   o Minor features (compression, zstd):
9486     - When running with zstd, Tor now considers using advanced functions
9487       that the zstd maintainers have labeled as potentially unstable. To
9488       prevent breakage, Tor will only use this functionality when the
9489       runtime version of the zstd library matches the version with which
9490       Tor was compiled. Closes ticket 25162.
9492   o Minor features (configuration):
9493     - The "DownloadSchedule" options have been renamed to end with
9494       "DownloadInitialDelay". The old names are still allowed, but will
9495       produce a warning. Comma-separated lists are still permitted for
9496       these options, but all values after the first are ignored (as they
9497       have been since 0.2.9). Closes ticket 23354.
9499   o Minor features (continuous integration):
9500     - Our .travis.yml configuration now includes support for testing the
9501       results of "make distcheck". (It's not uncommon for "make check"
9502       to pass but "make distcheck" to fail.) Closes ticket 25814.
9503     - Our Travis CI configuration now integrates with the Coveralls
9504       coverage analysis tool. Closes ticket 25818.
9506   o Minor features (control port):
9507     - Introduce GETINFO "current-time/{local,utc}" to return the local
9508       and UTC times respectively in ISO format. This helps a controller
9509       like Tor Browser detect a time-related error. Closes ticket 25511.
9510       Patch by Neel Chauhan.
9511     - Introduce new fields to the CIRC_BW event. There are two new
9512       fields in each of the read and written directions. The DELIVERED
9513       fields report the total valid data on the circuit, as measured by
9514       the payload sizes of verified and error-checked relay command
9515       cells. The OVERHEAD fields report the total unused bytes in each
9516       of these cells. Closes ticket 25903.
9518   o Minor features (directory authority):
9519     - Directory authorities now open their key-pinning files as O_SYNC,
9520       to limit their chances of accidentally writing partial lines.
9521       Closes ticket 23909.
9523   o Minor features (directory authority, forward compatibility):
9524     - Make the lines of the measured bandwidth file able to contain
9525       their entries in any order. Previously, the node_id entry needed
9526       to come first. Closes ticket 26004.
9528   o Minor features (entry guards):
9529     - Introduce a new torrc option NumPrimaryGuards for controlling the
9530       number of primary guards. Closes ticket 25843.
9532   o Minor features (geoip):
9533     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
9534       database. Closes ticket 26104.
9536   o Minor features (performance):
9537     - Avoid a needless call to malloc() when processing an incoming
9538       relay cell. Closes ticket 24914.
9539     - Make our timing-wheel code run a tiny bit faster on 32-bit
9540       platforms, by preferring 32-bit math to 64-bit. Closes
9541       ticket 24688.
9542     - Avoid a needless malloc()/free() pair every time we handle an ntor
9543       handshake. Closes ticket 25150.
9545   o Minor features (testing):
9546     - Add a unit test for voting_schedule_get_start_of_next_interval().
9547       Closes ticket 26014, and helps make unit test coverage
9548       more deterministic.
9549     - A new unittests module specifically for testing the functions in
9550       the (new-ish) bridges.c module has been created with new
9551       unittests, raising the code coverage percentages. Closes 25425.
9552     - We now have improved testing for addressmap_get_virtual_address()
9553       function. This should improve our test coverage, and make our test
9554       coverage more deterministic. Closes ticket 25993.
9556   o Minor features (timekeeping, circuit scheduling):
9557     - When keeping track of how busy each circuit have been recently on
9558       a given connection, use coarse-grained monotonic timers rather
9559       than gettimeofday(). This change should marginally increase
9560       accuracy and performance. Implements part of ticket 25927.
9562   o Minor bugfixes (bandwidth management):
9563     - Consider ourselves "low on write bandwidth" if we have exhausted
9564       our write bandwidth some time in the last second. This was the
9565       documented behavior before, but the actual behavior was to change
9566       this value every TokenBucketRefillInterval. Fixes bug 25828;
9567       bugfix on 0.2.3.5-alpha.
9569   o Minor bugfixes (C correctness):
9570     - Add a missing lock acquisition in the shutdown code of the control
9571       subsystem. Fixes bug 25675; bugfix on 0.2.7.3-rc. Found by
9572       Coverity; this is CID 1433643.
9574   o Minor bugfixes (circuit path selection):
9575     - Don't count path selection failures as circuit build failures.
9576       This change should eliminate cases where Tor blames its guard or
9577       the network for situations like insufficient microdescriptors
9578       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
9579       on 0.3.3.1-alpha.
9581   o Minor bugfixes (client):
9582     - Don't consider Tor running as a client if the ControlPort is open,
9583       but no actual client ports are open. Fixes bug 26062; bugfix
9584       on 0.2.9.4-alpha.
9586   o Minor bugfixes (code style):
9587     - Fixed multiple includes of transports.h in src/or/connection.c
9588       Fixes bug 25261; bugfix on 0.2.5.1-alpha.
9589     - Remove the unused variable n_possible from the function
9590       channel_get_for_extend(). Fixes bug 25645; bugfix on 0.2.4.4-alpha
9592   o Minor bugfixes (control interface):
9593     - Respond with more human-readable error messages to GETINFO exit-
9594       policy/* requests. Also, let controller know if an error is
9595       transient (response code 551) or not (response code 552). Fixes
9596       bug 25852; bugfix on 0.2.8.1-alpha.
9598   o Minor bugfixes (controller):
9599     - Make CIRC_BW event reflect the total of all data sent on a
9600       circuit, including padding and dropped cells. Also fix a mis-
9601       counting bug when STREAM_BW events were enabled. Fixes bug 25400;
9602       bugfix on 0.2.5.2-alpha.
9604   o Minor bugfixes (correctness, client):
9605     - Upon receiving a malformed connected cell, stop processing the cell
9606       immediately.  Previously we would mark the connection for close, but
9607       continue processing the cell as if the connection were open. Fixes bug
9608       26072; bugfix on 0.2.4.7-alpha.
9610   o Minor bugfixes (directory client):
9611     - When unverified-consensus is verified, rename it to cached-
9612       consenus. Fixes bug 4187; bugfix on 0.2.0.3-alpha.
9613     - Fixed launching a certificate fetch always during the scheduled
9614       periodic consensus fetch by fetching only in those cases when
9615       consensus are waiting for certs. Fixes bug 24740; bugfix
9616       on 0.2.9.1-alpha.
9618   o Minor bugfixes (documentation):
9619     - Stop saying in the manual that clients cache ipv4 dns answers from
9620       exit relays. We haven't used them since 0.2.6.3-alpha, and in
9621       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
9622       we forgot to say so in the man page. Fixes bug 26052; bugfix
9623       on 0.3.2.6-alpha.
9625   o Minor bugfixes (error reporting):
9626     - Improve tolerance for directory authorities with skewed clocks.
9627       Previously, an authority with a clock more than 60 seconds ahead
9628       could cause a client with a correct clock to warn that the
9629       client's clock was behind. Now the clocks of a majority of
9630       directory authorities have to be ahead of the client before this
9631       warning will occur. Fixes bug 25756; bugfix on 0.2.2.25-alpha.
9633   o Minor bugfixes (Linux seccomp2 sandbox):
9634     - Allow the nanosleep() system call, which glibc uses to implement
9635       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
9637   o Minor bugfixes (onion service):
9638     - Fix a memory leak when a v3 onion service is configured and gets a
9639       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
9640     - When parsing the descriptor signature, look for the token plus an
9641       extra white-space at the end. This is more correct but also will
9642       allow us to support new fields that might start with "signature".
9643       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
9645   o Minor bugfixes (path selection):
9646     - Only select relays when they have the descriptors we prefer to use
9647       for them. This change fixes a bug where we could select a relay
9648       because it had _some_ descriptor, but reject it later with a
9649       nonfatal assertion error because it didn't have the exact one we
9650       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
9652   o Minor bugfixes (portability):
9653     - Do not align mmap length, as it is not required by POSIX, and the
9654       getpagesize function is deprecated. Fixes bug 25399; bugfix
9655       on 0.1.1.23.
9657   o Minor bugfixes (portability, FreeBSD):
9658     - In have_enough_mem_for_dircache(), the variable DIRCACHE_MIN_MEM_MB
9659       does not stringify on FreeBSD, so we switch to tor_asprintf().
9660       Fixes bug 20887; bugfix on 0.2.8.1-alpha. Patch by Neel Chauhan.
9662   o Minor bugfixes (relay statistics):
9663     - When a relay is collecting internal statistics about how many
9664       create cell requests it has seen of each type, accurately count
9665       the requests from relays that temporarily fall out of the
9666       consensus. (To be extra conservative, we were already ignoring
9667       requests from clients in our counts, and we continue ignoring them
9668       here.) Fixes bug 24910; bugfix on 0.2.4.17-rc.
9670   o Minor bugfixes (relay, crash):
9671     - Avoid a crash when running with DirPort set but ORPort turned off.
9672       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
9674   o Minor bugfixes (restart-in-process):
9675     - When shutting down, Tor now clears all the flags in the control.c
9676       module. This should prevent a bug where authentication cookies are
9677       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
9679   o Minor bugfixes (testing):
9680     - When testing workqueue event-cancellation, make sure that we
9681       actually cancel an event, and that cancel each event with equal
9682       probability. (It was previously possible, though extremely
9683       unlikely, for our event-canceling test not to cancel any events.)
9684       Fixes bug 26008; bugfix on 0.2.6.3-alpha.
9685     - Repeat part of the test in test_client_pick_intro() a number of
9686       times, to give it consistent coverage. Fixes bug 25996; bugfix
9687       on 0.3.2.1-alpha.
9688     - Remove randomness from the hs_common/responsible_hsdirs test, so
9689       that it always takes the same path through the function it tests.
9690       Fixes bug 25997; bugfix on 0.3.2.1-alpha.
9691     - Change the behavior of the "channel/outbound" test so that it
9692       never causes a 10-second rollover for the EWMA circuitmux code.
9693       Previously, this behavior would happen randomly, and result in
9694       fluctuating test coverage. Fixes bug 25994; bugfix
9695       on 0.3.3.1-alpha.
9696     - Use X509_new() to allocate certificates that will be freed later
9697       with X509_free(). Previously, some parts of the unit tests had
9698       used tor_malloc_zero(), which is incorrect, and which caused test
9699       failures on Windows when they were built with extra hardening.
9700       Fixes bugs 25943 and 25944; bugfix on 0.2.8.1-alpha. Patch by
9701       Marcin Cieślak.
9702     - While running the circuit_timeout test, fix the PRNG to a
9703       deterministic AES stream, so that the test coverage from this test
9704       will itself be deterministic. Fixes bug 25995; bugfix
9705       on 0.2.2.2-alpha.
9707   o Minor bugfixes (vanguards):
9708     - Allow the last hop in a vanguard circuit to be the same as our
9709       first, to prevent the adversary from influencing guard node choice
9710       by choice of last hop. Also prevent the creation of A - B - A
9711       paths, or A - A paths, which are forbidden by relays. Fixes bug
9712       25870; bugfix on 0.3.3.1-alpha.
9714   o Code simplification and refactoring:
9715     - Remove duplicate code in parse_{c,s}method_line and bootstrap
9716       their functionalities into a single function. Fixes bug 6236;
9717       bugfix on 0.2.3.6-alpha.
9718     - We remove the PortForwarding and PortForwardingHelper options,
9719       related functions, and the port_forwarding tests. These options
9720       were used by the now-deprecated Vidalia to help ordinary users
9721       become Tor relays or bridges. Closes ticket 25409. Patch by
9722       Neel Chauhan.
9723     - In order to make the OR and dir checking function in router.c less
9724       confusing we renamed some functions and
9725       consider_testing_reachability() has been split into
9726       router_should_check_reachability() and
9727       router_do_reachability_checks(). Also we improved the documentation
9728       in some functions. Closes ticket 18918.
9729     - Initial work to isolate Libevent usage to a handful of modules in
9730       our codebase, to simplify our call structure, and so that we can
9731       more easily change event loops in the future if needed. Closes
9732       ticket 23750.
9733     - Introduce a function to call getsockname() and return tor_addr_t,
9734       to save a little complexity throughout the codebase. Closes
9735       ticket 18105.
9736     - Make hsdir_index in node_t a hsdir_index_t rather than a pointer
9737       as hsdir_index is always present. Also, we move hsdir_index_t into
9738       or.h. Closes ticket 23094. Patch by Neel Chauhan.
9739     - Merge functions used for describing nodes and suppress the
9740       functions that do not allocate memory for the output buffer
9741       string. NODE_DESC_BUF_LEN constant and format_node_description()
9742       function cannot be used externally from router.c module anymore.
9743       Closes ticket 25432. Patch by valentecaio.
9744     - Our main loop has been simplified so that all important operations
9745       happen inside events. Previously, some operations had to happen
9746       outside the event loop, to prevent infinite sequences of event
9747       activations. Closes ticket 25374.
9748     - Put a SHA1 public key digest in hs_service_intro_point_t, and use
9749       it in register_intro_circ() and service_intro_point_new(). This
9750       prevents the digest from being re-calculated each time. Closes
9751       ticket 23107. Patch by Neel Chauhan.
9752     - Refactor token-bucket implementations to use a common backend.
9753       Closes ticket 25766.
9754     - Remove extern declaration of stats_n_seconds_working variable from
9755       main, protecting its accesses with get_uptime() and reset_uptime()
9756       functions. Closes ticket 25081, patch by “valentecaio”.
9757     - Remove our previous logic for "cached gettimeofday()" -- our
9758       coarse monotonic timers are fast enough for this purpose, and far
9759       less error-prone. Implements part of ticket 25927.
9760     - Remove the return value for fascist_firewall_choose_address_base(),
9761       and sister functions such as fascist_firewall_choose_address_node()
9762       and fascist_firewall_choose_address_rs(). Also, while we're here,
9763       initialize the ap argument as leaving it uninitialized can pose a
9764       security hazard. Closes ticket 24734. Patch by Neel Chauhan.
9765     - Rename two fields of connection_t struct. timestamp_lastwritten is
9766       renamed to timestamp_last_write_allowed and timestamp_lastread is
9767       renamed to timestamp_last_read_allowed. Closes ticket 24714, patch
9768       by "valentecaio".
9769     - Since Tor requires C99, remove our old workaround code for libc
9770       implementations where free(NULL) doesn't work. Closes ticket 24484.
9771     - Use our standard rate-limiting code to deal with excessive
9772       libevent failures, rather than the hand-rolled logic we had
9773       before. Closes ticket 26016.
9774     - We remove the return value of node_get_prim_orport() and
9775       node_get_prim_dirport(), and introduce node_get_prim_orport() in
9776       node_ipv6_or_preferred() and node_ipv6_dir_preferred() in order to
9777       check for a null address. Closes ticket 23873. Patch by
9778       Neel Chauhan.
9779     - We switch to should_record_bridge_info() in
9780       geoip_note_client_seen() and options_need_geoip_info() instead of
9781       accessing the configuration values directly. Fixes bug 25290;
9782       bugfix on 0.2.1.6-alpha. Patch by Neel Chauhan.
9784   o Deprecated features:
9785     - As we are not recommending 0.2.5 anymore, we require relays that
9786       once had an ed25519 key associated with their RSA key to always
9787       have that key, instead of allowing them to drop back to a version
9788       that didn't support ed25519. This means they need to use a new RSA
9789       key if they want to downgrade to an older version of tor without
9790       ed25519. Closes ticket 20522.
9792   o Documentation:
9793     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
9794       ticket 25857. Patch from "CTassisF".
9796   o Removed features:
9797     - Directory authorities will no longer support voting according to
9798       any consensus method before consensus method 25. This keeps
9799       authorities compatible with all authorities running 0.2.9.8 and
9800       later, and does not break any clients or relays. Implements ticket
9801       24378 and proposal 290.
9802     - The PortForwarding and PortForwardingHelper features have been
9803       removed. The reasoning is, given that implementations of NAT
9804       traversal protocols within common consumer grade routers are
9805       frequently buggy, and that the target audience for a NAT punching
9806       feature is a perhaps less-technically-inclined relay operator,
9807       when the helper fails to setup traversal the problems are usually
9808       deep, ugly, and very router specific, making them horrendously
9809       impossible for technical support to reliable assist with, and thus
9810       resulting in frustration all around. Unfortunately, relay
9811       operators who would like to run relays behind NATs will need to
9812       become more familiar with the port forwarding configurations on
9813       their local router. Closes 25409.
9814     - The TestingEnableTbEmptyEvent option has been removed. It was used
9815       in testing simulations to measure how often connection buckets
9816       were emptied, in order to improve our scheduling, but it has not
9817       been actively used in years. Closes ticket 25760.
9818     - The old "round-robin" circuit multiplexer (circuitmux)
9819       implementation has been removed, along with a fairly large set of
9820       code that existed to support it. It has not been the default
9821       circuitmux since we introduced the "EWMA" circuitmux in 0.2.4.x,
9822       but it still required an unreasonable amount of memory and CPU.
9823       Closes ticket 25268.
9826 Changes in version 0.3.3.5-rc - 2018-04-15
9827   Tor 0.3.3.5-rc fixes various bugs in earlier versions of Tor,
9828   including some that could affect reliability or correctness.
9830   This is the first release candidate in the 0.3.3 series. If we find no
9831   new bugs or regression here, then the first stable 0.3.3 release will
9832   be nearly identical to this one.
9834   o Major bugfixes (security, protover, voting):
9835     - Revise Rust implementation of protover to use a more memory-
9836       efficient voting algorithm and corresponding data structures, thus
9837       avoiding a potential memory-based DoS attack where specially
9838       crafted protocol strings would expand to fill available memory.
9839       Fixes bug 24031; bugfix on 0.3.3.1-alpha.
9841   o Major bugfixes (performance, load balancing):
9842     - Directory authorities no longer vote in favor of the Guard flag
9843       for relays without directory support. Starting in Tor
9844       0.3.0.1-alpha, clients have been avoiding using such relays in the
9845       Guard position, leading to increasingly broken load balancing for
9846       the 5%-or-so of Guards that don't advertise directory support.
9847       Fixes bug 22310; bugfix on 0.3.0.6.
9849   o Minor feature (continuous integration):
9850     - Update the Travis CI configuration to use the stable Rust channel,
9851       now that we have decided to require that. Closes ticket 25714.
9853   o Minor features (config options):
9854     - Change the way the default value for MaxMemInQueues is calculated.
9855       We now use 40% of the hardware RAM if the system has 8 GB RAM or
9856       more. Otherwise we use the former value of 75%. Closes
9857       ticket 24782.
9859   o Minor features (geoip):
9860     - Update geoip and geoip6 to the April 3 2018 Maxmind GeoLite2
9861       Country database. Closes ticket 25718.
9863   o Minor bugfixes (client):
9864     - When using a listed relay as a bridge, and also using
9865       microdescriptors, and considering that relay as a non-bridge in a
9866       circuit, treat its microdescriptor as a valid source of
9867       information about that relay. This change should prevent a non-
9868       fatal assertion error. Fixes bug 25691; bugfix on 0.3.3.4-alpha.
9870   o Minor bugfixes (controller):
9871     - Restore the correct operation of the RESOLVE command, which had
9872       been broken since we added the ability to enable/disable DNS on
9873       specific listener ports. Fixes bug 25617; bugfix on 0.2.9.3-alpha.
9875   o Minor bugfixes (distribution, compilation, rust):
9876     - Build correctly when the rust dependencies submodule is loaded,
9877       but the TOR_RUST_DEPENDENCIES environment variable is not set.
9878       Fixes bug 25679; bugfix on 0.3.3.1-alpha.
9879     - Actually include all of our Rust source in our source
9880       distributions. (Previously, a few of the files were accidentally
9881       omitted.) Fixes bug 25732; bugfix on 0.3.3.2-alpha.
9883   o Minor bugfixes (documentation):
9884     - Document that the PerConnBW{Rate,Burst} options will fall back to
9885       their corresponding consensus parameters only if those parameters
9886       are set. Previously we had claimed that these values would always
9887       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
9888     - Revert a misformatting issue in the ExitPolicy documentation.
9889       Fixes bug 25582; bugfix on 0.3.3.1-alpha.
9891   o Minor bugfixes (exit relay DNS retries):
9892     - Re-attempt timed-out DNS queries 3 times before failure, since our
9893       timeout is 5 seconds for them, but clients wait 10-15. Also allow
9894       slightly more timeouts per resolver when an exit has multiple
9895       resolvers configured. Fixes bug 21394; bugfix on 0.3.1.9.
9897   o Minor bugfixes (onion services):
9898     - Re-instate counting the client HSDir fetch circuits against the
9899       MaxClientCircuitsPending rate limit. Fixes bug 24989; bugfix
9900       on 0.3.3.1-alpha.
9901     - Remove underscores from the _HSLayer{2,3}Nodes options. This
9902       expert-user configuration can now be enabled as HSLayer{2,3}Nodes.
9903       Fixes bug 25581; bugfix on 0.3.3.1-alpha
9905   o Code simplification and refactoring:
9906     - Move the list of default directory authorities to its own file.
9907       Closes ticket 24854. Patch by "beastr0".
9909   o Documentation (manpage, denial of service):
9910     - Provide more detail about the denial-of-service options, by
9911       listing each mitigation and explaining how they relate. Closes
9912       ticket 25248.
9915 Changes in version 0.3.3.4-alpha - 2018-03-29
9916   Tor 0.3.3.4-alpha includes various bugfixes for issues found during
9917   the alpha testing of earlier releases in its series. We are
9918   approaching a stable 0.3.3.4-alpha release: more testing is welcome!
9920   o New system requirements:
9921     - When built with Rust, Tor now depends on version 0.2.39 of the
9922       libc crate. Closes tickets 25310 and 25664.
9924   o Major bugfixes (relay, connection):
9925     - If we have failed to connect to a relay and received a connection
9926       refused, timeout, or similar error (at the TCP level), do not try
9927       that same address/port again for 60 seconds after the failure has
9928       occurred. Fixes bug 24767; bugfix on 0.0.6.
9930   o Minor features (geoip):
9931     - Update geoip and geoip6 to the March 8 2018 Maxmind GeoLite2
9932       Country database. Closes ticket 25469.
9934   o Minor features (log messages):
9935     - Improve log message in the out-of-memory handler to include
9936       information about memory usage from the different compression
9937       backends. Closes ticket 25372.
9939   o Minor features (sandbox):
9940     - Explicitly permit the poll() system call when the Linux
9941       seccomp2-based sandbox is enabled: apparently, some versions of
9942       libc use poll() when calling getpwnam(). Closes ticket 25313.
9944   o Minor bugfixes (C correctness):
9945     - Fix a very unlikely (impossible, we believe) null pointer
9946       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
9947       Coverity; this is CID 1430932.
9949   o Minor bugfixes (channel, client):
9950     - Better identify client connection when reporting to the geoip
9951       client cache. Fixes bug 24904; bugfix on 0.3.1.7.
9953   o Minor bugfixes (compilation):
9954     - Fix a C99 compliance issue in our configuration script that caused
9955       compilation issues when compiling Tor with certain versions of
9956       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
9958   o Minor bugfixes (controller, reliability):
9959     - Avoid a (nonfatal) assertion failure when extending a one-hop
9960       circuit from the controller to become a multihop circuit. Fixes
9961       bug 24903; bugfix on 0.2.5.2-alpha.
9963   o Major bugfixes (networking):
9964     - Tor will no longer reject IPv6 address strings from Tor Browser
9965       when they are passed as hostnames in SOCKS5 requests. Fixes bug
9966       25036, bugfix on Tor 0.3.1.2.
9968   o Minor bugfixes (networking):
9969     - string_is_valid_hostname() will not consider IP strings to be
9970       valid hostnames. Fixes bug 25055; bugfix on Tor 0.2.5.5.
9972   o Minor bugfixes (onion service v3):
9973     - Avoid an assertion failure when the next onion service
9974       descriptor rotation type is out of sync with the consensus's
9975       valid-after time. Instead, log a warning message with extra
9976       information, so we can better hunt down the cause of this
9977       assertion. Fixes bug 25306; bugfix on 0.3.2.1-alpha.
9979   o Minor bugfixes (testing):
9980     - Avoid intermittent test failures due to a test that had relied on
9981       onion service introduction point creation finishing within 5
9982       seconds of real clock time. Fixes bug 25450; bugfix
9983       on 0.3.1.3-alpha.
9984     - Rust crates are now automatically detected and tested. Previously,
9985       some crates were not tested by `make test-rust` due to a static
9986       string in the `src/test/test_rust.sh` script specifying which
9987       crates to test. Fixes bug 25560; bugfix on 0.3.3.3-alpha.
9989   o Minor bugfixes (testing, benchmarks):
9990     - Fix a crash when running benchmark tests on win32 systems. The
9991       crash was due to a mutex that wasn't initialized before logging
9992       and options were initialized. Fixes bug 25479; bugfix
9993       on 0.3.3.3-alpha.
9995   o Minor bugfixes (warnings, ipv6):
9996     - Avoid a bug warning that could occur when trying to connect to a
9997       relay over IPv6. This warning would occur on a Tor instance that
9998       downloads router descriptors, but prefers to use microdescriptors.
9999       Fixes bug 25213; bugfix on 0.3.3.1-alpha.
10001   o Code simplification and refactoring:
10002     - Remove the old (deterministic) directory retry logic entirely:
10003       We've used exponential backoff exclusively for some time. Closes
10004       ticket 23814.
10006   o Documentation:
10007     - Improved the documentation of AccountingStart parameter. Closes
10008       ticket 23635.
10009     - Update the documentation for "Log" to include the current list of
10010       logging domains. Closes ticket 25378.
10013 Changes in version 0.3.1.10 - 2018-03-03
10014   Tor 0.3.1.10 backports a number of bugfixes, including important fixes for
10015   security issues.
10017   It includes an important security fix for a remote crash attack
10018   against directory authorities, tracked as TROVE-2018-001.
10020   This release also backports our new system for improved resistance to
10021   denial-of-service attacks against relays.
10023   This release also fixes several minor bugs and annoyances from
10024   earlier releases.
10026   All directory authorities should upgrade to one of the versions
10027   released today. Relays running 0.3.1.x may wish to update to one of
10028   the versions released today, for the DoS mitigations.
10030   Please note: according to our release calendar, Tor 0.3.1 will no
10031   longer be supported after 1 July 2018. If you will be running Tor
10032   after that date, you should make sure to plan to upgrade to the latest
10033   stable version, or downgrade to 0.2.9 (which will receive long-term
10034   support).
10036   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
10037     - Fix a protocol-list handling bug that could be used to remotely crash
10038       directory authorities with a null-pointer exception. Fixes bug 25074;
10039       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10040       CVE-2018-0490.
10042   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
10043     - Give relays some defenses against the recent network overload. We
10044       start with three defenses (default parameters in parentheses).
10045       First: if a single client address makes too many concurrent
10046       connections (>100), hang up on further connections. Second: if a
10047       single client address makes circuits too quickly (more than 3 per
10048       second, with an allowed burst of 90) while also having too many
10049       connections open (3), refuse new create cells for the next while
10050       (1-2 hours). Third: if a client asks to establish a rendezvous
10051       point to you directly, ignore the request. These defenses can be
10052       manually controlled by new torrc options, but relays will also
10053       take guidance from consensus parameters, so there's no need to
10054       configure anything manually. Implements ticket 24902.
10056   o Minor features (linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
10057     - Update the sandbox rules so that they should now work correctly
10058       with Glibc 2.26. Closes ticket 24315.
10060   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
10061     - Fix an "off by 2" error in counting rendezvous failures on the
10062       onion service side. While we thought we would stop the rendezvous
10063       attempt after one failed circuit, we were actually making three
10064       circuit attempts before giving up. Now switch to a default of 2,
10065       and allow the consensus parameter "hs_service_max_rdv_failures" to
10066       override. Fixes bug 24895; bugfix on 0.0.6.
10068   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
10069     - Add Link protocol version 5 to the supported protocols list. Fixes
10070       bug 25070; bugfix on 0.3.1.1-alpha.
10072   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
10073     - Fix a set of false positives where relays would consider
10074       connections to other relays as being client-only connections (and
10075       thus e.g. deserving different link padding schemes) if those
10076       relays fell out of the consensus briefly. Now we look only at the
10077       initial handshake and whether the connection authenticated as a
10078       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
10080   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
10081     - Make our OOM handler aware of the geoip client history cache so it
10082       doesn't fill up the memory. This check is important for IPv6 and
10083       our DoS mitigation subsystem. Closes ticket 25122.
10085   o Minor feature (relay statistics, backport from 0.3.2.6-alpha):
10086     - Change relay bandwidth reporting stats interval from 4 hours to 24
10087       hours in order to reduce the efficiency of guard discovery
10088       attacks. Fixes ticket 23856.
10090   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
10091     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
10092       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
10093       since they neither disabled TLS 1.3 nor enabled any of the
10094       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
10095       Closes ticket 24978.
10097   o Minor features (fallback directory mirrors, backport from 0.3.2.9):
10098     - The fallback directory list has been re-generated based on the
10099       current status of the network. Tor uses fallback directories to
10100       bootstrap when it doesn't yet have up-to-date directory
10101       information. Closes ticket 24801.
10102     - Make the default DirAuthorityFallbackRate 0.1, so that clients
10103       prefer to bootstrap from fallback directory mirrors. This is a
10104       follow-up to 24679, which removed weights from the default
10105       fallbacks. Implements ticket 24681.
10107   o Minor features (geoip):
10108     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10109       Country database.
10111   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
10112     - Use the actual observed address of an incoming relay connection,
10113       not the canonical address of the relay from its descriptor, when
10114       making decisions about how to handle the incoming connection.
10115       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10117   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
10118     - Directory authorities, when refusing a descriptor from a rejected
10119       relay, now explicitly tell the relay (in its logs) to set a valid
10120       ContactInfo address and contact the bad-relays@ mailing list.
10121       Fixes bug 25170; bugfix on 0.2.9.1.
10123   o Minor bugfixes (address selection, backport from 0.3.2.9):
10124     - When the fascist_firewall_choose_address_ functions don't find a
10125       reachable address, set the returned address to the null address
10126       and port. This is a precautionary measure, because some callers do
10127       not check the return value. Fixes bug 24736; bugfix
10128       on 0.2.8.2-alpha.
10130   o Major bugfixes (bootstrapping, backport from 0.3.2.5-alpha):
10131     - Fetch descriptors aggressively whenever we lack enough to build
10132       circuits, regardless of how many descriptors we are missing.
10133       Previously, we would delay launching the fetch when we had fewer
10134       than 15 missing descriptors, even if some of those descriptors
10135       were blocking circuits from building. Fixes bug 23985; bugfix on
10136       0.1.1.11-alpha. The effects of this bug became worse in
10137       0.3.0.3-alpha, when we began treating missing descriptors from our
10138       primary guards as a reason to delay circuits.
10139     - Don't try fetching microdescriptors from relays that have failed
10140       to deliver them in the past. Fixes bug 23817; bugfix
10141       on 0.3.0.1-alpha.
10143   o Minor bugfixes (compilation, backport from 0.3.2.7-rc):
10144     - Fix a signed/unsigned comparison warning introduced by our fix to
10145       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
10147   o Minor bugfixes (control port, linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
10148     - Avoid a crash when attempting to use the seccomp2 sandbox together
10149       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
10150       on 0.2.5.1-alpha.
10152   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
10153     - Fix a possible crash on malformed consensus. If a consensus had
10154       contained an unparseable protocol line, it could have made clients
10155       and relays crash with a null-pointer exception. To exploit this
10156       issue, however, an attacker would need to be able to subvert the
10157       directory authority system. Fixes bug 25251; bugfix on
10158       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10160   o Minor bugfixes (directory cache, backport from 0.3.2.5-alpha):
10161     - Recover better from empty or corrupt files in the consensus cache
10162       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
10163     - When a consensus diff calculation is only partially successful,
10164       only record the successful parts as having succeeded. Partial
10165       success can happen if (for example) one compression method fails
10166       but the others succeed. Previously we misrecorded all the
10167       calculations as having succeeded, which would later cause a
10168       nonfatal assertion failure. Fixes bug 24086; bugfix
10169       on 0.3.1.1-alpha.
10171   o Minor bugfixes (entry guards, backport from 0.3.2.3-alpha):
10172     - Tor now updates its guard state when it reads a consensus
10173       regardless of whether it's missing descriptors. That makes tor use
10174       its primary guards to fetch descriptors in some edge cases where
10175       it would previously have used fallback directories. Fixes bug
10176       23862; bugfix on 0.3.0.1-alpha.
10178   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
10179     - Don't treat inability to store a cached consensus object as a bug:
10180       it can happen normally when we are out of disk space. Fixes bug
10181       24859; bugfix on 0.3.1.1-alpha.
10183   o Minor bugfixes (memory usage, backport from 0.3.2.8-rc):
10184     - When queuing DESTROY cells on a channel, only queue the circuit-id
10185       and reason fields: not the entire 514-byte cell. This fix should
10186       help mitigate any bugs or attacks that fill up these queues, and
10187       free more RAM for other uses. Fixes bug 24666; bugfix
10188       on 0.2.5.1-alpha.
10190   o Minor bugfixes (network layer, backport from 0.3.2.5-alpha):
10191     - When closing a connection via close_connection_immediately(), we
10192       mark it as "not blocked on bandwidth", to prevent later calls from
10193       trying to unblock it, and give it permission to read. This fixes a
10194       backtrace warning that can happen on relays under various
10195       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
10197   o Minor bugfixes (path selection, backport from 0.3.2.4-alpha):
10198     - When selecting relays by bandwidth, avoid a rounding error that
10199       could sometimes cause load to be imbalanced incorrectly.
10200       Previously, we would always round upwards; now, we round towards
10201       the nearest integer. This had the biggest effect when a relay's
10202       weight adjustments should have given it weight 0, but it got
10203       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
10204     - When calculating the fraction of nodes that have descriptors, and
10205       all nodes in the network have zero bandwidths, count the number of
10206       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
10207     - Actually log the total bandwidth in compute_weighted_bandwidths().
10208       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
10210   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
10211     - Improve the performance of our consensus-diff application code
10212       when Tor is built with the --enable-fragile-hardening option set.
10213       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
10215   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
10216     - Don't exit the Tor process if setrlimit() fails to change the file
10217       limit (which can happen sometimes on some versions of OSX). Fixes
10218       bug 21074; bugfix on 0.0.9pre5.
10220   o Minor bugfixes (portability, msvc, backport from 0.3.2.9):
10221     - Fix a bug in the bit-counting parts of our timing-wheel code on
10222       MSVC. (Note that MSVC is still not a supported build platform, due
10223       to cyptographic timing channel risks.) Fixes bug 24633; bugfix
10224       on 0.2.9.1-alpha.
10226   o Minor bugfixes (relay, partial backport):
10227     - Make the internal channel_is_client() function look at what sort
10228       of connection handshake the other side used, rather than whether
10229       the other side ever sent a create_fast cell to us. Backports part
10230       of the fixes from bugs 22805 and 24898.
10232   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
10233     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10234       0.2.9.4-alpha.
10235     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10236       bugfix on 0.2.9.4-alpha.
10238   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
10239     - Update the "rust dependencies" submodule to be a project-level
10240       repository, rather than a user repository. Closes ticket 25323.
10243 Changes in version 0.2.9.15 - 2018-03-03
10244   Tor 0.2.9.15 backports important security and stability bugfixes from
10245   later Tor releases.
10247   It includes an important security fix for a remote crash attack
10248   against directory authorities, tracked as TROVE-2018-001.
10250   This release also backports our new system for improved resistance to
10251   denial-of-service attacks against relays.
10253   This release also fixes several minor bugs and annoyances from
10254   earlier releases.
10256   All directory authorities should upgrade to one of the versions
10257   released today. Relays running 0.2.9.x may wish to update to one of
10258   the versions released today, for the DoS mitigations.
10260   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
10261     - Fix a protocol-list handling bug that could be used to remotely crash
10262       directory authorities with a null-pointer exception. Fixes bug 25074;
10263       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10264       CVE-2018-0490.
10266   o Major features (denial-of-service mitigation):
10267     - Give relays some defenses against the recent network overload. We
10268       start with three defenses (default parameters in parentheses).
10269       First: if a single client address makes too many concurrent
10270       connections (>100), hang up on further connections. Second: if a
10271       single client address makes circuits too quickly (more than 3 per
10272       second, with an allowed burst of 90) while also having too many
10273       connections open (3), refuse new create cells for the next while
10274       (1-2 hours). Third: if a client asks to establish a rendezvous
10275       point to you directly, ignore the request. These defenses can be
10276       manually controlled by new torrc options, but relays will also
10277       take guidance from consensus parameters, so there's no need to
10278       configure anything manually. Implements ticket 24902.
10280   o Major bugfixes (bootstrapping):
10281     - Fetch descriptors aggressively whenever we lack enough to build
10282       circuits, regardless of how many descriptors we are missing.
10283       Previously, we would delay launching the fetch when we had fewer
10284       than 15 missing descriptors, even if some of those descriptors
10285       were blocking circuits from building. Fixes bug 23985; bugfix on
10286       0.1.1.11-alpha. The effects of this bug became worse in
10287       0.3.0.3-alpha, when we began treating missing descriptors from our
10288       primary guards as a reason to delay circuits.
10290   o Major bugfixes (onion services, retry behavior):
10291     - Fix an "off by 2" error in counting rendezvous failures on the
10292       onion service side. While we thought we would stop the rendezvous
10293       attempt after one failed circuit, we were actually making three
10294       circuit attempts before giving up. Now switch to a default of 2,
10295       and allow the consensus parameter "hs_service_max_rdv_failures" to
10296       override. Fixes bug 24895; bugfix on 0.0.6.
10298   o Minor feature (relay statistics):
10299     - Change relay bandwidth reporting stats interval from 4 hours to 24
10300       hours in order to reduce the efficiency of guard discovery
10301       attacks. Fixes ticket 23856.
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 (denial-of-service avoidance):
10311     - Make our OOM handler aware of the geoip client history cache so it
10312       doesn't fill up the memory. This check is important for IPv6 and
10313       our DoS mitigation subsystem. Closes ticket 25122.
10315   o Minor features (fallback directory mirrors):
10316     - The fallback directory list has been re-generated based on the
10317       current status of the network. Tor uses fallback directories to
10318       bootstrap when it doesn't yet have up-to-date directory
10319       information. Closes ticket 24801.
10320     - Make the default DirAuthorityFallbackRate 0.1, so that clients
10321       prefer to bootstrap from fallback directory mirrors. This is a
10322       follow-up to 24679, which removed weights from the default
10323       fallbacks. Implements ticket 24681.
10325   o Minor features (geoip):
10326     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10327       Country database.
10329   o Minor features (linux seccomp2 sandbox):
10330     - Update the sandbox rules so that they should now work correctly
10331       with Glibc 2.26. Closes ticket 24315.
10333   o Minor bugfix (channel connection):
10334     - Use the actual observed address of an incoming relay connection,
10335       not the canonical address of the relay from its descriptor, when
10336       making decisions about how to handle the incoming connection.
10337       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10339   o Minor bugfix (directory authority):
10340     - Directory authorities, when refusing a descriptor from a rejected
10341       relay, now explicitly tell the relay (in its logs) to set a valid
10342       ContactInfo address and contact the bad-relays@ mailing list.
10343       Fixes bug 25170; bugfix on 0.2.9.1.
10345   o Minor bugfixes (address selection):
10346     - When the fascist_firewall_choose_address_ functions don't find a
10347       reachable address, set the returned address to the null address
10348       and port. This is a precautionary measure, because some callers do
10349       not check the return value. Fixes bug 24736; bugfix
10350       on 0.2.8.2-alpha.
10352   o Minor bugfixes (compilation):
10353     - Fix a signed/unsigned comparison warning introduced by our fix to
10354       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
10356   o Minor bugfixes (control port, linux seccomp2 sandbox):
10357     - Avoid a crash when attempting to use the seccomp2 sandbox together
10358       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
10359       on 0.2.5.1-alpha.
10361   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
10362     - Fix a possible crash on malformed consensus. If a consensus had
10363       contained an unparseable protocol line, it could have made clients
10364       and relays crash with a null-pointer exception. To exploit this
10365       issue, however, an attacker would need to be able to subvert the
10366       directory authority system. Fixes bug 25251; bugfix on
10367       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10369   o Minor bugfixes (memory usage):
10370     - When queuing DESTROY cells on a channel, only queue the circuit-id
10371       and reason fields: not the entire 514-byte cell. This fix should
10372       help mitigate any bugs or attacks that fill up these queues, and
10373       free more RAM for other uses. Fixes bug 24666; bugfix
10374       on 0.2.5.1-alpha.
10376   o Minor bugfixes (network layer):
10377     - When closing a connection via close_connection_immediately(), we
10378       mark it as "not blocked on bandwidth", to prevent later calls from
10379       trying to unblock it, and give it permission to read. This fixes a
10380       backtrace warning that can happen on relays under various
10381       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
10383   o Minor bugfixes (OSX):
10384     - Don't exit the Tor process if setrlimit() fails to change the file
10385       limit (which can happen sometimes on some versions of OSX). Fixes
10386       bug 21074; bugfix on 0.0.9pre5.
10388   o Minor bugfixes (path selection):
10389     - When selecting relays by bandwidth, avoid a rounding error that
10390       could sometimes cause load to be imbalanced incorrectly.
10391       Previously, we would always round upwards; now, we round towards
10392       the nearest integer. This had the biggest effect when a relay's
10393       weight adjustments should have given it weight 0, but it got
10394       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
10395     - When calculating the fraction of nodes that have descriptors, and
10396       all nodes in the network have zero bandwidths, count the number of
10397       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
10398     - Actually log the total bandwidth in compute_weighted_bandwidths().
10399       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
10401   o Minor bugfixes (portability, msvc):
10402     - Fix a bug in the bit-counting parts of our timing-wheel code on
10403       MSVC. (Note that MSVC is still not a supported build platform, due
10404       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
10405       on 0.2.9.1-alpha.
10407   o Minor bugfixes (relay):
10408     - Make the internal channel_is_client() function look at what sort
10409       of connection handshake the other side used, rather than whether
10410       the other side ever sent a create_fast cell to us. Backports part
10411       of the fixes from bugs 22805 and 24898.
10413   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
10414     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10415       0.2.9.4-alpha.
10416     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10417       bugfix on 0.2.9.4-alpha.
10420 Changes in version 0.3.2.10 - 2018-03-03
10421   Tor 0.3.2.10 is the second stable release in the 0.3.2 series. It
10422   backports a number of bugfixes, including important fixes for security
10423   issues.
10425   It includes an important security fix for a remote crash attack
10426   against directory authorities, tracked as TROVE-2018-001.
10428   Additionally, it backports a fix for a bug whose severity we have
10429   upgraded: Bug 24700, which was fixed in 0.3.3.2-alpha, can be remotely
10430   triggered in order to crash relays with a use-after-free pattern. As
10431   such, we are now tracking that bug as TROVE-2018-002 and
10432   CVE-2018-0491, and backporting it to earlier releases. This bug
10433   affected versions 0.3.2.1-alpha through 0.3.2.9, as well as version
10434   0.3.3.1-alpha.
10436   This release also backports our new system for improved resistance to
10437   denial-of-service attacks against relays.
10439   This release also fixes several minor bugs and annoyances from
10440   earlier releases.
10442   Relays running 0.3.2.x SHOULD upgrade to one of the versions released
10443   today, for the fix to TROVE-2018-002. Directory authorities should
10444   also upgrade. (Relays on earlier versions might want to update too for
10445   the DoS mitigations.)
10447   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
10448     - Fix a protocol-list handling bug that could be used to remotely crash
10449       directory authorities with a null-pointer exception. Fixes bug 25074;
10450       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10451       CVE-2018-0490.
10453   o Major bugfixes (scheduler, KIST, denial-of-service, backport from 0.3.3.2-alpha):
10454     - Avoid adding the same channel twice in the KIST scheduler pending
10455       list, which could lead to remote denial-of-service use-after-free
10456       attacks against relays. Fixes bug 24700; bugfix on 0.3.2.1-alpha.
10458   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
10459     - Give relays some defenses against the recent network overload. We
10460       start with three defenses (default parameters in parentheses).
10461       First: if a single client address makes too many concurrent
10462       connections (>100), hang up on further connections. Second: if a
10463       single client address makes circuits too quickly (more than 3 per
10464       second, with an allowed burst of 90) while also having too many
10465       connections open (3), refuse new create cells for the next while
10466       (1-2 hours). Third: if a client asks to establish a rendezvous
10467       point to you directly, ignore the request. These defenses can be
10468       manually controlled by new torrc options, but relays will also
10469       take guidance from consensus parameters, so there's no need to
10470       configure anything manually. Implements ticket 24902.
10472   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
10473     - Fix an "off by 2" error in counting rendezvous failures on the
10474       onion service side. While we thought we would stop the rendezvous
10475       attempt after one failed circuit, we were actually making three
10476       circuit attempts before giving up. Now switch to a default of 2,
10477       and allow the consensus parameter "hs_service_max_rdv_failures" to
10478       override. Fixes bug 24895; bugfix on 0.0.6.
10479     - New-style (v3) onion services now obey the "max rendezvous circuit
10480       attempts" logic. Previously they would make as many rendezvous
10481       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
10482       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
10484   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
10485     - Add Link protocol version 5 to the supported protocols list. Fixes
10486       bug 25070; bugfix on 0.3.1.1-alpha.
10488   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
10489     - Fix a set of false positives where relays would consider
10490       connections to other relays as being client-only connections (and
10491       thus e.g. deserving different link padding schemes) if those
10492       relays fell out of the consensus briefly. Now we look only at the
10493       initial handshake and whether the connection authenticated as a
10494       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
10496   o Major bugfixes (scheduler, consensus, backport from 0.3.3.2-alpha):
10497     - The scheduler subsystem was failing to promptly notice changes in
10498       consensus parameters, making it harder to switch schedulers
10499       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
10501   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
10502     - Make our OOM handler aware of the geoip client history cache so it
10503       doesn't fill up the memory. This check is important for IPv6 and
10504       our DoS mitigation subsystem. Closes ticket 25122.
10506   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
10507     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
10508       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
10509       since they neither disabled TLS 1.3 nor enabled any of the
10510       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
10511       Closes ticket 24978.
10513   o Minor features (geoip):
10514     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10515       Country database.
10517   o Minor features (logging, diagnostic, backport from 0.3.3.2-alpha):
10518     - When logging a failure to create an onion service's descriptor,
10519       also log what the problem with the descriptor was. Diagnostic
10520       for ticket 24972.
10522   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
10523     - Use the actual observed address of an incoming relay connection,
10524       not the canonical address of the relay from its descriptor, when
10525       making decisions about how to handle the incoming connection.
10526       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10528   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
10529     - Fix a possible crash on malformed consensus. If a consensus had
10530       contained an unparseable protocol line, it could have made clients
10531       and relays crash with a null-pointer exception. To exploit this
10532       issue, however, an attacker would need to be able to subvert the
10533       directory authority system. Fixes bug 25251; bugfix on
10534       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10536   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
10537     - Directory authorities, when refusing a descriptor from a rejected
10538       relay, now explicitly tell the relay (in its logs) to set a valid
10539       ContactInfo address and contact the bad-relays@ mailing list.
10540       Fixes bug 25170; bugfix on 0.2.9.1.
10542   o Minor bugfixes (build, rust, backport from 0.3.3.1-alpha):
10543     - When building with Rust on OSX, link against libresolv, to work
10544       around the issue at https://github.com/rust-lang/rust/issues/46797.
10545       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
10547   o Minor bugfixes (onion services, backport from 0.3.3.2-alpha):
10548     - Remove a BUG() statement when a client fetches an onion descriptor
10549       that has a lower revision counter than the one in its cache. This
10550       can happen in normal circumstances due to HSDir desync. Fixes bug
10551       24976; bugfix on 0.3.2.1-alpha.
10553   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
10554     - Don't treat inability to store a cached consensus object as a bug:
10555       it can happen normally when we are out of disk space. Fixes bug
10556       24859; bugfix on 0.3.1.1-alpha.
10558   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
10559     - Improve the performance of our consensus-diff application code
10560       when Tor is built with the --enable-fragile-hardening option set.
10561       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
10563   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
10564     - Don't exit the Tor process if setrlimit() fails to change the file
10565       limit (which can happen sometimes on some versions of OSX). Fixes
10566       bug 21074; bugfix on 0.0.9pre5.
10568   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
10569     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10570       0.2.9.4-alpha.
10571     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10572       bugfix on 0.2.9.4-alpha.
10574   o Minor bugfixes (testing, backport from 0.3.3.1-alpha):
10575     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
10576       25005; bugfix on 0.3.2.7-rc.
10578   o Minor bugfixes (v3 onion services, backport from 0.3.3.2-alpha):
10579     - Look at the "HSRend" protocol version, not the "HSDir" protocol
10580       version, when deciding whether a consensus entry can support the
10581       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
10582       bugfix on 0.3.2.1-alpha.
10584   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
10585     - Update the "rust dependencies" submodule to be a project-level
10586       repository, rather than a user repository. Closes ticket 25323.
10588   o Documentation (backport from 0.3.3.1-alpha)
10589     - Document that operators who run more than one relay or bridge are
10590       expected to set MyFamily and ContactInfo correctly. Closes
10591       ticket 24526.
10594 Changes in version 0.3.3.3-alpha - 2018-03-03
10595   Tor 0.3.3.3-alpha is the third alpha release for the 0.3.3.x series.
10596   It includes an important security fix for a remote crash attack
10597   against directory authorities tracked as TROVE-2018-001.
10599   Additionally, with this release, we are upgrading the severity of a
10600   bug fixed in 0.3.3.2-alpha. Bug 24700, which was fixed in
10601   0.3.3.2-alpha, can be remotely triggered in order to crash relays with
10602   a use-after-free pattern. As such, we are now tracking that bug as
10603   TROVE-2018-002 and CVE-2018-0491. This bug affected versions
10604   0.3.2.1-alpha through 0.3.2.9, as well as 0.3.3.1-alpha.
10606   This release also fixes several minor bugs and annoyances from
10607   earlier releases.
10609   Relays running 0.3.2.x should upgrade to one of the versions released
10610   today, for the fix to TROVE-2018-002. Directory authorities should
10611   also upgrade. (Relays on earlier versions might want to update too for
10612   the DoS mitigations.)
10614   o Major bugfixes (denial-of-service, directory authority):
10615     - Fix a protocol-list handling bug that could be used to remotely crash
10616       directory authorities with a null-pointer exception. Fixes bug 25074;
10617       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10618       CVE-2018-0490.
10620   o Minor features (compatibility, OpenSSL):
10621     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
10622       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
10623       since they neither disabled TLS 1.3 nor enabled any of the
10624       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
10625       Closes ticket 24978.
10627   o Minor features (logging):
10628     - Clarify the log messages produced when getrandom() or a related
10629       entropy-generation mechanism gives an error. Closes ticket 25120.
10631   o Minor features (testing):
10632     - Add a "make test-rust" target to run the rust tests only. Closes
10633       ticket 25071.
10635   o Minor bugfixes (denial-of-service):
10636     - Fix a possible crash on malformed consensus. If a consensus had
10637       contained an unparseable protocol line, it could have made clients
10638       and relays crash with a null-pointer exception. To exploit this
10639       issue, however, an attacker would need to be able to subvert the
10640       directory authority system. Fixes bug 25251; bugfix on
10641       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10643   o Minor bugfixes (DoS mitigation):
10644     - Add extra safety checks when refilling the circuit creation bucket
10645       to ensure we never set a value above the allowed maximum burst.
10646       Fixes bug 25202; bugfix on 0.3.3.2-alpha.
10647     - When a new consensus arrives, don't update our DoS-mitigation
10648       parameters if we aren't a public relay. Fixes bug 25223; bugfix
10649       on 0.3.3.2-alpha.
10651   o Minor bugfixes (man page, SocksPort):
10652     - Remove dead code from the old "SocksSocket" option, and rename
10653       SocksSocketsGroupWritable to UnixSocksGroupWritable. The old option
10654       still works, but is deprecated. Fixes bug 24343; bugfix on 0.2.6.3.
10656   o Minor bugfixes (performance):
10657     - Reduce the number of circuits that will be opened at once during
10658       the circuit build timeout phase. This is done by increasing the
10659       idle timeout to 3 minutes, and lowering the maximum number of
10660       concurrent learning circuits to 10. Fixes bug 24769; bugfix
10661       on 0.3.1.1-alpha.
10663   o Minor bugfixes (spec conformance):
10664     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10665       0.2.9.4-alpha.
10666     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10667       bugfix on 0.2.9.4-alpha.
10669   o Minor bugfixes (spec conformance, rust):
10670     - Resolve a denial-of-service issue caused by an infinite loop in
10671       the rust protover code. Fixes bug 25250, bugfix on 0.3.3.1-alpha.
10672       Also tracked as TROVE-2018-003.
10674   o Code simplification and refactoring:
10675     - Update the "rust dependencies" submodule to be a project-level
10676       repository, rather than a user repository. Closes ticket 25323.
10679 Changes in version 0.3.3.2-alpha - 2018-02-10
10680   Tor 0.3.3.2-alpha is the second alpha in the 0.3.3.x series. It
10681   introduces a mechanism to handle the high loads that many relay
10682   operators have been reporting recently. It also fixes several bugs in
10683   older releases. If this new code proves reliable, we plan to backport
10684   it to older supported release series.
10686   o Major features (denial-of-service mitigation):
10687     - Give relays some defenses against the recent network overload. We
10688       start with three defenses (default parameters in parentheses).
10689       First: if a single client address makes too many concurrent
10690       connections (>100), hang up on further connections. Second: if a
10691       single client address makes circuits too quickly (more than 3 per
10692       second, with an allowed burst of 90) while also having too many
10693       connections open (3), refuse new create cells for the next while
10694       (1-2 hours). Third: if a client asks to establish a rendezvous
10695       point to you directly, ignore the request. These defenses can be
10696       manually controlled by new torrc options, but relays will also
10697       take guidance from consensus parameters, so there's no need to
10698       configure anything manually. Implements ticket 24902.
10700   o Major bugfixes (netflow padding):
10701     - Stop adding unneeded channel padding right after we finish
10702       flushing to a connection that has been trying to flush for many
10703       seconds. Instead, treat all partial or complete flushes as
10704       activity on the channel, which will defer the time until we need
10705       to add padding. This fix should resolve confusing and scary log
10706       messages like "Channel padding timeout scheduled 221453ms in the
10707       past." Fixes bug 22212; bugfix on 0.3.1.1-alpha.
10709   o Major bugfixes (protocol versions):
10710     - Add Link protocol version 5 to the supported protocols list. Fixes
10711       bug 25070; bugfix on 0.3.1.1-alpha.
10713   o Major bugfixes (scheduler, consensus):
10714     - The scheduler subsystem was failing to promptly notice changes in
10715       consensus parameters, making it harder to switch schedulers
10716       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
10718   o Minor features (denial-of-service avoidance):
10719     - Make our OOM handler aware of the geoip client history cache so it
10720       doesn't fill up the memory. This check is important for IPv6 and
10721       our DoS mitigation subsystem. Closes ticket 25122.
10723   o Minor features (directory authority):
10724     - When directory authorities are unable to add signatures to a
10725       pending consensus, log the reason why. Closes ticket 24849.
10727   o Minor features (geoip):
10728     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10729       Country database.
10731   o Minor features (logging, diagnostic):
10732     - When logging a failure to create an onion service's descriptor,
10733       also log what the problem with the descriptor was. Diagnostic for
10734       ticket 24972.
10736   o Minor bugfix (channel connection):
10737     - Use the actual observed address of an incoming relay connection,
10738       not the canonical address of the relay from its descriptor, when
10739       making decisions about how to handle the incoming connection.
10740       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10742   o Minor bugfix (directory authority):
10743     - Directory authorities, when refusing a descriptor from a rejected
10744       relay, now explicitly tell the relay (in its logs) to set a valid
10745       ContactInfo address and contact the bad-relays@ mailing list.
10746       Fixes bug 25170; bugfix on 0.2.9.1.
10748   o Minor bugfixes (all versions of Tor):
10749     - Use the "misspell" tool to detect and fix typos throughout the
10750       source code. Fixes bug 23650; bugfix on various versions of Tor.
10751       Patch from Deepesh Pathak.
10753   o Minor bugfixes (circuit, cannibalization):
10754     - Don't cannibalize preemptively-built circuits if we no longer
10755       recognize their first hop. This situation can happen if our Guard
10756       relay went off the consensus after the circuit was created. Fixes
10757       bug 24469; bugfix on 0.0.6.
10759   o Minor bugfixes (correctness):
10760     - Remove a nonworking, unnecessary check to see whether a circuit
10761       hop's identity digest was set when the circuit failed. Fixes bug
10762       24927; bugfix on 0.2.4.4-alpha.
10764   o Minor bugfixes (logging):
10765     - Don't treat inability to store a cached consensus object as a bug:
10766       it can happen normally when we are out of disk space. Fixes bug
10767       24859; bugfix on 0.3.1.1-alpha.
10768     - Fix a (mostly harmless) race condition when invoking
10769       LOG_PROTOCOL_WARN message from a subthread while the torrc options
10770       are changing. Fixes bug 23954; bugfix on 0.1.1.9-alpha.
10772   o Minor bugfixes (onion services):
10773     - Remove a BUG() statement when a client fetches an onion descriptor
10774       that has a lower revision counter than the one in its cache. This
10775       can happen in normal circumstances due to HSDir desync. Fixes bug
10776       24976; bugfix on 0.3.2.1-alpha.
10777     - If we are configured to offer a single onion service, don't log
10778       long-term established one hop rendezvous points in the heartbeat.
10779       Fixes bug 25116; bugfix on 0.2.9.6-rc.
10781   o Minor bugfixes (performance):
10782     - Avoid calling protocol_list_supports_protocol() from inside tight
10783       loops when running with cached routerinfo_t objects. Instead,
10784       summarize the relevant protocols as flags in the routerinfo_t, as
10785       we do for routerstatus_t objects. This change simplifies our code
10786       a little, and saves a large amount of short-term memory allocation
10787       operations. Fixes bug 25008; bugfix on 0.2.9.4-alpha.
10789   o Minor bugfixes (Rust FFI):
10790     - Fix a minor memory leak which would happen whenever the C code
10791       would call the Rust implementation of
10792       protover_get_supported_protocols(). This was due to the C version
10793       returning a static string, whereas the Rust version newly allocated
10794       a CString to pass across the FFI boundary. Consequently, the C
10795       code was not expecting to need to free() what it was given. Fixes
10796       bug 25127; bugfix on 0.3.2.1-alpha.
10798   o Minor bugfixes (scheduler, KIST):
10799     - Avoid adding the same channel twice in the KIST scheduler pending
10800       list, which would waste CPU cycles. Fixes bug 24700; bugfix
10801       on 0.3.2.1-alpha.
10803   o Minor bugfixes (unit test, monotonic time):
10804     - Increase a constant (1msec to 10msec) in the monotonic time test
10805       that makes sure the nsec/usec/msec times read are synchronized.
10806       This change was needed to accommodate slow systems like armel or
10807       when the clock_gettime() is not a VDSO on the running kernel.
10808       Fixes bug 25113; bugfix on 0.2.9.1.
10810   o Minor bugfixes (v3 onion services):
10811     - Look at the "HSRend" protocol version, not the "HSDir" protocol
10812       version, when deciding whether a consensus entry can support the
10813       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
10814       bugfix on 0.3.2.1-alpha.
10816   o Code simplification and refactoring:
10817     - Remove the unused nodelist_recompute_all_hsdir_indices(). Closes
10818       ticket 25108.
10819     - Remove a series of counters used to track circuit extend attempts
10820       and connection status but that in reality we aren't using for
10821       anything other than stats logged by a SIGUSR1 signal. Closes
10822       ticket 25163.
10824   o Documentation (man page):
10825     - The HiddenServiceVersion torrc option accepts only one number:
10826       either version 2 or 3. Closes ticket 25026; bugfix
10827       on 0.3.2.2-alpha.
10830 Changes in version 0.3.3.1-alpha - 2018-01-25
10831   Tor 0.3.3.1-alpha is the first release in the 0.3.3.x series. It adds
10832   several new features to Tor, including several improvements to
10833   bootstrapping, and support for an experimental "vanguards" feature to
10834   resist guard discovery attacks. This series also includes better
10835   support for applications that need to embed Tor or manage v3
10836   onion services.
10838   o Major features (embedding):
10839     - There is now a documented stable API for programs that need to
10840       embed Tor. See tor_api.h for full documentation and known bugs.
10841       Closes ticket 23684.
10842     - Tor now has support for restarting in the same process.
10843       Controllers that run Tor using the "tor_api.h" interface can now
10844       restart Tor after Tor has exited. This support is incomplete,
10845       however: we fixed crash bugs that prevented it from working at
10846       all, but many bugs probably remain, including a possibility of
10847       security issues. Implements ticket 24581.
10849   o Major features (IPv6, directory documents):
10850     - Add consensus method 27, which adds IPv6 ORPorts to the microdesc
10851       consensus. This information makes it easier for IPv6 clients to
10852       bootstrap and choose reachable entry guards. Implements ticket 23826.
10853     - Add consensus method 28, which removes IPv6 ORPorts from
10854       microdescriptors. Now that the consensus contains IPv6 ORPorts, they
10855       are redundant in microdescs. This change will be used by Tor clients
10856       on 0.2.8.x and later. (That is to say, with all Tor clients that
10857       have IPv6 bootstrap and guard support.) Implements ticket 23828.
10858     - Expand the documentation for AuthDirHasIPv6Connectivity when it is
10859       set by different numbers of authorities. Fixes 23870
10860       on 0.2.4.1-alpha.
10862   o Major features (onion service v3, control port):
10863     - The control port now supports commands and events for v3 onion
10864       services. It is now possible to create ephemeral v3 services using
10865       ADD_ONION. Additionally, several events (HS_DESC, HS_DESC_CONTENT,
10866       CIRC and CIRC_MINOR) and commands (GETINFO, HSPOST, ADD_ONION and
10867       DEL_ONION) have been extended to support v3 onion services. Closes
10868       ticket 20699; implements proposal 284.
10870   o Major features (onion services):
10871     - Provide torrc options to pin the second and third hops of onion
10872       service circuits to a list of nodes. The option HSLayer2Guards
10873       pins the second hop, and the option HSLayer3Guards pins the third
10874       hop. These options are for use in conjunction with experiments
10875       with "vanguards" for preventing guard enumeration attacks. Closes
10876       ticket 13837.
10878   o Major features (rust, portability, experimental):
10879     - Tor now ships with an optional implementation of one of its
10880       smaller modules (protover.c) in the Rust programming language. To
10881       try it out, install a Rust build environment, and configure Tor
10882       with "--enable-rust --enable-cargo-online-mode". This should not
10883       cause any user-visible changes, but should help us gain more
10884       experience with Rust, and plan future Rust integration work.
10885       Implementation by Chelsea Komlo. Closes ticket 22840.
10887   o Minor features (storage, configuration):
10888     - Users can store cached directory documents somewhere other than
10889       the DataDirectory by using the CacheDirectory option. Similarly,
10890       the storage location for relay's keys can be overridden with the
10891       KeyDirectory option. Closes ticket 22703.
10893   o Major features (v3 onion services, ipv6):
10894     - When v3 onion service clients send introduce cells, they now
10895       include the IPv6 address of the rendezvous point, if it has one.
10896       Current v3 onion services running 0.3.2 ignore IPv6 addresses, but
10897       in future Tor versions, IPv6-only v3 single onion services will be
10898       able to use IPv6 addresses to connect directly to the rendezvous
10899       point. Closes ticket 23577. Patch by Neel Chauhan.
10901   o Major bugfixes (onion services, retry behavior):
10902     - Fix an "off by 2" error in counting rendezvous failures on the
10903       onion service side. While we thought we would stop the rendezvous
10904       attempt after one failed circuit, we were actually making three
10905       circuit attempts before giving up. Now switch to a default of 2,
10906       and allow the consensus parameter "hs_service_max_rdv_failures" to
10907       override. Fixes bug 24895; bugfix on 0.0.6.
10908     - New-style (v3) onion services now obey the "max rendezvous circuit
10909       attempts" logic. Previously they would make as many rendezvous
10910       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
10911       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
10913   o Major bugfixes (relays):
10914     - Fix a set of false positives where relays would consider
10915       connections to other relays as being client-only connections (and
10916       thus e.g. deserving different link padding schemes) if those
10917       relays fell out of the consensus briefly. Now we look only at the
10918       initial handshake and whether the connection authenticated as a
10919       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
10921   o Minor feature (IPv6):
10922     - Make IPv6-only clients wait for microdescs for relays, even if we
10923       were previously using descriptors (or were using them as a bridge)
10924       and have a cached descriptor for them. Implements ticket 23827.
10925     - When a consensus has IPv6 ORPorts, make IPv6-only clients use
10926       them, rather than waiting to download microdescriptors.
10927       Implements ticket 23827.
10929   o Minor features (cleanup):
10930     - Tor now deletes the CookieAuthFile and ExtORPortCookieAuthFile
10931       when it stops. Closes ticket 23271.
10933   o Minor features (defensive programming):
10934     - Most of the functions in Tor that free objects have been replaced
10935       with macros that free the objects and set the corresponding
10936       pointers to NULL. This change should help prevent a large class of
10937       dangling pointer bugs. Closes ticket 24337.
10938     - Where possible, the tor_free() macro now only evaluates its input
10939       once. Part of ticket 24337.
10940     - Check that microdesc ed25519 ids are non-zero in
10941       node_get_ed25519_id() before returning them. Implements ticket
10942       24001, patch by "aruna1234".
10944   o Minor features (embedding):
10945     - Tor can now start with a preauthenticated control connection
10946       created by the process that launched it. This feature is meant for
10947       use by programs that want to launch and manage a Tor process
10948       without allowing other programs to manage it as well. For more
10949       information, see the __OwningControllerFD option documented in
10950       control-spec.txt. Closes ticket 23900.
10951     - On most errors that would cause Tor to exit, it now tries to
10952       return from the tor_main() function, rather than calling the
10953       system exit() function. Most users won't notice a difference here,
10954       but it should be significant for programs that run Tor inside
10955       a separate thread: they should now be able to survive Tor's exit
10956       conditions rather than having Tor shut down the entire process.
10957       Closes ticket 23848.
10958     - Applications that want to embed Tor can now tell Tor not to
10959       register any of its own POSIX signal handlers, using the
10960       __DisableSignalHandlers option. Closes ticket 24588.
10962   o Minor features (fallback directory list):
10963     - Avoid selecting fallbacks that change their IP addresses too
10964       often. Select more fallbacks by ignoring the Guard flag, and
10965       allowing lower cutoffs for the Running and V2Dir flags. Also allow
10966       a lower bandwidth, and a higher number of fallbacks per operator
10967       (5% of the list). Implements ticket 24785.
10968     - Update the fallback whitelist and blacklist based on opt-ins and
10969       relay changes. Closes tickets 22321, 24678, 22527, 24135,
10970       and 24695.
10972   o Minor features (fallback directory mirror configuration):
10973     - Add a nickname to each fallback in a C comment. This makes it
10974       easier for operators to find their relays, and allows stem to use
10975       nicknames to identify fallbacks. Implements ticket 24600.
10976     - Add a type and version header to the fallback directory mirror
10977       file. Also add a delimiter to the end of each fallback entry. This
10978       helps external parsers like stem and Relay Search. Implements
10979       ticket 24725.
10980     - Add an extrainfo cache flag for each fallback in a C comment. This
10981       allows stem to use fallbacks to fetch extra-info documents, rather
10982       than using authorities. Implements ticket 22759.
10983     - Add the generateFallbackDirLine.py script for automatically
10984       generating fallback directory mirror lines from relay fingerprints.
10985       No more typos! Add the lookupFallbackDirContact.py script for
10986       automatically looking up operator contact info from relay
10987       fingerprints. Implements ticket 24706, patch by teor and atagar.
10988     - Reject any fallback directory mirror that serves an expired
10989       consensus. Implements ticket 20942, patch by "minik".
10990     - Remove commas and equals signs from external string inputs to the
10991       fallback list. This avoids format confusion attacks. Implements
10992       ticket 24726.
10993     - Remove the "weight=10" line from fallback directory mirror
10994       entries. Ticket 24681 will maintain the current fallback weights
10995       by changing Tor's default fallback weight to 10. Implements
10996       ticket 24679.
10997     - Stop logging excessive information about fallback netblocks.
10998       Implements ticket 24791.
11000   o Minor features (forward-compatibility):
11001     - If a relay supports some link authentication protocol that we do
11002       not recognize, then include that relay's ed25519 key when telling
11003       other relays to extend to it. Previously, we treated future
11004       versions as if they were too old to support ed25519 link
11005       authentication. Closes ticket 20895.
11007   o Minor features (heartbeat):
11008     - Add onion service information to our heartbeat logs, displaying
11009       stats about the activity of configured onion services. Closes
11010       ticket 24896.
11012   o Minor features (instrumentation, development):
11013     - Add the MainloopStats option to allow developers to get
11014       instrumentation information from the main event loop via the
11015       heartbeat messages. We hope to use this to improve Tor's behavior
11016       when it's trying to sleep. Closes ticket 24605.
11018   o Minor features (log messages):
11019     - Improve a warning message that happens when we fail to re-parse an
11020       old router because of an expired certificate. Closes ticket 20020.
11021     - Make the log more quantitative when we hit MaxMemInQueues
11022       threshold exposing some values. Closes ticket 24501.
11024   o Minor features (logging, android):
11025     - Added support for the Android logging subsystem. Closes
11026       ticket 24362.
11028   o Minor features (performance):
11029     - Support predictive circuit building for onion service circuits
11030       with multiple layers of guards. Closes ticket 23101.
11031     - Use stdatomic.h where available, rather than mutexes, to implement
11032       atomic_counter_t. Closes ticket 23953.
11034   o Minor features (performance, 32-bit):
11035     - Improve performance on 32-bit systems by avoiding 64-bit division
11036       when calculating the timestamp in milliseconds for channel padding
11037       computations. Implements ticket 24613.
11038     - Improve performance on 32-bit systems by avoiding 64-bit division
11039       when timestamping cells and buffer chunks for OOM calculations.
11040       Implements ticket 24374.
11042   o Minor features (performance, OSX, iOS):
11043     - Use the mach_approximate_time() function (when available) to
11044       implement coarse monotonic time. Having a coarse time function
11045       should avoid a large number of system calls, and improve
11046       performance slightly, especially under load. Closes ticket 24427.
11048   o Minor features (performance, windows):
11049     - Improve performance on Windows Vista and Windows 7 by adjusting
11050       TCP send window size according to the recommendation from
11051       SIO_IDEAL_SEND_BACKLOG_QUERY. Closes ticket 22798. Patch
11052       from Vort.
11054   o Major features (relay):
11055     - Implement an option, ReducedExitPolicy, to allow an Tor exit relay
11056       operator to use a more reasonable ("reduced") exit policy, rather
11057       than the default one. If you want to run an exit node without
11058       thinking too hard about which ports to allow, this one is for you.
11059       Closes ticket 13605. Patch from Neel Chauhan.
11061   o Minor features (testing, debugging, embedding):
11062     - For development purposes, Tor now has a mode in which it runs for
11063       a few seconds, then stops, and starts again without exiting the
11064       process. This mode is meant to help us debug various issues with
11065       ticket 23847. To use this feature, compile with
11066       --enable-restart-debugging, and set the TOR_DEBUG_RESTART
11067       environment variable. This is expected to crash a lot, and is
11068       really meant for developers only. It will likely be removed in a
11069       future release. Implements ticket 24583.
11071   o Minor bugfix (network IPv6 test):
11072     - Tor's test scripts now check if "ping -6 ::1" works when the user
11073       runs "make test-network-all". Fixes bug 24677; bugfix on
11074       0.2.9.3-alpha. Patch by "ffmancera".
11076   o Minor bugfixes (build, rust):
11077     - Fix output of autoconf checks to display success messages for Rust
11078       dependencies and a suitable rustc compiler version. Fixes bug
11079       24612; bugfix on 0.3.1.3-alpha.
11080     - When building with Rust on OSX, link against libresolv, to work
11081       around the issue at https://github.com/rust-lang/rust/issues/46797.
11082       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
11083     - Don't pass the --quiet option to cargo: it seems to suppress some
11084       errors, which is not what we want to do when building. Fixes bug
11085       24518; bugfix on 0.3.1.7.
11086     - Build correctly when building from outside Tor's source tree with
11087       the TOR_RUST_DEPENDENCIES option set. Fixes bug 22768; bugfix
11088       on 0.3.1.7.
11090   o Minor bugfixes (directory authorities, IPv6):
11091     - When creating a routerstatus (vote) from a routerinfo (descriptor),
11092       set the IPv6 address to the unspecified IPv6 address, and
11093       explicitly initialize the port to zero. Fixes bug 24488; bugfix
11094       on 0.2.4.1-alpha.
11096   o Minor bugfixes (fallback directory mirrors):
11097     - Make updateFallbackDirs.py search harder for python. (Some OSs
11098       don't put it in /usr/bin.) Fixes bug 24708; bugfix
11099       on 0.2.8.1-alpha.
11101   o Minor bugfixes (hibernation, bandwidth accounting, shutdown):
11102     - When hibernating, close connections normally and allow them to
11103       flush. Fixes bug 23571; bugfix on 0.2.4.7-alpha. Also fixes
11104       bug 7267.
11105     - Do not attempt to launch self-reachability tests when entering
11106       hibernation. Fixes a case of bug 12062; bugfix on 0.0.9pre5.
11107     - Resolve several bugs related to descriptor fetching on bridge
11108       clients with bandwidth accounting enabled. (This combination is
11109       not recommended!) Fixes a case of bug 12062; bugfix
11110       on 0.2.0.3-alpha.
11111     - When hibernating, do not attempt to launch DNS checks. Fixes a
11112       case of bug 12062; bugfix on 0.1.2.2-alpha.
11113     - When hibernating, do not try to upload or download descriptors.
11114       Fixes a case of bug 12062; bugfix on 0.0.9pre5.
11116   o Minor bugfixes (IPv6, bridges):
11117     - Tor now always sets IPv6 preferences for bridges. Fixes bug 24573;
11118       bugfix on 0.2.8.2-alpha.
11119     - Tor now sets IPv6 address in the routerstatus as well as in the
11120       router descriptors when updating addresses for a bridge. Closes
11121       ticket 24572; bugfix on 0.2.4.5-alpha. Patch by "ffmancera".
11123   o Minor bugfixes (linux seccomp2 sandbox):
11124     - When running with the sandbox enabled, reload configuration files
11125       correctly even when %include was used. Previously we would crash.
11126       Fixes bug 22605; bugfix on 0.3.1. Patch from Daniel Pinto.
11128   o Minor bugfixes (memory leaks):
11129     - Avoid possible at-exit memory leaks related to use of Libevent's
11130       event_base_once() function. (This function tends to leak memory if
11131       the event_base is closed before the event fires.) Fixes bug 24584;
11132       bugfix on 0.2.8.1-alpha.
11133     - Fix a harmless memory leak in tor-resolve. Fixes bug 24582; bugfix
11134       on 0.2.1.1-alpha.
11136   o Minor bugfixes (OSX):
11137     - Don't exit the Tor process if setrlimit() fails to change the file
11138       limit (which can happen sometimes on some versions of OSX). Fixes
11139       bug 21074; bugfix on 0.0.9pre5.
11141   o Minor bugfixes (performance, fragile-hardening):
11142     - Improve the performance of our consensus-diff application code
11143       when Tor is built with the --enable-fragile-hardening option set.
11144       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
11146   o Minor bugfixes (performance, timeouts):
11147     - Consider circuits for timeout as soon as they complete a hop. This
11148       is more accurate than applying the timeout in
11149       circuit_expire_building() because that function is only called
11150       once per second, which is now too slow for typical timeouts on the
11151       current network. Fixes bug 23114; bugfix on 0.2.2.2-alpha.
11152     - Use onion service circuits (and other circuits longer than 3 hops)
11153       to calculate a circuit build timeout. Previously, Tor only
11154       calculated its build timeout based on circuits that planned to be
11155       exactly 3 hops long. With this change, we include measurements
11156       from all circuits at the point where they complete their third
11157       hop. Fixes bug 23100; bugfix on 0.2.2.2-alpha.
11159   o Minor bugfixes (testing):
11160     - Give out Exit flags in bootstrapping networks. Fixes bug 24137;
11161       bugfix on 0.2.3.1-alpha.
11162     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
11163       25005; bugfix on 0.3.2.7-rc.
11165   o Code simplification and refactoring:
11166     - Remove /usr/athena from search path in configure.ac. Closes
11167       ticket 24363.
11168     - Remove duplicate code in node_has_curve25519_onion_key() and
11169       node_get_curve25519_onion_key(), and add a check for a zero
11170       microdesc curve25519 onion key. Closes ticket 23966, patch by
11171       "aruna1234" and teor.
11172     - Rewrite channel_rsa_id_group_set_badness to reduce temporary
11173       memory allocations with large numbers of OR connections (e.g.
11174       relays). Closes ticket 24119.
11175     - Separate the function that deletes ephemeral files when Tor
11176       stops gracefully.
11177     - Small changes to Tor's buf_t API to make it suitable for use as a
11178       general-purpose safe string constructor. Closes ticket 22342.
11179     - Switch -Wnormalized=id to -Wnormalized=nfkc in configure.ac to
11180       avoid source code identifier confusion. Closes ticket 24467.
11181     - The tor_git_revision[] constant no longer needs to be redeclared
11182       by everything that links against the rest of Tor. Done as part of
11183       ticket 23845, to simplify our external API.
11184     - We make extend_info_from_node() use node_get_curve25519_onion_key()
11185       introduced in ticket 23577 to access the curve25519 public keys
11186       rather than accessing it directly. Closes ticket 23760. Patch by
11187       Neel Chauhan.
11188     - Add a function to log channels' scheduler state changes to aid
11189       debugging efforts. Closes ticket 24531.
11191   o Documentation:
11192     - Add documentation on how to build tor with Rust dependencies
11193       without having to be online. Closes ticket 22907; bugfix
11194       on 0.3.0.3-alpha.
11195     - Clarify the behavior of RelayBandwidth{Rate,Burst} with client
11196       traffic. Closes ticket 24318.
11197     - Document that OutboundBindAddress doesn't apply to DNS requests.
11198       Closes ticket 22145. Patch from Aruna Maurya.
11199     - Document that operators who run more than one relay or bridge are
11200       expected to set MyFamily and ContactInfo correctly. Closes
11201       ticket 24526.
11203   o Code simplification and refactoring (channels):
11204     - Remove the incoming and outgoing channel queues. These were never
11205       used, but still took up a step in our fast path.
11206     - The majority of the channel unit tests have been rewritten and the
11207       code coverage has now been raised to 83.6% for channel.c. Closes
11208       ticket 23709.
11209     - Remove other dead code from the channel subsystem: All together,
11210       this cleanup has removed more than 1500 lines of code overall and
11211       adding very little except for unit test.
11213   o Code simplification and refactoring (circuit rendezvous):
11214     - Split the client-side rendezvous circuit lookup into two
11215       functions: one that returns only established circuits and another
11216       that returns all kinds of circuits. Closes ticket 23459.
11218   o Code simplification and refactoring (controller):
11219     - Make most of the variables in networkstatus_getinfo_by_purpose()
11220       const. Implements ticket 24489.
11223 Changes in version 0.3.2.9 - 2018-01-09
11224   Tor 0.3.2.9 is the first stable release in the 0.3.2 series.
11226   The 0.3.2 series includes our long-anticipated new onion service
11227   design, with numerous security features. (For more information, see
11228   our blog post at https://blog.torproject.org/fall-harvest.) We also
11229   have a new circuit scheduler algorithm for improved performance on
11230   relays everywhere (see https://blog.torproject.org/kist-and-tell),
11231   along with many smaller features and bugfixes.
11233   Per our stable release policy, we plan to support each stable release
11234   series for at least the next nine months, or for three months after
11235   the first stable release of the next series: whichever is longer. If
11236   you need a release with long-term support, we recommend that you stay
11237   with the 0.2.9 series.
11239   Below is a list of the changes since 0.3.2.8-rc. For a list of all
11240   changes since 0.3.1, see the ReleaseNotes file.
11242   o Minor features (fallback directory mirrors):
11243     - The fallback directory list has been re-generated based on the
11244       current status of the network. Tor uses fallback directories to
11245       bootstrap when it doesn't yet have up-to-date directory
11246       information. Closes ticket 24801.
11247     - Make the default DirAuthorityFallbackRate 0.1, so that clients
11248       prefer to bootstrap from fallback directory mirrors. This is a
11249       follow-up to 24679, which removed weights from the default
11250       fallbacks. Implements ticket 24681.
11252   o Minor features (geoip):
11253     - Update geoip and geoip6 to the January 5 2018 Maxmind GeoLite2
11254       Country database.
11256   o Minor bugfixes (address selection):
11257     - When the fascist_firewall_choose_address_ functions don't find a
11258       reachable address, set the returned address to the null address
11259       and port. This is a precautionary measure, because some callers do
11260       not check the return value. Fixes bug 24736; bugfix
11261       on 0.2.8.2-alpha.
11263   o Minor bugfixes (compilation):
11264     - Resolve a few shadowed-variable warnings in the onion service
11265       code. Fixes bug 24634; bugfix on 0.3.2.1-alpha.
11267   o Minor bugfixes (portability, msvc):
11268     - Fix a bug in the bit-counting parts of our timing-wheel code on
11269       MSVC. (Note that MSVC is still not a supported build platform, due
11270       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
11271       on 0.2.9.1-alpha.
11274 Changes in version 0.3.2.8-rc - 2017-12-21
11275   Tor 0.3.2.8-rc fixes a pair of bugs in the KIST and KISTLite
11276   schedulers that had led servers under heavy load to overload their
11277   outgoing connections. All relay operators running earlier 0.3.2.x
11278   versions should upgrade. This version also includes a mitigation for
11279   over-full DESTROY queues leading to out-of-memory conditions: if it
11280   works, we will soon backport it to earlier release series.
11282   This is the second release candidate in the 0.3.2 series. If we find
11283   no new bugs or regression here, then the first stable 0.3.2 release
11284   will be nearly identical to this.
11286   o Major bugfixes (KIST, scheduler):
11287     - The KIST scheduler did not correctly account for data already
11288       enqueued in each connection's send socket buffer, particularly in
11289       cases when the TCP/IP congestion window was reduced between
11290       scheduler calls. This situation lead to excessive per-connection
11291       buffering in the kernel, and a potential memory DoS. Fixes bug
11292       24665; bugfix on 0.3.2.1-alpha.
11294   o Minor features (geoip):
11295     - Update geoip and geoip6 to the December 6 2017 Maxmind GeoLite2
11296       Country database.
11298   o Minor bugfixes (hidden service v3):
11299     - Bump hsdir_spread_store parameter from 3 to 4 in order to increase
11300       the probability of reaching a service for a client missing
11301       microdescriptors. Fixes bug 24425; bugfix on 0.3.2.1-alpha.
11303   o Minor bugfixes (memory usage):
11304     - When queuing DESTROY cells on a channel, only queue the circuit-id
11305       and reason fields: not the entire 514-byte cell. This fix should
11306       help mitigate any bugs or attacks that fill up these queues, and
11307       free more RAM for other uses. Fixes bug 24666; bugfix
11308       on 0.2.5.1-alpha.
11310   o Minor bugfixes (scheduler, KIST):
11311     - Use a sane write limit for KISTLite when writing onto a connection
11312       buffer instead of using INT_MAX and shoving as much as it can.
11313       Because the OOM handler cleans up circuit queues, we are better
11314       off at keeping them in that queue instead of the connection's
11315       buffer. Fixes bug 24671; bugfix on 0.3.2.1-alpha.
11318 Changes in version 0.3.2.7-rc - 2017-12-14
11319   Tor 0.3.2.7-rc fixes various bugs in earlier versions of Tor,
11320   including some that could affect reliability or correctness.
11322   This is the first release candidate in the 0.3.2 series. If we find no
11323   new bugs or regression here, then the first stable 0.3.2. release will
11324   be nearly identical to this.
11326   o Major bugfixes (circuit prediction):
11327     - Fix circuit prediction logic so that a client doesn't treat a port
11328       as being "handled" by a circuit if that circuit already has
11329       isolation settings on it. This change should make Tor clients more
11330       responsive by improving their chances of having a pre-created
11331       circuit ready for use when a request arrives. Fixes bug 18859;
11332       bugfix on 0.2.3.3-alpha.
11334   o Minor features (logging):
11335     - Provide better warnings when the getrandom() syscall fails. Closes
11336       ticket 24500.
11338   o Minor features (portability):
11339     - Tor now compiles correctly on arm64 with libseccomp-dev installed.
11340       (It doesn't yet work with the sandbox enabled.) Closes
11341       ticket 24424.
11343   o Minor bugfixes (bridge clients, bootstrap):
11344     - Retry directory downloads when we get our first bridge descriptor
11345       during bootstrap or while reconnecting to the network. Keep
11346       retrying every time we get a bridge descriptor, until we have a
11347       reachable bridge. Fixes part of bug 24367; bugfix on 0.2.0.3-alpha.
11348     - Stop delaying bridge descriptor fetches when we have cached bridge
11349       descriptors. Instead, only delay bridge descriptor fetches when we
11350       have at least one reachable bridge. Fixes part of bug 24367;
11351       bugfix on 0.2.0.3-alpha.
11352     - Stop delaying directory fetches when we have cached bridge
11353       descriptors. Instead, only delay bridge descriptor fetches when
11354       all our bridges are definitely unreachable. Fixes part of bug
11355       24367; bugfix on 0.2.0.3-alpha.
11357   o Minor bugfixes (compilation):
11358     - Fix a signed/unsigned comparison warning introduced by our fix to
11359       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
11361   o Minor bugfixes (correctness):
11362     - Fix several places in our codebase where a C compiler would be
11363       likely to eliminate a check, based on assuming that undefined
11364       behavior had not happened elsewhere in the code. These cases are
11365       usually a sign of redundant checking or dubious arithmetic. Found
11366       by Georg Koppen using the "STACK" tool from Wang, Zeldovich,
11367       Kaashoek, and Solar-Lezama. Fixes bug 24423; bugfix on various
11368       Tor versions.
11370   o Minor bugfixes (onion service v3):
11371     - Fix a race where an onion service would launch a new intro circuit
11372       after closing an old one, but fail to register it before freeing
11373       the previously closed circuit. This bug was making the service
11374       unable to find the established intro circuit and thus not upload
11375       its descriptor, thus making a service unavailable for up to 24
11376       hours. Fixes bug 23603; bugfix on 0.3.2.1-alpha.
11378   o Minor bugfixes (scheduler, KIST):
11379     - Properly set the scheduler state of an unopened channel in the
11380       KIST scheduler main loop. This prevents a harmless but annoying
11381       log warning. Fixes bug 24502; bugfix on 0.3.2.4-alpha.
11382     - Avoid a possible integer overflow when computing the available
11383       space on the TCP buffer of a channel. This had no security
11384       implications; but could make KIST allow too many cells on a
11385       saturated connection. Fixes bug 24590; bugfix on 0.3.2.1-alpha.
11386     - Downgrade to "info" a harmless warning about the monotonic time
11387       moving backwards: This can happen on platform not supporting
11388       monotonic time. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
11391 Changes in version 0.3.2.6-alpha - 2017-12-01
11392   This version of Tor is the latest in the 0.3.2 alpha series. It
11393   includes fixes for several important security issues. All Tor users
11394   should upgrade to this release, or to one of the other releases coming
11395   out today.
11397   o Major bugfixes (security):
11398     - Fix a denial of service bug where an attacker could use a
11399       malformed directory object to cause a Tor instance to pause while
11400       OpenSSL would try to read a passphrase from the terminal. (Tor
11401       instances run without a terminal, which is the case for most Tor
11402       packages, are not impacted.) Fixes bug 24246; bugfix on every
11403       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11404       Found by OSS-Fuzz as testcase 6360145429790720.
11405     - Fix a denial of service issue where an attacker could crash a
11406       directory authority using a malformed router descriptor. Fixes bug
11407       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11408       and CVE-2017-8820.
11409     - When checking for replays in the INTRODUCE1 cell data for a
11410       (legacy) onion service, correctly detect replays in the RSA-
11411       encrypted part of the cell. We were previously checking for
11412       replays on the entire cell, but those can be circumvented due to
11413       the malleability of Tor's legacy hybrid encryption. This fix helps
11414       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11415       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11416       and CVE-2017-8819.
11418   o Major bugfixes (security, onion service v2):
11419     - Fix a use-after-free error that could crash v2 Tor onion services
11420       when they failed to open circuits while expiring introduction
11421       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11422       also tracked as TROVE-2017-013 and CVE-2017-8823.
11424   o Major bugfixes (security, relay):
11425     - When running as a relay, make sure that we never build a path
11426       through ourselves, even in the case where we have somehow lost the
11427       version of our descriptor appearing in the consensus. Fixes part
11428       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11429       as TROVE-2017-012 and CVE-2017-8822.
11430     - When running as a relay, make sure that we never choose ourselves
11431       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
11432       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
11434   o Minor feature (relay statistics):
11435     - Change relay bandwidth reporting stats interval from 4 hours to 24
11436       hours in order to reduce the efficiency of guard discovery
11437       attacks. Fixes ticket 23856.
11439   o Minor features (directory authority):
11440     - Add an IPv6 address for the "bastet" directory authority. Closes
11441       ticket 24394.
11443   o Minor bugfixes (client):
11444     - By default, do not enable storage of client-side DNS values. These
11445       values were unused by default previously, but they should not have
11446       been cached at all. Fixes bug 24050; bugfix on 0.2.6.3-alpha.
11449 Changes in version 0.3.1.9 - 2017-12-01:
11450   Tor 0.3.1.9 backports important security and stability fixes from the
11451   0.3.2 development series. All Tor users should upgrade to this
11452   release, or to another of the releases coming out today.
11454   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11455     - Fix a denial of service bug where an attacker could use a
11456       malformed directory object to cause a Tor instance to pause while
11457       OpenSSL would try to read a passphrase from the terminal. (Tor
11458       instances run without a terminal, which is the case for most Tor
11459       packages, are not impacted.) Fixes bug 24246; bugfix on every
11460       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11461       Found by OSS-Fuzz as testcase 6360145429790720.
11462     - Fix a denial of service issue where an attacker could crash a
11463       directory authority using a malformed router descriptor. Fixes bug
11464       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11465       and CVE-2017-8820.
11466     - When checking for replays in the INTRODUCE1 cell data for a
11467       (legacy) onion service, correctly detect replays in the RSA-
11468       encrypted part of the cell. We were previously checking for
11469       replays on the entire cell, but those can be circumvented due to
11470       the malleability of Tor's legacy hybrid encryption. This fix helps
11471       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11472       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11473       and CVE-2017-8819.
11475   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11476     - Fix a use-after-free error that could crash v2 Tor onion services
11477       when they failed to open circuits while expiring introduction
11478       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11479       also tracked as TROVE-2017-013 and CVE-2017-8823.
11481   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11482     - When running as a relay, make sure that we never build a path
11483       through ourselves, even in the case where we have somehow lost the
11484       version of our descriptor appearing in the consensus. Fixes part
11485       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11486       as TROVE-2017-012 and CVE-2017-8822.
11487     - When running as a relay, make sure that we never choose ourselves
11488       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
11489       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
11491   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
11492     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11493       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11494       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11495       identifying and finding a workaround to this bug and to Moritz,
11496       Arthur Edelstein, and Roger for helping to track it down and
11497       analyze it.
11499   o Minor features (bridge):
11500     - Bridges now include notice in their descriptors that they are
11501       bridges, and notice of their distribution status, based on their
11502       publication settings. Implements ticket 18329. For more fine-
11503       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11504       or later.
11506   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11507     - Add an IPv6 address for the "bastet" directory authority. Closes
11508       ticket 24394.
11510   o Minor features (geoip):
11511     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11512       Country database.
11514   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
11515     - Avoid unnecessary calls to directory_fetches_from_authorities() on
11516       relays, to prevent spurious address resolutions and descriptor
11517       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
11518       bugfix on in 0.2.8.1-alpha.
11520   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
11521     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
11522       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
11524   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
11525     - When a circuit is marked for close, do not attempt to package any
11526       cells for channels on that circuit. Previously, we would detect
11527       this condition lower in the call stack, when we noticed that the
11528       circuit had no attached channel, and log an annoying message.
11529       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
11531   o Minor bugfixes (onion service, backport from 0.3.2.5-alpha):
11532     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
11533       so it matches dir-spec.txt. Fixes bug 24262; bugfix
11534       on 0.3.1.1-alpha.
11536   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
11537     - Avoid a crash when transitioning from client mode to bridge mode.
11538       Previously, we would launch the worker threads whenever our
11539       "public server" mode changed, but not when our "server" mode
11540       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11543 Changes in version 0.3.0.13 - 2017-12-01
11544   Tor 0.3.0.13 backports important security and stability bugfixes from
11545   later Tor releases. All Tor users should upgrade to this release, or
11546   to another of the releases coming out today.
11548   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
11549   2018. If you need a release with long-term support, please stick with
11550   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11552   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11553     - Fix a denial of service bug where an attacker could use a
11554       malformed directory object to cause a Tor instance to pause while
11555       OpenSSL would try to read a passphrase from the terminal. (Tor
11556       instances run without a terminal, which is the case for most Tor
11557       packages, are not impacted.) Fixes bug 24246; bugfix on every
11558       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11559       Found by OSS-Fuzz as testcase 6360145429790720.
11560     - Fix a denial of service issue where an attacker could crash a
11561       directory authority using a malformed router descriptor. Fixes bug
11562       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11563       and CVE-2017-8820.
11564     - When checking for replays in the INTRODUCE1 cell data for a
11565       (legacy) onion service, correctly detect replays in the RSA-
11566       encrypted part of the cell. We were previously checking for
11567       replays on the entire cell, but those can be circumvented due to
11568       the malleability of Tor's legacy hybrid encryption. This fix helps
11569       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11570       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11571       and CVE-2017-8819.
11573   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11574     - Fix a use-after-free error that could crash v2 Tor onion services
11575       when they failed to open circuits while expiring introduction
11576       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11577       also tracked as TROVE-2017-013 and CVE-2017-8823.
11579   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11580     - When running as a relay, make sure that we never build a path
11581       through ourselves, even in the case where we have somehow lost the
11582       version of our descriptor appearing in the consensus. Fixes part
11583       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11584       as TROVE-2017-012 and CVE-2017-8822.
11585     - When running as a relay, make sure that we never choose ourselves
11586       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
11587       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
11589   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
11590     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11591       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11592       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11593       identifying and finding a workaround to this bug and to Moritz,
11594       Arthur Edelstein, and Roger for helping to track it down and
11595       analyze it.
11597   o Minor features (security, windows, backport from 0.3.1.1-alpha):
11598     - Enable a couple of pieces of Windows hardening: one
11599       (HeapEnableTerminationOnCorruption) that has been on-by-default
11600       since Windows 8, and unavailable before Windows 7; and one
11601       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
11602       affect us, but shouldn't do any harm. Closes ticket 21953.
11604   o Minor features (bridge, backport from 0.3.1.9):
11605     - Bridges now include notice in their descriptors that they are
11606       bridges, and notice of their distribution status, based on their
11607       publication settings. Implements ticket 18329. For more fine-
11608       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11609       or later.
11611   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11612     - Add an IPv6 address for the "bastet" directory authority. Closes
11613       ticket 24394.
11615   o Minor features (geoip):
11616     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11617       Country database.
11619   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
11620     - Avoid unnecessary calls to directory_fetches_from_authorities() on
11621       relays, to prevent spurious address resolutions and descriptor
11622       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
11623       bugfix on in 0.2.8.1-alpha.
11625   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
11626     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
11627       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
11629   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
11630     - When a circuit is marked for close, do not attempt to package any
11631       cells for channels on that circuit. Previously, we would detect
11632       this condition lower in the call stack, when we noticed that the
11633       circuit had no attached channel, and log an annoying message.
11634       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
11636   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
11637     - Avoid a crash when transitioning from client mode to bridge mode.
11638       Previously, we would launch the worker threads whenever our
11639       "public server" mode changed, but not when our "server" mode
11640       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11642   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
11643     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11644       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11647 Changes in version 0.2.9.14 - 2017-12-01
11648   Tor 0.3.0.13 backports important security and stability bugfixes from
11649   later Tor releases. All Tor users should upgrade to this release, or
11650   to another of the releases coming out today.
11652   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
11653     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11654       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11655       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11656       identifying and finding a workaround to this bug and to Moritz,
11657       Arthur Edelstein, and Roger for helping to track it down and
11658       analyze it.
11660   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11661     - Fix a denial of service bug where an attacker could use a
11662       malformed directory object to cause a Tor instance to pause while
11663       OpenSSL would try to read a passphrase from the terminal. (Tor
11664       instances run without a terminal, which is the case for most Tor
11665       packages, are not impacted.) Fixes bug 24246; bugfix on every
11666       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11667       Found by OSS-Fuzz as testcase 6360145429790720.
11668     - Fix a denial of service issue where an attacker could crash a
11669       directory authority using a malformed router descriptor. Fixes bug
11670       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11671       and CVE-2017-8820.
11672     - When checking for replays in the INTRODUCE1 cell data for a
11673       (legacy) onion service, correctly detect replays in the RSA-
11674       encrypted part of the cell. We were previously checking for
11675       replays on the entire cell, but those can be circumvented due to
11676       the malleability of Tor's legacy hybrid encryption. This fix helps
11677       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11678       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11679       and CVE-2017-8819.
11681   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11682     - Fix a use-after-free error that could crash v2 Tor onion services
11683       when they failed to open circuits while expiring introduction
11684       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11685       also tracked as TROVE-2017-013 and CVE-2017-8823.
11687   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11688     - When running as a relay, make sure that we never build a path
11689       through ourselves, even in the case where we have somehow lost the
11690       version of our descriptor appearing in the consensus. Fixes part
11691       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11692       as TROVE-2017-012 and CVE-2017-8822.
11694   o Minor features (bridge, backport from 0.3.1.9):
11695     - Bridges now include notice in their descriptors that they are
11696       bridges, and notice of their distribution status, based on their
11697       publication settings. Implements ticket 18329. For more fine-
11698       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11699       or later.
11701   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11702     - Add an IPv6 address for the "bastet" directory authority. Closes
11703       ticket 24394.
11705   o Minor features (geoip):
11706     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11707       Country database.
11709   o Minor features (security, windows, backport from 0.3.1.1-alpha):
11710     - Enable a couple of pieces of Windows hardening: one
11711       (HeapEnableTerminationOnCorruption) that has been on-by-default
11712       since Windows 8, and unavailable before Windows 7; and one
11713       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
11714       affect us, but shouldn't do any harm. Closes ticket 21953.
11716   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
11717     - Avoid unnecessary calls to directory_fetches_from_authorities() on
11718       relays, to prevent spurious address resolutions and descriptor
11719       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
11720       bugfix on in 0.2.8.1-alpha.
11722   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
11723     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
11724       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
11726   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
11727     - When a circuit is marked for close, do not attempt to package any
11728       cells for channels on that circuit. Previously, we would detect
11729       this condition lower in the call stack, when we noticed that the
11730       circuit had no attached channel, and log an annoying message.
11731       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
11733   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
11734     - Avoid a crash when transitioning from client mode to bridge mode.
11735       Previously, we would launch the worker threads whenever our
11736       "public server" mode changed, but not when our "server" mode
11737       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11739   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
11740     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11741       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11744 Changes in version 0.2.8.17 - 2017-12-01
11745   Tor 0.2.8.17 backports important security and stability bugfixes from
11746   later Tor releases. All Tor users should upgrade to this release, or
11747   to another of the releases coming out today.
11749   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
11750   2018. If you need a release with long-term support, please upgrade with
11751   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11753   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11754     - Fix a denial of service bug where an attacker could use a
11755       malformed directory object to cause a Tor instance to pause while
11756       OpenSSL would try to read a passphrase from the terminal. (Tor
11757       instances run without a terminal, which is the case for most Tor
11758       packages, are not impacted.) Fixes bug 24246; bugfix on every
11759       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11760       Found by OSS-Fuzz as testcase 6360145429790720.
11761     - When checking for replays in the INTRODUCE1 cell data for a
11762       (legacy) onion service, correctly detect replays in the RSA-
11763       encrypted part of the cell. We were previously checking for
11764       replays on the entire cell, but those can be circumvented due to
11765       the malleability of Tor's legacy hybrid encryption. This fix helps
11766       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11767       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11768       and CVE-2017-8819.
11770   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11771     - Fix a use-after-free error that could crash v2 Tor onion services
11772       when they failed to open circuits while expiring introduction
11773       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11774       also tracked as TROVE-2017-013 and CVE-2017-8823.
11776   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11777     - When running as a relay, make sure that we never build a path through
11778       ourselves, even in the case where we have somehow lost the version of
11779       our descriptor appearing in the consensus. Fixes part of bug 21534;
11780       bugfix on 0.2.0.1-alpha. This issue is also tracked as TROVE-2017-012
11781       and CVE-2017-8822.
11783   o Minor features (bridge, backport from 0.3.1.9):
11784     - Bridges now include notice in their descriptors that they are
11785       bridges, and notice of their distribution status, based on their
11786       publication settings. Implements ticket 18329. For more fine-
11787       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11788       or later.
11790   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11791     - Add an IPv6 address for the "bastet" directory authority. Closes
11792       ticket 24394.
11794   o Minor features (geoip):
11795     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11796       Country database.
11798   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
11799     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11800       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11803 Changes in version 0.2.5.16 - 2017-12-01
11804   Tor 0.2.5.13 backports important security and stability bugfixes from
11805   later Tor releases. All Tor users should upgrade to this release, or
11806   to another of the releases coming out today.
11808   Note: the Tor 0.2.5 series will no longer be supported after 1 May
11809   2018. If you need a release with long-term support, please upgrade to
11810   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11812   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11813     - Fix a denial of service bug where an attacker could use a
11814       malformed directory object to cause a Tor instance to pause while
11815       OpenSSL would try to read a passphrase from the terminal. (Tor
11816       instances run without a terminal, which is the case for most Tor
11817       packages, are not impacted.) Fixes bug 24246; bugfix on every
11818       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11819       Found by OSS-Fuzz as testcase 6360145429790720.
11820     - When checking for replays in the INTRODUCE1 cell data for a
11821       (legacy) onion service, correctly detect replays in the RSA-
11822       encrypted part of the cell. We were previously checking for
11823       replays on the entire cell, but those can be circumvented due to
11824       the malleability of Tor's legacy hybrid encryption. This fix helps
11825       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11826       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11827       and CVE-2017-8819.
11829   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11830     - When running as a relay, make sure that we never build a path
11831       through ourselves, even in the case where we have somehow lost the
11832       version of our descriptor appearing in the consensus. Fixes part
11833       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11834       as TROVE-2017-012 and CVE-2017-8822.
11836   o Minor features (bridge, backport from 0.3.1.9):
11837     - Bridges now include notice in their descriptors that they are
11838       bridges, and notice of their distribution status, based on their
11839       publication settings. Implements ticket 18329. For more fine-
11840       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11841       or later.
11843   o Minor features (geoip):
11844     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11845       Country database.
11848 Changes in version 0.3.2.5-alpha - 2017-11-22
11849   Tor 0.3.2.5-alpha is the fifth alpha release in the 0.3.2.x series. It
11850   fixes several stability and reliability bugs, including a fix for
11851   intermittent bootstrapping failures that some people have been seeing
11852   since the 0.3.0.x series.
11854   Please test this alpha out -- many of these fixes will soon be
11855   backported to stable Tor versions if no additional bugs are found
11856   in them.
11858   o Major bugfixes (bootstrapping):
11859     - Fetch descriptors aggressively whenever we lack enough to build
11860       circuits, regardless of how many descriptors we are missing.
11861       Previously, we would delay launching the fetch when we had fewer
11862       than 15 missing descriptors, even if some of those descriptors
11863       were blocking circuits from building. Fixes bug 23985; bugfix on
11864       0.1.1.11-alpha. The effects of this bug became worse in
11865       0.3.0.3-alpha, when we began treating missing descriptors from our
11866       primary guards as a reason to delay circuits.
11867     - Don't try fetching microdescriptors from relays that have failed
11868       to deliver them in the past. Fixes bug 23817; bugfix
11869       on 0.3.0.1-alpha.
11871   o Minor features (directory authority):
11872     - Make the "Exit" flag assignment only depend on whether the exit
11873       policy allows connections to ports 80 and 443. Previously relays
11874       would get the Exit flag if they allowed connections to one of
11875       these ports and also port 6667. Resolves ticket 23637.
11877   o Minor features (geoip):
11878     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11879       Country database.
11881   o Minor features (linux seccomp2 sandbox):
11882     - Update the sandbox rules so that they should now work correctly
11883       with Glibc 2.26. Closes ticket 24315.
11885   o Minor features (logging):
11886     - Downgrade a pair of log messages that could occur when an exit's
11887       resolver gave us an unusual (but not forbidden) response. Closes
11888       ticket 24097.
11889     - Improve the message we log when re-enabling circuit build timeouts
11890       after having received a consensus. Closes ticket 20963.
11892   o Minor bugfixes (compilation):
11893     - Fix a memory leak warning in one of the libevent-related
11894       configuration tests that could occur when manually specifying
11895       -fsanitize=address. Fixes bug 24279; bugfix on 0.3.0.2-alpha.
11896       Found and patched by Alex Xu.
11897     - When detecting OpenSSL on Windows from our configure script, make
11898       sure to try linking with the ws2_32 library. Fixes bug 23783;
11899       bugfix on 0.3.2.2-alpha.
11901   o Minor bugfixes (control port, linux seccomp2 sandbox):
11902     - Avoid a crash when attempting to use the seccomp2 sandbox together
11903       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
11904       on 0.2.5.1-alpha.
11906   o Minor bugfixes (control port, onion services):
11907     - Report "FAILED" instead of "UPLOAD_FAILED" "FAILED" for the
11908       HS_DESC event when a service is not able to upload a descriptor.
11909       Fixes bug 24230; bugfix on 0.2.7.1-alpha.
11911   o Minor bugfixes (directory cache):
11912     - Recover better from empty or corrupt files in the consensus cache
11913       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
11914     - When a consensus diff calculation is only partially successful,
11915       only record the successful parts as having succeeded. Partial
11916       success can happen if (for example) one compression method fails
11917       but the others succeed. Previously we misrecorded all the
11918       calculations as having succeeded, which would later cause a
11919       nonfatal assertion failure. Fixes bug 24086; bugfix
11920       on 0.3.1.1-alpha.
11922   o Minor bugfixes (logging):
11923     - Only log once if we notice that KIST support is gone. Fixes bug
11924       24158; bugfix on 0.3.2.1-alpha.
11925     - Suppress a log notice when relay descriptors arrive. We already
11926       have a bootstrap progress for this so no need to log notice
11927       everytime tor receives relay descriptors. Microdescriptors behave
11928       the same. Fixes bug 23861; bugfix on 0.2.8.2-alpha.
11930   o Minor bugfixes (network layer):
11931     - When closing a connection via close_connection_immediately(), we
11932       mark it as "not blocked on bandwidth", to prevent later calls from
11933       trying to unblock it, and give it permission to read. This fixes a
11934       backtrace warning that can happen on relays under various
11935       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
11937   o Minor bugfixes (onion services):
11938     - The introduction circuit was being timed out too quickly while
11939       waiting for the rendezvous circuit to complete. Keep the intro
11940       circuit around longer instead of timing out and reopening new ones
11941       constantly. Fixes bug 23681; bugfix on 0.2.4.8-alpha.
11942     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
11943       so it matches dir-spec.txt. Fixes bug 24262; bugfix
11944       on 0.3.1.1-alpha.
11945     - Silence a warning about failed v3 onion descriptor uploads that
11946       can happen naturally under certain edge cases. Fixes part of bug
11947       23662; bugfix on 0.3.2.1-alpha.
11949   o Minor bugfixes (tests):
11950     - Fix a memory leak in one of the bridge-distribution test cases.
11951       Fixes bug 24345; bugfix on 0.3.2.3-alpha.
11952     - Fix a bug in our fuzzing mock replacement for crypto_pk_checksig(),
11953       to correctly handle cases where a caller gives it an RSA key of
11954       under 160 bits. (This is not actually a bug in Tor itself, but
11955       rather in our fuzzing code.) Fixes bug 24247; bugfix on
11956       0.3.0.3-alpha. Found by OSS-Fuzz as issue 4177.
11958   o Documentation:
11959     - Add notes in man page regarding OS support for the various
11960       scheduler types. Attempt to use less jargon in the scheduler
11961       section. Closes ticket 24254.
11964 Changes in version 0.3.2.4-alpha - 2017-11-08
11965   Tor 0.3.2.4-alpha is the fourth alpha release in the 0.3.2.x series.
11966   It fixes several stability and reliability bugs, especially including
11967   a major reliability issue that has been plaguing fast exit relays in
11968   recent months.
11970   o Major bugfixes (exit relays, DNS):
11971     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11972       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11973       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11974       identifying and finding a workaround to this bug and to Moritz,
11975       Arthur Edelstein, and Roger for helping to track it down and
11976       analyze it.
11978   o Major bugfixes (scheduler, channel):
11979     - Stop processing scheduled channels if they closed while flushing
11980       cells. This can happen if the write on the connection fails
11981       leading to the channel being closed while in the scheduler loop.
11982       Fixes bug 23751; bugfix on 0.3.2.1-alpha.
11984   o Minor features (logging, scheduler):
11985     - Introduce a SCHED_BUG() function to log extra information about
11986       the scheduler state if we ever catch a bug in the scheduler.
11987       Closes ticket 23753.
11989   o Minor features (removed deprecations):
11990     - The ClientDNSRejectInternalAddresses flag can once again be set in
11991       non-testing Tor networks, so long as they do not use the default
11992       directory authorities. This change also removes the deprecation of
11993       this flag from 0.2.9.2-alpha. Closes ticket 21031.
11995   o Minor features (testing):
11996     - Our fuzzing tests now test the encrypted portions of v3 onion
11997       service descriptors. Implements more of 21509.
11999   o Minor bugfixes (directory client):
12000     - On failure to download directory information, delay retry attempts
12001       by a random amount based on the "decorrelated jitter" algorithm.
12002       Our previous delay algorithm tended to produce extra-long delays
12003       too easily. Fixes bug 23816; bugfix on 0.2.9.1-alpha.
12005   o Minor bugfixes (IPv6, v3 single onion services):
12006     - Remove buggy code for IPv6-only v3 single onion services, and
12007       reject attempts to configure them. This release supports IPv4,
12008       dual-stack, and IPv6-only v3 onion services; and IPv4 and dual-
12009       stack v3 single onion services. Fixes bug 23820; bugfix
12010       on 0.3.2.1-alpha.
12012   o Minor bugfixes (logging, relay):
12013     - Give only a protocol warning when the ed25519 key is not
12014       consistent between the descriptor and microdescriptor of a relay.
12015       This can happen, for instance, if the relay has been flagged
12016       NoEdConsensus. Fixes bug 24025; bugfix on 0.3.2.1-alpha.
12018   o Minor bugfixes (manpage, onion service):
12019     - Document that the HiddenServiceNumIntroductionPoints option is
12020       0-10 for v2 services and 0-20 for v3 services. Fixes bug 24115;
12021       bugfix on 0.3.2.1-alpha.
12023   o Minor bugfixes (memory leaks):
12024     - Fix a minor memory leak at exit in the KIST scheduler. This bug
12025       should have no user-visible impact. Fixes bug 23774; bugfix
12026       on 0.3.2.1-alpha.
12027     - Fix a memory leak when decrypting a badly formatted v3 onion
12028       service descriptor. Fixes bug 24150; bugfix on 0.3.2.1-alpha.
12029       Found by OSS-Fuzz; this is OSS-Fuzz issue 3994.
12031   o Minor bugfixes (onion services):
12032     - Cache some needed onion service client information instead of
12033       constantly computing it over and over again. Fixes bug 23623;
12034       bugfix on 0.3.2.1-alpha.
12035     - Properly retry HSv3 descriptor fetches when missing required
12036       directory information. Fixes bug 23762; bugfix on 0.3.2.1-alpha.
12038   o Minor bugfixes (path selection):
12039     - When selecting relays by bandwidth, avoid a rounding error that
12040       could sometimes cause load to be imbalanced incorrectly.
12041       Previously, we would always round upwards; now, we round towards
12042       the nearest integer. This had the biggest effect when a relay's
12043       weight adjustments should have given it weight 0, but it got
12044       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
12045     - When calculating the fraction of nodes that have descriptors, and
12046       all nodes in the network have zero bandwidths, count the number of
12047       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
12048     - Actually log the total bandwidth in compute_weighted_bandwidths().
12049       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
12051   o Minor bugfixes (relay, crash):
12052     - Avoid a crash when transitioning from client mode to bridge mode.
12053       Previously, we would launch the worker threads whenever our
12054       "public server" mode changed, but not when our "server" mode
12055       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
12057   o Minor bugfixes (testing):
12058     - Fix a spurious fuzzing-only use of an uninitialized value. Found
12059       by Brian Carpenter. Fixes bug 24082; bugfix on 0.3.0.3-alpha.
12060     - Test that IPv6-only clients can use microdescriptors when running
12061       "make test-network-all". Requires chutney master 61c28b9 or later.
12062       Closes ticket 24109.
12065 Changes in version 0.3.2.3-alpha - 2017-10-27
12066   Tor 0.3.2.3-alpha is the third release in the 0.3.2 series. It fixes
12067   numerous small bugs in earlier versions of 0.3.2.x, and adds a new
12068   directory authority, Bastet.
12070   o Directory authority changes:
12071     - Add "Bastet" as a ninth directory authority to the default list.
12072       Closes ticket 23910.
12073     - The directory authority "Longclaw" has changed its IP address.
12074       Closes ticket 23592.
12076   o Minor features (bridge):
12077     - Bridge relays can now set the BridgeDistribution config option to
12078       add a "bridge-distribution-request" line to their bridge
12079       descriptor, which tells BridgeDB how they'd like their bridge
12080       address to be given out. (Note that as of Oct 2017, BridgeDB does
12081       not yet implement this feature.) As a side benefit, this feature
12082       provides a way to distinguish bridge descriptors from non-bridge
12083       descriptors. Implements tickets 18329.
12085   o Minor features (client, entry guards):
12086     - Improve log messages when missing descriptors for primary guards.
12087       Resolves ticket 23670.
12089   o Minor features (geoip):
12090     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12091       Country database.
12093   o Minor bugfixes (bridge):
12094     - Overwrite the bridge address earlier in the process of retrieving
12095       its descriptor, to make sure we reach it on the configured
12096       address. Fixes bug 20532; bugfix on 0.2.0.10-alpha.
12098   o Minor bugfixes (documentation):
12099     - Document better how to read gcov, and what our gcov postprocessing
12100       scripts do. Fixes bug 23739; bugfix on 0.2.9.1-alpha.
12102   o Minor bugfixes (entry guards):
12103     - Tor now updates its guard state when it reads a consensus
12104       regardless of whether it's missing descriptors. That makes tor use
12105       its primary guards to fetch descriptors in some edge cases where
12106       it would previously have used fallback directories. Fixes bug
12107       23862; bugfix on 0.3.0.1-alpha.
12109   o Minor bugfixes (hidden service client):
12110     - When handling multiple SOCKS request for the same .onion address,
12111       only fetch the service descriptor once.
12112     - When a descriptor fetch fails with a non-recoverable error, close
12113       all pending SOCKS requests for that .onion. Fixes bug 23653;
12114       bugfix on 0.3.2.1-alpha.
12116   o Minor bugfixes (hidden service):
12117     - Always regenerate missing hidden service public key files. Prior
12118       to this, if the public key was deleted from disk, it wouldn't get
12119       recreated. Fixes bug 23748; bugfix on 0.3.2.2-alpha. Patch
12120       from "cathugger".
12121     - Make sure that we have a usable ed25519 key when the intro point
12122       relay supports ed25519 link authentication. Fixes bug 24002;
12123       bugfix on 0.3.2.1-alpha.
12125   o Minor bugfixes (hidden service, v2):
12126     - When reloading configured hidden services, copy all information
12127       from the old service object. Previously, some data was omitted,
12128       causing delays in descriptor upload, and other bugs. Fixes bug
12129       23790; bugfix on 0.2.1.9-alpha.
12131   o Minor bugfixes (memory safety, defensive programming):
12132     - Clear the target address when node_get_prim_orport() returns
12133       early. Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12135   o Minor bugfixes (relay):
12136     - Avoid a BUG warning when receiving a dubious CREATE cell while an
12137       option transition is in progress. Fixes bug 23952; bugfix
12138       on 0.3.2.1-alpha.
12140   o Minor bugfixes (testing):
12141     - Adjust the GitLab CI configuration to more closely match that of
12142       Travis CI. Fixes bug 23757; bugfix on 0.3.2.2-alpha.
12143     - Prevent scripts/test/coverage from attempting to move gcov output
12144       to the root directory. Fixes bug 23741; bugfix on 0.2.5.1-alpha.
12145     - When running unit tests as root, skip a test that would fail
12146       because it expects a permissions error. This affects some
12147       continuous integration setups. Fixes bug 23758; bugfix
12148       on 0.3.2.2-alpha.
12149     - Stop unconditionally mirroring the tor repository in GitLab CI.
12150       This prevented developers from enabling GitLab CI on master. Fixes
12151       bug 23755; bugfix on 0.3.2.2-alpha.
12152     - Fix the hidden service v3 descriptor decoding fuzzing to use the
12153       latest decoding API correctly. Fixes bug 21509; bugfix
12154       on 0.3.2.1-alpha.
12156   o Minor bugfixes (warnings):
12157     - When we get an HTTP request on a SOCKS port, tell the user about
12158       the new HTTPTunnelPort option. Previously, we would give a "Tor is
12159       not an HTTP Proxy" message, which stopped being true when
12160       HTTPTunnelPort was introduced. Fixes bug 23678; bugfix
12161       on 0.3.2.1-alpha.
12164 Changes in version 0.2.5.15 - 2017-10-25
12165   Tor 0.2.5.15 backports a collection of bugfixes from later Tor release
12166   series. It also adds a new directory authority, Bastet.
12168   Note: the Tor 0.2.5 series will no longer be supported after 1 May
12169   2018. If you need a release with long-term support, please upgrade to
12170   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
12172   o Directory authority changes:
12173     - Add "Bastet" as a ninth directory authority to the default list.
12174       Closes ticket 23910.
12175     - The directory authority "Longclaw" has changed its IP address.
12176       Closes ticket 23592.
12178   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
12179     - Avoid an assertion failure bug affecting our implementation of
12180       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
12181       handling of "0xx" differs from what we had expected. Fixes bug
12182       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
12184   o Minor features (geoip):
12185     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12186       Country database.
12188   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
12189     - Fix a memset() off the end of an array when packing cells. This
12190       bug should be harmless in practice, since the corrupted bytes are
12191       still in the same structure, and are always padding bytes,
12192       ignored, or immediately overwritten, depending on compiler
12193       behavior. Nevertheless, because the memset()'s purpose is to make
12194       sure that any other cell-handling bugs can't expose bytes to the
12195       network, we need to fix it. Fixes bug 22737; bugfix on
12196       0.2.4.11-alpha. Fixes CID 1401591.
12198   o Build features (backport from 0.3.1.5-alpha):
12199     - Tor's repository now includes a Travis Continuous Integration (CI)
12200       configuration file (.travis.yml). This is meant to help new
12201       developers and contributors who fork Tor to a Github repository be
12202       better able to test their changes, and understand what we expect
12203       to pass. To use this new build feature, you must fork Tor to your
12204       Github account, then go into the "Integrations" menu in the
12205       repository settings for your fork and enable Travis, then push
12206       your changes. Closes ticket 22636.
12209 Changes in version 0.2.8.16 - 2017-10-25
12210   Tor 0.2.8.16 backports a collection of bugfixes from later Tor release
12211   series, including a bugfix for a crash issue that had affected relays
12212   under memory pressure. It also adds a new directory authority, Bastet.
12214   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
12215   2018. If you need a release with long-term support, please stick with
12216   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
12218   o Directory authority changes:
12219     - Add "Bastet" as a ninth directory authority to the default list.
12220       Closes ticket 23910.
12221     - The directory authority "Longclaw" has changed its IP address.
12222       Closes ticket 23592.
12224   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
12225     - Fix a timing-based assertion failure that could occur when the
12226       circuit out-of-memory handler freed a connection's output buffer.
12227       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12229   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
12230     - Remove longclaw's IPv6 address, as it will soon change. Authority
12231       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12232       3/8 directory authorities with IPv6 addresses, but there are also
12233       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12235   o Minor features (geoip):
12236     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12237       Country database.
12240 Changes in version 0.2.9.13 - 2017-10-25
12241   Tor 0.2.9.13 backports a collection of bugfixes from later Tor release
12242   series, including a bugfix for a crash issue that had affected relays
12243   under memory pressure. It also adds a new directory authority, Bastet.
12245   o Directory authority changes:
12246     - Add "Bastet" as a ninth directory authority to the default list.
12247       Closes ticket 23910.
12248     - The directory authority "Longclaw" has changed its IP address.
12249       Closes ticket 23592.
12251   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
12252     - Fix a timing-based assertion failure that could occur when the
12253       circuit out-of-memory handler freed a connection's output buffer.
12254       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12256   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
12257     - Remove longclaw's IPv6 address, as it will soon change. Authority
12258       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12259       3/8 directory authorities with IPv6 addresses, but there are also
12260       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12262   o Minor features (geoip):
12263     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12264       Country database.
12266   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
12267     - When a directory authority rejects a descriptor or extrainfo with
12268       a given digest, mark that digest as undownloadable, so that we do
12269       not attempt to download it again over and over. We previously
12270       tried to avoid downloading such descriptors by other means, but we
12271       didn't notice if we accidentally downloaded one anyway. This
12272       behavior became problematic in 0.2.7.2-alpha, when authorities
12273       began pinning Ed25519 keys. Fixes bug 22349; bugfix
12274       on 0.2.1.19-alpha.
12276   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
12277     - Clear the address when node_get_prim_orport() returns early.
12278       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12280   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
12281     - When running as a Windows service, set the ID of the main thread
12282       correctly. Failure to do so made us fail to send log messages to
12283       the controller in 0.2.1.16-rc, slowed down controller event
12284       delivery in 0.2.7.3-rc and later, and crash with an assertion
12285       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
12286       Patch and diagnosis from "Vort".
12289 Changes in version 0.3.0.12 - 2017-10-25
12290   Tor 0.3.0.12 backports a collection of bugfixes from later Tor release
12291   series, including a bugfix for a crash issue that had affected relays
12292   under memory pressure. It also adds a new directory authority, Bastet.
12294   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
12295   2018. If you need a release with long-term support, please stick with
12296   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
12298   o Directory authority changes:
12299     - Add "Bastet" as a ninth directory authority to the default list.
12300       Closes ticket 23910.
12301     - The directory authority "Longclaw" has changed its IP address.
12302       Closes ticket 23592.
12304   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
12305     - Fix a timing-based assertion failure that could occur when the
12306       circuit out-of-memory handler freed a connection's output buffer.
12307       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12309   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
12310     - Remove longclaw's IPv6 address, as it will soon change. Authority
12311       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12312       3/8 directory authorities with IPv6 addresses, but there are also
12313       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12315   o Minor features (geoip):
12316     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12317       Country database.
12319   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
12320     - When a directory authority rejects a descriptor or extrainfo with
12321       a given digest, mark that digest as undownloadable, so that we do
12322       not attempt to download it again over and over. We previously
12323       tried to avoid downloading such descriptors by other means, but we
12324       didn't notice if we accidentally downloaded one anyway. This
12325       behavior became problematic in 0.2.7.2-alpha, when authorities
12326       began pinning Ed25519 keys. Fixes bug 22349; bugfix
12327       on 0.2.1.19-alpha.
12329   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
12330     - Avoid a possible double close of a circuit by the intro point on
12331       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
12332       bugfix on 0.3.0.1-alpha.
12334   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
12335     - Clear the address when node_get_prim_orport() returns early.
12336       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12338   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
12339     - When running as a Windows service, set the ID of the main thread
12340       correctly. Failure to do so made us fail to send log messages to
12341       the controller in 0.2.1.16-rc, slowed down controller event
12342       delivery in 0.2.7.3-rc and later, and crash with an assertion
12343       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
12344       Patch and diagnosis from "Vort".
12347 Changes in version 0.3.1.8 - 2017-10-25
12348   Tor 0.3.1.8 is the second stable release in the 0.3.1 series.
12349   It includes several bugfixes, including a bugfix for a crash issue
12350   that had affected relays under memory pressure. It also adds
12351   a new directory authority, Bastet.
12353   o Directory authority changes:
12354     - Add "Bastet" as a ninth directory authority to the default list.
12355       Closes ticket 23910.
12356     - The directory authority "Longclaw" has changed its IP address.
12357       Closes ticket 23592.
12359   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
12360     - Fix a timing-based assertion failure that could occur when the
12361       circuit out-of-memory handler freed a connection's output buffer.
12362       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12364   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
12365     - Remove longclaw's IPv6 address, as it will soon change. Authority
12366       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12367       3/8 directory authorities with IPv6 addresses, but there are also
12368       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12370   o Minor features (geoip):
12371     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12372       Country database.
12374   o Minor bugfixes (compilation, backport from 0.3.2.2-alpha):
12375     - Fix a compilation warning when building with zstd support on
12376       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
12377       and fixed by Andreas Stieger.
12379   o Minor bugfixes (compression, backport from 0.3.2.2-alpha):
12380     - Handle a pathological case when decompressing Zstandard data when
12381       the output buffer size is zero. Fixes bug 23551; bugfix
12382       on 0.3.1.1-alpha.
12384   o Minor bugfixes (directory authority, backport from 0.3.2.1-alpha):
12385     - Remove the length limit on HTTP status lines that authorities can
12386       send in their replies. Fixes bug 23499; bugfix on 0.3.1.6-rc.
12388   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
12389     - Avoid a possible double close of a circuit by the intro point on
12390       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
12391       bugfix on 0.3.0.1-alpha.
12393   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
12394     - Clear the address when node_get_prim_orport() returns early.
12395       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12397   o Minor bugfixes (unit tests, backport from 0.3.2.2-alpha):
12398     - Fix additional channelpadding unit test failures by using mocked
12399       time instead of actual time for all tests. Fixes bug 23608; bugfix
12400       on 0.3.1.1-alpha.
12403 Changes in version 0.3.2.2-alpha - 2017-09-29
12404   Tor 0.3.2.2-alpha is the second release in the 0.3.2 series. This
12405   release fixes several minor bugs in the new scheduler and next-
12406   generation onion services; both features were newly added in the 0.3.2
12407   series. Other fixes in this alpha include several fixes for non-fatal
12408   tracebacks which would appear in logs.
12410   With the aim to stabilise the 0.3.2 series by 15 December 2017, this
12411   alpha does not contain any substantial new features. Minor features
12412   include better testing and logging.
12414   The following comprises the complete list of changes included
12415   in 0.3.2.2-alpha:
12417   o Major bugfixes (relay, crash, assertion failure):
12418     - Fix a timing-based assertion failure that could occur when the
12419       circuit out-of-memory handler freed a connection's output buffer.
12420       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12422   o Major bugfixes (scheduler):
12423     - If a channel is put into the scheduler's pending list, then it
12424       starts closing, and then if the scheduler runs before it finishes
12425       closing, the scheduler will get stuck trying to flush its cells
12426       while the lower layers refuse to cooperate. Fix that race
12427       condition by giving the scheduler an escape method. Fixes bug
12428       23676; bugfix on 0.3.2.1-alpha.
12430   o Minor features (build, compilation):
12431     - The "check-changes" feature is now part of the "make check" tests;
12432       we'll use it to try to prevent misformed changes files from
12433       accumulating. Closes ticket 23564.
12434     - Tor builds should now fail if there are any mismatches between the
12435       C type representing a configuration variable and the C type the
12436       data-driven parser uses to store a value there. Previously, we
12437       needed to check these by hand, which sometimes led to mistakes.
12438       Closes ticket 23643.
12440   o Minor features (directory authorities):
12441     - Remove longclaw's IPv6 address, as it will soon change. Authority
12442       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12443       3/8 directory authorities with IPv6 addresses, but there are also
12444       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12446   o Minor features (hidden service, circuit, logging):
12447     - Improve logging of many callsite in the circuit subsystem to print
12448       the circuit identifier(s).
12449     - Log when we cleanup an intro point from a service so we know when
12450       and for what reason it happened. Closes ticket 23604.
12452   o Minor features (logging):
12453     - Log more circuit information whenever we are about to try to
12454       package a relay cell on a circuit with a nonexistent n_chan.
12455       Attempt to diagnose ticket 8185.
12456     - Improve info-level log identification of particular circuits, to
12457       help with debugging. Closes ticket 23645.
12459   o Minor features (relay):
12460     - When choosing which circuits can be expired as unused, consider
12461       circuits from clients even if those clients used regular CREATE
12462       cells to make them; and do not consider circuits from relays even
12463       if they were made with CREATE_FAST. Part of ticket 22805.
12465   o Minor features (robustness):
12466     - Change several fatal assertions when flushing buffers into non-
12467       fatal assertions, to prevent any recurrence of 23690.
12469   o Minor features (spec conformance, bridge, diagnostic):
12470     - When handling the USERADDR command on an ExtOrPort, warn when the
12471       transports provides a USERADDR with no port. In a future version,
12472       USERADDR commands of this format may be rejected. Detects problems
12473       related to ticket 23080.
12475   o Minor features (testing):
12476     - Add a unit test to make sure that our own generated platform
12477       string will be accepted by directory authorities. Closes
12478       ticket 22109.
12480   o Minor bugfixes (bootstrapping):
12481     - When warning about state file clock skew, report the correct
12482       direction for the detected skew. Fixes bug 23606; bugfix
12483       on 0.2.8.1-alpha.
12484     - Avoid an assertion failure when logging a state file clock skew
12485       very early in bootstrapping. Fixes bug 23607; bugfix
12486       on 0.3.2.1-alpha.
12488   o Minor bugfixes (build, compilation):
12489     - Fix a compilation warning when building with zstd support on
12490       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
12491       and fixed by Andreas Stieger.
12492     - When searching for OpenSSL, don't accept any OpenSSL library that
12493       lacks TLSv1_1_method(): Tor doesn't build with those versions.
12494       Additionally, look in /usr/local/opt/openssl, if it's present.
12495       These changes together repair the default build on OSX systems
12496       with Homebrew installed. Fixes bug 23602; bugfix on 0.2.7.2-alpha.
12498   o Minor bugfixes (compression):
12499     - Handle a pathological case when decompressing Zstandard data when
12500       the output buffer size is zero. Fixes bug 23551; bugfix
12501       on 0.3.1.1-alpha.
12503   o Minor bugfixes (documentation):
12504     - Fix manpage to not refer to the obsolete (and misspelled)
12505       UseEntryGuardsAsDirectoryGuards parameter in the description of
12506       NumDirectoryGuards. Fixes bug 23611; bugfix on 0.2.4.8-alpha.
12508   o Minor bugfixes (hidden service v3):
12509     - Don't log an assertion failure when we can't find the right
12510       information to extend to an introduction point. In rare cases,
12511       this could happen, causing a warning, even though tor would
12512       recover gracefully. Fixes bug 23159; bugfix on 0.3.2.1-alpha.
12513     - Pad RENDEZVOUS cell up to the size of the legacy cell which is
12514       much bigger so the rendezvous point can't distinguish which hidden
12515       service protocol is being used. Fixes bug 23420; bugfix
12516       on 0.3.2.1-alpha.
12518   o Minor bugfixes (hidden service, relay):
12519     - Avoid a possible double close of a circuit by the intro point on
12520       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
12521       bugfix on 0.3.0.1-alpha.
12523   o Minor bugfixes (logging, relay shutdown, annoyance):
12524     - When a circuit is marked for close, do not attempt to package any
12525       cells for channels on that circuit. Previously, we would detect
12526       this condition lower in the call stack, when we noticed that the
12527       circuit had no attached channel, and log an annoying message.
12528       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
12530   o Minor bugfixes (scheduler):
12531     - When switching schedulers due to a consensus change, we didn't
12532       give the new scheduler a chance to react to the consensus. Fix
12533       that. Fixes bug 23537; bugfix on 0.3.2.1-alpha.
12534     - Make the KISTSchedRunInterval option a non negative value. With
12535       this, the way to disable KIST through the consensus is to set it
12536       to 0. Fixes bug 23539; bugfix on 0.3.2.1-alpha.
12537     - Only notice log the selected scheduler when we switch scheduler
12538       types. Fixes bug 23552; bugfix on 0.3.2.1-alpha.
12539     - Avoid a compilation warning on macOS in scheduler_ev_add() caused
12540       by a different tv_usec data type. Fixes bug 23575; bugfix
12541       on 0.3.2.1-alpha.
12542     - Make a hard exit if tor is unable to pick a scheduler which can
12543       happen if the user specifies a scheduler type that is not
12544       supported and not other types in Schedulers. Fixes bug 23581;
12545       bugfix on 0.3.2.1-alpha.
12546     - Properly initialize the scheduler last run time counter so it is
12547       not 0 at the first tick. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
12549   o Minor bugfixes (testing):
12550     - Capture and detect several "Result does not fit" warnings in unit
12551       tests on platforms with 32-bit time_t. Fixes bug 21800; bugfix
12552       on 0.2.9.3-alpha.
12553     - Fix additional channelpadding unit test failures by using mocked
12554       time instead of actual time for all tests. Fixes bug 23608; bugfix
12555       on 0.3.1.1-alpha.
12556     - The removal of some old scheduler options caused some tests to
12557       fail on BSD systems. Assume current behavior is correct and make
12558       the tests pass again. Fixes bug 23566; bugfix on 0.3.2.1-alpha.
12560   o Code simplification and refactoring:
12561     - Remove various ways of testing circuits and connections for
12562       "clientness"; instead, favor channel_is_client(). Part of
12563       ticket 22805.
12565   o Deprecated features:
12566     - The ReachableDirAddresses and ClientPreferIPv6DirPort options are
12567       now deprecated; they do not apply to relays, and they have had no
12568       effect on clients since 0.2.8.x. Closes ticket 19704.
12570   o Documentation:
12571     - HiddenServiceVersion man page entry wasn't mentioning the now
12572       supported version 3. Fixes ticket 23580; bugfix on 0.3.2.1-alpha.
12573     - Clarify that the Address option is entirely about setting an
12574       advertised IPv4 address. Closes ticket 18891.
12575     - Clarify the manpage's use of the term "address" to clarify what
12576       kind of address is intended. Closes ticket 21405.
12577     - Document that onion service subdomains are allowed, and ignored.
12578       Closes ticket 18736.
12581 Changes in version 0.3.2.1-alpha - 2017-09-18
12582   Tor 0.3.2.1-alpha is the first release in the 0.3.2.x series. It
12583   includes support for our next-generation ("v3") onion service
12584   protocol, and adds a new circuit scheduler for more responsive
12585   forwarding decisions from relays. There are also numerous other small
12586   features and bugfixes here.
12588   Below are the changes since Tor 0.3.1.7.
12590   o Major feature (scheduler, channel):
12591     - Tor now uses new schedulers to decide which circuits should
12592       deliver cells first, in order to improve congestion at relays. The
12593       first type is called "KIST" ("Kernel Informed Socket Transport"),
12594       and is only available on Linux-like systems: it uses feedback from
12595       the kernel to prevent the kernel's TCP buffers from growing too
12596       full. The second new scheduler type is called "KISTLite": it
12597       behaves the same as KIST, but runs on systems without kernel
12598       support for inspecting TCP implementation details. The old
12599       scheduler is still available, under the name "Vanilla". To change
12600       the default scheduler preference order, use the new "Schedulers"
12601       option. (The default preference order is "KIST,KISTLite,Vanilla".)
12603       Matt Traudt implemented KIST, based on research by Rob Jansen,
12604       John Geddes, Christ Wacek, Micah Sherr, and Paul Syverson. For
12605       more information, see the design paper at
12606       http://www.robgjansen.com/publications/kist-sec2014.pdf and the
12607       followup implementation paper at https://arxiv.org/abs/1709.01044.
12608       Closes ticket 12541.
12610   o Major features (next-generation onion services):
12611     - Tor now supports the next-generation onion services protocol for
12612       clients and services! As part of this release, the core of
12613       proposal 224 has been implemented and is available for
12614       experimentation and testing by our users. This newer version of
12615       onion services ("v3") features many improvements over the legacy
12616       system, including:
12618       a) Better crypto (replaced SHA1/DH/RSA1024
12619       with SHA3/ed25519/curve25519)
12621       b) Improved directory protocol, leaking much less information to
12622       directory servers.
12624       c) Improved directory protocol, with smaller surface for
12625       targeted attacks.
12627       d) Better onion address security against impersonation.
12629       e) More extensible introduction/rendezvous protocol.
12631       f) A cleaner and more modular codebase.
12633       You can identify a next-generation onion address by its length:
12634       they are 56 characters long, as in
12635       "4acth47i6kxnvkewtm6q7ib2s3ufpo5sqbsnzjpbi7utijcltosqemad.onion".
12637       In the future, we will release more options and features for v3
12638       onion services, but we first need a testing period, so that the
12639       current codebase matures and becomes more robust. Planned features
12640       include: offline keys, advanced client authorization, improved
12641       guard algorithms, and statistics. For full details, see
12642       proposal 224.
12644       Legacy ("v2") onion services will still work for the foreseeable
12645       future, and will remain the default until this new codebase gets
12646       tested and hardened. Service operators who want to experiment with
12647       the new system can use the 'HiddenServiceVersion 3' torrc
12648       directive along with the regular onion service configuration
12649       options. We will publish a blog post about this new feature
12650       soon! Enjoy!
12652   o Major bugfixes (usability, control port):
12653     - Report trusted clock skew indications as bootstrap errors, so
12654       controllers can more easily alert users when their clocks are
12655       wrong. Fixes bug 23506; bugfix on 0.1.2.6-alpha.
12657   o Minor features (bug detection):
12658     - Log a warning message with a stack trace for any attempt to call
12659       get_options() during option validation. This pattern has caused
12660       subtle bugs in the past. Closes ticket 22281.
12662   o Minor features (client):
12663     - You can now use Tor as a tunneled HTTP proxy: use the new
12664       HTTPTunnelPort option to open a port that accepts HTTP CONNECT
12665       requests. Closes ticket 22407.
12666     - Add an extra check to make sure that we always use the newer guard
12667       selection code for picking our guards. Closes ticket 22779.
12668     - When downloading (micro)descriptors, don't split the list into
12669       multiple requests unless we want at least 32 descriptors.
12670       Previously, we split at 4, not 32, which led to significant
12671       overhead in HTTP request size and degradation in compression
12672       performance. Closes ticket 23220.
12674   o Minor features (command line):
12675     - Add a new commandline option, --key-expiration, which prints when
12676       the current signing key is going to expire. Implements ticket
12677       17639; patch by Isis Lovecruft.
12679   o Minor features (control port):
12680     - If an application tries to use the control port as an HTTP proxy,
12681       respond with a meaningful "This is the Tor control port" message,
12682       and log the event. Closes ticket 1667. Patch from Ravi
12683       Chandra Padmala.
12684     - Provide better error message for GETINFO desc/(id|name) when not
12685       fetching router descriptors. Closes ticket 5847. Patch by
12686       Kevin Butler.
12687     - Add GETINFO "{desc,md}/download-enabled", to inform the controller
12688       whether Tor will try to download router descriptors and
12689       microdescriptors respectively. Closes ticket 22684.
12690     - Added new GETINFO targets "ip-to-country/{ipv4,ipv6}-available",
12691       so controllers can tell whether the geoip databases are loaded.
12692       Closes ticket 23237.
12693     - Adds a timestamp field to the CIRC_BW and STREAM_BW bandwidth
12694       events. Closes ticket 19254. Patch by "DonnchaC".
12696   o Minor features (development support):
12697     - Developers can now generate a call-graph for Tor using the
12698       "calltool" python program, which post-processes object dumps. It
12699       should work okay on many Linux and OSX platforms, and might work
12700       elsewhere too. To run it, install calltool from
12701       https://gitweb.torproject.org/user/nickm/calltool.git and run
12702       "make callgraph". Closes ticket 19307.
12704   o Minor features (ed25519):
12705     - Add validation function to checks for torsion components in
12706       ed25519 public keys, used by prop224 client-side code. Closes
12707       ticket 22006. Math help by Ian Goldberg.
12709   o Minor features (exit relay, DNS):
12710     - Improve the clarity and safety of the log message from evdns when
12711       receiving an apparently spoofed DNS reply. Closes ticket 3056.
12713   o Minor features (integration, hardening):
12714     - Add a new NoExec option to prevent Tor from running other
12715       programs. When this option is set to 1, Tor will never try to run
12716       another program, regardless of the settings of
12717       PortForwardingHelper, ClientTransportPlugin, or
12718       ServerTransportPlugin. Once NoExec is set, it cannot be disabled
12719       without restarting Tor. Closes ticket 22976.
12721   o Minor features (logging):
12722     - Improve the warning message for specifying a relay by nickname.
12723       The previous message implied that nickname registration was still
12724       part of the Tor network design, which it isn't. Closes
12725       ticket 20488.
12726     - If the sandbox filter fails to load, suggest to the user that
12727       their kernel might not support seccomp2. Closes ticket 23090.
12729   o Minor features (portability):
12730     - Check at configure time whether uint8_t is the same type as
12731       unsigned char. Lots of existing code already makes this
12732       assumption, and there could be strict aliasing issues if the
12733       assumption is violated. Closes ticket 22410.
12735   o Minor features (relay, configuration):
12736     - Reject attempts to use relative file paths when RunAsDaemon is
12737       set. Previously, Tor would accept these, but the directory-
12738       changing step of RunAsDaemon would give strange and/or confusing
12739       results. Closes ticket 22731.
12741   o Minor features (startup, safety):
12742     - When configured to write a PID file, Tor now exits if it is unable
12743       to do so. Previously, it would warn and continue. Closes
12744       ticket 20119.
12746   o Minor features (static analysis):
12747     - The BUG() macro has been changed slightly so that Coverity no
12748       longer complains about dead code if the bug is impossible. Closes
12749       ticket 23054.
12751   o Minor features (testing):
12752     - The default chutney network tests now include tests for the v3
12753       hidden service design. Make sure you have the latest version of
12754       chutney if you want to run these. Closes ticket 22437.
12755     - Add a unit test to verify that we can parse a hardcoded v2 hidden
12756       service descriptor. Closes ticket 15554.
12758   o Minor bugfixes (certificate handling):
12759     - Fix a time handling bug in Tor certificates set to expire after
12760       the year 2106. Fixes bug 23055; bugfix on 0.3.0.1-alpha. Found by
12761       Coverity as CID 1415728.
12763   o Minor bugfixes (client, usability):
12764     - Refrain from needlessly rejecting SOCKS5-with-hostnames and
12765       SOCKS4a requests that contain IP address strings, even when
12766       SafeSocks in enabled, as this prevents user from connecting to
12767       known IP addresses without relying on DNS for resolving. SafeSocks
12768       still rejects SOCKS connections that connect to IP addresses when
12769       those addresses are _not_ encoded as hostnames. Fixes bug 22461;
12770       bugfix on Tor 0.2.6.2-alpha.
12772   o Minor bugfixes (code correctness):
12773     - Call htons() in extend_cell_format() for encoding a 16-bit value.
12774       Previously we used ntohs(), which happens to behave the same on
12775       all the platforms we support, but which isn't really correct.
12776       Fixes bug 23106; bugfix on 0.2.4.8-alpha.
12777     - For defense-in-depth, make the controller's write_escaped_data()
12778       function robust to extremely long inputs. Fixes bug 19281; bugfix
12779       on 0.1.1.1-alpha. Reported by Guido Vranken.
12781   o Minor bugfixes (compilation):
12782     - Fix unused-variable warnings in donna's Curve25519 SSE2 code.
12783       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
12785   o Minor bugfixes (consensus expiry):
12786     - Check for adequate directory information correctly. Previously, Tor
12787       would reconsider whether it had sufficient directory information
12788       every 2 minutes. Fixes bug 23091; bugfix on 0.2.0.19-alpha.
12790   o Minor bugfixes (directory protocol):
12791     - Directory servers now include a "Date:" http header for response
12792       codes other than 200. Clients starting with a skewed clock and a
12793       recent consensus were getting "304 Not modified" responses from
12794       directory authorities, so without the Date header, the client
12795       would never hear about a wrong clock. Fixes bug 23499; bugfix
12796       on 0.0.8rc1.
12797     - Make clients wait for 6 seconds before trying to download a
12798       consensus from an authority. Fixes bug 17750; bugfix
12799       on 0.2.8.1-alpha.
12801   o Minor bugfixes (DoS-resistance):
12802     - If future code asks if there are any running bridges, without
12803       checking if bridges are enabled, log a BUG warning rather than
12804       crashing. Fixes bug 23524; bugfix on 0.3.0.1-alpha.
12806   o Minor bugfixes (format strictness):
12807     - Restrict several data formats to decimal. Previously, the
12808       BuildTimeHistogram entries in the state file, the "bw=" entries in
12809       the bandwidth authority file, and the process IDs passed to the
12810       __OwningControllerProcess option could all be specified in hex or
12811       octal as well as in decimal. This was not an intentional feature.
12812       Fixes bug 22802; bugfixes on 0.2.2.1-alpha, 0.2.2.2-alpha,
12813       and 0.2.2.28-beta.
12815   o Minor bugfixes (heartbeat):
12816     - If we fail to write a heartbeat message, schedule a retry for the
12817       minimum heartbeat interval number of seconds in the future. Fixes
12818       bug 19476; bugfix on 0.2.3.1-alpha.
12820   o Minor bugfixes (linux seccomp2 sandbox, logging):
12821     - Fix some messages on unexpected errors from the seccomp2 library.
12822       Fixes bug 22750; bugfix on 0.2.5.1-alpha. Patch from "cypherpunks".
12824   o Minor bugfixes (logging):
12825     - Remove duplicate log messages regarding opening non-local
12826       SocksPorts upon parsing config and opening listeners at startup.
12827       Fixes bug 4019; bugfix on 0.2.3.3-alpha.
12828     - Use a more comprehensible log message when telling the user
12829       they've excluded every running exit node. Fixes bug 7890; bugfix
12830       on 0.2.2.25-alpha.
12831     - When logging the number of descriptors we intend to download per
12832       directory request, do not log a number higher than then the number
12833       of descriptors we're fetching in total. Fixes bug 19648; bugfix
12834       on 0.1.1.8-alpha.
12835     - When warning about a directory owned by the wrong user, log the
12836       actual name of the user owning the directory. Previously, we'd log
12837       the name of the process owner twice. Fixes bug 23487; bugfix
12838       on 0.2.9.1-alpha.
12839     - The tor specification says hop counts are 1-based, so fix two log
12840       messages that mistakenly logged 0-based hop counts. Fixes bug
12841       18982; bugfix on 0.2.6.2-alpha and 0.2.4.5-alpha. Patch by teor.
12842       Credit to Xiaofan Li for reporting this issue.
12844   o Minor bugfixes (portability):
12845     - Stop using the PATH_MAX variable, which is not defined on GNU
12846       Hurd. Fixes bug 23098; bugfix on 0.3.1.1-alpha.
12848   o Minor bugfixes (relay):
12849     - When uploading our descriptor for the first time after startup,
12850       report the reason for uploading as "Tor just started" rather than
12851       leaving it blank. Fixes bug 22885; bugfix on 0.2.3.4-alpha.
12852     - Avoid unnecessary calls to directory_fetches_from_authorities() on
12853       relays, to prevent spurious address resolutions and descriptor
12854       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
12855       bugfix on in 0.2.8.1-alpha.
12857   o Minor bugfixes (tests):
12858     - Fix a broken unit test for the OutboundAddress option: the parsing
12859       function was never returning an error on failure. Fixes bug 23366;
12860       bugfix on 0.3.0.3-alpha.
12861     - Fix a signed-integer overflow in the unit tests for
12862       dir/download_status_random_backoff, which was untriggered until we
12863       fixed bug 17750. Fixes bug 22924; bugfix on 0.2.9.1-alpha.
12865   o Minor bugfixes (usability, control port):
12866     - Stop making an unnecessary routerlist check in NETINFO clock skew
12867       detection; this was preventing clients from reporting NETINFO clock
12868       skew to controllers. Fixes bug 23532; bugfix on 0.2.4.4-alpha.
12870   o Code simplification and refactoring:
12871     - Extract the code for handling newly-open channels into a separate
12872       function from the general code to handle channel state
12873       transitions. This change simplifies our callgraph, reducing the
12874       size of the largest strongly connected component by roughly a
12875       factor of two. Closes ticket 22608.
12876     - Remove dead code for largely unused statistics on the number of
12877       times we've attempted various public key operations. Fixes bug
12878       19871; bugfix on 0.1.2.4-alpha. Fix by Isis Lovecruft.
12879     - Remove several now-obsolete functions for asking about old
12880       variants directory authority status. Closes ticket 22311; patch
12881       from "huyvq".
12882     - Remove some of the code that once supported "Named" and "Unnamed"
12883       routers. Authorities no longer vote for these flags. Closes
12884       ticket 22215.
12885     - Rename the obsolete malleable hybrid_encrypt functions used in TAP
12886       and old hidden services, to indicate that they aren't suitable for
12887       new protocols or formats. Closes ticket 23026.
12888     - Replace our STRUCT_OFFSET() macro with offsetof(). Closes ticket
12889       22521. Patch from Neel Chauhan.
12890     - Split the enormous circuit_send_next_onion_skin() function into
12891       multiple subfunctions. Closes ticket 22804.
12892     - Split the portions of the buffer.c module that handle particular
12893       protocols into separate modules. Part of ticket 23149.
12894     - Use our test macros more consistently, to produce more useful
12895       error messages when our unit tests fail. Add coccinelle patches to
12896       allow us to re-check for test macro uses. Closes ticket 22497.
12898   o Deprecated features:
12899     - Deprecate HTTPProxy/HTTPProxyAuthenticator config options. They
12900       only applies to direct unencrypted HTTP connections to your
12901       directory server, which your Tor probably isn't using. Closes
12902       ticket 20575.
12904   o Documentation:
12905     - Clarify in the manual that "Sandbox 1" is only supported on Linux
12906       kernels. Closes ticket 22677.
12907     - Document all values of PublishServerDescriptor in the manpage.
12908       Closes ticket 15645.
12909     - Improve the documentation for the directory port part of the
12910       DirAuthority line. Closes ticket 20152.
12911     - Restore documentation for the authorities' "approved-routers"
12912       file. Closes ticket 21148.
12914   o Removed features:
12915     - The AllowDotExit option has been removed as unsafe. It has been
12916       deprecated since 0.2.9.2-alpha. Closes ticket 23426.
12917     - The ClientDNSRejectInternalAddresses flag can no longer be set on
12918       non-testing networks. It has been deprecated since 0.2.9.2-alpha.
12919       Closes ticket 21031.
12920     - The controller API no longer includes an AUTHDIR_NEWDESCS event:
12921       nobody was using it any longer. Closes ticket 22377.
12924 Changes in version 0.2.8.15 - 2017-09-18
12925   Tor 0.2.8.15 backports a collection of bugfixes from later
12926   Tor series.
12928   Most significantly, it includes a fix for TROVE-2017-008, a
12929   security bug that affects hidden services running with the
12930   SafeLogging option disabled. For more information, see
12931   https://trac.torproject.org/projects/tor/ticket/23490
12933   Note that Tor 0.2.8.x will no longer be supported after 1 Jan
12934   2018.  We suggest that you upgrade to the latest stable release if
12935   possible.  If you can't, we recommend that you upgrade at least to
12936   0.2.9, which will be supported until 2020.
12938   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
12939     - Avoid an assertion failure bug affecting our implementation of
12940       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
12941       handling of "0xx" differs from what we had expected. Fixes bug
12942       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
12944   o Minor features:
12945     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
12946       Country database.
12948   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
12949     - Backport a fix for an "unused variable" warning that appeared
12950       in some versions of mingw. Fixes bug 22838; bugfix on
12951       0.2.8.1-alpha.
12953   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
12954     - Fix a memset() off the end of an array when packing cells. This
12955       bug should be harmless in practice, since the corrupted bytes are
12956       still in the same structure, and are always padding bytes,
12957       ignored, or immediately overwritten, depending on compiler
12958       behavior. Nevertheless, because the memset()'s purpose is to make
12959       sure that any other cell-handling bugs can't expose bytes to the
12960       network, we need to fix it. Fixes bug 22737; bugfix on
12961       0.2.4.11-alpha. Fixes CID 1401591.
12963   o Build features (backport from 0.3.1.5-alpha):
12964     - Tor's repository now includes a Travis Continuous Integration (CI)
12965       configuration file (.travis.yml). This is meant to help new
12966       developers and contributors who fork Tor to a Github repository be
12967       better able to test their changes, and understand what we expect
12968       to pass. To use this new build feature, you must fork Tor to your
12969       Github account, then go into the "Integrations" menu in the
12970       repository settings for your fork and enable Travis, then push
12971       your changes. Closes ticket 22636.
12974 Changes in version 0.2.9.12 - 2017-09-18
12975   Tor 0.2.9.12 backports a collection of bugfixes from later
12976   Tor series.
12978   Most significantly, it includes a fix for TROVE-2017-008, a
12979   security bug that affects hidden services running with the
12980   SafeLogging option disabled. For more information, see
12981   https://trac.torproject.org/projects/tor/ticket/23490
12983   o Major features (security, backport from 0.3.0.2-alpha):
12984     - Change the algorithm used to decide DNS TTLs on client and server
12985       side, to better resist DNS-based correlation attacks like the
12986       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
12987       Feamster. Now relays only return one of two possible DNS TTL
12988       values, and clients are willing to believe DNS TTL values up to 3
12989       hours long. Closes ticket 19769.
12991   o Major bugfixes (crash, directory connections, backport from 0.3.0.5-rc):
12992     - Fix a rare crash when sending a begin cell on a circuit whose
12993       linked directory connection had already been closed. Fixes bug
12994       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
12996   o Major bugfixes (DNS, backport from 0.3.0.2-alpha):
12997     - Fix a bug that prevented exit nodes from caching DNS records for
12998       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
13000   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
13001     - Fix a typo that had prevented TPROXY-based transparent proxying
13002       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
13003       Patch from "d4fq0fQAgoJ".
13005   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
13006     - Avoid an assertion failure bug affecting our implementation of
13007       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13008       handling of "0xx" differs from what we had expected. Fixes bug
13009       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13011   o Minor features (code style, backport from 0.3.1.3-alpha):
13012     - Add "Falls through" comments to our codebase, in order to silence
13013       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
13014       Stieger. Closes ticket 22446.
13016   o Minor features (geoip):
13017     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
13018       Country database.
13020   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.1-alpha):
13021     - Roll over monthly accounting at the configured hour and minute,
13022       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
13023       Found by Andrey Karpov with PVS-Studio.
13025   o Minor bugfixes (compilation, backport from 0.3.1.5-alpha):
13026     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
13027       bugfix on 0.2.8.1-alpha.
13028     - Fix warnings when building with libscrypt and openssl scrypt support
13029       on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
13030     - When building with certain versions the mingw C header files, avoid
13031       float-conversion warnings when calling the C functions isfinite(),
13032       isnan(), and signbit(). Fixes bug 22801; bugfix on 0.2.8.1-alpha.
13034   o Minor bugfixes (compilation, backport from 0.3.1.7):
13035     - Avoid compiler warnings in the unit tests for running tor_sscanf()
13036       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
13038   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
13039     - Backport a fix for an "unused variable" warning that appeared
13040       in some versions of mingw. Fixes bug 22838; bugfix on
13041       0.2.8.1-alpha.
13043   o Minor bugfixes (controller, backport from 0.3.1.7):
13044     - Do not crash when receiving a HSPOST command with an empty body.
13045       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
13046     - Do not crash when receiving a POSTDESCRIPTOR command with an
13047       empty body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
13049   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
13050     - Avoid Coverity build warnings related to our BUG() macro. By
13051       default, Coverity treats BUG() as the Linux kernel does: an
13052       instant abort(). We need to override that so our BUG() macro
13053       doesn't prevent Coverity from analyzing functions that use it.
13054       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
13056   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
13057     - Fix a memset() off the end of an array when packing cells. This
13058       bug should be harmless in practice, since the corrupted bytes are
13059       still in the same structure, and are always padding bytes,
13060       ignored, or immediately overwritten, depending on compiler
13061       behavior. Nevertheless, because the memset()'s purpose is to make
13062       sure that any other cell-handling bugs can't expose bytes to the
13063       network, we need to fix it. Fixes bug 22737; bugfix on
13064       0.2.4.11-alpha. Fixes CID 1401591.
13066   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
13067     - When setting the maximum number of connections allowed by the OS,
13068       always allow some extra file descriptors for other files. Fixes
13069       bug 22797; bugfix on 0.2.0.10-alpha.
13071   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
13072     - Avoid a sandbox failure when trying to re-bind to a socket and
13073       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
13075   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
13076     - Permit the fchmod system call, to avoid crashing on startup when
13077       starting with the seccomp2 sandbox and an unexpected set of
13078       permissions on the data directory or its contents. Fixes bug
13079       22516; bugfix on 0.2.5.4-alpha.
13081   o Minor bugfixes (relay, backport from 0.3.0.5-rc):
13082     - Avoid a double-marked-circuit warning that could happen when we
13083       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
13084       on 0.1.0.1-rc.
13086   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
13087     - Reject version numbers with non-numeric prefixes (such as +, -, or
13088       whitespace). Disallowing whitespace prevents differential version
13089       parsing between POSIX-based and Windows platforms. Fixes bug 21507
13090       and part of 21508; bugfix on 0.0.8pre1.
13092   o Build features (backport from 0.3.1.5-alpha):
13093     - Tor's repository now includes a Travis Continuous Integration (CI)
13094       configuration file (.travis.yml). This is meant to help new
13095       developers and contributors who fork Tor to a Github repository be
13096       better able to test their changes, and understand what we expect
13097       to pass. To use this new build feature, you must fork Tor to your
13098       Github account, then go into the "Integrations" menu in the
13099       repository settings for your fork and enable Travis, then push
13100       your changes. Closes ticket 22636.
13103 Changes in version 0.3.0.11 - 2017-09-18
13104   Tor 0.3.0.11 backports a collection of bugfixes from Tor the 0.3.1
13105   series.
13107   Most significantly, it includes a fix for TROVE-2017-008, a
13108   security bug that affects hidden services running with the
13109   SafeLogging option disabled. For more information, see
13110   https://trac.torproject.org/projects/tor/ticket/23490
13112   o Minor features (code style, backport from 0.3.1.7):
13113     - Add "Falls through" comments to our codebase, in order to silence
13114       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
13115       Stieger. Closes ticket 22446.
13117   o Minor features:
13118     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
13119       Country database.
13121   o Minor bugfixes (compilation, backport from 0.3.1.7):
13122     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
13123       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
13125   o Minor bugfixes (controller, backport from 0.3.1.7):
13126     - Do not crash when receiving a HSPOST command with an empty body.
13127       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
13128     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
13129       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
13131   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
13132     - When setting the maximum number of connections allowed by the OS,
13133       always allow some extra file descriptors for other files. Fixes
13134       bug 22797; bugfix on 0.2.0.10-alpha.
13136   o Minor bugfixes (logging, relay, backport from 0.3.1.6-rc):
13137     - Remove a forgotten debugging message when an introduction point
13138       successfully establishes a hidden service prop224 circuit with
13139       a client.
13140     - Change three other log_warn() for an introduction point to
13141       protocol warnings, because they can be failure from the network
13142       and are not relevant to the operator. Fixes bug 23078; bugfix on
13143       0.3.0.1-alpha and 0.3.0.2-alpha.
13146 Changes in version 0.3.1.7 - 2017-09-18
13147   Tor 0.3.1.7 is the first stable release in the 0.3.1 series.
13149   With the 0.3.1 series, Tor now serves and downloads directory
13150   information in more compact formats, to save on bandwidth overhead. It
13151   also contains a new padding system to resist netflow-based traffic
13152   analysis, and experimental support for building parts of Tor in Rust
13153   (though no parts of Tor are in Rust yet). There are also numerous
13154   small features, bugfixes on earlier release series, and groundwork for
13155   the hidden services revamp of 0.3.2.
13157   This release also includes a fix for TROVE-2017-008, a security bug
13158   that affects hidden services running with the SafeLogging option
13159   disabled. For more information, see
13160   https://trac.torproject.org/projects/tor/ticket/23490
13162   Per our stable release policy, we plan to support each stable release
13163   series for at least the next nine months, or for three months after
13164   the first stable release of the next series: whichever is longer. If
13165   you need a release with long-term support, we recommend that you stay
13166   with the 0.2.9 series.
13168   Below is a list of the changes since 0.3.1.6-rc. For a list of all
13169   changes since 0.3.0, see the ReleaseNotes file.
13171   o Major bugfixes (security, hidden services, loggging):
13172     - Fix a bug where we could log uninitialized stack when a certain
13173       hidden service error occurred while SafeLogging was disabled.
13174       Fixes bug #23490; bugfix on 0.2.7.2-alpha. This is also tracked as
13175       TROVE-2017-008 and CVE-2017-0380.
13177   o Minor features (defensive programming):
13178     - Create a pair of consensus parameters, nf_pad_tor2web and
13179       nf_pad_single_onion, to disable netflow padding in the consensus
13180       for non-anonymous connections in case the overhead is high. Closes
13181       ticket 17857.
13183   o Minor features (diagnostic):
13184     - Add a stack trace to the bug warnings that can be logged when
13185       trying to send an outgoing relay cell with n_chan == 0. Diagnostic
13186       attempt for bug 23105.
13188   o Minor features (geoip):
13189     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
13190       Country database.
13192   o Minor bugfixes (compilation):
13193     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
13194       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
13196   o Minor bugfixes (controller):
13197     - Do not crash when receiving a HSPOST command with an empty body.
13198       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
13199     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
13200       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
13202   o Minor bugfixes (relay):
13203     - Inform the geoip and rephist modules about all requests, even on
13204       relays that are only fetching microdescriptors. Fixes a bug
13205       related to 21585; bugfix on 0.3.0.1-alpha.
13207   o Minor bugfixes (unit tests):
13208     - Fix a channelpadding unit test failure on slow systems by using
13209       mocked time instead of actual time. Fixes bug 23077; bugfix
13210       on 0.3.1.1-alpha.
13213 Changes in version 0.3.1.6-rc - 2017-09-05
13214   Tor 0.3.1.6-rc fixes a few small bugs and annoyances in the 0.3.1
13215   release series, including a bug that produced weird behavior on
13216   Windows directory caches.
13218   This is the first release candidate in the Tor 0.3.1 series. If we
13219   find no new bugs or regressions here, the first stable 0.3.1 release
13220   will be nearly identical to it.
13222   o Major bugfixes (windows, directory cache):
13223     - On Windows, do not try to delete cached consensus documents and
13224       diffs before they are unmapped from memory--Windows won't allow
13225       that. Instead, allow the consensus cache directory to grow larger,
13226       to hold files that might need to stay around longer. Fixes bug
13227       22752; bugfix on 0.3.1.1-alpha.
13229   o Minor features (directory authority):
13230     - Improve the message that authorities report to relays that present
13231       RSA/Ed25519 keypairs that conflict with previously pinned keys.
13232       Closes ticket 22348.
13234   o Minor features (geoip):
13235     - Update geoip and geoip6 to the August 3 2017 Maxmind GeoLite2
13236       Country database.
13238   o Minor features (testing):
13239     - Add more tests for compression backend initialization. Closes
13240       ticket 22286.
13242   o Minor bugfixes (directory cache):
13243     - Fix a memory leak when recovering space in the consensus cache.
13244       Fixes bug 23139; bugfix on 0.3.1.1-alpha.
13246   o Minor bugfixes (hidden service):
13247     - Increase the number of circuits that a service is allowed to
13248       open over a specific period of time. The value was lower than it
13249       should be (8 vs 12) in the normal case of 3 introduction points.
13250       Fixes bug 22159; bugfix on 0.3.0.5-rc.
13251     - Fix a BUG warning during HSv3 descriptor decoding that could be
13252       cause by a specially crafted descriptor. Fixes bug 23233; bugfix
13253       on 0.3.0.1-alpha. Bug found by "haxxpop".
13254     - Rate-limit the log messages if we exceed the maximum number of
13255       allowed intro circuits. Fixes bug 22159; bugfix on 0.3.1.1-alpha.
13257   o Minor bugfixes (logging, relay):
13258     - Remove a forgotten debugging message when an introduction point
13259       successfully establishes a hidden service prop224 circuit with
13260       a client.
13261     - Change three other log_warn() for an introduction point to
13262       protocol warnings, because they can be failure from the network
13263       and are not relevant to the operator. Fixes bug 23078; bugfix on
13264       0.3.0.1-alpha and 0.3.0.2-alpha.
13266   o Minor bugfixes (relay):
13267     - When a relay is not running as a directory cache, it will no
13268       longer generate compressed consensuses and consensus diff
13269       information. Previously, this was a waste of disk and CPU. Fixes
13270       bug 23275; bugfix on 0.3.1.1-alpha.
13272   o Minor bugfixes (robustness, error handling):
13273     - Improve our handling of the cases where OpenSSL encounters a
13274       memory error while encoding keys and certificates. We haven't
13275       observed these errors in the wild, but if they do happen, we now
13276       detect and respond better. Fixes bug 19418; bugfix on all versions
13277       of Tor. Reported by Guido Vranken.
13279   o Minor bugfixes (stability):
13280     - Avoid crashing on a double-free when unable to load or process an
13281       included file. Fixes bug 23155; bugfix on 0.3.1.1-alpha. Found
13282       with the clang static analyzer.
13284   o Minor bugfixes (testing):
13285     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
13286       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
13287     - Port the hs_ntor handshake test to work correctly with recent
13288       versions of the pysha3 module. Fixes bug 23071; bugfix
13289       on 0.3.1.1-alpha.
13291   o Minor bugfixes (Windows service):
13292     - When running as a Windows service, set the ID of the main thread
13293       correctly. Failure to do so made us fail to send log messages to
13294       the controller in 0.2.1.16-rc, slowed down controller event
13295       delivery in 0.2.7.3-rc and later, and crash with an assertion
13296       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
13297       Patch and diagnosis from "Vort".
13300 Changes in version 0.3.0.10 - 2017-08-02
13301    Tor 0.3.0.10 backports a collection of small-to-medium bugfixes
13302    from the current Tor alpha series. OpenBSD users and TPROXY users
13303    should upgrade; others are probably okay sticking with 0.3.0.9.
13305   o Major features (build system, continuous integration, backport from 0.3.1.5-alpha):
13306     - Tor's repository now includes a Travis Continuous Integration (CI)
13307       configuration file (.travis.yml). This is meant to help new
13308       developers and contributors who fork Tor to a Github repository be
13309       better able to test their changes, and understand what we expect
13310       to pass. To use this new build feature, you must fork Tor to your
13311       Github account, then go into the "Integrations" menu in the
13312       repository settings for your fork and enable Travis, then push
13313       your changes. Closes ticket 22636.
13315   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
13316     - Fix a typo that had prevented TPROXY-based transparent proxying
13317       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
13318       Patch from "d4fq0fQAgoJ".
13320   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
13321     - Avoid an assertion failure bug affecting our implementation of
13322       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13323       handling of "0xbar" differs from what we had expected. Fixes bug
13324       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13326   o Minor features (backport from 0.3.1.5-alpha):
13327     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
13328       Country database.
13330   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.2-alpha):
13331     - Roll over monthly accounting at the configured hour and minute,
13332       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
13333       Found by Andrey Karpov with PVS-Studio.
13335   o Minor bugfixes (compilation warnings, backport from 0.3.1.5-alpha):
13336     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
13337       bugfix on 0.2.8.1-alpha.
13338     - Fix warnings when building with libscrypt and openssl scrypt
13339       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
13340     - When building with certain versions of the mingw C header files,
13341       avoid float-conversion warnings when calling the C functions
13342       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
13343       on 0.2.8.1-alpha.
13345   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
13346     - Backport a fix for an "unused variable" warning that appeared
13347       in some versions of mingw. Fixes bug 22838; bugfix on
13348       0.2.8.1-alpha.
13350   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
13351     - Avoid Coverity build warnings related to our BUG() macro. By
13352       default, Coverity treats BUG() as the Linux kernel does: an
13353       instant abort(). We need to override that so our BUG() macro
13354       doesn't prevent Coverity from analyzing functions that use it.
13355       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
13357   o Minor bugfixes (directory authority, backport from 0.3.1.1-alpha):
13358     - When rejecting a router descriptor for running an obsolete version
13359       of Tor without ntor support, warn about the obsolete tor version,
13360       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
13362   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
13363     - Avoid a sandbox failure when trying to re-bind to a socket and
13364       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
13366   o Minor bugfixes (unit tests, backport from 0.3.1.5-alpha)
13367     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
13368       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
13371 Changes in version 0.3.1.5-alpha - 2017-08-01
13372   Tor 0.3.1.5-alpha improves the performance of consensus diff
13373   calculation, fixes a crash bug on older versions of OpenBSD, and fixes
13374   several other bugs. If no serious bugs are found in this version, the
13375   next version will be a release candidate.
13377   This release also marks the end of support for the Tor 0.2.4.x,
13378   0.2.6.x, and 0.2.7.x release series. Those releases will receive no
13379   further bug or security fixes. Anyone still running or distributing
13380   one of those versions should upgrade.
13382   o Major features (build system, continuous integration):
13383     - Tor's repository now includes a Travis Continuous Integration (CI)
13384       configuration file (.travis.yml). This is meant to help new
13385       developers and contributors who fork Tor to a Github repository be
13386       better able to test their changes, and understand what we expect
13387       to pass. To use this new build feature, you must fork Tor to your
13388       Github account, then go into the "Integrations" menu in the
13389       repository settings for your fork and enable Travis, then push
13390       your changes. Closes ticket 22636.
13392   o Major bugfixes (openbsd, denial-of-service):
13393     - Avoid an assertion failure bug affecting our implementation of
13394       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13395       handling of "0xbar" differs from what we had expected. Fixes bug
13396       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13398   o Major bugfixes (relay, performance):
13399     - Perform circuit handshake operations at a higher priority than we
13400       use for consensus diff creation and compression. This should
13401       prevent circuits from starving when a relay or bridge receives a
13402       new consensus, especially on lower-powered machines. Fixes bug
13403       22883; bugfix on 0.3.1.1-alpha.
13405   o Minor features (bridge authority):
13406     - Add "fingerprint" lines to the networkstatus-bridges file produced
13407       by bridge authorities. Closes ticket 22207.
13409   o Minor features (directory cache, consensus diff):
13410     - Add a new MaxConsensusAgeForDiffs option to allow directory cache
13411       operators with low-resource environments to adjust the number of
13412       consensuses they'll store and generate diffs from. Most cache
13413       operators should leave it unchanged. Helps to work around
13414       bug 22883.
13416   o Minor features (geoip):
13417     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
13418       Country database.
13420   o Minor features (relay, performance):
13421     - Always start relays with at least two worker threads, to prevent
13422       priority inversion on slow tasks. Part of the fix for bug 22883.
13423     - Allow background work to be queued with different priorities, so
13424       that a big pile of slow low-priority jobs will not starve out
13425       higher priority jobs. This lays the groundwork for a fix for
13426       bug 22883.
13428   o Minor bugfixes (build system, rust):
13429     - Fix a problem where Rust toolchains were not being found when
13430       building without --enable-cargo-online-mode, due to setting the
13431       $HOME environment variable instead of $CARGO_HOME. Fixes bug
13432       22830; bugfix on 0.3.1.1-alpha. Fix by Chelsea Komlo.
13434   o Minor bugfixes (compatibility, zstd):
13435     - Write zstd epilogues correctly when the epilogue requires
13436       reallocation of the output buffer, even with zstd 1.3.0.
13437       (Previously, we worked on 1.2.0 and failed with 1.3.0). Fixes bug
13438       22927; bugfix on 0.3.1.1-alpha.
13440   o Minor bugfixes (compilation warnings):
13441     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug
13442       22915; bugfix on 0.2.8.1-alpha.
13443     - Fix warnings when building with libscrypt and openssl scrypt
13444       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
13445     - Compile correctly when both openssl 1.1.0 and libscrypt are
13446       detected. Previously this would cause an error. Fixes bug 22892;
13447       bugfix on 0.3.1.1-alpha.
13448     - When building with certain versions of the mingw C header files,
13449       avoid float-conversion warnings when calling the C functions
13450       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
13451       on 0.2.8.1-alpha.
13453   o Minor bugfixes (coverity build support):
13454     - Avoid Coverity build warnings related to our BUG() macro. By
13455       default, Coverity treats BUG() as the Linux kernel does: an
13456       instant abort(). We need to override that so our BUG() macro
13457       doesn't prevent Coverity from analyzing functions that use it.
13458       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
13460   o Minor bugfixes (directory authority):
13461     - When a directory authority rejects a descriptor or extrainfo with
13462       a given digest, mark that digest as undownloadable, so that we do
13463       not attempt to download it again over and over. We previously
13464       tried to avoid downloading such descriptors by other means, but we
13465       didn't notice if we accidentally downloaded one anyway. This
13466       behavior became problematic in 0.2.7.2-alpha, when authorities
13467       began pinning Ed25519 keys. Fixes bug 22349; bugfix
13468       on 0.2.1.19-alpha.
13470   o Minor bugfixes (error reporting, windows):
13471     - When formatting Windows error messages, use the English format to
13472       avoid codepage issues. Fixes bug 22520; bugfix on 0.1.2.8-alpha.
13473       Patch from "Vort".
13475   o Minor bugfixes (file limits, osx):
13476     - When setting the maximum number of connections allowed by the OS,
13477       always allow some extra file descriptors for other files. Fixes
13478       bug 22797; bugfix on 0.2.0.10-alpha.
13480   o Minor bugfixes (linux seccomp2 sandbox):
13481     - Avoid a sandbox failure when trying to re-bind to a socket and
13482       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
13484   o Minor bugfixes (memory leaks):
13485     - Fix a small memory leak when validating a configuration that uses
13486       two or more AF_UNIX sockets for the same port type. Fixes bug
13487       23053; bugfix on 0.2.6.3-alpha. This is CID 1415725.
13489   o Minor bugfixes (unit tests):
13490     - test_consdiff_base64cmp would fail on OS X because while OS X
13491       follows the standard of (less than zero/zero/greater than zero),
13492       it doesn't follow the convention of (-1/0/+1). Make the test
13493       comply with the standard. Fixes bug 22870; bugfix on 0.3.1.1-alpha.
13494     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
13495       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
13498 Changes in version 0.3.1.4-alpha - 2017-06-29
13499   Tor 0.3.1.4-alpha fixes a path selection bug that would allow a client
13500   to use a guard that was in the same network family as a chosen exit
13501   relay. This is a security regression; all clients running earlier
13502   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9
13503   or 0.3.1.4-alpha.
13505   This release also fixes several other bugs introduced in 0.3.0.x
13506   and 0.3.1.x, including others that can affect bandwidth usage
13507   and correctness.
13509   o New dependencies:
13510     - To build with zstd and lzma support, Tor now requires the
13511       pkg-config tool at build time. (This requirement was new in
13512       0.3.1.1-alpha, but was not noted at the time. Noting it here to
13513       close ticket 22623.)
13515   o Major bugfixes (path selection, security):
13516     - When choosing which guard to use for a circuit, avoid the exit's
13517       family along with the exit itself. Previously, the new guard
13518       selection logic avoided the exit, but did not consider its family.
13519       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
13520       006 and CVE-2017-0377.
13522   o Major bugfixes (compression, zstd):
13523     - Correctly detect a full buffer when decompressing a large zstd-
13524       compressed input. Previously, we would sometimes treat a full
13525       buffer as an error. Fixes bug 22628; bugfix on 0.3.1.1-alpha.
13527   o Major bugfixes (directory protocol):
13528     - Ensure that we send "304 Not modified" as HTTP status code when a
13529       client is attempting to fetch a consensus or consensus diff, and
13530       the best one we can send them is one they already have. Fixes bug
13531       22702; bugfix on 0.3.1.1-alpha.
13533   o Major bugfixes (entry guards):
13534     - When starting with an old consensus, do not add new entry guards
13535       unless the consensus is "reasonably live" (under 1 day old). Fixes
13536       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
13538   o Minor features (bug mitigation, diagnostics, logging):
13539     - Avoid an assertion failure, and log a better error message, when
13540       unable to remove a file from the consensus cache on Windows.
13541       Attempts to mitigate and diagnose bug 22752.
13543   o Minor features (geoip):
13544     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
13545       Country database.
13547   o Minor bugfixes (compression):
13548     - When compressing or decompressing a buffer, check for a failure to
13549       create a compression object. Fixes bug 22626; bugfix
13550       on 0.3.1.1-alpha.
13551     - When decompressing a buffer, check for extra data after the end of
13552       the compressed data. Fixes bug 22629; bugfix on 0.3.1.1-alpha.
13553     - When decompressing an object received over an anonymous directory
13554       connection, if we have already decompressed it using an acceptable
13555       compression method, do not reject it for looking like an
13556       unacceptable compression method. Fixes part of bug 22670; bugfix
13557       on 0.3.1.1-alpha.
13558     - When serving directory votes compressed with zlib, do not claim to
13559       have compressed them with zstd. Fixes bug 22669; bugfix
13560       on 0.3.1.1-alpha.
13561     - When spooling compressed data to an output buffer, don't try to
13562       spool more data when there is no more data to spool and we are not
13563       trying to flush the input. Previously, we would sometimes launch
13564       compression requests with nothing to do, which interferes with our
13565       22672 checks. Fixes bug 22719; bugfix on 0.2.0.16-alpha.
13567   o Minor bugfixes (defensive programming):
13568     - Detect and break out of infinite loops in our compression code. We
13569       don't think that any such loops exist now, but it's best to be
13570       safe. Closes ticket 22672.
13571     - Fix a memset() off the end of an array when packing cells. This
13572       bug should be harmless in practice, since the corrupted bytes are
13573       still in the same structure, and are always padding bytes,
13574       ignored, or immediately overwritten, depending on compiler
13575       behavior. Nevertheless, because the memset()'s purpose is to make
13576       sure that any other cell-handling bugs can't expose bytes to the
13577       network, we need to fix it. Fixes bug 22737; bugfix on
13578       0.2.4.11-alpha. Fixes CID 1401591.
13580   o Minor bugfixes (linux seccomp2 sandbox):
13581     - Permit the fchmod system call, to avoid crashing on startup when
13582       starting with the seccomp2 sandbox and an unexpected set of
13583       permissions on the data directory or its contents. Fixes bug
13584       22516; bugfix on 0.2.5.4-alpha.
13585     - Fix a crash in the LZMA module, when the sandbox was enabled, and
13586       liblzma would allocate more than 16 MB of memory. We solve this by
13587       bumping the mprotect() limit in the sandbox module from 16 MB to
13588       20 MB. Fixes bug 22751; bugfix on 0.3.1.1-alpha.
13590   o Minor bugfixes (logging):
13591     - When decompressing, do not warn if we fail to decompress using a
13592       compression method that we merely guessed. Fixes part of bug
13593       22670; bugfix on 0.1.1.14-alpha.
13594     - When decompressing, treat mismatch between content-encoding and
13595       actual compression type as a protocol warning. Fixes part of bug
13596       22670; bugfix on 0.1.1.9-alpha.
13597     - Downgrade "assigned_to_cpuworker failed" message to info-level
13598       severity. In every case that can reach it, either a better warning
13599       has already been logged, or no warning is warranted. Fixes bug
13600       22356; bugfix on 0.2.6.3-alpha.
13601     - Demote a warn that was caused by libevent delays to info if
13602       netflow padding is less than 4.5 seconds late, or to notice
13603       if it is more (4.5 seconds is the amount of time that a netflow
13604       record might be emitted after, if we chose the maximum timeout).
13605       Fixes bug 22212; bugfix on 0.3.1.1-alpha.
13607   o Minor bugfixes (process behavior):
13608     - When exiting because of an error, always exit with a nonzero exit
13609       status. Previously, we would fail to report an error in our exit
13610       status in cases related to __OwningControllerProcess failure,
13611       lockfile contention, and Ed25519 key initialization. Fixes bug
13612       22720; bugfix on versions 0.2.1.6-alpha, 0.2.2.28-beta, and
13613       0.2.7.2-alpha respectively. Reported by "f55jwk4f"; patch
13614       from "huyvq".
13616   o Documentation:
13617     - Add a manpage description for the key-pinning-journal file. Closes
13618       ticket 22347.
13619     - Correctly note that bandwidth accounting values are stored in the
13620       state file, and the bw_accounting file is now obsolete. Closes
13621       ticket 16082.
13622     - Document more of the files in the Tor data directory, including
13623       cached-extrainfo, secret_onion_key{,_ntor}.old, hidserv-stats,
13624       approved-routers, sr-random, and diff-cache. Found while fixing
13625       ticket 22347.
13628 Changes in version 0.3.0.9 - 2017-06-29
13629   Tor 0.3.0.9 fixes a path selection bug that would allow a client
13630   to use a guard that was in the same network family as a chosen exit
13631   relay. This is a security regression; all clients running earlier
13632   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9 or
13633   0.3.1.4-alpha.
13635   This release also backports several other bugfixes from the 0.3.1.x
13636   series.
13638   o Major bugfixes (path selection, security, backport from 0.3.1.4-alpha):
13639     - When choosing which guard to use for a circuit, avoid the exit's
13640       family along with the exit itself. Previously, the new guard
13641       selection logic avoided the exit, but did not consider its family.
13642       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
13643       006 and CVE-2017-0377.
13645   o Major bugfixes (entry guards, backport from 0.3.1.1-alpha):
13646     - Don't block bootstrapping when a primary bridge is offline and we
13647       can't get its descriptor. Fixes bug 22325; fixes one case of bug
13648       21969; bugfix on 0.3.0.3-alpha.
13650   o Major bugfixes (entry guards, backport from 0.3.1.4-alpha):
13651     - When starting with an old consensus, do not add new entry guards
13652       unless the consensus is "reasonably live" (under 1 day old). Fixes
13653       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
13655   o Minor features (geoip):
13656     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
13657       Country database.
13659   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
13660     - Reject version numbers with non-numeric prefixes (such as +, -, or
13661       whitespace). Disallowing whitespace prevents differential version
13662       parsing between POSIX-based and Windows platforms. Fixes bug 21507
13663       and part of 21508; bugfix on 0.0.8pre1.
13665   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
13666     - Permit the fchmod system call, to avoid crashing on startup when
13667       starting with the seccomp2 sandbox and an unexpected set of
13668       permissions on the data directory or its contents. Fixes bug
13669       22516; bugfix on 0.2.5.4-alpha.
13671   o Minor bugfixes (defensive programming, backport from 0.3.1.4-alpha):
13672     - Fix a memset() off the end of an array when packing cells. This
13673       bug should be harmless in practice, since the corrupted bytes are
13674       still in the same structure, and are always padding bytes,
13675       ignored, or immediately overwritten, depending on compiler
13676       behavior. Nevertheless, because the memset()'s purpose is to make
13677       sure that any other cell-handling bugs can't expose bytes to the
13678       network, we need to fix it. Fixes bug 22737; bugfix on
13679       0.2.4.11-alpha. Fixes CID 1401591.
13682 Changes in version 0.3.1.3-alpha - 2017-06-08
13683   Tor 0.3.1.3-alpha fixes a pair of bugs that would allow an attacker to
13684   remotely crash a hidden service with an assertion failure. Anyone
13685   running a hidden service should upgrade to this version, or to some
13686   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
13688   Tor 0.3.1.3-alpha also includes fixes for several key management bugs
13689   that sometimes made relays unreliable, as well as several other
13690   bugfixes described below.
13692   o Major bugfixes (hidden service, relay, security):
13693     - Fix a remotely triggerable assertion failure when a hidden service
13694       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
13695       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
13696     - Fix a remotely triggerable assertion failure caused by receiving a
13697       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13698       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13699       on 0.2.2.1-alpha.
13701   o Major bugfixes (relay, link handshake):
13702     - When performing the v3 link handshake on a TLS connection, report
13703       that we have the x509 certificate that we actually used on that
13704       connection, even if we have changed certificates since that
13705       connection was first opened. Previously, we would claim to have
13706       used our most recent x509 link certificate, which would sometimes
13707       make the link handshake fail. Fixes one case of bug 22460; bugfix
13708       on 0.2.3.6-alpha.
13710   o Major bugfixes (relays, key management):
13711     - Regenerate link and authentication certificates whenever the key
13712       that signs them changes; also, regenerate link certificates
13713       whenever the signed key changes. Previously, these processes were
13714       only weakly coupled, and we relays could (for minutes to hours)
13715       wind up with an inconsistent set of keys and certificates, which
13716       other relays would not accept. Fixes two cases of bug 22460;
13717       bugfix on 0.3.0.1-alpha.
13718     - When sending an Ed25519 signing->link certificate in a CERTS cell,
13719       send the certificate that matches the x509 certificate that we
13720       used on the TLS connection. Previously, there was a race condition
13721       if the TLS context rotated after we began the TLS handshake but
13722       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
13723       on 0.3.0.1-alpha.
13725   o Major bugfixes (torrc, crash):
13726     - Fix a crash bug when using %include in torrc. Fixes bug 22417;
13727       bugfix on 0.3.1.1-alpha. Patch by Daniel Pinto.
13729   o Minor features (code style):
13730     - Add "Falls through" comments to our codebase, in order to silence
13731       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
13732       Stieger. Closes ticket 22446.
13734   o Minor features (diagnostic):
13735     - Add logging messages to try to diagnose a rare bug that seems to
13736       generate RSA->Ed25519 cross-certificates dated in the 1970s. We
13737       think this is happening because of incorrect system clocks, but
13738       we'd like to know for certain. Diagnostic for bug 22466.
13740   o Minor bugfixes (correctness):
13741     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13742       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13744   o Minor bugfixes (directory protocol):
13745     - Check for libzstd >= 1.1, because older versions lack the
13746       necessary streaming API. Fixes bug 22413; bugfix on 0.3.1.1-alpha.
13748   o Minor bugfixes (link handshake):
13749     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
13750       months, and regenerate it when it is within one month of expiring.
13751       Previously, we had generated this certificate at startup with a
13752       ten-year lifetime, but that could lead to weird behavior when Tor
13753       was started with a grossly inaccurate clock. Mitigates bug 22466;
13754       mitigation on 0.3.0.1-alpha.
13756   o Minor bugfixes (storage directories):
13757     - Always check for underflows in the cached storage directory usage.
13758       If the usage does underflow, re-calculate it. Also, avoid a
13759       separate underflow when the usage is not known. Fixes bug 22424;
13760       bugfix on 0.3.1.1-alpha.
13762   o Minor bugfixes (unit tests):
13763     - The unit tests now pass on systems where localhost is misconfigured
13764       to some IPv4 address other than 127.0.0.1. Fixes bug 6298; bugfix
13765       on 0.0.9pre2.
13767   o Documentation:
13768     - Clarify the manpage for the (deprecated) torify script. Closes
13769       ticket 6892.
13771 Changes in version 0.3.0.8 - 2017-06-08
13772   Tor 0.3.0.8 fixes a pair of bugs that would allow an attacker to
13773   remotely crash a hidden service with an assertion failure. Anyone
13774   running a hidden service should upgrade to this version, or to some
13775   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
13777   Tor 0.3.0.8 also includes fixes for several key management bugs
13778   that sometimes made relays unreliable, as well as several other
13779   bugfixes described below.
13781   o Major bugfixes (hidden service, relay, security, backport
13782     from 0.3.1.3-alpha):
13783     - Fix a remotely triggerable assertion failure when a hidden service
13784       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
13785       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
13786     - Fix a remotely triggerable assertion failure caused by receiving a
13787       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13788       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13789       on 0.2.2.1-alpha.
13791   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
13792     - When performing the v3 link handshake on a TLS connection, report
13793       that we have the x509 certificate that we actually used on that
13794       connection, even if we have changed certificates since that
13795       connection was first opened. Previously, we would claim to have
13796       used our most recent x509 link certificate, which would sometimes
13797       make the link handshake fail. Fixes one case of bug 22460; bugfix
13798       on 0.2.3.6-alpha.
13800   o Major bugfixes (relays, key management, backport from 0.3.1.3-alpha):
13801     - Regenerate link and authentication certificates whenever the key
13802       that signs them changes; also, regenerate link certificates
13803       whenever the signed key changes. Previously, these processes were
13804       only weakly coupled, and we relays could (for minutes to hours)
13805       wind up with an inconsistent set of keys and certificates, which
13806       other relays would not accept. Fixes two cases of bug 22460;
13807       bugfix on 0.3.0.1-alpha.
13808     - When sending an Ed25519 signing->link certificate in a CERTS cell,
13809       send the certificate that matches the x509 certificate that we
13810       used on the TLS connection. Previously, there was a race condition
13811       if the TLS context rotated after we began the TLS handshake but
13812       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
13813       on 0.3.0.1-alpha.
13815   o Major bugfixes (hidden service v3, backport from 0.3.1.1-alpha):
13816     - Stop rejecting v3 hidden service descriptors because their size
13817       did not match an old padding rule. Fixes bug 22447; bugfix on
13818       0.3.0.1-alpha.
13820   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
13821     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
13822       December 2016 (of which ~126 were still functional) with a list of
13823       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
13824       2017. Resolves ticket 21564.
13826   o Minor bugfixes (configuration, backport from 0.3.1.1-alpha):
13827     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
13828       bug 22252; bugfix on 0.2.9.3-alpha.
13830   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
13831     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13832       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13834   o Minor bugfixes (link handshake, backport from 0.3.1.3-alpha):
13835     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
13836       months, and regenerate it when it is within one month of expiring.
13837       Previously, we had generated this certificate at startup with a
13838       ten-year lifetime, but that could lead to weird behavior when Tor
13839       was started with a grossly inaccurate clock. Mitigates bug 22466;
13840       mitigation on 0.3.0.1-alpha.
13842   o Minor bugfixes (memory leak, directory authority, backport from
13843     0.3.1.2-alpha):
13844     - When directory authorities reject a router descriptor due to
13845       keypinning, free the router descriptor rather than leaking the
13846       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
13849 Changes in version 0.2.9.11 - 2017-06-08
13850   Tor 0.2.9.11 backports a fix for a bug that would allow an attacker to
13851   remotely crash a hidden service with an assertion failure. Anyone
13852   running a hidden service should upgrade to this version, or to some
13853   other version with fixes for TROVE-2017-005. (Versions before 0.3.0
13854   are not affected by TROVE-2017-004.)
13856   Tor 0.2.9.11 also backports fixes for several key management bugs
13857   that sometimes made relays unreliable, as well as several other
13858   bugfixes described below.
13860   o Major bugfixes (hidden service, relay, security, backport
13861     from 0.3.1.3-alpha):
13862     - Fix a remotely triggerable assertion failure caused by receiving a
13863       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13864       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13865       on 0.2.2.1-alpha.
13867   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
13868     - When performing the v3 link handshake on a TLS connection, report
13869       that we have the x509 certificate that we actually used on that
13870       connection, even if we have changed certificates since that
13871       connection was first opened. Previously, we would claim to have
13872       used our most recent x509 link certificate, which would sometimes
13873       make the link handshake fail. Fixes one case of bug 22460; bugfix
13874       on 0.2.3.6-alpha.
13876   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
13877     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
13878       December 2016 (of which ~126 were still functional) with a list of
13879       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
13880       2017. Resolves ticket 21564.
13882   o Minor features (future-proofing, backport from 0.3.0.7):
13883     - Tor no longer refuses to download microdescriptors or descriptors if
13884       they are listed as "published in the future".  This change will
13885       eventually allow us to stop listing meaningful "published" dates
13886       in microdescriptor consensuses, and thereby allow us to reduce the
13887       resources required to download consensus diffs by over 50%.
13888       Implements part of ticket 21642; implements part of proposal 275.
13890   o Minor features (directory authorities, backport from 0.3.0.4-rc)
13891     - Directory authorities now reject relays running versions
13892       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
13893       suffer from bug 20499 and don't keep their consensus cache
13894       up-to-date. Resolves ticket 20509.
13896   o Minor features (geoip):
13897     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13898       Country database.
13900   o Minor bugfixes (control port, backport from 0.3.0.6):
13901     - The GETINFO extra-info/digest/<digest> command was broken because
13902       of a wrong base16 decode return value check, introduced when
13903       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
13905   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
13906     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13907       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13909   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.0.7):
13910     - The getpid() system call is now permitted under the Linux seccomp2
13911       sandbox, to avoid crashing with versions of OpenSSL (and other
13912       libraries) that attempt to learn the process's PID by using the
13913       syscall rather than the VDSO code. Fixes bug 21943; bugfix
13914       on 0.2.5.1-alpha.
13916   o Minor bugfixes (memory leak, directory authority, backport
13917     from 0.3.1.2-alpha):
13918     - When directory authorities reject a router descriptor due to
13919       keypinning, free the router descriptor rather than leaking the
13920       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
13922 Changes in version 0.2.8.14 - 2017-06-08
13923   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
13924   remotely crash a hidden service with an assertion failure. Anyone
13925   running a hidden service should upgrade to this version, or to some
13926   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
13927   are not affected by TROVE-2017-004.)
13929   o Major bugfixes (hidden service, relay, security):
13930     - Fix a remotely triggerable assertion failure caused by receiving a
13931       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13932       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13933       on 0.2.2.1-alpha.
13935   o Minor features (geoip):
13936     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13937       Country database.
13939   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
13940     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
13941       December 2016 (of which ~126 were still functional) with a list of
13942       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
13943       2017. Resolves ticket 21564.
13945   o Minor bugfixes (correctness):
13946     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13947       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13949 Changes in version 0.2.7.8 - 2017-06-08
13950   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
13951   remotely crash a hidden service with an assertion failure. Anyone
13952   running a hidden service should upgrade to this version, or to some
13953   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
13954   are not affected by TROVE-2017-004.)
13956   o Major bugfixes (hidden service, relay, security):
13957     - Fix a remotely triggerable assertion failure caused by receiving a
13958       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13959       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13960       on 0.2.2.1-alpha.
13962   o Minor features (geoip):
13963     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13964       Country database.
13966   o Minor bugfixes (correctness):
13967     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13968       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13971 Changes in version 0.2.6.12 - 2017-06-08
13972   Tor 0.2.6.12 backports a fix for a bug that would allow an attacker to
13973   remotely crash a hidden service with an assertion failure. Anyone
13974   running a hidden service should upgrade to this version, or to some
13975   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
13976   are not affected by TROVE-2017-004.)
13978   o Major bugfixes (hidden service, relay, security):
13979     - Fix a remotely triggerable assertion failure caused by receiving a
13980       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13981       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13982       on 0.2.2.1-alpha.
13984   o Minor features (geoip):
13985     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13986       Country database.
13988   o Minor bugfixes (correctness):
13989     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13990       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13992 Changes in version 0.2.5.14 - 2017-06-08
13993   Tor 0.2.5.14 backports a fix for a bug that would allow an attacker to
13994   remotely crash a hidden service with an assertion failure. Anyone
13995   running a hidden service should upgrade to this version, or to some
13996   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
13997   are not affected by TROVE-2017-004.)
13999   o Major bugfixes (hidden service, relay, security):
14000     - Fix a remotely triggerable assertion failure caused by receiving a
14001       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
14002       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
14003       on 0.2.2.1-alpha.
14005   o Minor features (geoip):
14006     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14007       Country database.
14009   o Minor bugfixes (correctness):
14010     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
14011       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
14013 Changes in version 0.2.4.29 - 2017-06-08
14014   Tor 0.2.4.29 backports a fix for a bug that would allow an attacker to
14015   remotely crash a hidden service with an assertion failure. Anyone
14016   running a hidden service should upgrade to this version, or to some
14017   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
14018   are not affected by TROVE-2017-004.)
14020   o Major bugfixes (hidden service, relay, security):
14021     - Fix a remotely triggerable assertion failure caused by receiving a
14022       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
14023       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
14024       on 0.2.2.1-alpha.
14026   o Minor features (geoip):
14027     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14028       Country database.
14030   o Minor bugfixes (correctness):
14031     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
14032       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
14035 Changes in version 0.3.1.2-alpha - 2017-05-26
14036   Tor 0.3.1.2-alpha is the second release in the 0.3.1.x series. It
14037   fixes a few bugs found while testing 0.3.1.1-alpha, including a
14038   memory corruption bug that affected relay stability.
14040   o Major bugfixes (crash, relay):
14041     - Fix a memory-corruption bug in relays that set MyFamily.
14042       Previously, they would double-free MyFamily elements when making
14043       the next descriptor or when changing their configuration. Fixes
14044       bug 22368; bugfix on 0.3.1.1-alpha.
14046   o Minor bugfixes (logging):
14047     - Log a better message when a directory authority replies to an
14048       upload with an unexpected status code. Fixes bug 11121; bugfix
14049       on 0.1.0.1-rc.
14051   o Minor bugfixes (memory leak, directory authority):
14052     - When directory authorities reject a router descriptor due to
14053       keypinning, free the router descriptor rather than leaking the
14054       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
14057 Changes in version 0.3.1.1-alpha - 2017-05-22
14058   Tor 0.3.1.1-alpha is the first release in the 0.3.1.x series. It
14059   reduces the bandwidth usage for Tor's directory protocol, adds some
14060   basic padding to resist netflow-based traffic analysis and to serve as
14061   the basis of other padding in the future, and adds rust support to the
14062   build system.
14064   It also contains numerous other small features and improvements to
14065   security, correctness, and performance.
14067   Below are the changes since 0.3.0.7.
14069   o Major features (directory protocol):
14070     - Tor relays and authorities can now serve clients an abbreviated
14071       version of the consensus document, containing only the changes
14072       since an older consensus document that the client holds. Clients
14073       now request these documents when available. When both client and
14074       server use this new protocol, they will use far less bandwidth (up
14075       to 94% less) to keep the client's consensus up-to-date. Implements
14076       proposal 140; closes ticket 13339. Based on work by Daniel Martí.
14077     - Tor can now compress directory traffic with lzma or with zstd
14078       compression algorithms, which can deliver better bandwidth
14079       performance. Because lzma is computationally expensive, it's only
14080       used for documents that can be compressed once and served many
14081       times. Support for these algorithms requires that tor is built
14082       with the libzstd and/or liblzma libraries available. Implements
14083       proposal 278; closes ticket 21662.
14084     - Relays now perform the more expensive compression operations, and
14085       consensus diff generation, in worker threads. This separation
14086       avoids delaying the main thread when a new consensus arrives.
14088   o Major features (experimental):
14089     - Tor can now build modules written in Rust. To turn this on, pass
14090       the "--enable-rust" flag to the configure script. It's not time to
14091       get excited yet: currently, there is no actual Rust functionality
14092       beyond some simple glue code, and a notice at startup to tell you
14093       that Rust is running. Still, we hope that programmers and
14094       packagers will try building Tor with Rust support, so that we can
14095       find issues and solve portability problems. Closes ticket 22106.
14097   o Major features (traffic analysis resistance):
14098     - Connections between clients and relays now send a padding cell in
14099       each direction every 1.5 to 9.5 seconds (tunable via consensus
14100       parameters). This padding will not resist specialized
14101       eavesdroppers, but it should be enough to make many ISPs' routine
14102       network flow logging less useful in traffic analysis against
14103       Tor users.
14105       Padding is negotiated using Tor's link protocol, so both relays
14106       and clients must upgrade for this to take effect. Clients may
14107       still send padding despite the relay's version by setting
14108       ConnectionPadding 1 in torrc, and may disable padding by setting
14109       ConnectionPadding 0 in torrc. Padding may be minimized for mobile
14110       users with the torrc option ReducedConnectionPadding. Implements
14111       Proposal 251 and Section 2 of Proposal 254; closes ticket 16861.
14112     - Relays will publish 24 hour totals of padding and non-padding cell
14113       counts to their extra-info descriptors, unless PaddingStatistics 0
14114       is set in torrc. These 24 hour totals are also rounded to
14115       multiples of 10000.
14117   o Major bugfixes (connection usage):
14118     - We use NETINFO cells to try to determine if both relays involved
14119       in a connection will agree on the canonical status of that
14120       connection. We prefer the connections where this is the case for
14121       extend cells, and try to close connections where relays disagree
14122       on their canonical status early. Also, we now prefer the oldest
14123       valid connection for extend cells. These two changes should reduce
14124       the number of long-term connections that are kept open between
14125       relays. Fixes bug 17604; bugfix on 0.2.5.5-alpha.
14126     - Relays now log hourly statistics (look for
14127       "channel_check_for_duplicates" lines) on the total number of
14128       connections to other relays. If the number of connections per
14129       relay is unexpectedly large, this log message is at notice level.
14130       Otherwise it is at info.
14132   o Major bugfixes (entry guards):
14133     - Don't block bootstrapping when a primary bridge is offline and we
14134       can't get its descriptor. Fixes bug 22325; fixes one case of bug
14135       21969; bugfix on 0.3.0.3-alpha.
14137   o Major bugfixes (linux TPROXY support):
14138     - Fix a typo that had prevented TPROXY-based transparent proxying
14139       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
14140       Patch from "d4fq0fQAgoJ".
14142   o Minor features (security, windows):
14143     - Enable a couple of pieces of Windows hardening: one
14144       (HeapEnableTerminationOnCorruption) that has been on-by-default
14145       since Windows 8, and unavailable before Windows 7; and one
14146       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
14147       affect us, but shouldn't do any harm. Closes ticket 21953.
14149   o Minor features (config options):
14150     - Allow "%include" directives in torrc configuration files. These
14151       directives import the settings from other files, or from all the
14152       files in a directory. Closes ticket 1922. Code by Daniel Pinto.
14153     - Make SAVECONF return an error when overwriting a torrc that has
14154       includes. Using SAVECONF with the FORCE option will allow it to
14155       overwrite torrc even if includes are used. Related to ticket 1922.
14156     - Add "GETINFO config-can-saveconf" to tell controllers if SAVECONF
14157       will work without the FORCE option. Related to ticket 1922.
14159   o Minor features (controller):
14160     - Warn the first time that a controller requests data in the long-
14161       deprecated 'GETINFO network-status' format. Closes ticket 21703.
14163   o Minor features (defaults):
14164     - The default value for UseCreateFast is now 0: clients which
14165       haven't yet received a consensus document will now use a proper
14166       ntor handshake to talk to their directory servers whenever they
14167       can. Closes ticket 21407.
14168     - Onion key rotation and expiry intervals are now defined as a
14169       network consensus parameter, per proposal 274. The default
14170       lifetime of an onion key is increased from 7 to 28 days. Old onion
14171       keys will expire after 7 days by default. This change will make
14172       consensus diffs much smaller, and save significant bandwidth.
14173       Closes ticket 21641.
14175   o Minor features (fallback directory list):
14176     - Update the fallback directory mirror whitelist and blacklist based
14177       on operator emails. Closes task 21121.
14178     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
14179       December 2016 (of which ~126 were still functional) with a list of
14180       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
14181       2017. Resolves ticket 21564.
14183   o Minor features (hidden services, logging):
14184     - Log a message when a hidden service descriptor has fewer
14185       introduction points than specified in
14186       HiddenServiceNumIntroductionPoints. Closes tickets 21598.
14187     - Log a message when a hidden service reaches its introduction point
14188       circuit limit, and when that limit is reset. Follow up to ticket
14189       21594; closes ticket 21622.
14190     - Warn user if multiple entries in EntryNodes and at least one
14191       HiddenService are used together. Pinning EntryNodes along with a
14192       hidden service can be possibly harmful; for instance see ticket
14193       14917 or 21155. Closes ticket 21155.
14195   o Minor features (linux seccomp2 sandbox):
14196     - We now have a document storage backend compatible with the Linux
14197       seccomp2 sandbox. This backend is used for consensus documents and
14198       diffs between them; in the long term, we'd like to use it for
14199       unparseable directory material too. Closes ticket 21645
14200     - Increase the maximum allowed size passed to mprotect(PROT_WRITE)
14201       from 1MB to 16MB. This was necessary with the glibc allocator in
14202       order to allow worker threads to allocate more memory -- which in
14203       turn is necessary because of our new use of worker threads for
14204       compression. Closes ticket 22096.
14206   o Minor features (logging):
14207     - Log files are no longer created world-readable by default.
14208       (Previously, most distributors would store the logs in a non-
14209       world-readable location to prevent inappropriate access. This
14210       change is an extra precaution.) Closes ticket 21729; patch
14211       from toralf.
14213   o Minor features (performance):
14214     - Our Keccak (SHA-3) implementation now accesses memory more
14215       efficiently, especially on little-endian systems. Closes
14216       ticket 21737.
14217     - Add an O(1) implementation of channel_find_by_global_id(), to
14218       speed some controller functions.
14220   o Minor features (relay, configuration):
14221     - The MyFamily option may now be repeated as many times as desired,
14222       for relays that want to configure large families. Closes ticket
14223       4998; patch by Daniel Pinto.
14225   o Minor features (safety):
14226     - Add an explicit check to extrainfo_parse_entry_from_string() for
14227       NULL inputs. We don't believe this can actually happen, but it may
14228       help silence a warning from the Clang analyzer. Closes
14229       ticket 21496.
14231   o Minor features (testing):
14232     - Add a "--disable-memory-sentinels" feature to help with fuzzing.
14233       When Tor is compiled with this option, we disable a number of
14234       redundant memory-safety failsafes that are intended to stop bugs
14235       from becoming security issues. This makes it easier to hunt for
14236       bugs that would be security issues without the failsafes turned
14237       on. Closes ticket 21439.
14238     - Add a general event-tracing instrumentation support to Tor. This
14239       subsystem will enable developers and researchers to add fine-
14240       grained instrumentation to their Tor instances, for use when
14241       examining Tor network performance issues. There are no trace
14242       events yet, and event-tracing is off by default unless enabled at
14243       compile time. Implements ticket 13802.
14244     - Improve our version parsing tests: add tests for typical version
14245       components, add tests for invalid versions, including numeric
14246       range and non-numeric prefixes. Unit tests 21278, 21450, and
14247       21507. Partially implements 21470.
14249   o Minor bugfixes (bandwidth accounting):
14250     - Roll over monthly accounting at the configured hour and minute,
14251       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
14252       Found by Andrey Karpov with PVS-Studio.
14254   o Minor bugfixes (code correctness):
14255     - Accurately identify client connections by their lack of peer
14256       authentication. This means that we bail out earlier if asked to
14257       extend to a client. Follow-up to 21407. Fixes bug 21406; bugfix
14258       on 0.2.4.23.
14260   o Minor bugfixes (configuration):
14261     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
14262       bug 22252; bugfix on 0.2.9.3-alpha.
14264   o Minor bugfixes (connection lifespan):
14265     - Allow more control over how long TLS connections are kept open:
14266       unify CircuitIdleTimeout and PredictedPortsRelevanceTime into a
14267       single option called CircuitsAvailableTimeout. Also, allow the
14268       consensus to control the default values for both this preference
14269       and the lifespan of relay-to-relay connections. Fixes bug 17592;
14270       bugfix on 0.2.5.5-alpha.
14271     - Increase the initial circuit build timeout testing frequency, to
14272       help ensure that ReducedConnectionPadding clients finish learning
14273       a timeout before their orconn would expire. The initial testing
14274       rate was set back in the days of TAP and before the Tor Browser
14275       updater, when we had to be much more careful about new clients
14276       making lots of circuits. With this change, a circuit build timeout
14277       is learned in about 15-20 minutes, instead of 100-120 minutes.
14279   o Minor bugfixes (controller):
14280     - GETINFO onions/current and onions/detached no longer respond with
14281       551 on empty lists. Fixes bug 21329; bugfix on 0.2.7.1-alpha.
14282     - Trigger HS descriptor events on the control port when the client
14283       fails to pick a hidden service directory for a hidden service.
14284       This can happen if all the hidden service directories are in
14285       ExcludeNodes, or they have all been queried within the last 15
14286       minutes. Fixes bug 22042; bugfix on 0.2.5.2-alpha.
14288   o Minor bugfixes (directory authority):
14289     - When rejecting a router descriptor for running an obsolete version
14290       of Tor without ntor support, warn about the obsolete tor version,
14291       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
14292     - Prevent the shared randomness subsystem from asserting when
14293       initialized by a bridge authority with an incomplete configuration
14294       file. Fixes bug 21586; bugfix on 0.2.9.8.
14296   o Minor bugfixes (exit-side DNS):
14297     - Fix an untriggerable assertion that checked the output of a
14298       libevent DNS error, so that the assertion actually behaves as
14299       expected. Fixes bug 22244; bugfix on 0.2.0.20-rc. Found by Andrey
14300       Karpov using PVS-Studio.
14302   o Minor bugfixes (fallback directories):
14303     - Make the usage example in updateFallbackDirs.py actually work, and
14304       explain what it does. Fixes bug 22270; bugfix on 0.3.0.3-alpha.
14305     - Decrease the guard flag average required to be a fallback. This
14306       allows us to keep relays that have their guard flag removed when
14307       they restart. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
14308     - Decrease the minimum number of fallbacks to 100. Fixes bug 20913;
14309       bugfix on 0.2.8.1-alpha.
14310     - Make sure fallback directory mirrors have the same address, port,
14311       and relay identity key for at least 30 days before they are
14312       selected. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
14314   o Minor bugfixes (hidden services):
14315     - Stop printing a cryptic warning when a hidden service gets a
14316       request to connect to a virtual port that it hasn't configured.
14317       Fixes bug 16706; bugfix on 0.2.6.3-alpha.
14318     - Simplify hidden service descriptor creation by using an existing
14319       flag to check if an introduction point is established. Fixes bug
14320       21599; bugfix on 0.2.7.2-alpha.
14322   o Minor bugfixes (memory leak):
14323     - Fix a small memory leak at exit from the backtrace handler code.
14324       Fixes bug 21788; bugfix on 0.2.5.2-alpha. Patch from Daniel Pinto.
14326   o Minor bugfixes (protocol, logging):
14327     - Downgrade a log statement about unexpected relay cells from "bug"
14328       to "protocol warning", because there is at least one use case
14329       where it can be triggered by a buggy tor implementation. Fixes bug
14330       21293; bugfix on 0.1.1.14-alpha.
14332   o Minor bugfixes (testing):
14333     - Use unbuffered I/O for utility functions around the
14334       process_handle_t type. This fixes unit test failures reported on
14335       OpenBSD and FreeBSD. Fixes bug 21654; bugfix on 0.2.3.1-alpha.
14336     - Make display of captured unit test log messages consistent. Fixes
14337       bug 21510; bugfix on 0.2.9.3-alpha.
14338     - Make test-network.sh always call chutney's test-network.sh.
14339       Previously, this only worked on systems which had bash installed,
14340       due to some bash-specific code in the script. Fixes bug 19699;
14341       bugfix on 0.3.0.4-rc. Follow-up to ticket 21581.
14343   o Minor bugfixes (voting consistency):
14344     - Reject version numbers with non-numeric prefixes (such as +, -, or
14345       whitespace). Disallowing whitespace prevents differential version
14346       parsing between POSIX-based and Windows platforms. Fixes bug 21507
14347       and part of 21508; bugfix on 0.0.8pre1.
14349   o Minor bugfixes (windows, relay):
14350     - Resolve "Failure from drain_fd: No error" warnings on Windows
14351       relays. Fixes bug 21540; bugfix on 0.2.6.3-alpha.
14353   o Code simplification and refactoring:
14354     - Break up the 630-line function connection_dir_client_reached_eof()
14355       into a dozen smaller functions. This change should help
14356       maintainability and readability of the client directory code.
14357     - Isolate our use of the openssl headers so that they are only
14358       included from our crypto wrapper modules, and from tests that
14359       examine those modules' internals. Closes ticket 21841.
14360     - Simplify our API to launch directory requests, making it more
14361       extensible and less error-prone. Now it's easier to add extra
14362       headers to directory requests. Closes ticket 21646.
14363     - Our base64 decoding functions no longer overestimate the output
14364       space that they need when parsing unpadded inputs. Closes
14365       ticket 17868.
14366     - Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value.
14367       Resolves ticket 22213.
14368     - The logic that directory caches use to spool request to clients,
14369       serving them one part at a time so as not to allocate too much
14370       memory, has been refactored for consistency. Previously there was
14371       a separate spooling implementation per type of spoolable data. Now
14372       there is one common spooling implementation, with extensible data
14373       types. Closes ticket 21651.
14374     - Tor's compression module now supports multiple backends. Part of
14375       the implementation for proposal 278; closes ticket 21663.
14377   o Documentation:
14378     - Clarify the behavior of the KeepAliveIsolateSOCKSAuth sub-option.
14379       Closes ticket 21873.
14380     - Correct documentation about the default DataDirectory value.
14381       Closes ticket 21151.
14382     - Document the default behavior of NumEntryGuards and
14383       NumDirectoryGuards correctly. Fixes bug 21715; bugfix
14384       on 0.3.0.1-alpha.
14385     - Document key=value pluggable transport arguments for Bridge lines
14386       in torrc. Fixes bug 20341; bugfix on 0.2.5.1-alpha.
14387     - Note that bandwidth-limiting options don't affect TCP headers or
14388       DNS. Closes ticket 17170.
14390   o Removed features (configuration options, all in ticket 22060):
14391     - These configuration options are now marked Obsolete, and no longer
14392       have any effect: AllowInvalidNodes, AllowSingleHopCircuits,
14393       AllowSingleHopExits, ExcludeSingleHopRelays, FastFirstHopPK,
14394       TLSECGroup, WarnUnsafeSocks. They were first marked as deprecated
14395       in 0.2.9.2-alpha and have now been removed. The previous default
14396       behavior is now always chosen; the previous (less secure) non-
14397       default behavior is now unavailable.
14398     - CloseHSClientCircuitsImmediatelyOnTimeout and
14399       CloseHSServiceRendCircuitsImmediatelyOnTimeout were deprecated in
14400       0.2.9.2-alpha and now have been removed. HS circuits never close
14401       on circuit build timeout; they have a longer timeout period.
14402     - {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress were deprecated
14403       in 0.2.9.2-alpha and now have been removed. Use the ORPort option
14404       (and others) to configure listen-only and advertise-only addresses.
14406   o Removed features (tools):
14407     - We've removed the tor-checkkey tool from src/tools. Long ago, we
14408       used it to help people detect RSA keys that were generated by
14409       versions of Debian affected by CVE-2008-0166. But those keys have
14410       been out of circulation for ages, and this tool is no longer
14411       required. Closes ticket 21842.
14414 Changes in version 0.3.0.7 - 2017-05-15
14415   Tor 0.3.0.7 fixes a medium-severity security bug in earlier versions
14416   of Tor 0.3.0.x, where an attacker could cause a Tor relay process
14417   to exit. Relays running earlier versions of Tor 0.3.0.x should upgrade;
14418   clients are not affected.
14420   o Major bugfixes (hidden service directory, security):
14421     - Fix an assertion failure in the hidden service directory code, which
14422       could be used by an attacker to remotely cause a Tor relay process to
14423       exit. Relays running earlier versions of Tor 0.3.0.x should upgrade.
14424       should upgrade. This security issue is tracked as TROVE-2017-002.
14425       Fixes bug 22246; bugfix on 0.3.0.1-alpha.
14427   o Minor features:
14428     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14429       Country database.
14431   o Minor features (future-proofing):
14432     - Tor no longer refuses to download microdescriptors or descriptors
14433       if they are listed as "published in the future". This change will
14434       eventually allow us to stop listing meaningful "published" dates
14435       in microdescriptor consensuses, and thereby allow us to reduce the
14436       resources required to download consensus diffs by over 50%.
14437       Implements part of ticket 21642; implements part of proposal 275.
14439   o Minor bugfixes (Linux seccomp2 sandbox):
14440     - The getpid() system call is now permitted under the Linux seccomp2
14441       sandbox, to avoid crashing with versions of OpenSSL (and other
14442       libraries) that attempt to learn the process's PID by using the
14443       syscall rather than the VDSO code. Fixes bug 21943; bugfix
14444       on 0.2.5.1-alpha.
14447 Changes in version 0.3.0.6 - 2017-04-26
14448   Tor 0.3.0.6 is the first stable release of the Tor 0.3.0 series.
14450   With the 0.3.0 series, clients and relays now use Ed25519 keys to
14451   authenticate their link connections to relays, rather than the old
14452   RSA1024 keys that they used before. (Circuit crypto has been
14453   Curve25519-authenticated since 0.2.4.8-alpha.) We have also replaced
14454   the guard selection and replacement algorithm to behave more robustly
14455   in the presence of unreliable networks, and to resist guard-
14456   capture attacks.
14458   This series also includes numerous other small features and bugfixes,
14459   along with more groundwork for the upcoming hidden-services revamp.
14461   Per our stable release policy, we plan to support the Tor 0.3.0
14462   release series for at least the next nine months, or for three months
14463   after the first stable release of the 0.3.1 series: whichever is
14464   longer. If you need a release with long-term support, we recommend
14465   that you stay with the 0.2.9 series.
14467   Below are the changes since 0.3.0.5-rc. For a list of all changes
14468   since 0.2.9, see the ReleaseNotes file.
14470   o Minor features (geoip):
14471     - Update geoip and geoip6 to the April 4 2017 Maxmind GeoLite2
14472       Country database.
14474   o Minor bugfixes (control port):
14475     - The GETINFO extra-info/digest/<digest> command was broken because
14476       of a wrong base16 decode return value check, introduced when
14477       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
14479   o Minor bugfixes (crash prevention):
14480     - Fix a (currently untriggerable, but potentially dangerous) crash
14481       bug when base32-encoding inputs whose sizes are not a multiple of
14482       5. Fixes bug 21894; bugfix on 0.2.9.1-alpha.
14485 Changes in version 0.3.0.5-rc - 2017-04-05
14486   Tor 0.3.0.5-rc fixes a few remaining bugs, large and small, in the
14487   0.3.0 release series.
14489   This is the second release candidate in the Tor 0.3.0 series, and has
14490   much fewer changes than the first. If we find no new bugs or
14491   regressions here, the first stable 0.3.0 release will be nearly
14492   identical to it.
14494   o Major bugfixes (crash, directory connections):
14495     - Fix a rare crash when sending a begin cell on a circuit whose
14496       linked directory connection had already been closed. Fixes bug
14497       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
14499   o Major bugfixes (guard selection):
14500     - Fix a guard selection bug where Tor would refuse to bootstrap in
14501       some cases if the user swapped a bridge for another bridge in
14502       their configuration file. Fixes bug 21771; bugfix on 0.3.0.1-alpha.
14503       Reported by "torvlnt33r".
14505   o Minor features (geoip):
14506     - Update geoip and geoip6 to the March 7 2017 Maxmind GeoLite2
14507       Country database.
14509   o Minor bugfix (compilation):
14510     - Fix a warning when compiling hs_service.c. Previously, it had no
14511       exported symbols when compiled for libor.a, resulting in a
14512       compilation warning from clang. Fixes bug 21825; bugfix
14513       on 0.3.0.1-alpha.
14515   o Minor bugfixes (hidden services):
14516     - Make hidden services check for failed intro point connections,
14517       even when they have exceeded their intro point creation limit.
14518       Fixes bug 21596; bugfix on 0.2.7.2-alpha. Reported by Alec Muffett.
14519     - Make hidden services with 8 to 10 introduction points check for
14520       failed circuits immediately after startup. Previously, they would
14521       wait for 5 minutes before performing their first checks. Fixes bug
14522       21594; bugfix on 0.2.3.9-alpha. Reported by Alec Muffett.
14524   o Minor bugfixes (memory leaks):
14525     - Fix a memory leak when using GETCONF on a port option. Fixes bug
14526       21682; bugfix on 0.3.0.3-alpha.
14528   o Minor bugfixes (relay):
14529     - Avoid a double-marked-circuit warning that could happen when we
14530       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
14531       on 0.1.0.1-rc.
14533   o Minor bugfixes (tests):
14534     - Run the entry_guard_parse_from_state_full() test with the time set
14535       to a specific date. (The guard state that this test was parsing
14536       contained guards that had expired since the test was first
14537       written.) Fixes bug 21799; bugfix on 0.3.0.1-alpha.
14539   o Documentation:
14540     - Update the description of the directory server options in the
14541       manual page, to clarify that a relay no longer needs to set
14542       DirPort in order to be a directory cache. Closes ticket 21720.
14546 Changes in version 0.2.8.13 - 2017-03-03
14547   Tor 0.2.8.13 backports a security fix from later Tor
14548   releases.  Anybody running Tor 0.2.8.12 or earlier should upgrade to this
14549   this release, if for some reason they cannot upgrade to a later
14550   release series, and if they build Tor with the --enable-expensive-hardening
14551   option.
14553   Note that support for Tor 0.2.8.x is ending next year: we will not issue
14554   any fixes for the Tor 0.2.8.x series after 1 Jan 2018.  If you need
14555   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14557   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14558     - Fix an integer underflow bug when comparing malformed Tor
14559       versions. This bug could crash Tor when built with
14560       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14561       0.2.9.8, which were built with -ftrapv by default. In other cases
14562       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14563       on 0.0.8pre1. Found by OSS-Fuzz.
14565   o Minor features (geoip):
14566     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14567       Country database.
14570 Changes in version 0.2.7.7 - 2017-03-03
14571   Tor 0.2.7.7 backports a number of security fixes from later Tor
14572   releases.  Anybody running Tor 0.2.7.6 or earlier should upgrade to
14573   this release, if for some reason they cannot upgrade to a later
14574   release series.
14576   Note that support for Tor 0.2.7.x is ending this year: we will not issue
14577   any fixes for the Tor 0.2.7.x series after 1 August 2017.  If you need
14578   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14580   o Directory authority changes (backport from 0.2.8.5-rc):
14581     - Urras is no longer a directory authority. Closes ticket 19271.
14583   o Directory authority changes (backport from 0.2.9.2-alpha):
14584     - The "Tonga" bridge authority has been retired; the new bridge
14585       authority is "Bifroest". Closes tickets 19728 and 19690.
14587   o Directory authority key updates (backport from 0.2.8.1-alpha):
14588     - Update the V3 identity key for the dannenberg directory authority:
14589       it was changed on 18 November 2015. Closes task 17906. Patch
14590       by "teor".
14592   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14593     - Fix a bug in parsing that could cause clients to read a single
14594       byte past the end of an allocated region. This bug could be used
14595       to cause hardened clients (built with --enable-expensive-hardening)
14596       to crash if they tried to visit a hostile hidden service. Non-
14597       hardened clients are only affected depending on the details of
14598       their platform's memory allocator. Fixes bug 21018; bugfix on
14599       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14600       2016-12-002 and as CVE-2016-1254.
14602   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
14603     - Stop a crash that could occur when a client running with DNSPort
14604       received a query with multiple address types, and the first
14605       address type was not supported. Found and fixed by Scott Dial.
14606       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14607     - Prevent a class of security bugs caused by treating the contents
14608       of a buffer chunk as if they were a NUL-terminated string. At
14609       least one such bug seems to be present in all currently used
14610       versions of Tor, and would allow an attacker to remotely crash
14611       most Tor instances, especially those compiled with extra compiler
14612       hardening. With this defense in place, such bugs can't crash Tor,
14613       though we should still fix them as they occur. Closes ticket
14614       20384 (TROVE-2016-10-001).
14616   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14617     - Avoid a difficult-to-trigger heap corruption attack when extending
14618       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14619       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14620       Reported by Guido Vranken.
14622   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14623     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14624       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14626   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14627     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14628       pointer to the previous (uninitialized) key value. The impact here
14629       should be limited to a difficult-to-trigger crash, if OpenSSL is
14630       running an engine that makes key generation failures possible, or
14631       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14632       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14633       Baishakhi Ray.
14635   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14636     - Fix an integer underflow bug when comparing malformed Tor
14637       versions. This bug could crash Tor when built with
14638       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14639       0.2.9.8, which were built with -ftrapv by default. In other cases
14640       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14641       on 0.0.8pre1. Found by OSS-Fuzz.
14643   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14644     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14645       zero size. Check size argument to memwipe() for underflow. Fixes
14646       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14647       patch by "teor".
14649   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14650     - Make Tor survive errors involving connections without a
14651       corresponding event object. Previously we'd fail with an
14652       assertion; now we produce a log message. Related to bug 16248.
14654   o Minor features (geoip):
14655     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14656       Country database.
14659 Changes in version 0.2.6.11 - 2017-03-03
14660   Tor 0.2.6.11 backports a number of security fixes from later Tor
14661   releases.  Anybody running Tor 0.2.6.10 or earlier should upgrade to
14662   this release, if for some reason they cannot upgrade to a later
14663   release series.
14665   Note that support for Tor 0.2.6.x is ending this year: we will not issue
14666   any fixes for the Tor 0.2.6.x series after 1 August 2017.  If you need
14667   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14669   o Directory authority changes (backport from 0.2.8.5-rc):
14670     - Urras is no longer a directory authority. Closes ticket 19271.
14672   o Directory authority changes (backport from 0.2.9.2-alpha):
14673     - The "Tonga" bridge authority has been retired; the new bridge
14674       authority is "Bifroest". Closes tickets 19728 and 19690.
14676   o Directory authority key updates (backport from 0.2.8.1-alpha):
14677     - Update the V3 identity key for the dannenberg directory authority:
14678       it was changed on 18 November 2015. Closes task 17906. Patch
14679       by "teor".
14681   o Major features (security fixes, backport from 0.2.9.4-alpha):
14682     - Prevent a class of security bugs caused by treating the contents
14683       of a buffer chunk as if they were a NUL-terminated string. At
14684       least one such bug seems to be present in all currently used
14685       versions of Tor, and would allow an attacker to remotely crash
14686       most Tor instances, especially those compiled with extra compiler
14687       hardening. With this defense in place, such bugs can't crash Tor,
14688       though we should still fix them as they occur. Closes ticket
14689       20384 (TROVE-2016-10-001).
14691   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14692     - Fix a bug in parsing that could cause clients to read a single
14693       byte past the end of an allocated region. This bug could be used
14694       to cause hardened clients (built with --enable-expensive-hardening)
14695       to crash if they tried to visit a hostile hidden service. Non-
14696       hardened clients are only affected depending on the details of
14697       their platform's memory allocator. Fixes bug 21018; bugfix on
14698       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14699       2016-12-002 and as CVE-2016-1254.
14701   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
14702     - Stop a crash that could occur when a client running with DNSPort
14703       received a query with multiple address types, and the first
14704       address type was not supported. Found and fixed by Scott Dial.
14705       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14707   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
14708     - Fix an error that could cause us to read 4 bytes before the
14709       beginning of an openssl string. This bug could be used to cause
14710       Tor to crash on systems with unusual malloc implementations, or
14711       systems with unusual hardening installed. Fixes bug 17404; bugfix
14712       on 0.2.3.6-alpha.
14714   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14715     - Avoid a difficult-to-trigger heap corruption attack when extending
14716       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14717       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14718       Reported by Guido Vranken.
14720   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14721     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14722       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14724   o Major bugfixes (guard selection, backport from 0.2.7.6):
14725     - Actually look at the Guard flag when selecting a new directory
14726       guard. When we implemented the directory guard design, we
14727       accidentally started treating all relays as if they have the Guard
14728       flag during guard selection, leading to weaker anonymity and worse
14729       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
14730       by Mohsen Imani.
14732   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14733     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14734       pointer to the previous (uninitialized) key value. The impact here
14735       should be limited to a difficult-to-trigger crash, if OpenSSL is
14736       running an engine that makes key generation failures possible, or
14737       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14738       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14739       Baishakhi Ray.
14741   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14742     - Fix an integer underflow bug when comparing malformed Tor
14743       versions. This bug could crash Tor when built with
14744       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14745       0.2.9.8, which were built with -ftrapv by default. In other cases
14746       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14747       on 0.0.8pre1. Found by OSS-Fuzz.
14749   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14750     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14751       zero size. Check size argument to memwipe() for underflow. Fixes
14752       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14753       patch by "teor".
14755   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14756     - Make Tor survive errors involving connections without a
14757       corresponding event object. Previously we'd fail with an
14758       assertion; now we produce a log message. Related to bug 16248.
14760   o Minor features (geoip):
14761     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14762       Country database.
14764   o Minor bugfixes (compilation, backport from 0.2.7.6):
14765     - Fix a compilation warning with Clang 3.6: Do not check the
14766       presence of an address which can never be NULL. Fixes bug 17781.
14769 Changes in version 0.2.5.13 - 2017-03-03
14770   Tor 0.2.5.13 backports a number of security fixes from later Tor
14771   releases.  Anybody running Tor 0.2.5.13 or earlier should upgrade to
14772   this release, if for some reason they cannot upgrade to a later
14773   release series.
14775   Note that support for Tor 0.2.5.x is ending next year: we will not issue
14776   any fixes for the Tor 0.2.5.x series after 1 May 2018.  If you need
14777   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14779   o Directory authority changes (backport from 0.2.8.5-rc):
14780     - Urras is no longer a directory authority. Closes ticket 19271.
14782   o Directory authority changes (backport from 0.2.9.2-alpha):
14783     - The "Tonga" bridge authority has been retired; the new bridge
14784       authority is "Bifroest". Closes tickets 19728 and 19690.
14786   o Directory authority key updates (backport from 0.2.8.1-alpha):
14787     - Update the V3 identity key for the dannenberg directory authority:
14788       it was changed on 18 November 2015. Closes task 17906. Patch
14789       by "teor".
14791   o Major features (security fixes, backport from 0.2.9.4-alpha):
14792     - Prevent a class of security bugs caused by treating the contents
14793       of a buffer chunk as if they were a NUL-terminated string. At
14794       least one such bug seems to be present in all currently used
14795       versions of Tor, and would allow an attacker to remotely crash
14796       most Tor instances, especially those compiled with extra compiler
14797       hardening. With this defense in place, such bugs can't crash Tor,
14798       though we should still fix them as they occur. Closes ticket
14799       20384 (TROVE-2016-10-001).
14801   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14802     - Fix a bug in parsing that could cause clients to read a single
14803       byte past the end of an allocated region. This bug could be used
14804       to cause hardened clients (built with --enable-expensive-hardening)
14805       to crash if they tried to visit a hostile hidden service. Non-
14806       hardened clients are only affected depending on the details of
14807       their platform's memory allocator. Fixes bug 21018; bugfix on
14808       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14809       2016-12-002 and as CVE-2016-1254.
14811   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
14812     - Stop a crash that could occur when a client running with DNSPort
14813       received a query with multiple address types, and the first
14814       address type was not supported. Found and fixed by Scott Dial.
14815       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14817   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
14818     - Fix an error that could cause us to read 4 bytes before the
14819       beginning of an openssl string. This bug could be used to cause
14820       Tor to crash on systems with unusual malloc implementations, or
14821       systems with unusual hardening installed. Fixes bug 17404; bugfix
14822       on 0.2.3.6-alpha.
14824   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14825     - Avoid a difficult-to-trigger heap corruption attack when extending
14826       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14827       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14828       Reported by Guido Vranken.
14830   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14831     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14832       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14834   o Major bugfixes (guard selection, backport from 0.2.7.6):
14835     - Actually look at the Guard flag when selecting a new directory
14836       guard. When we implemented the directory guard design, we
14837       accidentally started treating all relays as if they have the Guard
14838       flag during guard selection, leading to weaker anonymity and worse
14839       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
14840       by Mohsen Imani.
14842   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14843     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14844       pointer to the previous (uninitialized) key value. The impact here
14845       should be limited to a difficult-to-trigger crash, if OpenSSL is
14846       running an engine that makes key generation failures possible, or
14847       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14848       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14849       Baishakhi Ray.
14851   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14852     - Fix an integer underflow bug when comparing malformed Tor
14853       versions. This bug could crash Tor when built with
14854       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14855       0.2.9.8, which were built with -ftrapv by default. In other cases
14856       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14857       on 0.0.8pre1. Found by OSS-Fuzz.
14859   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14860     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14861       zero size. Check size argument to memwipe() for underflow. Fixes
14862       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14863       patch by "teor".
14865   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14866     - Make Tor survive errors involving connections without a
14867       corresponding event object. Previously we'd fail with an
14868       assertion; now we produce a log message. Related to bug 16248.
14870   o Minor features (geoip):
14871     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14872       Country database.
14874   o Minor bugfixes (compilation, backport from 0.2.7.6):
14875     - Fix a compilation warning with Clang 3.6: Do not check the
14876       presence of an address which can never be NULL. Fixes bug 17781.
14878   o Minor bugfixes (crypto error-handling, backport from 0.2.7.2-alpha):
14879     - Check for failures from crypto_early_init, and refuse to continue.
14880       A previous typo meant that we could keep going with an
14881       uninitialized crypto library, and would have OpenSSL initialize
14882       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
14883       when implementing ticket 4900. Patch by "teor".
14885   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
14886     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
14887       a client authorized hidden service. Fixes bug 15823; bugfix
14888       on 0.2.1.6-alpha.
14891 Changes in version 0.2.4.28 - 2017-03-03
14892   Tor 0.2.4.28 backports a number of security fixes from later Tor
14893   releases.  Anybody running Tor 0.2.4.27 or earlier should upgrade to
14894   this release, if for some reason they cannot upgrade to a later
14895   release series.
14897   Note that support for Tor 0.2.4.x is ending soon: we will not issue
14898   any fixes for the Tor 0.2.4.x series after 1 August 2017.  If you need
14899   a Tor release series with long-term support, we recommend Tor 0.2.9.x.
14901   o Directory authority changes (backport from 0.2.8.5-rc):
14902     - Urras is no longer a directory authority. Closes ticket 19271.
14904   o Directory authority changes (backport from 0.2.9.2-alpha):
14905     - The "Tonga" bridge authority has been retired; the new bridge
14906       authority is "Bifroest". Closes tickets 19728 and 19690.
14908   o Directory authority key updates (backport from 0.2.8.1-alpha):
14909     - Update the V3 identity key for the dannenberg directory authority:
14910       it was changed on 18 November 2015. Closes task 17906. Patch
14911       by "teor".
14913   o Major features (security fixes, backport from 0.2.9.4-alpha):
14914     - Prevent a class of security bugs caused by treating the contents
14915       of a buffer chunk as if they were a NUL-terminated string. At
14916       least one such bug seems to be present in all currently used
14917       versions of Tor, and would allow an attacker to remotely crash
14918       most Tor instances, especially those compiled with extra compiler
14919       hardening. With this defense in place, such bugs can't crash Tor,
14920       though we should still fix them as they occur. Closes ticket
14921       20384 (TROVE-2016-10-001).
14923   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14924     - Fix a bug in parsing that could cause clients to read a single
14925       byte past the end of an allocated region. This bug could be used
14926       to cause hardened clients (built with --enable-expensive-hardening)
14927       to crash if they tried to visit a hostile hidden service. Non-
14928       hardened clients are only affected depending on the details of
14929       their platform's memory allocator. Fixes bug 21018; bugfix on
14930       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14931       2016-12-002 and as CVE-2016-1254.
14933   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
14934     - Fix an error that could cause us to read 4 bytes before the
14935       beginning of an openssl string. This bug could be used to cause
14936       Tor to crash on systems with unusual malloc implementations, or
14937       systems with unusual hardening installed. Fixes bug 17404; bugfix
14938       on 0.2.3.6-alpha.
14940   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14941     - Avoid a difficult-to-trigger heap corruption attack when extending
14942       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14943       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14944       Reported by Guido Vranken.
14946   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14947     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14948       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14950   o Major bugfixes (guard selection, backport from 0.2.7.6):
14951     - Actually look at the Guard flag when selecting a new directory
14952       guard. When we implemented the directory guard design, we
14953       accidentally started treating all relays as if they have the Guard
14954       flag during guard selection, leading to weaker anonymity and worse
14955       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
14956       by Mohsen Imani.
14958   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14959     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14960       pointer to the previous (uninitialized) key value. The impact here
14961       should be limited to a difficult-to-trigger crash, if OpenSSL is
14962       running an engine that makes key generation failures possible, or
14963       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14964       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14965       Baishakhi Ray.
14967   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14968     - Fix an integer underflow bug when comparing malformed Tor
14969       versions. This bug could crash Tor when built with
14970       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14971       0.2.9.8, which were built with -ftrapv by default. In other cases
14972       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14973       on 0.0.8pre1. Found by OSS-Fuzz.
14975   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14976     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14977       zero size. Check size argument to memwipe() for underflow. Fixes
14978       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14979       patch by "teor".
14981   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14982     - Make Tor survive errors involving connections without a
14983       corresponding event object. Previously we'd fail with an
14984       assertion; now we produce a log message. Related to bug 16248.
14986   o Minor features (DoS-resistance, backport from 0.2.7.1-alpha):
14987     - Make it harder for attackers to overload hidden services with
14988       introductions, by blocking multiple introduction requests on the
14989       same circuit. Resolves ticket 15515.
14991   o Minor features (geoip):
14992     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14993       Country database.
14995   o Minor bugfixes (compilation, backport from 0.2.7.6):
14996     - Fix a compilation warning with Clang 3.6: Do not check the
14997       presence of an address which can never be NULL. Fixes bug 17781.
14999   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
15000     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
15001       a client authorized hidden service. Fixes bug 15823; bugfix
15002       on 0.2.1.6-alpha.
15005 Changes in version 0.3.0.4-rc - 2017-03-01
15006   Tor 0.3.0.4-rc fixes some remaining bugs, large and small, in the
15007   0.3.0 release series, and introduces a few reliability features to
15008   keep them from coming back.
15010   This is the first release candidate in the Tor 0.3.0 series. If we
15011   find no new bugs or regressions here, the first stable 0.3.0 release
15012   will be nearly identical to it.
15014   o Major bugfixes (bridges):
15015     - When the same bridge is configured multiple times with the same
15016       identity, but at different address:port combinations, treat those
15017       bridge instances as separate guards. This fix restores the ability
15018       of clients to configure the same bridge with multiple pluggable
15019       transports. Fixes bug 21027; bugfix on 0.3.0.1-alpha.
15021   o Major bugfixes (hidden service directory v3):
15022     - Stop crashing on a failed v3 hidden service descriptor lookup
15023       failure. Fixes bug 21471; bugfixes on 0.3.0.1-alpha.
15025   o Major bugfixes (parsing):
15026     - When parsing a malformed content-length field from an HTTP
15027       message, do not read off the end of the buffer. This bug was a
15028       potential remote denial-of-service attack against Tor clients and
15029       relays. A workaround was released in October 2016, to prevent this
15030       bug from crashing Tor. This is a fix for the underlying issue,
15031       which should no longer matter (if you applied the earlier patch).
15032       Fixes bug 20894; bugfix on 0.2.0.16-alpha. Bug found by fuzzing
15033       using AFL (http://lcamtuf.coredump.cx/afl/).
15034     - Fix an integer underflow bug when comparing malformed Tor
15035       versions. This bug could crash Tor when built with
15036       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
15037       0.2.9.8, which were built with -ftrapv by default. In other cases
15038       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
15039       on 0.0.8pre1. Found by OSS-Fuzz.
15041   o Minor feature (protocol versioning):
15042     - Add new protocol version for proposal 224. HSIntro now advertises
15043       version "3-4" and HSDir version "1-2". Fixes ticket 20656.
15045   o Minor features (directory authorities):
15046     - Directory authorities now reject descriptors that claim to be
15047       malformed versions of Tor. Helps prevent exploitation of
15048       bug 21278.
15049     - Reject version numbers with components that exceed INT32_MAX.
15050       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
15051       Fixes bug 21450; bugfix on 0.0.8pre1.
15052     - Directory authorities now reject relays running versions
15053       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
15054       suffer from bug 20499 and don't keep their consensus cache
15055       up-to-date. Resolves ticket 20509.
15057   o Minor features (geoip):
15058     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
15059       Country database.
15061   o Minor features (reliability, crash):
15062     - Try better to detect problems in buffers where they might grow (or
15063       think they have grown) over 2 GB in size. Diagnostic for
15064       bug 21369.
15066   o Minor features (testing):
15067     - During 'make test-network-all', if tor logs any warnings, ask
15068       chutney to output them. Requires a recent version of chutney with
15069       the 21572 patch. Implements 21570.
15071   o Minor bugfixes (certificate expiration time):
15072     - Avoid using link certificates that don't become valid till some
15073       time in the future. Fixes bug 21420; bugfix on 0.2.4.11-alpha
15075   o Minor bugfixes (code correctness):
15076     - Repair a couple of (unreachable or harmless) cases of the risky
15077       comparison-by-subtraction pattern that caused bug 21278.
15078     - Remove a redundant check for the UseEntryGuards option from the
15079       options_transition_affects_guards() function. Fixes bug 21492;
15080       bugfix on 0.3.0.1-alpha.
15082   o Minor bugfixes (directory mirrors):
15083     - Allow relays to use directory mirrors without a DirPort: these
15084       relays need to be contacted over their ORPorts using a begindir
15085       connection. Fixes one case of bug 20711; bugfix on 0.2.8.2-alpha.
15086     - Clarify the message logged when a remote relay is unexpectedly
15087       missing an ORPort or DirPort: users were confusing this with a
15088       local port. Fixes another case of bug 20711; bugfix
15089       on 0.2.8.2-alpha.
15091   o Minor bugfixes (guards):
15092     - Don't warn about a missing guard state on timeout-measurement
15093       circuits: they aren't supposed to be using guards. Fixes an
15094       instance of bug 21007; bugfix on 0.3.0.1-alpha.
15095     - Silence a BUG() warning when attempting to use a guard whose
15096       descriptor we don't know, and make this scenario less likely to
15097       happen. Fixes bug 21415; bugfix on 0.3.0.1-alpha.
15099   o Minor bugfixes (hidden service):
15100     - Pass correct buffer length when encoding legacy ESTABLISH_INTRO
15101       cells. Previously, we were using sizeof() on a pointer, instead of
15102       the real destination buffer. Fortunately, that value was only used
15103       to double-check that there was enough room--which was already
15104       enforced elsewhere. Fixes bug 21553; bugfix on 0.3.0.1-alpha.
15106   o Minor bugfixes (testing):
15107     - Fix Raspbian build issues related to missing socket errno in
15108       test_util.c. Fixes bug 21116; bugfix on 0.2.8.2. Patch
15109       by "hein".
15110     - Rename "make fuzz" to "make test-fuzz-corpora", since it doesn't
15111       actually fuzz anything. Fixes bug 21447; bugfix on 0.3.0.3-alpha.
15112     - Use bash in src/test/test-network.sh. This ensures we reliably
15113       call chutney's newer tools/test-network.sh when available. Fixes
15114       bug 21562; bugfix on 0.2.9.1-alpha.
15116   o Documentation:
15117     - Small fixes to the fuzzing documentation. Closes ticket 21472.
15120 Changes in version 0.2.9.10 - 2017-03-01
15121   Tor 0.2.9.10 backports a security fix from later Tor release.  It also
15122   includes fixes for some major issues affecting directory authorities,
15123   LibreSSL compatibility, and IPv6 correctness.
15125   The Tor 0.2.9.x release series is now marked as a long-term-support
15126   series.  We intend to backport security fixes to 0.2.9.x until at
15127   least January of 2020.
15129   o Major bugfixes (directory authority, 0.3.0.3-alpha):
15130     - During voting, when marking a relay as a probable sybil, do not
15131       clear its BadExit flag: sybils can still be bad in other ways
15132       too. (We still clear the other flags.) Fixes bug 21108; bugfix
15133       on 0.2.0.13-alpha.
15135   o Major bugfixes (IPv6 Exits, backport from 0.3.0.3-alpha):
15136     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
15137       any IPv6 addresses. Instead, only reject a port over IPv6 if the
15138       exit policy rejects that port on more than an IPv6 /16 of
15139       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
15140       which rejected a relay's own IPv6 address by default. Fixes bug
15141       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
15143   o Major bugfixes (parsing, also in 0.3.0.4-rc):
15144     - Fix an integer underflow bug when comparing malformed Tor
15145       versions. This bug could crash Tor when built with
15146       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
15147       0.2.9.8, which were built with -ftrapv by default. In other cases
15148       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
15149       on 0.0.8pre1. Found by OSS-Fuzz.
15151   o Minor features (directory authorities, also in 0.3.0.4-rc):
15152     - Directory authorities now reject descriptors that claim to be
15153       malformed versions of Tor. Helps prevent exploitation of
15154       bug 21278.
15155     - Reject version numbers with components that exceed INT32_MAX.
15156       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
15157       Fixes bug 21450; bugfix on 0.0.8pre1.
15159   o Minor features (geoip):
15160     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
15161       Country database.
15163   o Minor features (portability, compilation, backport from 0.3.0.3-alpha):
15164     - Autoconf now checks to determine if OpenSSL structures are opaque,
15165       instead of explicitly checking for OpenSSL version numbers. Part
15166       of ticket 21359.
15167     - Support building with recent LibreSSL code that uses opaque
15168       structures. Closes ticket 21359.
15170   o Minor bugfixes (code correctness, also in 0.3.0.4-rc):
15171     - Repair a couple of (unreachable or harmless) cases of the risky
15172       comparison-by-subtraction pattern that caused bug 21278.
15174   o Minor bugfixes (tor-resolve, backport from 0.3.0.3-alpha):
15175     - The tor-resolve command line tool now rejects hostnames over 255
15176       characters in length. Previously, it would silently truncate them,
15177       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
15178       Patch by "junglefowl".
15181 Changes in version 0.3.0.3-alpha - 2017-02-03
15182   Tor 0.3.0.3-alpha fixes a few significant bugs introduced over the
15183   0.3.0.x development series, including some that could cause
15184   authorities to behave badly. There is also a fix for a longstanding
15185   bug that could prevent IPv6 exits from working. Tor 0.3.0.3-alpha also
15186   includes some smaller features and bugfixes.
15188   The Tor 0.3.0.x release series is now in patch-freeze: no additional
15189   features will be considered for inclusion in 0.3.0.x. We suspect that
15190   some bugs will probably remain, however, and we encourage people to
15191   test this release.
15193   o Major bugfixes (directory authority):
15194     - During voting, when marking a relay as a probable sybil, do not
15195       clear its BadExit flag: sybils can still be bad in other ways
15196       too. (We still clear the other flags.) Fixes bug 21108; bugfix
15197       on 0.2.0.13-alpha.
15198     - When deciding whether we have just found a router to be reachable,
15199       do not penalize it for not having performed an Ed25519 link
15200       handshake if it does not claim to support an Ed25519 handshake.
15201       Previously, we would treat such relays as non-running. Fixes bug
15202       21107; bugfix on 0.3.0.1-alpha.
15204   o Major bugfixes (entry guards):
15205     - Stop trying to build circuits through entry guards for which we
15206       have no descriptor. Also, stop crashing in the case that we *do*
15207       accidentally try to build a circuit in such a state. Fixes bug
15208       21242; bugfix on 0.3.0.1-alpha.
15210   o Major bugfixes (IPv6 Exits):
15211     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
15212       any IPv6 addresses. Instead, only reject a port over IPv6 if the
15213       exit policy rejects that port on more than an IPv6 /16 of
15214       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
15215       which rejected a relay's own IPv6 address by default. Fixes bug
15216       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
15218   o Minor feature (client):
15219     - Enable IPv6 traffic on the SocksPort by default. To disable this,
15220       a user will have to specify "NoIPv6Traffic". Closes ticket 21269.
15222   o Minor feature (fallback scripts):
15223     - Add a check_existing mode to updateFallbackDirs.py, which checks
15224       if fallbacks in the hard-coded list are working. Closes ticket
15225       20174. Patch by haxxpop.
15227   o Minor features (ciphersuite selection):
15228     - Clients now advertise a list of ciphersuites closer to the ones
15229       preferred by Firefox. Closes part of ticket 15426.
15230     - Allow relays to accept a wider range of ciphersuites, including
15231       chacha20-poly1305 and AES-CCM. Closes the other part of 15426.
15233   o Minor features (controller, configuration):
15234     - Each of the *Port options, such as SocksPort, ORPort, ControlPort,
15235       and so on, now comes with a __*Port variant that will not be saved
15236       to the torrc file by the controller's SAVECONF command. This
15237       change allows TorBrowser to set up a single-use domain socket for
15238       each time it launches Tor. Closes ticket 20956.
15239     - The GETCONF command can now query options that may only be
15240       meaningful in context-sensitive lists. This allows the controller
15241       to query the mixed SocksPort/__SocksPort style options introduced
15242       in feature 20956. Implements ticket 21300.
15244   o Minor features (portability, compilation):
15245     - Autoconf now checks to determine if OpenSSL structures are opaque,
15246       instead of explicitly checking for OpenSSL version numbers. Part
15247       of ticket 21359.
15248     - Support building with recent LibreSSL code that uses opaque
15249       structures. Closes ticket 21359.
15251   o Minor features (relay):
15252     - We now allow separation of exit and relay traffic to different
15253       source IP addresses, using the OutboundBindAddressExit and
15254       OutboundBindAddressOR options respectively. Closes ticket 17975.
15255       Written by Michael Sonntag.
15257   o Minor bugfix (logging):
15258     - Don't recommend the use of Tor2web in non-anonymous mode.
15259       Recommending Tor2web is a bad idea because the client loses all
15260       anonymity. Tor2web should only be used in specific cases by users
15261       who *know* and understand the issues. Fixes bug 21294; bugfix
15262       on 0.2.9.3-alpha.
15264   o Minor bugfixes (client):
15265     - Always recover from failures in extend_info_from_node(), in an
15266       attempt to prevent any recurrence of bug 21242. Fixes bug 21372;
15267       bugfix on 0.2.3.1-alpha.
15269   o Minor bugfixes (client, entry guards):
15270     - Fix a bug warning (with backtrace) when we fail a channel that
15271       circuits to fallback directories on it. Fixes bug 21128; bugfix
15272       on 0.3.0.1-alpha.
15273     - Fix a spurious bug warning (with backtrace) when removing an
15274       expired entry guard. Fixes bug 21129; bugfix on 0.3.0.1-alpha.
15275     - Fix a bug of the new guard algorithm where tor could stall for up
15276       to 10 minutes before retrying a guard after a long period of no
15277       network. Fixes bug 21052; bugfix on 0.3.0.1-alpha.
15278     - Do not try to build circuits until we have descriptors for our
15279       primary entry guards. Related to fix for bug 21242.
15281   o Minor bugfixes (configure, autoconf):
15282     - Rename the configure option --enable-expensive-hardening to
15283       --enable-fragile-hardening. Expensive hardening makes the tor
15284       daemon abort when some kinds of issues are detected. Thus, it
15285       makes tor more at risk of remote crashes but safer against RCE or
15286       heartbleed bug category. We now try to explain this issue in a
15287       message from the configure script. Fixes bug 21290; bugfix
15288       on 0.2.5.4-alpha.
15290   o Minor bugfixes (controller):
15291     - Restore the (deprecated) DROPGUARDS controller command. Fixes bug
15292       20824; bugfix on 0.3.0.1-alpha.
15294   o Minor bugfixes (hidden service):
15295     - Clean up the code for expiring intro points with no associated
15296       circuits. It was causing, rarely, a service with some expiring
15297       introduction points to not open enough additional introduction
15298       points. Fixes part of bug 21302; bugfix on 0.2.7.2-alpha.
15299     - Stop setting the torrc option HiddenServiceStatistics to "0" just
15300       because we're not a bridge or relay. Instead, we preserve whatever
15301       value the user set (or didn't set). Fixes bug 21150; bugfix
15302       on 0.2.6.2-alpha.
15303     - Resolve two possible underflows which could lead to creating and
15304       closing a lot of introduction point circuits in a non-stop loop.
15305       Fixes bug 21302; bugfix on 0.2.7.2-alpha.
15307   o Minor bugfixes (portability):
15308     - Use "OpenBSD" compiler macro instead of "OPENBSD" or "__OpenBSD__".
15309       It is supported by OpenBSD itself, and also by most OpenBSD
15310       variants (such as Bitrig). Fixes bug 20980; bugfix
15311       on 0.1.2.1-alpha.
15312     - When mapping a file of length greater than SIZE_MAX, do not
15313       silently truncate its contents. This issue could occur on 32 bit
15314       systems with large file support and files which are larger than 4
15315       GB. Fixes bug 21134; bugfix on 0.3.0.1-alpha.
15317   o Minor bugfixes (tor-resolve):
15318     - The tor-resolve command line tool now rejects hostnames over 255
15319       characters in length. Previously, it would silently truncate them,
15320       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
15321       Patch by "junglefowl".
15323   o Minor bugfixes (Windows services):
15324     - Be sure to initialize the monotonic time subsystem before using
15325       it, even when running as an NT service. Fixes bug 21356; bugfix
15326       on 0.2.9.1-alpha.
15329 Changes in version 0.3.0.2-alpha - 2017-01-23
15330   Tor 0.3.0.2-alpha fixes a denial-of-service bug where an attacker could
15331   cause relays and clients to crash, even if they were not built with
15332   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
15333   versions, and also affects 0.3.0.1-alpha: all relays running an affected
15334   version should upgrade.
15336   Tor 0.3.0.2-alpha also improves how exit relays and clients handle DNS
15337   time-to-live values, makes directory authorities enforce the 1-to-1
15338   mapping of relay RSA identity keys to ED25519 identity keys, fixes a
15339   client-side onion service reachability bug, does better at selecting
15340   the set of fallback directories, and more.
15342   o Major bugfixes (security, also in 0.2.9.9):
15343     - Downgrade the "-ftrapv" option from "always on" to "only on when
15344       --enable-expensive-hardening is provided."  This hardening option, like
15345       others, can turn survivable bugs into crashes--and having it on by
15346       default made a (relatively harmless) integer overflow bug into a
15347       denial-of-service bug. Fixes bug 21278 (TROVE-2017-001); bugfix on
15348       0.2.9.1-alpha.
15350   o Major features (security):
15351     - Change the algorithm used to decide DNS TTLs on client and server
15352       side, to better resist DNS-based correlation attacks like the
15353       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
15354       Feamster. Now relays only return one of two possible DNS TTL
15355       values, and clients are willing to believe DNS TTL values up to 3
15356       hours long. Closes ticket 19769.
15358   o Major features (directory authority, security):
15359     - The default for AuthDirPinKeys is now 1: directory authorities
15360       will reject relays where the RSA identity key matches a previously
15361       seen value, but the Ed25519 key has changed. Closes ticket 18319.
15363   o Major bugfixes (client, guard, crash):
15364     - In circuit_get_global_origin_list(), return the actual list of
15365       origin circuits. The previous version of this code returned the
15366       list of all the circuits, and could have caused strange bugs,
15367       including possible crashes. Fixes bug 21118; bugfix
15368       on 0.3.0.1-alpha.
15370   o Major bugfixes (client, onion service, also in 0.2.9.9):
15371     - Fix a client-side onion service reachability bug, where multiple
15372       socks requests to an onion service (or a single slow request)
15373       could cause us to mistakenly mark some of the service's
15374       introduction points as failed, and we cache that failure so
15375       eventually we run out and can't reach the service. Also resolves a
15376       mysterious "Remote server sent bogus reason code 65021" log
15377       warning. The bug was introduced in ticket 17218, where we tried to
15378       remember the circuit end reason as a uint16_t, which mangled
15379       negative values. Partially fixes bug 21056 and fixes bug 20307;
15380       bugfix on 0.2.8.1-alpha.
15382   o Major bugfixes (DNS):
15383     - Fix a bug that prevented exit nodes from caching DNS records for
15384       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
15386   o Minor features (controller):
15387     - Add "GETINFO sr/current" and "GETINFO sr/previous" keys, to expose
15388       shared-random values to the controller. Closes ticket 19925.
15390   o Minor features (entry guards):
15391     - Add UseEntryGuards to TEST_OPTIONS_DEFAULT_VALUES in order to not
15392       break regression tests.
15393     - Require UseEntryGuards when UseBridges is set, in order to make
15394       sure bridges aren't bypassed. Resolves ticket 20502.
15396   o Minor features (fallback directories):
15397     - Select 200 fallback directories for each release. Closes
15398       ticket 20881.
15399     - Allow 3 fallback relays per operator, which is safe now that we
15400       are choosing 200 fallback relays. Closes ticket 20912.
15401     - Exclude relays affected by bug 20499 from the fallback list.
15402       Exclude relays from the fallback list if they are running versions
15403       known to be affected by bug 20499, or if in our tests they deliver
15404       a stale consensus (i.e. one that expired more than 24 hours ago).
15405       Closes ticket 20539.
15406     - Reduce the minimum fallback bandwidth to 1 MByte/s. Part of
15407       ticket 18828.
15408     - Require fallback directories to have the same address and port for
15409       7 days (now that we have enough relays with this stability).
15410       Relays whose OnionOO stability timer is reset on restart by bug
15411       18050 should upgrade to Tor 0.2.8.7 or later, which has a fix for
15412       this issue. Closes ticket 20880; maintains short-term fix
15413       in 0.2.8.2-alpha.
15414     - Require fallbacks to have flags for 90% of the time (weighted
15415       decaying average), rather than 95%. This allows at least 73% of
15416       clients to bootstrap in the first 5 seconds without contacting an
15417       authority. Part of ticket 18828.
15418     - Annotate updateFallbackDirs.py with the bandwidth and consensus
15419       weight for each candidate fallback. Closes ticket 20878.
15420     - Make it easier to change the output sort order of fallbacks.
15421       Closes ticket 20822.
15422     - Display the relay fingerprint when downloading consensuses from
15423       fallbacks. Closes ticket 20908.
15425   o Minor features (geoip, also in 0.2.9.9):
15426     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
15427       Country database.
15429   o Minor features (next-gen onion service directories):
15430     - Remove the "EnableOnionServicesV3" consensus parameter that we
15431       introduced in 0.3.0.1-alpha: relays are now always willing to act
15432       as v3 onion service directories. Resolves ticket 19899.
15434   o Minor features (linting):
15435     - Enhance the changes file linter to warn on Tor versions that are
15436       prefixed with "tor-". Closes ticket 21096.
15438   o Minor features (logging):
15439     - In several places, describe unset ed25519 keys as "<unset>",
15440       rather than the scary "AAAAAAAA...AAA". Closes ticket 21037.
15442   o Minor bugfix (control protocol):
15443     - The reply to a "GETINFO config/names" request via the control
15444       protocol now spells the type "Dependent" correctly. This is a
15445       breaking change in the control protocol. (The field seems to be
15446       ignored by the most common known controllers.) Fixes bug 18146;
15447       bugfix on 0.1.1.4-alpha.
15449   o Minor bugfixes (bug resilience):
15450     - Fix an unreachable size_t overflow in base64_decode(). Fixes bug
15451       19222; bugfix on 0.2.0.9-alpha. Found by Guido Vranken; fixed by
15452       Hans Jerry Illikainen.
15454   o Minor bugfixes (build):
15455     - Replace obsolete Autoconf macros with their modern equivalent and
15456       prevent similar issues in the future. Fixes bug 20990; bugfix
15457       on 0.1.0.1-rc.
15459   o Minor bugfixes (client, guards):
15460     - Fix bug where Tor would think that there are circuits waiting for
15461       better guards even though those circuits have been freed. Fixes
15462       bug 21142; bugfix on 0.3.0.1-alpha.
15464   o Minor bugfixes (config):
15465     - Don't assert on startup when trying to get the options list and
15466       LearnCircuitBuildTimeout is set to 0: we are currently parsing the
15467       options so of course they aren't ready yet. Fixes bug 21062;
15468       bugfix on 0.2.9.3-alpha.
15470   o Minor bugfixes (controller):
15471     - Make the GETINFO interface for inquiring about entry guards
15472       support the new guards backend. Fixes bug 20823; bugfix
15473       on 0.3.0.1-alpha.
15475   o Minor bugfixes (dead code):
15476     - Remove a redundant check for PidFile changes at runtime in
15477       options_transition_allowed(): this check is already performed
15478       regardless of whether the sandbox is active. Fixes bug 21123;
15479       bugfix on 0.2.5.4-alpha.
15481   o Minor bugfixes (documentation):
15482     - Update the tor manual page to document every option that can not
15483       be changed while tor is running. Fixes bug 21122.
15485   o Minor bugfixes (fallback directories):
15486     - Stop failing when a relay has no uptime data in
15487       updateFallbackDirs.py. Fixes bug 20945; bugfix on 0.2.8.1-alpha.
15488     - Avoid checking fallback candidates' DirPorts if they are down in
15489       OnionOO. When a relay operator has multiple relays, this
15490       prioritizes relays that are up over relays that are down. Fixes
15491       bug 20926; bugfix on 0.2.8.3-alpha.
15492     - Stop failing when OUTPUT_COMMENTS is True in updateFallbackDirs.py.
15493       Fixes bug 20877; bugfix on 0.2.8.3-alpha.
15495   o Minor bugfixes (guards, bootstrapping):
15496     - When connecting to a directory guard during bootstrap, do not mark
15497       the guard as successful until we receive a good-looking directory
15498       response from it. Fixes bug 20974; bugfix on 0.3.0.1-alpha.
15500   o Minor bugfixes (onion services):
15501     - Fix the config reload pruning of old vs new services so it
15502       actually works when both ephemeral and non-ephemeral services are
15503       configured. Fixes bug 21054; bugfix on 0.3.0.1-alpha.
15504     - Allow the number of introduction points to be as low as 0, rather
15505       than as low as 3. Fixes bug 21033; bugfix on 0.2.7.2-alpha.
15507   o Minor bugfixes (IPv6):
15508     - Make IPv6-using clients try harder to find an IPv6 directory
15509       server. Fixes bug 20999; bugfix on 0.2.8.2-alpha.
15510     - When IPv6 addresses have not been downloaded yet (microdesc
15511       consensus documents don't list relay IPv6 addresses), use hard-
15512       coded addresses for authorities, fallbacks, and configured
15513       bridges. Now IPv6-only clients can use microdescriptors. Fixes bug
15514       20996; bugfix on b167e82 from 19608 in 0.2.8.5-alpha.
15516   o Minor bugfixes (memory leaks):
15517     - Fix a memory leak when configuring hidden services. Fixes bug
15518       20987; bugfix on 0.3.0.1-alpha.
15520   o Minor bugfixes (portability, also in 0.2.9.9):
15521     - Avoid crashing when Tor is built using headers that contain
15522       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
15523       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
15524       on 0.2.9.1-alpha.
15525     - Fix Libevent detection on platforms without Libevent 1 headers
15526       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
15528   o Minor bugfixes (relay):
15529     - Honor DataDirectoryGroupReadable when tor is a relay. Previously,
15530       initializing the keys would reset the DataDirectory to 0700
15531       instead of 0750 even if DataDirectoryGroupReadable was set to 1.
15532       Fixes bug 19953; bugfix on 0.0.2pre16. Patch by "redfish".
15534   o Minor bugfixes (testing):
15535     - Remove undefined behavior from the backtrace generator by removing
15536       its signal handler. Fixes bug 21026; bugfix on 0.2.5.2-alpha.
15538   o Minor bugfixes (unit tests):
15539     - Allow the unit tests to pass even when DNS lookups of bogus
15540       addresses do not fail as expected. Fixes bug 20862 and 20863;
15541       bugfix on unit tests introduced in 0.2.8.1-alpha
15542       through 0.2.9.4-alpha.
15544   o Code simplification and refactoring:
15545     - Refactor code to manipulate global_origin_circuit_list into
15546       separate functions. Closes ticket 20921.
15548   o Documentation (formatting):
15549     - Clean up formatting of tor.1 man page and HTML doc, where <pre>
15550       blocks were incorrectly appearing. Closes ticket 20885.
15552   o Documentation (man page):
15553     - Clarify many options in tor.1 and add some min/max values for
15554       HiddenService options. Closes ticket 21058.
15557 Changes in version 0.2.9.9 - 2017-01-23
15558   Tor 0.2.9.9 fixes a denial-of-service bug where an attacker could
15559   cause relays and clients to crash, even if they were not built with
15560   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
15561   versions, and also affects 0.3.0.1-alpha: all relays running an affected
15562   version should upgrade.
15564   This release also resolves a client-side onion service reachability
15565   bug, and resolves a pair of small portability issues.
15567   o Major bugfixes (security):
15568     - Downgrade the "-ftrapv" option from "always on" to "only on when
15569       --enable-expensive-hardening is provided." This hardening option,
15570       like others, can turn survivable bugs into crashes -- and having
15571       it on by default made a (relatively harmless) integer overflow bug
15572       into a denial-of-service bug. Fixes bug 21278 (TROVE-2017-001);
15573       bugfix on 0.2.9.1-alpha.
15575   o Major bugfixes (client, onion service):
15576     - Fix a client-side onion service reachability bug, where multiple
15577       socks requests to an onion service (or a single slow request)
15578       could cause us to mistakenly mark some of the service's
15579       introduction points as failed, and we cache that failure so
15580       eventually we run out and can't reach the service. Also resolves a
15581       mysterious "Remote server sent bogus reason code 65021" log
15582       warning. The bug was introduced in ticket 17218, where we tried to
15583       remember the circuit end reason as a uint16_t, which mangled
15584       negative values. Partially fixes bug 21056 and fixes bug 20307;
15585       bugfix on 0.2.8.1-alpha.
15587   o Minor features (geoip):
15588     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
15589       Country database.
15591   o Minor bugfixes (portability):
15592     - Avoid crashing when Tor is built using headers that contain
15593       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
15594       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
15595       on 0.2.9.1-alpha.
15596     - Fix Libevent detection on platforms without Libevent 1 headers
15597       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
15600 Changes in version 0.3.0.1-alpha - 2016-12-19
15601   Tor 0.3.0.1-alpha is the first alpha release in the 0.3.0 development
15602   series. It strengthens Tor's link and circuit handshakes by
15603   identifying relays by their Ed25519 keys, improves the algorithm that
15604   clients use to choose and maintain their list of guards, and includes
15605   additional backend support for the next-generation hidden service
15606   design. It also contains numerous other small features and
15607   improvements to security, correctness, and performance.
15609   Below are the changes since 0.2.9.8.
15611   o Major features (guard selection algorithm):
15612     - Tor's guard selection algorithm has been redesigned from the
15613       ground up, to better support unreliable networks and restrictive
15614       sets of entry nodes, and to better resist guard-capture attacks by
15615       hostile local networks. Implements proposal 271; closes
15616       ticket 19877.
15618   o Major features (next-generation hidden services):
15619     - Relays can now handle v3 ESTABLISH_INTRO cells as specified by
15620       prop224 aka "Next Generation Hidden Services". Service and clients
15621       don't use this functionality yet. Closes ticket 19043. Based on
15622       initial code by Alec Heifetz.
15623     - Relays now support the HSDir version 3 protocol, so that they can
15624       can store and serve v3 descriptors. This is part of the next-
15625       generation onion service work detailed in proposal 224. Closes
15626       ticket 17238.
15628   o Major features (protocol, ed25519 identity keys):
15629     - Relays now use Ed25519 to prove their Ed25519 identities and to
15630       one another, and to clients. This algorithm is faster and more
15631       secure than the RSA-based handshake we've been doing until now.
15632       Implements the second big part of proposal 220; Closes
15633       ticket 15055.
15634     - Clients now support including Ed25519 identity keys in the EXTEND2
15635       cells they generate. By default, this is controlled by a consensus
15636       parameter, currently disabled. You can turn this feature on for
15637       testing by setting ExtendByEd25519ID in your configuration. This
15638       might make your traffic appear different than the traffic
15639       generated by other users, however. Implements part of ticket
15640       15056; part of proposal 220.
15641     - Relays now understand requests to extend to other relays by their
15642       Ed25519 identity keys. When an Ed25519 identity key is included in
15643       an EXTEND2 cell, the relay will only extend the circuit if the
15644       other relay can prove ownership of that identity. Implements part
15645       of ticket 15056; part of proposal 220.
15647   o Major bugfixes (scheduler):
15648     - Actually compare circuit policies in ewma_cmp_cmux(). This bug
15649       caused the channel scheduler to behave more or less randomly,
15650       rather than preferring channels with higher-priority circuits.
15651       Fixes bug 20459; bugfix on 0.2.6.2-alpha.
15653   o Minor features (controller):
15654     - When HSFETCH arguments cannot be parsed, say "Invalid argument"
15655       rather than "unrecognized." Closes ticket 20389; patch from
15656       Ivan Markin.
15658   o Minor features (diagnostic, directory client):
15659     - Warn when we find an unexpected inconsistency in directory
15660       download status objects. Prevents some negative consequences of
15661       bug 20593.
15663   o Minor features (directory authority):
15664     - Add a new authority-only AuthDirTestEd25519LinkKeys option (on by
15665       default) to control whether authorities should try to probe relays
15666       by their Ed25519 link keys. This option will go away in a few
15667       releases--unless we encounter major trouble in our ed25519 link
15668       protocol rollout, in which case it will serve as a safety option.
15670   o Minor features (directory cache):
15671     - Relays and bridges will now refuse to serve the consensus they
15672       have if they know it is too old for a client to use. Closes
15673       ticket 20511.
15675   o Minor features (ed25519 link handshake):
15676     - Advertise support for the ed25519 link handshake using the
15677       subprotocol-versions mechanism, so that clients can tell which
15678       relays can identity themselves by Ed25519 ID. Closes ticket 20552.
15680   o Minor features (fingerprinting resistance, authentication):
15681     - Extend the length of RSA keys used for TLS link authentication to
15682       2048 bits. (These weren't used for forward secrecy; for forward
15683       secrecy, we used P256.) Closes ticket 13752.
15685   o Minor features (infrastructure):
15686     - Implement smartlist_add_strdup() function. Replaces the use of
15687       smartlist_add(sl, tor_strdup(str)). Closes ticket 20048.
15689   o Minor bugfixes (client):
15690     - When clients that use bridges start up with a cached consensus on
15691       disk, they were ignoring it and downloading a new one. Now they
15692       use the cached one. Fixes bug 20269; bugfix on 0.2.3.12-alpha.
15694   o Minor bugfixes (configuration):
15695     - Accept non-space whitespace characters after the severity level in
15696       the `Log` option. Fixes bug 19965; bugfix on 0.2.1.1-alpha.
15697     - Support "TByte" and "TBytes" units in options given in bytes.
15698       "TB", "terabyte(s)", "TBit(s)" and "terabit(s)" were already
15699       supported. Fixes bug 20622; bugfix on 0.2.0.14-alpha.
15701   o Minor bugfixes (consensus weight):
15702     - Add new consensus method that initializes bw weights to 1 instead
15703       of 0. This prevents a zero weight from making it all the way to
15704       the end (happens in small testing networks) and causing an error.
15705       Fixes bug 14881; bugfix on 0.2.2.17-alpha.
15707   o Minor bugfixes (descriptors):
15708     - Correctly recognise downloaded full descriptors as valid, even
15709       when using microdescriptors as circuits. This affects clients with
15710       FetchUselessDescriptors set, and may affect directory authorities.
15711       Fixes bug 20839; bugfix on 0.2.3.2-alpha.
15713   o Minor bugfixes (directory system):
15714     - Download all consensus flavors, descriptors, and authority
15715       certificates when FetchUselessDescriptors is set, regardless of
15716       whether tor is a directory cache or not. Fixes bug 20667; bugfix
15717       on all recent tor versions.
15718     - Bridges and relays now use microdescriptors (like clients do)
15719       rather than old-style router descriptors. Now bridges will blend
15720       in with clients in terms of the circuits they build. Fixes bug
15721       6769; bugfix on 0.2.3.2-alpha.
15723   o Minor bugfixes (ed25519 certificates):
15724     - Correctly interpret ed25519 certificates that would expire some
15725       time after 19 Jan 2038. Fixes bug 20027; bugfix on 0.2.7.2-alpha.
15727   o Minor bugfixes (hidden services):
15728     - Stop ignoring misconfigured hidden services. Instead, refuse to
15729       start tor until the misconfigurations have been corrected. Fixes
15730       bug 20559; bugfix on multiple commits in 0.2.7.1-alpha
15731       and earlier.
15733   o Minor bugfixes (memory leak at exit):
15734     - Fix a small harmless memory leak at exit of the previously unused
15735       RSA->Ed identity cross-certificate. Fixes bug 17779; bugfix
15736       on 0.2.7.2-alpha.
15738   o Minor bugfixes (util):
15739     - When finishing writing a file to disk, if we were about to replace
15740       the file with the temporary file created before and we fail to
15741       replace it, remove the temporary file so it doesn't stay on disk.
15742       Fixes bug 20646; bugfix on 0.2.0.7-alpha. Patch by fk.
15744   o Minor bugfixes (Windows):
15745     - Check for getpagesize before using it to mmap files. This fixes
15746       compilation in some MinGW environments. Fixes bug 20530; bugfix on
15747       0.1.2.1-alpha. Reported by "ice".
15749   o Code simplification and refactoring:
15750     - Abolish all global guard context in entrynodes.c; replace with new
15751       guard_selection_t structure as preparation for proposal 271.
15752       Closes ticket 19858.
15753     - Introduce rend_service_is_ephemeral() that tells if given onion
15754       service is ephemeral. Replace unclear NULL-checkings for service
15755       directory with this function. Closes ticket 20526.
15756     - Extract magic numbers in circuituse.c into defined variables.
15757     - Refactor circuit_is_available_for_use to remove unnecessary check.
15758     - Refactor circuit_predict_and_launch_new for readability and
15759       testability. Closes ticket 18873.
15760     - Refactor large if statement in purpose_needs_anonymity to use
15761       switch statement instead. Closes part of ticket 20077.
15762     - Refactor the hashing API to return negative values for errors, as
15763       is done as throughout the codebase. Closes ticket 20717.
15764     - Remove data structures that were used to index or_connection
15765       objects by their RSA identity digests. These structures are fully
15766       redundant with the similar structures used in the
15767       channel abstraction.
15768     - Remove duplicate code in the channel_write_*cell() functions.
15769       Closes ticket 13827; patch from Pingl.
15770     - Remove redundant behavior of is_sensitive_dir_purpose, refactor to
15771       use only purpose_needs_anonymity. Closes part of ticket 20077.
15772     - The code to generate and parse EXTEND and EXTEND2 cells has been
15773       replaced with code automatically generated by the
15774       "trunnel" utility.
15776   o Documentation:
15777     - Include the "TBits" unit in Tor's man page. Fixes part of bug
15778       20622; bugfix on 0.2.5.1-alpha.
15779     - Change '1' to 'weight_scale' in consensus bw weights calculation
15780       comments, as that is reality. Closes ticket 20273. Patch
15781       from pastly.
15782     - Correct the value for AuthDirGuardBWGuarantee in the manpage, from
15783       250 KBytes to 2 MBytes. Fixes bug 20435; bugfix
15784       on 0.2.5.6-alpha.
15785     - Stop the man page from incorrectly stating that HiddenServiceDir
15786       must already exist. Fixes 20486.
15787     - Clarify that when ClientRejectInternalAddresses is enabled (which
15788       is the default), multicast DNS hostnames for machines on the local
15789       network (of the form *.local) are also rejected. Closes
15790       ticket 17070.
15792   o Removed features:
15793     - The AuthDirMaxServersPerAuthAddr option no longer exists: The same
15794       limit for relays running on a single IP applies to authority IP
15795       addresses as well as to non-authority IP addresses. Closes
15796       ticket 20960.
15797     - The UseDirectoryGuards torrc option no longer exists: all users
15798       that use entry guards will also use directory guards. Related to
15799       proposal 271; implements part of ticket 20831.
15801   o Testing:
15802     - New unit tests for tor_htonll(). Closes ticket 19563. Patch
15803       from "overcaffeinated".
15804     - Perform the coding style checks when running the tests and fail
15805       when coding style violations are found. Closes ticket 5500.
15806     - Add tests for networkstatus_compute_bw_weights_v10.
15807     - Add unit tests circuit_predict_and_launch_new.
15808     - Extract dummy_origin_circuit_new so it can be used by other
15809       test functions.
15812 Changes in version 0.2.8.12 - 2016-12-19
15813   Tor 0.2.8.12 backports a fix for a medium-severity issue (bug 21018
15814   below) where Tor clients could crash when attempting to visit a
15815   hostile hidden service. Clients are recommended to upgrade as packages
15816   become available for their systems.
15818   It also includes an updated list of fallback directories, backported
15819   from 0.2.9.
15821   Now that the Tor 0.2.9 series is stable, only major bugfixes will be
15822   backported to 0.2.8 in the future.
15824   o Major bugfixes (parsing, security, backported from 0.2.9.8):
15825     - Fix a bug in parsing that could cause clients to read a single
15826       byte past the end of an allocated region. This bug could be used
15827       to cause hardened clients (built with --enable-expensive-hardening)
15828       to crash if they tried to visit a hostile hidden service. Non-
15829       hardened clients are only affected depending on the details of
15830       their platform's memory allocator. Fixes bug 21018; bugfix on
15831       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
15832       2016-12-002 and as CVE-2016-1254.
15834   o Minor features (fallback directory list, backported from 0.2.9.8):
15835     - Replace the 81 remaining fallbacks of the 100 originally
15836       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
15837       fallbacks (123 new, 54 existing, 27 removed) generated in December
15838       2016. Resolves ticket 20170.
15840   o Minor features (geoip, backported from 0.2.9.7-rc):
15841     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
15842       Country database.
15845 Changes in version 0.2.9.8 - 2016-12-19
15846   Tor 0.2.9.8 is the first stable release of the Tor 0.2.9 series.
15848   The Tor 0.2.9 series makes mandatory a number of security features
15849   that were formerly optional. It includes support for a new shared-
15850   randomness protocol that will form the basis for next generation
15851   hidden services, includes a single-hop hidden service mode for
15852   optimizing .onion services that don't actually want to be hidden,
15853   tries harder not to overload the directory authorities with excessive
15854   downloads, and supports a better protocol versioning scheme for
15855   improved compatibility with other implementations of the Tor protocol.
15857   And of course, there are numerous other bugfixes and improvements.
15859   This release also includes a fix for a medium-severity issue (bug
15860   21018 below) where Tor clients could crash when attempting to visit a
15861   hostile hidden service. Clients are recommended to upgrade as packages
15862   become available for their systems.
15864   Below are the changes since 0.2.9.7-rc. For a list of all changes
15865   since 0.2.8, see the ReleaseNotes file.
15867   o Major bugfixes (parsing, security):
15868     - Fix a bug in parsing that could cause clients to read a single
15869       byte past the end of an allocated region. This bug could be used
15870       to cause hardened clients (built with --enable-expensive-hardening)
15871       to crash if they tried to visit a hostile hidden service. Non-
15872       hardened clients are only affected depending on the details of
15873       their platform's memory allocator. Fixes bug 21018; bugfix on
15874       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
15875       2016-12-002 and as CVE-2016-1254.
15877   o Minor features (fallback directory list):
15878     - Replace the 81 remaining fallbacks of the 100 originally
15879       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
15880       fallbacks (123 new, 54 existing, 27 removed) generated in December
15881       2016. Resolves ticket 20170.
15884 Changes in version 0.2.9.7-rc - 2016-12-12
15885   Tor 0.2.9.7-rc fixes a few small bugs remaining in Tor 0.2.9.6-rc,
15886   including a few that had prevented tests from passing on
15887   some platforms.
15889   o Minor features (geoip):
15890     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
15891       Country database.
15893   o Minor bugfix (build):
15894     - The current Git revision when building from a local repository is
15895       now detected correctly when using git worktrees. Fixes bug 20492;
15896       bugfix on 0.2.3.9-alpha.
15898   o Minor bugfixes (directory authority):
15899     - When computing old Tor protocol line version in protover, we were
15900       looking at 0.2.7.5 twice instead of a specific case for
15901       0.2.9.1-alpha. Fixes bug 20810; bugfix on 0.2.9.4-alpha.
15903   o Minor bugfixes (download scheduling):
15904     - Resolve a "bug" warning when considering a download schedule whose
15905       delay had approached INT_MAX. Fixes 20875; bugfix on 0.2.9.5-alpha.
15907   o Minor bugfixes (logging):
15908     - Downgrade a harmless log message about the
15909       pending_entry_connections list from "warn" to "info". Mitigates
15910       bug 19926.
15912   o Minor bugfixes (memory leak):
15913     - Fix a small memory leak when receiving AF_UNIX connections on a
15914       SocksPort. Fixes bug 20716; bugfix on 0.2.6.3-alpha.
15915     - When moving a signed descriptor object from a source to an
15916       existing destination, free the allocated memory inside that
15917       destination object. Fixes bug 20715; bugfix on 0.2.8.3-alpha.
15919   o Minor bugfixes (memory leak, use-after-free, linux seccomp2 sandbox):
15920     - Fix a memory leak and use-after-free error when removing entries
15921       from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on
15922       0.2.5.5-alpha. Patch from "cypherpunks".
15924   o Minor bugfixes (portability):
15925     - Use the correct spelling of MAC_OS_X_VERSION_10_12 on configure.ac
15926       Fixes bug 20935; bugfix on 0.2.9.6-rc.
15928   o Minor bugfixes (unit tests):
15929     - Stop expecting NetBSD unit tests to report success for ipfw. Part
15930       of a fix for bug 19960; bugfix on 0.2.9.5-alpha.
15931     - Fix tolerances in unit tests for monotonic time comparisons
15932       between nanoseconds and microseconds. Previously, we accepted a 10
15933       us difference only, which is not realistic on every platform's
15934       clock_gettime(). Fixes bug 19974; bugfix on 0.2.9.1-alpha.
15935     - Remove a double-free in the single onion service unit test. Stop
15936       ignoring a return value. Make future changes less error-prone.
15937       Fixes bug 20864; bugfix on 0.2.9.6-rc.
15940 Changes in version 0.2.8.11 - 2016-12-08
15941   Tor 0.2.8.11 backports fixes for additional portability issues that
15942   could prevent Tor from building correctly on OSX Sierra, or with
15943   OpenSSL 1.1. Affected users should upgrade; others can safely stay
15944   with 0.2.8.10.
15946   o Minor bugfixes (portability):
15947     - Avoid compilation errors when building on OSX Sierra. Sierra began
15948       to support the getentropy() and clock_gettime() APIs, but created
15949       a few problems in doing so. Tor 0.2.9 has a more thorough set of
15950       workarounds; in 0.2.8, we are just using the /dev/urandom and mach
15951       monotonic time interfaces. Fixes bug 20865. Bugfix
15952       on 0.2.8.1-alpha.
15954   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
15955     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
15956       architectures. Closes ticket 20588.
15959 Changes in version 0.2.8.10 - 2016-12-02
15960   Tor 0.2.8.10 backports a fix for a bug that would sometimes make clients
15961   unusable after they left standby mode. It also backports fixes for
15962   a few portability issues and a small but problematic memory leak.
15964   o Major bugfixes (client reliability, backport from 0.2.9.5-alpha):
15965     - When Tor leaves standby because of a new application request, open
15966       circuits as needed to serve that request. Previously, we would
15967       potentially wait a very long time. Fixes part of bug 19969; bugfix
15968       on 0.2.8.1-alpha.
15970   o Major bugfixes (client performance, backport from 0.2.9.5-alpha):
15971     - Clients now respond to new application stream requests immediately
15972       when they arrive, rather than waiting up to one second before
15973       starting to handle them. Fixes part of bug 19969; bugfix
15974       on 0.2.8.1-alpha.
15976   o Minor bugfixes (portability, backport from 0.2.9.6-rc):
15977     - Work around a bug in the OSX 10.12 SDK that would prevent us from
15978       successfully targeting earlier versions of OSX. Resolves
15979       ticket 20235.
15981   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
15982     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
15983       20551; bugfix on 0.2.1.1-alpha.
15985   o Minor bugfixes (relay, backport from 0.2.9.5-alpha):
15986     - Work around a memory leak in OpenSSL 1.1 when encoding public
15987       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
15989   o Minor features (geoip):
15990     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
15991       Country database.
15993 Changes in version 0.2.9.6-rc - 2016-12-02
15994   Tor 0.2.9.6-rc fixes a few remaining bugs found in the previous alpha
15995   version. We hope that it will be ready to become stable soon, and we
15996   encourage everyone to test this release. If no showstopper bugs are
15997   found here, the next 0.2.9 release will be stable.
15999   o Major bugfixes (relay, resolver, logging):
16000     - For relays that don't know their own address, avoid attempting a
16001       local hostname resolve for each descriptor we download. This
16002       will cut down on the number of "Success: chose address 'x.x.x.x'"
16003       log lines, and also avoid confusing clock jumps if the resolver
16004       is slow. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
16006   o Minor bugfixes (client, fascistfirewall):
16007     - Avoid spurious warnings when ReachableAddresses or FascistFirewall
16008       is set. Fixes bug 20306; bugfix on 0.2.8.2-alpha.
16010   o Minor bugfixes (hidden services):
16011     - Stop ignoring the anonymity status of saved keys for hidden
16012       services and single onion services when first starting tor.
16013       Instead, refuse to start tor if any hidden service key has been
16014       used in a different hidden service anonymity mode. Fixes bug
16015       20638; bugfix on 17178 in 0.2.9.3-alpha; reported by ahf.
16017   o Minor bugfixes (portability):
16018     - Work around a bug in the OSX 10.12 SDK that would prevent us from
16019       successfully targeting earlier versions of OSX. Resolves
16020       ticket 20235.
16021     - Run correctly when built on Windows build environments that
16022       require _vcsprintf(). Fixes bug 20560; bugfix on 0.2.2.11-alpha.
16024   o Minor bugfixes (single onion services, Tor2web):
16025     - Stop complaining about long-term one-hop circuits deliberately
16026       created by single onion services and Tor2web. These log messages
16027       are intended to diagnose issue 8387, which relates to circuits
16028       hanging around forever for no reason. Fixes bug 20613; bugfix on
16029       0.2.9.1-alpha. Reported by "pastly".
16031   o Minor bugfixes (unit tests):
16032     - Stop spurious failures in the local interface address discovery
16033       unit tests. Fixes bug 20634; bugfix on 0.2.8.1-alpha; patch by
16034       Neel Chauhan.
16036   o Documentation:
16037     - Correct the minimum bandwidth value in torrc.sample, and queue a
16038       corresponding change for torrc.minimal. Closes ticket 20085.
16041 Changes in version 0.2.9.5-alpha - 2016-11-08
16042   Tor 0.2.9.5-alpha fixes numerous bugs discovered in the previous alpha
16043   version. We believe one or two probably remain, and we encourage
16044   everyone to test this release.
16046   o Major bugfixes (client performance):
16047     - Clients now respond to new application stream requests immediately
16048       when they arrive, rather than waiting up to one second before
16049       starting to handle them. Fixes part of bug 19969; bugfix
16050       on 0.2.8.1-alpha.
16052   o Major bugfixes (client reliability):
16053     - When Tor leaves standby because of a new application request, open
16054       circuits as needed to serve that request. Previously, we would
16055       potentially wait a very long time. Fixes part of bug 19969; bugfix
16056       on 0.2.8.1-alpha.
16058   o Major bugfixes (download scheduling):
16059     - When using an exponential backoff schedule, do not give up on
16060       downloading just because we have failed a bunch of times. Since
16061       each delay is longer than the last, retrying indefinitely won't
16062       hurt. Fixes bug 20536; bugfix on 0.2.9.1-alpha.
16063     - If a consensus expires while we are waiting for certificates to
16064       download, stop waiting for certificates.
16065     - If we stop waiting for certificates less than a minute after we
16066       started downloading them, do not consider the certificate download
16067       failure a separate failure. Fixes bug 20533; bugfix
16068       on 0.2.0.9-alpha.
16069     - Remove the maximum delay on exponential-backoff scheduling. Since
16070       we now allow an infinite number of failures (see ticket 20536), we
16071       must now allow the time to grow longer on each failure. Fixes part
16072       of bug 20534; bugfix on 0.2.9.1-alpha.
16073     - Make our initial download delays closer to those from 0.2.8. Fixes
16074       another part of bug 20534; bugfix on 0.2.9.1-alpha.
16075     - When determining when to download a directory object, handle times
16076       after 2038 if the operating system supports them. (Someday this
16077       will be important!) Fixes bug 20587; bugfix on 0.2.8.1-alpha.
16078     - When using exponential backoff in test networks, use a lower
16079       exponent, so the delays do not vary as much. This helps test
16080       networks bootstrap consistently. Fixes bug 20597; bugfix on 20499.
16082   o Minor features (geoip):
16083     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
16084       Country database.
16086   o Minor bugfixes (client directory scheduling):
16087     - Treat "relay too busy to answer request" as a failed request and a
16088       reason to back off on our retry frequency. This is safe now that
16089       exponential backoffs retry indefinitely, and avoids a bug where we
16090       would reset our download schedule erroneously. Fixes bug 20593;
16091       bugfix on 0.2.9.1-alpha.
16093   o Minor bugfixes (client, logging):
16094     - Remove a BUG warning in circuit_pick_extend_handshake(). Instead,
16095       assume all nodes support EXTEND2. Use ntor whenever a key is
16096       available. Fixes bug 20472; bugfix on 0.2.9.3-alpha.
16097     - On DNSPort, stop logging a BUG warning on a failed hostname
16098       lookup. Fixes bug 19869; bugfix on 0.2.9.1-alpha.
16100   o Minor bugfixes (hidden services):
16101     - When configuring hidden services, check every hidden service
16102       directory's permissions. Previously, we only checked the last
16103       hidden service. Fixes bug 20529; bugfix the work to fix 13942
16104       in 0.2.6.2-alpha.
16106   o Minor bugfixes (portability):
16107     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
16108       architectures. Closes ticket 20588.
16109     - Use ECDHE ciphers instead of ECDH in tortls tests. LibreSSL has
16110       removed the ECDH ciphers which caused the tests to fail on
16111       platforms which use it. Fixes bug 20460; bugfix on 0.2.8.1-alpha.
16112     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
16113       20551; bugfix on 0.2.1.1-alpha.
16115   o Minor bugfixes (relay bootstrap):
16116     - Ensure relays don't make multiple connections during bootstrap.
16117       Fixes bug 20591; bugfix on 0.2.8.1-alpha.
16119   o Minor bugfixes (relay):
16120     - Work around a memory leak in OpenSSL 1.1 when encoding public
16121       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
16122     - Avoid a small memory leak when informing worker threads about
16123       rotated onion keys. Fixes bug 20401; bugfix on 0.2.6.3-alpha.
16124     - Do not try to parallelize workers more than 16x without the user
16125       explicitly configuring us to do so, even if we do detect more than
16126       16 CPU cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
16128   o Minor bugfixes (single onion services):
16129     - Start correctly when creating a single onion service in a
16130       directory that did not previously exist. Fixes bug 20484; bugfix
16131       on 0.2.9.3-alpha.
16133   o Minor bugfixes (testing):
16134     - Avoid a unit test failure on systems with over 16 detectable CPU
16135       cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
16137   o Documentation:
16138     - Clarify that setting HiddenServiceNonAnonymousMode requires you to
16139       also set "SOCKSPort 0". Fixes bug 20487; bugfix on 0.2.9.3-alpha.
16140     - Module-level documentation for several more modules. Closes
16141       tickets 19287 and 19290.
16144 Changes in version 0.2.8.9 - 2016-10-17
16145   Tor 0.2.8.9 backports a fix for a security hole in previous versions
16146   of Tor that would allow a remote attacker to crash a Tor client,
16147   hidden service, relay, or authority. All Tor users should upgrade to
16148   this version, or to 0.2.9.4-alpha. Patches will be released for older
16149   versions of Tor.
16151   o Major features (security fixes, also in 0.2.9.4-alpha):
16152     - Prevent a class of security bugs caused by treating the contents
16153       of a buffer chunk as if they were a NUL-terminated string. At
16154       least one such bug seems to be present in all currently used
16155       versions of Tor, and would allow an attacker to remotely crash
16156       most Tor instances, especially those compiled with extra compiler
16157       hardening. With this defense in place, such bugs can't crash Tor,
16158       though we should still fix them as they occur. Closes ticket
16159       20384 (TROVE-2016-10-001).
16161   o Minor features (geoip):
16162     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
16163       Country database.
16166 Changes in version 0.2.9.4-alpha - 2016-10-17
16167   Tor 0.2.9.4-alpha fixes a security hole in previous versions of Tor
16168   that would allow a remote attacker to crash a Tor client, hidden
16169   service, relay, or authority. All Tor users should upgrade to this
16170   version, or to 0.2.8.9. Patches will be released for older versions
16171   of Tor.
16173   Tor 0.2.9.4-alpha also adds numerous small features and fix-ups to
16174   previous versions of Tor, including the implementation of a feature to
16175   future- proof the Tor ecosystem against protocol changes, some bug
16176   fixes necessary for Tor Browser to use unix domain sockets correctly,
16177   and several portability improvements. We anticipate that this will be
16178   the last alpha in the Tor 0.2.9 series, and that the next release will
16179   be a release candidate.
16181   o Major features (security fixes):
16182     - Prevent a class of security bugs caused by treating the contents
16183       of a buffer chunk as if they were a NUL-terminated string. At
16184       least one such bug seems to be present in all currently used
16185       versions of Tor, and would allow an attacker to remotely crash
16186       most Tor instances, especially those compiled with extra compiler
16187       hardening. With this defense in place, such bugs can't crash Tor,
16188       though we should still fix them as they occur. Closes ticket
16189       20384 (TROVE-2016-10-001).
16191   o Major features (subprotocol versions):
16192     - Tor directory authorities now vote on a set of recommended
16193       subprotocol versions, and on a set of required subprotocol
16194       versions. Clients and relays that lack support for a _required_
16195       subprotocol version will not start; those that lack support for a
16196       _recommended_ subprotocol version will warn the user to upgrade.
16197       Closes ticket 19958; implements part of proposal 264.
16198     - Tor now uses "subprotocol versions" to indicate compatibility.
16199       Previously, versions of Tor looked at the declared Tor version of
16200       a relay to tell whether they could use a given feature. Now, they
16201       should be able to rely on its declared subprotocol versions. This
16202       change allows compatible implementations of the Tor protocol(s) to
16203       exist without pretending to be 100% bug-compatible with particular
16204       releases of Tor itself. Closes ticket 19958; implements part of
16205       proposal 264.
16207   o Minor feature (fallback directories):
16208     - Remove broken fallbacks from the hard-coded fallback directory
16209       list. Closes ticket 20190; patch by teor.
16211   o Minor features (client, directory):
16212     - Since authorities now omit all routers that lack the Running and
16213       Valid flags, we assume that any relay listed in the consensus must
16214       have those flags. Closes ticket 20001; implements part of
16215       proposal 272.
16217   o Minor features (compilation, portability):
16218     - Compile correctly on MacOS 10.12 (aka "Sierra"). Closes
16219       ticket 20241.
16221   o Minor features (development tools, etags):
16222     - Teach the "make tags" Makefile target how to correctly find
16223       "MOCK_IMPL" function definitions. Patch from nherring; closes
16224       ticket 16869.
16226   o Minor features (geoip):
16227     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
16228       Country database.
16230   o Minor features (unix domain sockets):
16231     - When configuring a unix domain socket for a SocksPort,
16232       ControlPort, or Hidden service, you can now wrap the address in
16233       quotes, using C-style escapes inside the quotes. This allows unix
16234       domain socket paths to contain spaces.
16236   o Minor features (virtual addresses):
16237     - Increase the maximum number of bits for the IPv6 virtual network
16238       prefix from 16 to 104. In this way, the condition for address
16239       allocation is less restrictive. Closes ticket 20151; feature
16240       on 0.2.4.7-alpha.
16242   o Minor bugfixes (address discovery):
16243     - Stop reordering IP addresses returned by the OS. This makes it
16244       more likely that Tor will guess the same relay IP address every
16245       time. Fixes issue 20163; bugfix on 0.2.7.1-alpha, ticket 17027.
16246       Reported by René Mayrhofer, patch by "cypherpunks".
16248   o Minor bugfixes (client, unix domain sockets):
16249     - Disable IsolateClientAddr when using AF_UNIX backed SocksPorts as
16250       the client address is meaningless. Fixes bug 20261; bugfix
16251       on 0.2.6.3-alpha.
16253   o Minor bugfixes (compilation, OpenBSD):
16254     - Detect Libevent2 functions correctly on systems that provide
16255       libevent2, but where libevent1 is linked with -levent. Fixes bug
16256       19904; bugfix on 0.2.2.24-alpha. Patch from Rubiate.
16258   o Minor bugfixes (configuration):
16259     - When parsing quoted configuration values from the torrc file,
16260       handle windows line endings correctly. Fixes bug 19167; bugfix on
16261       0.2.0.16-alpha. Patch from "Pingl".
16263   o Minor bugfixes (getpass):
16264     - Defensively fix a non-triggerable heap corruption at do_getpass()
16265       to protect ourselves from mistakes in the future. Fixes bug
16266       19223; bugfix on 0.2.7.3-rc. Bug found by Guido Vranken, patch
16267       by nherring.
16269   o Minor bugfixes (hidden service):
16270     - Allow hidden services to run on IPv6 addresses even when the
16271       IPv6Exit option is not set. Fixes bug 18357; bugfix
16272       on 0.2.4.7-alpha.
16274   o Documentation:
16275     - Add module-level internal documentation for 36 C files that
16276       previously didn't have a high-level overview. Closes ticket #20385.
16278   o Required libraries:
16279     - When building with OpenSSL, Tor now requires version 1.0.1 or
16280       later. OpenSSL 1.0.0 and earlier are no longer supported by the
16281       OpenSSL team, and should not be used. Closes ticket 20303.
16284 Changes in version 0.2.9.3-alpha - 2016-09-23
16285   Tor 0.2.9.3-alpha adds improved support for entities that want to make
16286   high-performance services available through the Tor .onion mechanism
16287   without themselves receiving anonymity as they host those services. It
16288   also tries harder to ensure that all steps on a circuit are using the
16289   strongest crypto possible, strengthens some TLS properties, and
16290   resolves several bugs -- including a pair of crash bugs from the 0.2.8
16291   series. Anybody running an earlier version of 0.2.9.x should upgrade.
16293   o Major bugfixes (crash, also in 0.2.8.8):
16294     - Fix a complicated crash bug that could affect Tor clients
16295       configured to use bridges when replacing a networkstatus consensus
16296       in which one of their bridges was mentioned. OpenBSD users saw
16297       more crashes here, but all platforms were potentially affected.
16298       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
16300   o Major bugfixes (relay, OOM handler, also in 0.2.8.8):
16301     - Fix a timing-dependent assertion failure that could occur when we
16302       tried to flush from a circuit after having freed its cells because
16303       of an out-of-memory condition. Fixes bug 20203; bugfix on
16304       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
16305       this one.
16307   o Major features (circuit building, security):
16308     - Authorities, relays and clients now require ntor keys in all
16309       descriptors, for all hops (except for rare hidden service protocol
16310       cases), for all circuits, and for all other roles. Part of
16311       ticket 19163.
16312     - Tor authorities, relays, and clients only use ntor, except for
16313       rare cases in the hidden service protocol. Part of ticket 19163.
16315   o Major features (single-hop "hidden" services):
16316     - Add experimental HiddenServiceSingleHopMode and
16317       HiddenServiceNonAnonymousMode options. When both are set to 1,
16318       every hidden service on a Tor instance becomes a non-anonymous
16319       Single Onion Service. Single Onions make one-hop (direct)
16320       connections to their introduction and rendezvous points. One-hop
16321       circuits make Single Onion servers easily locatable, but clients
16322       remain location-anonymous. This is compatible with the existing
16323       hidden service implementation, and works on the current tor
16324       network without any changes to older relays or clients. Implements
16325       proposal 260, completes ticket 17178. Patch by teor and asn.
16327   o Major features (resource management):
16328     - Tor can now notice it is about to run out of sockets, and
16329       preemptively close connections of lower priority. (This feature is
16330       off by default for now, since the current prioritizing method is
16331       yet not mature enough. You can enable it by setting
16332       "DisableOOSCheck 0", but watch out: it might close some sockets
16333       you would rather have it keep.) Closes ticket 18640.
16335   o Major bugfixes (circuit building):
16336     - Hidden service client-to-intro-point and service-to-rendezvous-
16337       point circuits use the TAP key supplied by the protocol, to avoid
16338       epistemic attacks. Fixes bug 19163; bugfix on 0.2.4.18-rc.
16340   o Major bugfixes (compilation, OpenBSD):
16341     - Fix a Libevent-detection bug in our autoconf script that would
16342       prevent Tor from linking successfully on OpenBSD. Patch from
16343       rubiate. Fixes bug 19902; bugfix on 0.2.9.1-alpha.
16345   o Major bugfixes (hidden services):
16346     - Clients now require hidden services to include the TAP keys for
16347       their intro points in the hidden service descriptor. This prevents
16348       an inadvertent upgrade to ntor, which a malicious hidden service
16349       could use to distinguish clients by consensus version. Fixes bug
16350       20012; bugfix on 0.2.4.8-alpha. Patch by teor.
16352   o Minor features (security, TLS):
16353     - Servers no longer support clients that without AES ciphersuites.
16354       (3DES is no longer considered an acceptable cipher.) We believe
16355       that no such Tor clients currently exist, since Tor has required
16356       OpenSSL 0.9.7 or later since 2009. Closes ticket 19998.
16358   o Minor feature (fallback directories):
16359     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
16360       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
16361       2016. Closes ticket 20190; patch by teor.
16363   o Minor features (geoip, also in 0.2.8.8):
16364     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
16365       Country database.
16367   o Minor feature (port flags):
16368     - Add new flags to the *Port options to finer control over which
16369       requests are allowed. The flags are NoDNSRequest, NoOnionTraffic,
16370       and the synthetic flag OnionTrafficOnly, which is equivalent to
16371       NoDNSRequest, NoIPv4Traffic, and NoIPv6Traffic. Closes enhancement
16372       18693; patch by "teor".
16374   o Minor features (directory authority):
16375     - After voting, if the authorities decide that a relay is not
16376       "Valid", they no longer include it in the consensus at all. Closes
16377       ticket 20002; implements part of proposal 272.
16379   o Minor features (testing):
16380     - Disable memory protections on OpenBSD when performing our unit
16381       tests for memwipe(). The test deliberately invokes undefined
16382       behavior, and the OpenBSD protections interfere with this. Patch
16383       from "rubiate". Closes ticket 20066.
16385   o Minor features (testing, ipv6):
16386     - Add the single-onion and single-onion-ipv6 chutney targets to
16387       "make test-network-all". This requires a recent chutney version
16388       with the single onion network flavours (git c72a652 or later).
16389       Closes ticket 20072; patch by teor.
16390     - Add the hs-ipv6 chutney target to make test-network-all's IPv6
16391       tests. Remove bridges+hs, as it's somewhat redundant. This
16392       requires a recent chutney version that supports IPv6 clients,
16393       relays, and authorities. Closes ticket 20069; patch by teor.
16395   o Minor features (Tor2web):
16396     - Make Tor2web clients respect ReachableAddresses. This feature was
16397       inadvertently enabled in 0.2.8.6, then removed by bugfix 19973 on
16398       0.2.8.7. Implements feature 20034. Patch by teor.
16400   o Minor features (unit tests):
16401     - We've done significant work to make the unit tests run faster.
16402     - Our link-handshake unit tests now check that when invalid
16403       handshakes fail, they fail with the error messages we expected.
16404     - Our unit testing code that captures log messages no longer
16405       prevents them from being written out if the user asked for them
16406       (by passing --debug or --info or or --notice --warn to the "test"
16407       binary). This change prevents us from missing unexpected log
16408       messages simply because we were looking for others. Related to
16409       ticket 19999.
16410     - The unit tests now log all warning messages with the "BUG" flag.
16411       Previously, they only logged errors by default. This change will
16412       help us make our testing code more correct, and make sure that we
16413       only hit this code when we mean to. In the meantime, however,
16414       there will be more warnings in the unit test logs than before.
16415       This is preparatory work for ticket 19999.
16416     - The unit tests now treat any failure of a "tor_assert_nonfatal()"
16417       assertion as a test failure.
16419   o Minor bug fixes (circuits):
16420     - Use the CircuitBuildTimeout option whenever
16421       LearnCircuitBuildTimeout is disabled. Previously, we would respect
16422       the option when a user disabled it, but not when it was disabled
16423       because some other option was set. Fixes bug 20073; bugfix on
16424       0.2.4.12-alpha. Patch by teor.
16426   o Minor bugfixes (allocation):
16427     - Change how we allocate memory for large chunks on buffers, to
16428       avoid a (currently impossible) integer overflow, and to waste less
16429       space when allocating unusually large chunks. Fixes bug 20081;
16430       bugfix on 0.2.0.16-alpha. Issue identified by Guido Vranken.
16431     - Always include orconfig.h before including any other C headers.
16432       Sometimes, it includes macros that affect the behavior of the
16433       standard headers. Fixes bug 19767; bugfix on 0.2.9.1-alpha (the
16434       first version to use AC_USE_SYSTEM_EXTENSIONS).
16435     - Fix a syntax error in the IF_BUG_ONCE__() macro in non-GCC-
16436       compatible compilers. Fixes bug 20141; bugfix on 0.2.9.1-alpha.
16437       Patch from Gisle Vanem.
16438     - Stop trying to build with Clang 4.0's -Wthread-safety warnings.
16439       They apparently require a set of annotations that we aren't
16440       currently using, and they create false positives in our pthreads
16441       wrappers. Fixes bug 20110; bugfix on 0.2.9.1-alpha.
16443   o Minor bugfixes (directory authority):
16444     - Die with a more useful error when the operator forgets to place
16445       the authority_signing_key file into the keys directory. This
16446       avoids an uninformative assert & traceback about having an invalid
16447       key. Fixes bug 20065; bugfix on 0.2.0.1-alpha.
16448     - When allowing private addresses, mark Exits that only exit to
16449       private locations as such. Fixes bug 20064; bugfix
16450       on 0.2.2.9-alpha.
16452   o Minor bugfixes (documentation):
16453     - Document the default PathsNeededToBuildCircuits value that's used
16454       by clients when the directory authorities don't set
16455       min_paths_for_circs_pct. Fixes bug 20117; bugfix on 02c320916e02
16456       in 0.2.4.10-alpha. Patch by teor, reported by Jesse V.
16457     - Fix manual for the User option: it takes a username, not a UID.
16458       Fixes bug 19122; bugfix on 0.0.2pre16 (the first version to have
16459       a manpage!).
16461   o Minor bugfixes (hidden services):
16462     - Stop logging intro point details to the client log on certain
16463       error conditions. Fixed as part of bug 20012; bugfix on
16464       0.2.4.8-alpha. Patch by teor.
16466   o Minor bugfixes (IPv6, testing):
16467     - Check for IPv6 correctly on Linux when running test networks.
16468       Fixes bug 19905; bugfix on 0.2.7.3-rc; patch by teor.
16470   o Minor bugfixes (Linux seccomp2 sandbox):
16471     - Add permission to run the sched_yield() and sigaltstack() system
16472       calls, in order to support versions of Tor compiled with asan or
16473       ubsan code that use these calls. Now "sandbox 1" and
16474       "--enable-expensive-hardening" should be compatible on more
16475       systems. Fixes bug 20063; bugfix on 0.2.5.1-alpha.
16477   o Minor bugfixes (logging):
16478     - When logging a message from the BUG() macro, be explicit about
16479       what we were asserting. Previously we were confusing what we were
16480       asserting with what the bug was. Fixes bug 20093; bugfix
16481       on 0.2.9.1-alpha.
16482     - When we are unable to remove the bw_accounting file, do not warn
16483       if the reason we couldn't remove it was that it didn't exist.
16484       Fixes bug 19964; bugfix on 0.2.5.4-alpha. Patch from 'pastly'.
16486   o Minor bugfixes (option parsing):
16487     - Count unix sockets when counting client listeners (SOCKS, Trans,
16488       NATD, and DNS). This has no user-visible behaviour changes: these
16489       options are set once, and never read. Required for correct
16490       behaviour in ticket 17178. Fixes bug 19677; bugfix on
16491       0.2.6.3-alpha. Patch by teor.
16493   o Minor bugfixes (options):
16494     - Check the consistency of UseEntryGuards and EntryNodes more
16495       reliably. Fixes bug 20074; bugfix on 0.2.4.12-alpha. Patch
16496       by teor.
16497     - Stop changing the configured value of UseEntryGuards on
16498       authorities and Tor2web clients. Fixes bug 20074; bugfix on
16499       commits 51fc6799 in 0.1.1.16-rc and acda1735 in 0.2.4.3-alpha.
16500       Patch by teor.
16502   o Minor bugfixes (Tor2web):
16503     - Prevent Tor2web clients running hidden services, these services
16504       are not anonymous due to the one-hop client paths. Fixes bug
16505       19678. Patch by teor.
16507   o Minor bugfixes (unit tests):
16508     - Fix a shared-random unit test that was failing on big endian
16509       architectures due to internal representation of a integer copied
16510       to a buffer. The test is changed to take a full 32 bytes of data
16511       and use the output of a python script that make the COMMIT and
16512       REVEAL calculation according to the spec. Fixes bug 19977; bugfix
16513       on 0.2.9.1-alpha.
16514     - The tor_tls_server_info_callback unit test no longer crashes when
16515       debug-level logging is turned on. Fixes bug 20041; bugfix
16516       on 0.2.8.1-alpha.
16519 Changes in version 0.2.8.8 - 2016-09-23
16520   Tor 0.2.8.8 fixes two crash bugs present in previous versions of the
16521   0.2.8.x series. Relays running 0.2.8.x should upgrade, as should users
16522   who select public relays as their bridges.
16524   o Major bugfixes (crash):
16525     - Fix a complicated crash bug that could affect Tor clients
16526       configured to use bridges when replacing a networkstatus consensus
16527       in which one of their bridges was mentioned. OpenBSD users saw
16528       more crashes here, but all platforms were potentially affected.
16529       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
16531   o Major bugfixes (relay, OOM handler):
16532     - Fix a timing-dependent assertion failure that could occur when we
16533       tried to flush from a circuit after having freed its cells because
16534       of an out-of-memory condition. Fixes bug 20203; bugfix on
16535       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
16536       this one.
16538   o Minor feature (fallback directories):
16539     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
16540       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
16541       2016. Closes ticket 20190; patch by teor.
16543   o Minor features (geoip):
16544     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
16545       Country database.
16548 Changes in version 0.2.9.2-alpha - 2016-08-24
16549   Tor 0.2.9.2-alpha continues development of the 0.2.9 series with
16550   several new features and bugfixes. It also includes an important
16551   authority update and an important bugfix from 0.2.8.7. Everyone who
16552   sets the ReachableAddresses option, and all bridges, are strongly
16553   encouraged to upgrade to 0.2.8.7, or to 0.2.9.2-alpha.
16555   o Directory authority changes (also in 0.2.8.7):
16556     - The "Tonga" bridge authority has been retired; the new bridge
16557       authority is "Bifroest". Closes tickets 19728 and 19690.
16559   o Major bugfixes (client, security, also in 0.2.8.7):
16560     - Only use the ReachableAddresses option to restrict the first hop
16561       in a path. In earlier versions of 0.2.8.x, it would apply to
16562       every hop in the path, with a possible degradation in anonymity
16563       for anyone using an uncommon ReachableAddress setting. Fixes bug
16564       19973; bugfix on 0.2.8.2-alpha.
16566   o Major features (user interface):
16567     - Tor now supports the ability to declare options deprecated, so
16568       that we can recommend that people stop using them. Previously,
16569       this was done in an ad-hoc way. Closes ticket 19820.
16571   o Major bugfixes (directory downloads):
16572     - Avoid resetting download status for consensuses hourly, since we
16573       already have another, smarter retry mechanism. Fixes bug 8625;
16574       bugfix on 0.2.0.9-alpha.
16576   o Minor features (config):
16577     - Warn users when descriptor and port addresses are inconsistent.
16578       Mitigates bug 13953; patch by teor.
16580   o Minor features (geoip):
16581     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
16582       Country database.
16584   o Minor features (user interface):
16585     - There is a new --list-deprecated-options command-line option to
16586       list all of the deprecated options. Implemented as part of
16587       ticket 19820.
16589   o Minor bugfixes (code style):
16590     - Fix an integer signedness conversion issue in the case conversion
16591       tables. Fixes bug 19168; bugfix on 0.2.1.11-alpha.
16593   o Minor bugfixes (compilation):
16594     - Build correctly on versions of libevent2 without support for
16595       evutil_secure_rng_add_bytes(). Fixes bug 19904; bugfix
16596       on 0.2.5.4-alpha.
16597     - Fix a compilation warning on GCC versions before 4.6. Our
16598       ENABLE_GCC_WARNING macro used the word "warning" as an argument,
16599       when it is also required as an argument to the compiler pragma.
16600       Fixes bug 19901; bugfix on 0.2.9.1-alpha.
16602   o Minor bugfixes (compilation, also in 0.2.8.7):
16603     - Remove an inappropriate "inline" in tortls.c that was causing
16604       warnings on older versions of GCC. Fixes bug 19903; bugfix
16605       on 0.2.8.1-alpha.
16607   o Minor bugfixes (fallback directories, also in 0.2.8.7):
16608     - Avoid logging a NULL string pointer when loading fallback
16609       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
16610       and 0.2.8.1-alpha. Report and patch by "rubiate".
16612   o Minor bugfixes (logging):
16613     - Log a more accurate message when we fail to dump a microdescriptor.
16614       Fixes bug 17758; bugfix on 0.2.2.8-alpha. Patch from Daniel Pinto.
16616   o Minor bugfixes (memory leak):
16617     - Fix a series of slow memory leaks related to parsing torrc files
16618       and options. Fixes bug 19466; bugfix on 0.2.1.6-alpha.
16620   o Deprecated features:
16621     - A number of DNS-cache-related sub-options for client ports are now
16622       deprecated for security reasons, and may be removed in a future
16623       version of Tor. (We believe that client-side DNS caching is a bad
16624       idea for anonymity, and you should not turn it on.) The options
16625       are: CacheDNS, CacheIPv4DNS, CacheIPv6DNS, UseDNSCache,
16626       UseIPv4Cache, and UseIPv6Cache.
16627     - A number of options are deprecated for security reasons, and may
16628       be removed in a future version of Tor. The options are:
16629       AllowDotExit, AllowInvalidNodes, AllowSingleHopCircuits,
16630       AllowSingleHopExits, ClientDNSRejectInternalAddresses,
16631       CloseHSClientCircuitsImmediatelyOnTimeout,
16632       CloseHSServiceRendCircuitsImmediatelyOnTimeout,
16633       ExcludeSingleHopRelays, FastFirstHopPK, TLSECGroup,
16634       UseNTorHandshake, and WarnUnsafeSocks.
16635     - The *ListenAddress options are now deprecated as unnecessary: the
16636       corresponding *Port options should be used instead. These options
16637       may someday be removed. The affected options are:
16638       ControlListenAddress, DNSListenAddress, DirListenAddress,
16639       NATDListenAddress, ORListenAddress, SocksListenAddress,
16640       and TransListenAddress.
16642   o Documentation:
16643     - Correct the IPv6 syntax in our documentation for the
16644       VirtualAddrNetworkIPv6 torrc option. Closes ticket 19743.
16646   o Removed code:
16647     - We no longer include the (dead, deprecated) bufferevent code in
16648       Tor. Closes ticket 19450. Based on a patch from U+039b.
16651 Changes in version 0.2.8.7 - 2016-08-24
16652   Tor 0.2.8.7 fixes an important bug related to the ReachableAddresses
16653   option in 0.2.8.6, and replaces a retiring bridge authority. Everyone
16654   who sets the ReachableAddresses option, and all bridges, are strongly
16655   encouraged to upgrade.
16657   o Directory authority changes:
16658     - The "Tonga" bridge authority has been retired; the new bridge
16659       authority is "Bifroest". Closes tickets 19728 and 19690.
16661   o Major bugfixes (client, security):
16662     - Only use the ReachableAddresses option to restrict the first hop
16663       in a path. In earlier versions of 0.2.8.x, it would apply to
16664       every hop in the path, with a possible degradation in anonymity
16665       for anyone using an uncommon ReachableAddress setting. Fixes bug
16666       19973; bugfix on 0.2.8.2-alpha.
16668   o Minor features (geoip):
16669     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
16670       Country database.
16672   o Minor bugfixes (compilation):
16673     - Remove an inappropriate "inline" in tortls.c that was causing
16674       warnings on older versions of GCC. Fixes bug 19903; bugfix
16675       on 0.2.8.1-alpha.
16677   o Minor bugfixes (fallback directories):
16678     - Avoid logging a NULL string pointer when loading fallback
16679       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
16680       and 0.2.8.1-alpha. Report and patch by "rubiate".
16683 Changes in version 0.2.9.1-alpha - 2016-08-08
16684   Tor 0.2.9.1-alpha is the first alpha release in the 0.2.9 development
16685   series. It improves our support for hardened builds and compiler
16686   warnings, deploys some critical infrastructure for improvements to
16687   hidden services, includes a new timing backend that we hope to use for
16688   better support for traffic padding, makes it easier for programmers to
16689   log unexpected events, and contains other small improvements to
16690   security, correctness, and performance.
16692   Below are the changes since 0.2.8.6.
16694   o New system requirements:
16695     - Tor now requires Libevent version 2.0.10-stable or later. Older
16696       versions of Libevent have less efficient backends for several
16697       platforms, and lack the DNS code that we use for our server-side
16698       DNS support. This implements ticket 19554.
16699     - Tor now requires zlib version 1.2 or later, for security,
16700       efficiency, and (eventually) gzip support. (Back when we started,
16701       zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was
16702       released in 2003. We recommend the latest version.)
16704   o Major features (build, hardening):
16705     - Tor now builds with -ftrapv by default on compilers that support
16706       it. This option detects signed integer overflow (which C forbids),
16707       and turns it into a hard-failure. We do not apply this option to
16708       code that needs to run in constant time to avoid side-channels;
16709       instead, we use -fwrapv in that code. Closes ticket 17983.
16710     - When --enable-expensive-hardening is selected, stop applying the
16711       clang/gcc sanitizers to code that needs to run in constant time.
16712       Although we are aware of no introduced side-channels, we are not
16713       able to prove that there are none. Related to ticket 17983.
16715   o Major features (compilation):
16716     - Our big list of extra GCC warnings is now enabled by default when
16717       building with GCC (or with anything like Clang that claims to be
16718       GCC-compatible). To make all warnings into fatal compilation
16719       errors, pass --enable-fatal-warnings to configure. Closes
16720       ticket 19044.
16721     - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically
16722       turn on C and POSIX extensions. (Previously, we attempted to do
16723       this on an ad hoc basis.) Closes ticket 19139.
16725   o Major features (directory authorities, hidden services):
16726     - Directory authorities can now perform the shared randomness
16727       protocol specified by proposal 250. Using this protocol, directory
16728       authorities generate a global fresh random value every day. In the
16729       future, this value will be used by hidden services to select
16730       HSDirs. This release implements the directory authority feature;
16731       the hidden service side will be implemented in the future as part
16732       of proposal 224. Resolves ticket 16943; implements proposal 250.
16734   o Major features (downloading, random exponential backoff):
16735     - When we fail to download an object from a directory service, wait
16736       for an (exponentially increasing) randomized amount of time before
16737       retrying, rather than a fixed interval as we did before. This
16738       prevents a group of Tor instances from becoming too synchronized,
16739       or a single Tor instance from becoming too predictable, in its
16740       download schedule. Closes ticket 15942.
16742   o Major bugfixes (exit policies):
16743     - Avoid disclosing exit outbound bind addresses, configured port
16744       bind addresses, and local interface addresses in relay descriptors
16745       by default under ExitPolicyRejectPrivate. Instead, only reject
16746       these (otherwise unlisted) addresses if
16747       ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on
16748       0.2.7.2-alpha. Patch by teor.
16750   o Major bugfixes (hidden service client):
16751     - Allow Tor clients with appropriate controllers to work with
16752       FetchHidServDescriptors set to 0. Previously, this option also
16753       disabled descriptor cache lookup, thus breaking hidden services
16754       entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim".
16756   o Minor features (build, hardening):
16757     - Detect and work around a libclang_rt problem that would prevent
16758       clang from finding __mulodi4() on some 32-bit platforms, and thus
16759       keep -ftrapv from linking on those systems. Closes ticket 19079.
16760     - When building on a system without runtime support for the runtime
16761       hardening options, try to log a useful warning at configuration
16762       time, rather than an incomprehensible warning at link time. If
16763       expensive hardening was requested, this warning becomes an error.
16764       Closes ticket 18895.
16766   o Minor features (code safety):
16767     - In our integer-parsing functions, ensure that maxiumum value we
16768       give is no smaller than the minimum value. Closes ticket 19063;
16769       patch from U+039b.
16771   o Minor features (controller):
16772     - Implement new GETINFO queries for all downloads that use
16773       download_status_t to schedule retries. This allows controllers to
16774       examine the schedule for pending downloads. Closes ticket 19323.
16775     - Allow controllers to configure basic client authorization on
16776       hidden services when they create them with the ADD_ONION control
16777       command. Implements ticket 15588. Patch by "special".
16778     - Fire a STATUS_SERVER controller event whenever the hibernation
16779       status changes between "awake"/"soft"/"hard". Closes ticket 18685.
16781   o Minor features (directory authority):
16782     - Directory authorities now only give the Guard flag to a relay if
16783       they are also giving it the Stable flag. This change allows us to
16784       simplify path selection for clients. It should have minimal effect
16785       in practice, since >99% of Guards already have the Stable flag.
16786       Implements ticket 18624.
16787     - Directory authorities now write their v3-status-votes file out to
16788       disk earlier in the consensus process, so we have a record of the
16789       votes even if we abort the consensus process. Resolves
16790       ticket 19036.
16792   o Minor features (hidden service):
16793     - Stop being so strict about the payload length of "rendezvous1"
16794       cells. We used to be locked in to the "TAP" handshake length, and
16795       now we can handle better handshakes like "ntor". Resolves
16796       ticket 18998.
16798   o Minor features (infrastructure, time):
16799     - Tor now uses the operating system's monotonic timers (where
16800       available) for internal fine-grained timing. Previously we would
16801       look at the system clock, and then attempt to compensate for the
16802       clock running backwards. Closes ticket 18908.
16803     - Tor now includes an improved timer backend, so that we can
16804       efficiently support tens or hundreds of thousands of concurrent
16805       timers, as will be needed for some of our planned anti-traffic-
16806       analysis work. This code is based on William Ahern's "timeout.c"
16807       project, which implements a "tickless hierarchical timing wheel".
16808       Closes ticket 18365.
16810   o Minor features (logging):
16811     - Provide a more useful warning message when configured with an
16812       invalid Nickname. Closes ticket 18300; patch from "icanhasaccount".
16813     - When dumping unparseable router descriptors, optionally store them
16814       in separate files, named by digest, up to a configurable size
16815       limit. You can change the size limit by setting the
16816       MaxUnparseableDescSizeToLog option, and disable this feature by
16817       setting that option to 0. Closes ticket 18322.
16818     - Add a set of macros to check nonfatal assertions, for internal
16819       use. Migrating more of our checks to these should help us avoid
16820       needless crash bugs. Closes ticket 18613.
16822   o Minor features (performance):
16823     - Change the "optimistic data" extension from "off by default" to
16824       "on by default". The default was ordinarily overridden by a
16825       consensus option, but when clients were bootstrapping for the
16826       first time, they would not have a consensus to get the option
16827       from. Changing this default saves a round-trip during startup.
16828       Closes ticket 18815.
16830   o Minor features (relay, usability):
16831     - When the directory authorities refuse a bad relay's descriptor,
16832       encourage the relay operator to contact us. Many relay operators
16833       won't notice this line in their logs, but it's a win if even a few
16834       learn why we don't like what their relay was doing. Resolves
16835       ticket 18760.
16837   o Minor features (testing):
16838     - Let backtrace tests work correctly under AddressSanitizer. Fixes
16839       part of bug 18934; bugfix on 0.2.5.2-alpha.
16840     - Move the test-network.sh script to chutney, and modify tor's test-
16841       network.sh to call the (newer) chutney version when available.
16842       Resolves ticket 19116. Patch by teor.
16843     - Use the lcov convention for marking lines as unreachable, so that
16844       we don't count them when we're generating test coverage data.
16845       Update our coverage tools to understand this convention. Closes
16846       ticket 16792.
16848   o Minor bugfixes (bootstrap):
16849     - Remember the directory we fetched the consensus or previous
16850       certificates from, and use it to fetch future authority
16851       certificates. This change improves bootstrapping performance.
16852       Fixes bug 18963; bugfix on 0.2.8.1-alpha.
16854   o Minor bugfixes (build):
16855     - The test-stem and test-network makefile targets now depend only on
16856       the tor binary that they are testing. Previously, they depended on
16857       "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a
16858       patch from "cypherpunks".
16860   o Minor bugfixes (circuits):
16861     - Make sure extend_info_from_router() is only called on servers.
16862       Fixes bug 19639; bugfix on 0.2.8.1-alpha.
16864   o Minor bugfixes (compilation):
16865     - When building with Clang, use a full set of GCC warnings.
16866       (Previously, we included only a subset, because of the way we
16867       detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha.
16869   o Minor bugfixes (directory authority):
16870     - Authorities now sort the "package" lines in their votes, for ease
16871       of debugging. (They are already sorted in consensus documents.)
16872       Fixes bug 18840; bugfix on 0.2.6.3-alpha.
16873     - When parsing a detached signature, make sure we use the length of
16874       the digest algorithm instead of an hardcoded DIGEST256_LEN in
16875       order to avoid comparing bytes out-of-bounds with a smaller digest
16876       length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha.
16878   o Minor bugfixes (documentation):
16879     - Document the --passphrase-fd option in the tor manpage. Fixes bug
16880       19504; bugfix on 0.2.7.3-rc.
16881     - Fix the description of the --passphrase-fd option in the
16882       tor-gencert manpage. The option is used to pass the number of a
16883       file descriptor to read the passphrase from, not to read the file
16884       descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha.
16886   o Minor bugfixes (ephemeral hidden service):
16887     - When deleting an ephemeral hidden service, close its intro points
16888       even if they are not completely open. Fixes bug 18604; bugfix
16889       on 0.2.7.1-alpha.
16891   o Minor bugfixes (guard selection):
16892     - Use a single entry guard even if the NumEntryGuards consensus
16893       parameter is not provided. Fixes bug 17688; bugfix
16894       on 0.2.5.6-alpha.
16895     - Don't mark guards as unreachable if connection_connect() fails.
16896       That function fails for local reasons, so it shouldn't reveal
16897       anything about the status of the guard. Fixes bug 14334; bugfix
16898       on 0.2.3.10-alpha.
16900   o Minor bugfixes (hidden service client):
16901     - Increase the minimum number of internal circuits we preemptively
16902       build from 2 to 3, so a circuit is available when a client
16903       connects to another onion service. Fixes bug 13239; bugfix
16904       on 0.1.0.1-rc.
16906   o Minor bugfixes (logging):
16907     - When logging a directory ownership mismatch, log the owning
16908       username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta.
16910   o Minor bugfixes (memory leaks):
16911     - Fix a small, uncommon memory leak that could occur when reading a
16912       truncated ed25519 key file. Fixes bug 18956; bugfix
16913       on 0.2.6.1-alpha.
16915   o Minor bugfixes (testing):
16916     - Allow clients to retry HSDirs much faster in test networks. Fixes
16917       bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor.
16918     - Disable ASAN's detection of segmentation faults while running
16919       test_bt.sh, so that we can make sure that our own backtrace
16920       generation code works. Fixes another aspect of bug 18934; bugfix
16921       on 0.2.5.2-alpha. Patch from "cypherpunks".
16922     - Fix the test-network-all target on out-of-tree builds by using the
16923       correct path to the test driver script. Fixes bug 19421; bugfix
16924       on 0.2.7.3-rc.
16926   o Minor bugfixes (time):
16927     - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483;
16928       bugfix on all released tor versions.
16929     - When computing the difference between two times in milliseconds,
16930       we now round to the nearest millisecond correctly. Previously, we
16931       could sometimes round in the wrong direction. Fixes bug 19428;
16932       bugfix on 0.2.2.2-alpha.
16934   o Minor bugfixes (user interface):
16935     - Display a more accurate number of suppressed messages in the log
16936       rate-limiter. Previously, there was a potential integer overflow
16937       in the counter. Now, if the number of messages hits a maximum, the
16938       rate-limiter doesn't count any further. Fixes bug 19435; bugfix
16939       on 0.2.4.11-alpha.
16940     - Fix a typo in the passphrase prompt for the ed25519 identity key.
16941       Fixes bug 19503; bugfix on 0.2.7.2-alpha.
16943   o Code simplification and refactoring:
16944     - Remove redundant declarations of the MIN macro. Closes
16945       ticket 18889.
16946     - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion.
16947       Closes ticket 18462; patch from "icanhasaccount".
16948     - Split the 600-line directory_handle_command_get function into
16949       separate functions for different URL types. Closes ticket 16698.
16951   o Documentation:
16952     - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes
16953       ticket 19153. Patch from "U+039b".
16955   o Removed features:
16956     - Remove support for "GET /tor/bytes.txt" DirPort request, and
16957       "GETINFO dir-usage" controller request, which were only available
16958       via a compile-time option in Tor anyway. Feature was added in
16959       0.2.2.1-alpha. Resolves ticket 19035.
16960     - There is no longer a compile-time option to disable support for
16961       TransPort. (If you don't want TransPort; just don't use it.) Patch
16962       from "U+039b". Closes ticket 19449.
16964   o Testing:
16965     - Run more workqueue tests as part of "make check". These had
16966       previously been implemented, but you needed to know special
16967       command-line options to enable them.
16968     - We now have unit tests for our code to reject zlib "compression
16969       bombs". (Fortunately, the code works fine.)
16972 Changes in version 0.2.8.6 - 2016-08-02
16974   Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series.
16976   The Tor 0.2.8 series improves client bootstrapping performance,
16977   completes the authority-side implementation of improved identity
16978   keys for relays, and includes numerous bugfixes and performance
16979   improvements throughout the program. This release continues to
16980   improve the coverage of Tor's test suite.  For a full list of
16981   changes since Tor 0.2.7, see the ReleaseNotes file.
16983   Changes since 0.2.8.5-rc:
16985   o Minor features (geoip):
16986     - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2
16987       Country database.
16989   o Minor bugfixes (compilation):
16990     - Fix a compilation warning in the unit tests on systems where char
16991       is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha.
16993   o Minor bugfixes (fallback directories):
16994     - Remove 1 fallback that was on the hardcoded list, then opted-out,
16995       leaving 89 of the 100 fallbacks originally introduced in Tor
16996       0.2.8.2-alpha in March 2016. Closes ticket 19782; patch by teor.
16998   o Minor bugfixes (Linux seccomp2 sandbox):
16999     - Allow more syscalls when running with "Sandbox 1" enabled:
17000       sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On
17001       some systems, these are required for Tor to start. Fixes bug
17002       18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto.
17003     - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1",
17004       so that get_interface_address6_via_udp_socket_hack() can work.
17005       Fixes bug 19660; bugfix on 0.2.5.1-alpha.
17008 Changes in version 0.2.8.5-rc - 2016-07-07
17009   Tor 0.2.8.5-rc is the second release candidate in the Tor 0.2.8
17010   series. If we find no new bugs or regressions here, the first stable
17011   0.2.8 release will be identical to it. It has a few small bugfixes
17012   against previous versions.
17014   o Directory authority changes:
17015     - Urras is no longer a directory authority. Closes ticket 19271.
17017   o Major bugfixes (heartbeat):
17018     - Fix a regression that would crash Tor when the periodic
17019       "heartbeat" log messages were disabled. Fixes bug 19454; bugfix on
17020       0.2.8.1-alpha. Reported by "kubaku".
17022   o Minor features (build):
17023     - Tor now again builds with the recent OpenSSL 1.1 development
17024       branch (tested against 1.1.0-pre6-dev). Closes ticket 19499.
17025     - When building manual pages, set the timezone to "UTC", so that the
17026       output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
17027       Patch from intrigeri.
17029   o Minor bugfixes (fallback directory selection):
17030     - Avoid errors during fallback selection if there are no eligible
17031       fallbacks. Fixes bug 19480; bugfix on 0.2.8.3-alpha. Patch
17032       by teor.
17034   o Minor bugfixes (IPv6, microdescriptors):
17035     - Don't check node addresses when we only have a routerstatus. This
17036       allows IPv6-only clients to bootstrap by fetching microdescriptors
17037       from fallback directory mirrors. (The microdescriptor consensus
17038       has no IPv6 addresses in it.) Fixes bug 19608; bugfix
17039       on 0.2.8.2-alpha.
17041   o Minor bugfixes (logging):
17042     - Reduce pointlessly verbose log messages when directory servers
17043       can't be found. Fixes bug 18849; bugfix on 0.2.8.3-alpha and
17044       0.2.8.1-alpha. Patch by teor.
17045     - When a fallback directory changes its fingerprint from the hard-
17046       coded fingerprint, log a less severe, more explanatory log
17047       message. Fixes bug 18812; bugfix on 0.2.8.1-alpha. Patch by teor.
17049   o Minor bugfixes (Linux seccomp2 sandboxing):
17050     - Allow statistics to be written to disk when "Sandbox 1" is
17051       enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and
17052       0.2.6.1-alpha respectively.
17054   o Minor bugfixes (user interface):
17055     - Remove a warning message "Service [scrubbed] not found after
17056       descriptor upload". This message appears when one uses HSPOST
17057       control command to upload a service descriptor. Since there is
17058       only a descriptor and no service, showing this message is
17059       pointless and confusing. Fixes bug 19464; bugfix on 0.2.7.2-alpha.
17061   o Fallback directory list:
17062     - Add a comment to the generated fallback directory list that
17063       explains how to comment out unsuitable fallbacks in a way that's
17064       compatible with the stem fallback parser.
17065     - Update fallback whitelist and blacklist based on relay operator
17066       emails. Blacklist unsuitable (non-working, over-volatile)
17067       fallbacks. Resolves ticket 19071. Patch by teor.
17068     - Remove 10 unsuitable fallbacks, leaving 90 of the 100 fallbacks
17069       originally introduced in Tor 0.2.8.2-alpha in March 2016. Closes
17070       ticket 19071; patch by teor.
17073 Changes in version 0.2.8.4-rc - 2016-06-15
17074   Tor 0.2.8.4-rc is the first release candidate in the Tor 0.2.8 series.
17075   If we find no new bugs or regressions here, the first stable 0.2.8
17076   release will be identical to it. It has a few small bugfixes against
17077   previous versions.
17079   o Major bugfixes (user interface):
17080     - Correctly give a warning in the cases where a relay is specified
17081       by nickname, and one such relay is found, but it is not officially
17082       Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha.
17084   o Minor features (build):
17085     - Tor now builds once again with the recent OpenSSL 1.1 development
17086       branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev).
17088   o Minor features (geoip):
17089     - Update geoip and geoip6 to the June 7 2016 Maxmind GeoLite2
17090       Country database.
17092   o Minor bugfixes (compilation):
17093     - Cause the unit tests to compile correctly on mingw64 versions that
17094       lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha.
17096   o Minor bugfixes (downloading):
17097     - Predict more correctly whether we'll be downloading over HTTP when
17098       we determine the maximum length of a URL. This should avoid a
17099       "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes
17100       bug 19191.
17103 Changes in version 0.2.8.3-alpha - 2016-05-26
17104   Tor 0.2.8.3-alpha resolves several bugs, most of them introduced over
17105   the course of the 0.2.8 development cycle. It improves the behavior of
17106   directory clients, fixes several crash bugs, fixes a gap in compiler
17107   hardening, and allows the full integration test suite to run on
17108   more platforms.
17110   o Major bugfixes (security, client, DNS proxy):
17111     - Stop a crash that could occur when a client running with DNSPort
17112       received a query with multiple address types, and the first
17113       address type was not supported. Found and fixed by Scott Dial.
17114       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
17116   o Major bugfixes (security, compilation):
17117     - Correctly detect compiler flags on systems where _FORTIFY_SOURCE
17118       is predefined. Previously, our use of -D_FORTIFY_SOURCE would
17119       cause a compiler warning, thereby making other checks fail, and
17120       needlessly disabling compiler-hardening support. Fixes one case of
17121       bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal".
17123   o Major bugfixes (security, directory authorities):
17124     - Fix a crash and out-of-bounds write during authority voting, when
17125       the list of relays includes duplicate ed25519 identity keys. Fixes
17126       bug 19032; bugfix on 0.2.8.2-alpha.
17128   o Major bugfixes (client, bootstrapping):
17129     - Check if bootstrap consensus downloads are still needed when the
17130       linked connection attaches. This prevents tor making unnecessary
17131       begindir-style connections, which are the only directory
17132       connections tor clients make since the fix for 18483 was merged.
17133     - Fix some edge cases where consensus download connections may not
17134       have been closed, even though they were not needed. Related to fix
17135       for 18809.
17136     - Make relays retry consensus downloads the correct number of times,
17137       rather than the more aggressive client retry count. Fixes part of
17138       ticket 18809.
17139     - Stop downloading consensuses when we have a consensus, even if we
17140       don't have all the certificates for it yet. Fixes bug 18809;
17141       bugfix on 0.2.8.1-alpha. Patches by arma and teor.
17143   o Major bugfixes (directory mirrors):
17144     - Decide whether to advertise begindir support in the the same way
17145       we decide whether to advertise our DirPort. Allowing these
17146       decisions to become out-of-sync led to surprising behavior like
17147       advertising begindir support when hibernation made us not
17148       advertise a DirPort. Resolves bug 18616; bugfix on 0.2.8.1-alpha.
17149       Patch by teor.
17151   o Major bugfixes (IPv6 bridges, client):
17152     - Actually use IPv6 addresses when selecting directory addresses for
17153       IPv6 bridges. Fixes bug 18921; bugfix on 0.2.8.1-alpha. Patch
17154       by "teor".
17156   o Major bugfixes (key management):
17157     - If OpenSSL fails to generate an RSA key, do not retain a dangling
17158       pointer to the previous (uninitialized) key value. The impact here
17159       should be limited to a difficult-to-trigger crash, if OpenSSL is
17160       running an engine that makes key generation failures possible, or
17161       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
17162       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
17163       Baishakhi Ray.
17165   o Major bugfixes (testing):
17166     - Fix a bug that would block 'make test-network-all' on systems where
17167       IPv6 packets were lost. Fixes bug 19008; bugfix on 0.2.7.3-rc.
17168     - Avoid "WSANOTINITIALISED" warnings in the unit tests. Fixes bug 18668;
17169       bugfix on 0.2.8.1-alpha.
17171   o Minor features (clients):
17172     - Make clients, onion services, and bridge relays always use an
17173       encrypted begindir connection for directory requests. Resolves
17174       ticket 18483. Patch by "teor".
17176   o Minor features (fallback directory mirrors):
17177     - Give each fallback the same weight for client selection; restrict
17178       fallbacks to one per operator; report fallback directory detail
17179       changes when rebuilding list; add new fallback directory mirrors
17180       to the whitelist; and many other minor simplifications and fixes.
17181       Closes tasks 17905, 18749, bug 18689, and fixes part of bug 18812 on
17182       0.2.8.1-alpha; patch by "teor".
17183     - Replace the 21 fallbacks generated in January 2016 and included in
17184       Tor 0.2.8.1-alpha, with a list of 100 fallbacks generated in March
17185       2016. Closes task 17158; patch by "teor".
17187   o Minor features (geoip):
17188     - Update geoip and geoip6 to the May 4 2016 Maxmind GeoLite2
17189       Country database.
17191   o Minor bugfixes (assert, portability):
17192     - Fix an assertion failure in memarea.c on systems where "long" is
17193       shorter than the size of a pointer. Fixes bug 18716; bugfix
17194       on 0.2.1.1-alpha.
17196   o Minor bugfixes (bootstrap):
17197     - Consistently use the consensus download schedule for authority
17198       certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha.
17200   o Minor bugfixes (build):
17201     - Remove a pair of redundant AM_CONDITIONAL declarations from
17202       configure.ac. Fixes one final case of bug 17744; bugfix
17203       on 0.2.8.2-alpha.
17204     - Resolve warnings when building on systems that are concerned with
17205       signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha
17206       and 0.2.6.1-alpha.
17207     - When libscrypt.h is found, but no libscrypt library can be linked,
17208       treat libscrypt as absent. Fixes bug 19161; bugfix
17209       on 0.2.6.1-alpha.
17211   o Minor bugfixes (client):
17212     - Turn all TestingClientBootstrap* into non-testing torrc options.
17213       This changes simply renames them by removing "Testing" in front of
17214       them and they do not require TestingTorNetwork to be enabled
17215       anymore. Fixes bug 18481; bugfix on 0.2.8.1-alpha.
17216     - Make directory node selection more reliable, mainly for IPv6-only
17217       clients and clients with few reachable addresses. Fixes bug 18929;
17218       bugfix on 0.2.8.1-alpha. Patch by "teor".
17220   o Minor bugfixes (controller, microdescriptors):
17221     - Make GETINFO dir/status-vote/current/consensus conform to the
17222       control specification by returning "551 Could not open cached
17223       consensus..." when not caching consensuses. Fixes bug 18920;
17224       bugfix on 0.2.2.6-alpha.
17226   o Minor bugfixes (crypto, portability):
17227     - The SHA3 and SHAKE routines now produce the correct output on Big
17228       Endian systems. No code calls either algorithm yet, so this is
17229       primarily a build fix. Fixes bug 18943; bugfix on 0.2.8.1-alpha.
17230     - Tor now builds again with the recent OpenSSL 1.1 development
17231       branch (tested against 1.1.0-pre4 and 1.1.0-pre5-dev). Closes
17232       ticket 18286.
17234   o Minor bugfixes (directories):
17235     - When fetching extrainfo documents, compare their SHA256 digests
17236       and Ed25519 signing key certificates with the routerinfo that led
17237       us to fetch them, rather than with the most recent routerinfo.
17238       Otherwise we generate many spurious warnings about mismatches.
17239       Fixes bug 17150; bugfix on 0.2.7.2-alpha.
17241   o Minor bugfixes (logging):
17242     - When we can't generate a signing key because OfflineMasterKey is
17243       set, do not imply that we should have been able to load it. Fixes
17244       bug 18133; bugfix on 0.2.7.2-alpha.
17245     - Stop periodic_event_dispatch() from blasting twelve lines per
17246       second at loglevel debug. Fixes bug 18729; fix on 0.2.8.1-alpha.
17247     - When rejecting a misformed INTRODUCE2 cell, only log at
17248       PROTOCOL_WARN severity. Fixes bug 18761; bugfix on 0.2.8.2-alpha.
17250   o Minor bugfixes (pluggable transports):
17251     - Avoid reporting a spurious error when we decide that we don't need
17252       to terminate a pluggable transport because it has already exited.
17253       Fixes bug 18686; bugfix on 0.2.5.5-alpha.
17255   o Minor bugfixes (pointer arithmetic):
17256     - Fix a bug in memarea_alloc() that could have resulted in remote
17257       heap write access, if Tor had ever passed an unchecked size to
17258       memarea_alloc(). Fortunately, all the sizes we pass to
17259       memarea_alloc() are pre-checked to be less than 128 kilobytes.
17260       Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by
17261       Guido Vranken.
17263   o Minor bugfixes (relays):
17264     - Consider more config options when relays decide whether to
17265       regenerate their descriptor. Fixes more of bug 12538; bugfix
17266       on 0.2.8.1-alpha.
17267     - Resolve some edge cases where we might launch an ORPort
17268       reachability check even when DisableNetwork is set. Noticed while
17269       fixing bug 18616; bugfix on 0.2.3.9-alpha.
17271   o Minor bugfixes (statistics):
17272     - We now include consensus downloads via IPv6 in our directory-
17273       request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha.
17275   o Minor bugfixes (testing):
17276     - Allow directories in small networks to bootstrap by skipping
17277       DirPort checks when the consensus has no exits. Fixes bug 19003;
17278       bugfix on 0.2.8.1-alpha. Patch by teor.
17279     - Fix a small memory leak that would occur when the
17280       TestingEnableCellStatsEvent option was turned on. Fixes bug 18673;
17281       bugfix on 0.2.5.2-alpha.
17283   o Minor bugfixes (time handling):
17284     - When correcting a corrupt 'struct tm' value, fill in the tm_wday
17285       field. Otherwise, our unit tests crash on Windows. Fixes bug
17286       18977; bugfix on 0.2.2.25-alpha.
17288   o Documentation:
17289     - Document the contents of the 'datadir/keys' subdirectory in the
17290       manual page. Closes ticket 17621.
17291     - Stop recommending use of nicknames to identify relays in our
17292       MapAddress documentation. Closes ticket 18312.
17295 Changes in version 0.2.8.2-alpha - 2016-03-28
17296   Tor 0.2.8.2-alpha is the second alpha in its series. It fixes numerous
17297   bugs in earlier versions of Tor, including some that prevented
17298   authorities using Tor 0.2.7.x from running correctly. IPv6 and
17299   directory support should also be much improved.
17301   o New system requirements:
17302     - Tor no longer supports versions of OpenSSL with a broken
17303       implementation of counter mode. (This bug was present in OpenSSL
17304       1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no
17305       longer runs with, these versions.
17306     - Tor no longer attempts to support platforms where the "time_t"
17307       type is unsigned. (To the best of our knowledge, only OpenVMS does
17308       this, and Tor has never actually built on OpenVMS.) Closes
17309       ticket 18184.
17310     - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or
17311       later (released in 2008 and 2009 respectively). If you are
17312       building Tor from the git repository instead of from the source
17313       distribution, and your tools are older than this, you will need to
17314       upgrade. Closes ticket 17732.
17316   o Major bugfixes (security, pointers):
17317     - Avoid a difficult-to-trigger heap corruption attack when extending
17318       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
17319       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
17320       Reported by Guido Vranken.
17322   o Major bugfixes (bridges, pluggable transports):
17323     - Modify the check for OR connections to private addresses. Allow
17324       bridges on private addresses, including pluggable transports that
17325       ignore the (potentially private) address in the bridge line. Fixes
17326       bug 18517; bugfix on 0.2.8.1-alpha. Reported by gk, patch by teor.
17328   o Major bugfixes (compilation):
17329     - Repair hardened builds under the clang compiler. Previously, our
17330       use of _FORTIFY_SOURCE would conflict with clang's address
17331       sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha.
17333   o Major bugfixes (crash on shutdown):
17334     - Correctly handle detaching circuits from muxes when shutting down.
17335       Fixes bug 18116; bugfix on 0.2.8.1-alpha.
17336     - Fix an assert-on-exit bug related to counting memory usage in
17337       rephist.c. Fixes bug 18651; bugfix on 0.2.8.1-alpha.
17339   o Major bugfixes (crash on startup):
17340     - Fix a segfault during startup: If a Unix domain socket was
17341       configured as listener (such as a ControlSocket or a SocksPort
17342       "unix:" socket), and tor was started as root but not configured to
17343       switch to another user, tor would segfault while trying to string
17344       compare a NULL value. Fixes bug 18261; bugfix on 0.2.8.1-alpha.
17345       Patch by weasel.
17347   o Major bugfixes (dns proxy mode, crash):
17348     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
17349       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
17351   o Major bugfixes (relays, bridge clients):
17352     - Ensure relays always allow IPv4 OR and Dir connections. Ensure
17353       bridge clients use the address configured in the bridge line.
17354       Fixes bug 18348; bugfix on 0.2.8.1-alpha. Reported by sysrqb,
17355       patch by teor.
17357   o Major bugfixes (voting):
17358     - Actually enable support for authorities to match routers by their
17359       Ed25519 identities. Previously, the code had been written, but
17360       some debugging code that had accidentally been left in the
17361       codebase made it stay turned off. Fixes bug 17702; bugfix
17362       on 0.2.7.2-alpha.
17363     - When collating votes by Ed25519 identities, authorities now
17364       include a "NoEdConsensus" flag if the ed25519 value (or lack
17365       thereof) for a server does not reflect the majority consensus.
17366       Related to bug 17668; bugfix on 0.2.7.2-alpha.
17367     - When generating a vote with keypinning disabled, never include two
17368       entries for the same ed25519 identity. This bug was causing
17369       authorities to generate votes that they could not parse when a
17370       router violated key pinning by changing its RSA identity but
17371       keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug
17372       18318. Bugfix on 0.2.7.2-alpha.
17374   o Minor features (security, win32):
17375     - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing
17376       attack. Fixes bug 18123; bugfix on all tor versions. Patch
17377       by teor.
17379   o Minor features (bug-resistance):
17380     - Make Tor survive errors involving connections without a
17381       corresponding event object. Previously we'd fail with an
17382       assertion; now we produce a log message. Related to bug 16248.
17384   o Minor features (build):
17385     - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD)
17386       as having possible IPFW support. Closes ticket 18448. Patch from
17387       Steven Chamberlain.
17389   o Minor features (code hardening):
17390     - Use tor_snprintf() and tor_vsnprintf() even in external and low-
17391       level code, to harden against accidental failures to NUL-
17392       terminate. Part of ticket 17852. Patch from jsturgix. Found
17393       with Flawfinder.
17395   o Minor features (crypto):
17396     - Validate the hard-coded Diffie-Hellman parameters and ensure that
17397       p is a safe prime, and g is a suitable generator. Closes
17398       ticket 18221.
17400   o Minor features (geoip):
17401     - Update geoip and geoip6 to the March 3 2016 Maxmind GeoLite2
17402       Country database.
17404   o Minor features (hidden service directory):
17405     - Streamline relay-side hsdir handling: when relays consider whether
17406       to accept an uploaded hidden service descriptor, they no longer
17407       check whether they are one of the relays in the network that is
17408       "supposed" to handle that descriptor. Implements ticket 18332.
17410   o Minor features (IPv6):
17411     - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
17412       to 1, tor prefers IPv6 directory addresses.
17413     - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
17414       avoids using IPv4 for client OR and directory connections.
17415     - Try harder to obey the IP version restrictions "ClientUseIPv4 0",
17416       "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and
17417       "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor.
17419   o Minor features (linux seccomp2 sandbox):
17420     - Reject attempts to change our Address with "Sandbox 1" enabled.
17421       Changing Address with Sandbox turned on would never actually work,
17422       but previously it would fail in strange and confusing ways. Found
17423       while fixing 18548.
17425   o Minor features (robustness):
17426     - Exit immediately with an error message if the code attempts to use
17427       Libevent without having initialized it. This should resolve some
17428       frequently-made mistakes in our unit tests. Closes ticket 18241.
17430   o Minor features (unix domain sockets):
17431     - Add a new per-socket option, RelaxDirModeCheck, to allow creating
17432       Unix domain sockets without checking the permissions on the parent
17433       directory. (Tor checks permissions by default because some
17434       operating systems only check permissions on the parent directory.
17435       However, some operating systems do look at permissions on the
17436       socket, and tor's default check is unneeded.) Closes ticket 18458.
17437       Patch by weasel.
17439   o Minor bugfixes (exit policies, security):
17440     - Refresh an exit relay's exit policy when interface addresses
17441       change. Previously, tor only refreshed the exit policy when the
17442       configured external address changed. Fixes bug 18208; bugfix on
17443       0.2.7.3-rc. Patch by teor.
17445   o Minor bugfixes (security, hidden services):
17446     - Prevent hidden services connecting to client-supplied rendezvous
17447       addresses that are reserved as internal or multicast. Fixes bug
17448       8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor.
17450   o Minor bugfixes (build):
17451     - Do not link the unit tests against both the testing and non-
17452       testing versions of the static libraries. Fixes bug 18490; bugfix
17453       on 0.2.7.1-alpha.
17454     - Avoid spurious failures from configure files related to calling
17455       exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18626; bugfix on
17456       0.2.0.1-alpha. Patch from "cypherpunks".
17457     - Silence spurious clang-scan warnings in the ed25519_donna code by
17458       explicitly initializing some objects. Fixes bug 18384; bugfix on
17459       0.2.7.2-alpha. Patch by teor.
17461   o Minor bugfixes (client, bootstrap):
17462     - Count receipt of new microdescriptors as progress towards
17463       bootstrapping. Previously, with EntryNodes set, Tor might not
17464       successfully repopulate the guard set on bootstrapping. Fixes bug
17465       16825; bugfix on 0.2.3.1-alpha.
17467   o Minor bugfixes (code correctness):
17468     - Update to the latest version of Trunnel, which tries harder to
17469       avoid generating code that can invoke memcpy(p,NULL,0). Bug found
17470       by clang address sanitizer. Fixes bug 18373; bugfix
17471       on 0.2.7.2-alpha.
17473   o Minor bugfixes (configuration):
17474     - Fix a tiny memory leak when parsing a port configuration ending in
17475       ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
17477   o Minor bugfixes (containers):
17478     - If we somehow attempt to construct a heap with more than
17479       1073741822 elements, avoid an integer overflow when maintaining
17480       the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha.
17482   o Minor bugfixes (correctness):
17483     - Fix a bad memory handling bug that would occur if we had queued a
17484       cell on a channel's incoming queue. Fortunately, we can't actually
17485       queue a cell like that as our code is constructed today, but it's
17486       best to avoid this kind of error, even if there isn't any code
17487       that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha.
17489   o Minor bugfixes (directory):
17490     - When generating a URL for a directory server on an IPv6 address,
17491       wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix
17492       on 0.2.3.9-alpha. Patch from Malek.
17494   o Minor bugfixes (fallback directory mirrors):
17495     - When requesting extrainfo descriptors from a trusted directory
17496       server, check whether it is an authority or a fallback directory
17497       which supports extrainfo descriptors. Fixes bug 18489; bugfix on
17498       0.2.4.7-alpha. Reported by atagar, patch by teor.
17500   o Minor bugfixes (hidden service, client):
17501     - Handle the case where the user makes several fast consecutive
17502       requests to the same .onion address. Previously, the first six
17503       requests would each trigger a descriptor fetch, each picking a
17504       directory (there are 6 overall) and the seventh one would fail
17505       because no directories were left, thereby triggering a close on
17506       all current directory connections asking for the hidden service.
17507       The solution here is to not close the connections if we have
17508       pending directory fetches. Fixes bug 15937; bugfix
17509       on 0.2.7.1-alpha.
17511   o Minor bugfixes (hidden service, control port):
17512     - Add the onion address to the HS_DESC event for the UPLOADED action
17513       both on success or failure. It was previously hardcoded with
17514       UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha.
17516   o Minor bugfixes (hidden service, directory):
17517     - Bridges now refuse "rendezvous2" (hidden service descriptor)
17518       publish attempts. Suggested by ticket 18332.
17520   o Minor bugfixes (linux seccomp2 sandbox):
17521     - Allow the setrlimit syscall, and the prlimit and prlimit64
17522       syscalls, which some libc implementations use under the hood.
17523       Fixes bug 15221; bugfix on 0.2.5.1-alpha.
17524     - Avoid a 10-second delay when starting as a client with "Sandbox 1"
17525       enabled and no DNS resolvers configured. This should help TAILS
17526       start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
17527     - Fix the sandbox's interoperability with unix domain sockets under
17528       setuid. Fixes bug 18253; bugfix on 0.2.8.1-alpha.
17530   o Minor bugfixes (logging):
17531     - When logging information about an unparsable networkstatus vote or
17532       consensus, do not say "vote" when we mean consensus. Fixes bug
17533       18368; bugfix on 0.2.0.8-alpha.
17534     - Scrub service name in "unrecognized service ID" log messages.
17535       Fixes bug 18600; bugfix on 0.2.4.11-alpha.
17536     - Downgrade logs and backtraces about IP versions to info-level.
17537       Only log backtraces once each time tor runs. Assists in diagnosing
17538       bug 18351; bugfix on 0.2.8.1-alpha. Reported by sysrqb and
17539       Christian, patch by teor.
17541   o Minor bugfixes (memory safety):
17542     - Avoid freeing an uninitialized pointer when opening a socket fails
17543       in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on
17544       0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch
17545       by teor.
17546     - Correctly duplicate addresses in get_interface_address6_list().
17547       Fixes bug 18454; bugfix on 0.2.8.1-alpha. Reported by toralf,
17548       patch by "cypherpunks".
17549     - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix
17550       on 0.2.0.1-alpha.
17551     - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug
17552       18672; bugfix on 0.2.5.1-alpha.
17554   o Minor bugfixes (private directory):
17555     - Prevent a race condition when creating private directories. Fixes
17556       part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852.
17557       Patch from jsturgix. Found with Flawfinder.
17559   o Minor bugfixes (test networks, IPv6):
17560     - Allow internal IPv6 addresses in descriptors in test networks.
17561       Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported
17562       by karsten.
17564   o Minor bugfixes (testing):
17565     - We no longer disable assertions in the unit tests when coverage is
17566       enabled. Instead, we require you to say --disable-asserts-in-tests
17567       to the configure script if you need assertions disabled in the
17568       unit tests (for example, if you want to perform branch coverage).
17569       Fixes bug 18242; bugfix on 0.2.7.1-alpha.
17571   o Minor bugfixes (time parsing):
17572     - Avoid overflow in tor_timegm when parsing dates in and after 2038
17573       on platforms with 32-bit time_t. Fixes bug 18479; bugfix on
17574       0.0.2pre14. Patch by teor.
17576   o Minor bugfixes (tor-gencert):
17577     - Correctly handle the case where an authority operator enters a
17578       passphrase but sends an EOF before sending a newline. Fixes bug
17579       17443; bugfix on 0.2.0.20-rc. Found by junglefowl.
17581   o Code simplification and refactoring:
17582     - Quote all the string interpolations in configure.ac -- even those
17583       which we are pretty sure can't contain spaces. Closes ticket
17584       17744. Patch from zerosion.
17585     - Remove specialized code for non-inplace AES_CTR. 99% of our AES is
17586       inplace, so there's no need to have a separate implementation for
17587       the non-inplace code. Closes ticket 18258. Patch from Malek.
17588     - Simplify return types for some crypto functions that can't
17589       actually fail. Patch from Hassan Alsibyani. Closes ticket 18259.
17591   o Documentation:
17592     - Change build messages to refer to "Fedora" instead of "Fedora
17593       Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426.
17594       Patches from "icanhasaccount" and "cypherpunks".
17596   o Removed features:
17597     - We no longer maintain an internal freelist in memarea.c.
17598       Allocators should be good enough to make this code unnecessary,
17599       and it's doubtful that it ever had any performance benefit.
17601   o Testing:
17602     - Fix several warnings from clang's address sanitizer produced in
17603       the unit tests.
17604     - Treat backtrace test failures as expected on FreeBSD until we
17605       solve bug 17808. Closes ticket 18204.
17608 Changes in version 0.2.8.1-alpha - 2016-02-04
17609   Tor 0.2.8.1-alpha is the first alpha release in its series. It
17610   includes numerous small features and bugfixes against previous Tor
17611   versions, and numerous small infrastructure improvements. The most
17612   notable features are a set of improvements to the directory subsystem.
17614   o Major features (security, Linux):
17615     - When Tor starts as root on Linux and is told to switch user ID, it
17616       can now retain the capability to bind to low ports. By default,
17617       Tor will do this only when it's switching user ID and some low
17618       ports have been configured. You can change this behavior with the
17619       new option KeepBindCapabilities. Closes ticket 8195.
17621   o Major features (directory system):
17622     - When bootstrapping multiple consensus downloads at a time, use the
17623       first one that starts downloading, and close the rest. This
17624       reduces failures when authorities or fallback directories are slow
17625       or down. Together with the code for feature 15775, this feature
17626       should reduces failures due to fallback churn. Implements ticket
17627       4483. Patch by "teor". Implements IPv4 portions of proposal 210 by
17628       "mikeperry" and "teor".
17629     - Include a trial list of 21 default fallback directories, generated
17630       in January 2016, based on an opt-in survey of suitable relays.
17631       Doing this should make clients bootstrap more quickly and reliably,
17632       and reduce the load on the directory authorities. Closes ticket
17633       15775. Patch by "teor".
17634       Candidates identified using an OnionOO script by "weasel", "teor",
17635       "gsathya", and "karsten".
17636     - Previously only relays that explicitly opened a directory port
17637       (DirPort) accepted directory requests from clients. Now all
17638       relays, with and without a DirPort, accept and serve tunneled
17639       directory requests that they receive through their ORPort. You can
17640       disable this behavior using the new DirCache option. Closes
17641       ticket 12538.
17643   o Major key updates:
17644     - Update the V3 identity key for the dannenberg directory authority:
17645       it was changed on 18 November 2015. Closes task 17906. Patch
17646       by "teor".
17648   o Minor features (security, clock):
17649     - Warn when the system clock appears to move back in time (when the
17650       state file was last written in the future). Tor doesn't know that
17651       consensuses have expired if the clock is in the past. Patch by
17652       "teor". Implements ticket 17188.
17654   o Minor features (security, exit policies):
17655     - ExitPolicyRejectPrivate now rejects more private addresses by
17656       default. Specifically, it now rejects the relay's outbound bind
17657       addresses (if configured), and the relay's configured port
17658       addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on
17659       0.2.0.11-alpha. Patch by "teor".
17661   o Minor features (security, memory erasure):
17662     - Set the unused entries in a smartlist to NULL. This helped catch
17663       a (harmless) bug, and shouldn't affect performance too much.
17664       Implements ticket 17026.
17665     - Use SecureMemoryWipe() function to securely clean memory on
17666       Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function.
17667       Implements feature 17986.
17668     - Use explicit_bzero or memset_s when present. Previously, we'd use
17669       OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches
17670       from <logan@hackers.mu> and <selven@hackers.mu>.
17671     - Make memwipe() do nothing when passed a NULL pointer or buffer of
17672       zero size. Check size argument to memwipe() for underflow. Fixes
17673       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
17674       patch by "teor".
17676   o Minor features (security, RNG):
17677     - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely,
17678       positively are not allowed to fail. Previously we depended on
17679       internal details of OpenSSL's behavior. Closes ticket 17686.
17680     - Never use the system entropy output directly for anything besides
17681       seeding the PRNG. When we want to generate important keys, instead
17682       of using system entropy directly, we now hash it with the PRNG
17683       stream. This may help resist certain attacks based on broken OS
17684       entropy implementations. Closes part of ticket 17694.
17685     - Use modern system calls (like getentropy() or getrandom()) to
17686       generate strong entropy on platforms that have them. Closes
17687       ticket 13696.
17689   o Minor features (accounting):
17690     - Added two modes to the AccountingRule option: One for limiting
17691       only the number of bytes sent ("AccountingRule out"), and one for
17692       limiting only the number of bytes received ("AccountingRule in").
17693       Closes ticket 15989; patch from "unixninja92".
17695   o Minor features (build):
17696     - Since our build process now uses "make distcheck", we no longer
17697       force "make dist" to depend on "make check". Closes ticket 17893;
17698       patch from "cypherpunks."
17699     - Tor now builds successfully with the recent OpenSSL 1.1
17700       development branch, and with the latest LibreSSL. Closes tickets
17701       17549, 17921, and 17984.
17703   o Minor features (controller):
17704     - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes
17705       tickets 16774 and 17817. Patch by George Tankersley.
17706     - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden
17707       service descriptor from a service's local hidden service
17708       descriptor cache. Closes ticket 14846.
17709     - Add 'GETINFO exit-policy/reject-private/[default,relay]', so
17710       controllers can examine the the reject rules added by
17711       ExitPolicyRejectPrivate. This makes it easier for stem to display
17712       exit policies.
17714   o Minor features (crypto):
17715     - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
17716       George Tankersley.
17717     - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783.
17718     - When allocating a digest state object, allocate no more space than
17719       we actually need. Previously, we would allocate as much space as
17720       the state for the largest algorithm would need. This change saves
17721       up to 672 bytes per circuit. Closes ticket 17796.
17722     - Improve performance when hashing non-multiple of 8 sized buffers,
17723       based on Andrew Moon's public domain SipHash-2-4 implementation.
17724       Fixes bug 17544; bugfix on 0.2.5.3-alpha.
17726   o Minor features (directory downloads):
17727     - Wait for busy authorities and fallback directories to become non-
17728       busy when bootstrapping. (A similar change was made in 6c443e987d
17729       for directory caches chosen from the consensus.) Closes ticket
17730       17864; patch by "teor".
17731     - Add UseDefaultFallbackDirs, which enables any hard-coded fallback
17732       directory mirrors. The default is 1; set it to 0 to disable
17733       fallbacks. Implements ticket 17576. Patch by "teor".
17735   o Minor features (geoip):
17736     - Update geoip and geoip6 to the January 5 2016 Maxmind GeoLite2
17737       Country database.
17739   o Minor features (IPv6):
17740     - Add an argument 'ipv6=address:orport' to the DirAuthority and
17741       FallbackDir torrc options, to specify an IPv6 address for an
17742       authority or fallback directory. Add hard-coded ipv6 addresses for
17743       directory authorities that have them. Closes ticket 17327; patch
17744       from Nick Mathewson and "teor".
17745     - Add address policy assume_action support for IPv6 addresses.
17746     - Limit IPv6 mask bits to 128.
17747     - Warn when comparing against an AF_UNSPEC address in a policy, it's
17748       almost always a bug. Closes ticket 17863; patch by "teor".
17749     - Allow users to configure directory authorities and fallback
17750       directory servers with IPv6 addresses and ORPorts. Resolves
17751       ticket 6027.
17752     - routerset_parse now accepts IPv6 literal addresses. Fixes bug
17753       17060; bugfix on 0.2.1.3-alpha. Patch by "teor".
17754     - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug
17755       17638; bugfix on 0.0.2pre8. Patch by "teor".
17757   o Minor features (logging):
17758     - When logging to syslog, allow a tag to be added to the syslog
17759       identity (the string prepended to every log message). The tag can
17760       be configured with SyslogIdentityTag and defaults to none. Setting
17761       it to "foo" will cause logs to be tagged as "Tor-foo". Closes
17762       ticket 17194.
17764   o Minor features (portability):
17765     - Use timingsafe_memcmp() where available. Closes ticket 17944;
17766       patch from <logan@hackers.mu>.
17768   o Minor features (relay, address discovery):
17769     - Add a family argument to get_interface_addresses_raw() and
17770       subfunctions to make network interface address interogation more
17771       efficient. Now Tor can specifically ask for IPv4, IPv6 or both
17772       types of interfaces from the operating system. Resolves
17773       ticket 17950.
17774     - When get_interface_address6_list(.,AF_UNSPEC,.) is called and
17775       fails to enumerate interface addresses using the platform-specific
17776       API, have it rely on the UDP socket fallback technique to try and
17777       find out what IP addresses (both IPv4 and IPv6) our machine has.
17778       Resolves ticket 17951.
17780   o Minor features (replay cache):
17781     - The replay cache now uses SHA256 instead of SHA1. Implements
17782       feature 8961. Patch by "teor", issue reported by "rransom".
17784   o Minor features (unix file permissions):
17785     - Defer creation of Unix sockets until after setuid. This avoids
17786       needing CAP_CHOWN and CAP_FOWNER when using systemd's
17787       CapabilityBoundingSet, or chown and fowner when using SELinux.
17788       Implements part of ticket 17562. Patch from Jamie Nguyen.
17789     - If any directory created by Tor is marked as group readable, the
17790       filesystem group is allowed to be either the default GID or the
17791       root user. Allowing root to read the DataDirectory prevents the
17792       need for CAP_READ_SEARCH when using systemd's
17793       CapabilityBoundingSet, or dac_read_search when using SELinux.
17794       Implements part of ticket 17562. Patch from Jamie Nguyen.
17795     - Introduce a new DataDirectoryGroupReadable option. If it is set to
17796       1, the DataDirectory will be made readable by the default GID.
17797       Implements part of ticket 17562. Patch from Jamie Nguyen.
17799   o Minor bugfixes (accounting):
17800     - The max bandwidth when using 'AccountRule sum' is now correctly
17801       logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch
17802       from "unixninja92".
17804   o Minor bugfixes (code correctness):
17805     - When closing an entry connection, generate a warning if we should
17806       have sent an end cell for it but we haven't. Fixes bug 17876;
17807       bugfix on 0.2.3.2-alpha.
17808     - Assert that allocated memory held by the reputation code is freed
17809       according to its internal counters. Fixes bug 17753; bugfix
17810       on 0.1.1.1-alpha.
17811     - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
17812       bugfix on 0.0.6.
17814   o Minor bugfixes (compilation):
17815     - Mark all object files that include micro-revision.i as depending
17816       on it, so as to make parallel builds more reliable. Fixes bug
17817       17826; bugfix on 0.2.5.1-alpha.
17818     - Don't try to use the pthread_condattr_setclock() function unless
17819       it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
17820       17819; bugfix on 0.2.6.3-alpha.
17821     - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix
17822       on 0.2.5.2-alpha.
17823     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
17824       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
17825     - Fix search for libevent libraries on OpenBSD (and other systems
17826       that install libevent 1 and libevent 2 in parallel). Fixes bug
17827       16651; bugfix on 0.1.0.7-rc. Patch from "rubiate".
17828     - Isolate environment variables meant for tests from the rest of the
17829       build system. Fixes bug 17818; bugfix on 0.2.7.3-rc.
17830     - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix
17831       on 0.0.2pre8.
17832     - Remove config.log only from make distclean, not from make clean.
17833       Fixes bug 17924; bugfix on 0.2.4.1-alpha.
17835   o Minor bugfixes (crypto):
17836     - Check the return value of HMAC() and assert on failure. Fixes bug
17837       17658; bugfix on 0.2.3.6-alpha. Patch by "teor".
17839   o Minor bugfixes (fallback directories):
17840     - Mark fallbacks as "too busy" when they return a 503 response,
17841       rather than just marking authorities. Fixes bug 17572; bugfix on
17842       0.2.4.7-alpha. Patch by "teor".
17844   o Minor bugfixes (IPv6):
17845     - Update the limits in max_dl_per_request for IPv6 address length.
17846       Fixes bug 17573; bugfix on 0.2.1.5-alpha.
17848   o Minor bugfixes (linux seccomp2 sandbox):
17849     - Fix a crash when using offline master ed25519 keys with the Linux
17850       seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc.
17852   o Minor bugfixes (logging):
17853     - In log messages that include a function name, use __FUNCTION__
17854       instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but
17855       with clang __PRETTY_FUNCTION__ has extra information we don't
17856       need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van
17857       der Woerdt.
17858     - Remove needless quotes from a log message about unparseable
17859       addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha.
17861   o Minor bugfixes (portability):
17862     - Remove an #endif from configure.ac so that we correctly detect the
17863       presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix
17864       on 0.2.0.13-alpha.
17866   o Minor bugfixes (relays):
17867     - Check that both the ORPort and DirPort (if present) are reachable
17868       before publishing a relay descriptor. Otherwise, relays publish a
17869       descriptor with DirPort 0 when the DirPort reachability test takes
17870       longer than the ORPort reachability test. Fixes bug 18050; bugfix
17871       on 0.1.0.1-rc. Reported by "starlight", patch by "teor".
17873   o Minor bugfixes (relays, hidden services):
17874     - Refuse connection requests to private OR addresses unless
17875       ExtendAllowPrivateAddresses is set. Previously, tor would connect,
17876       then refuse to send any cells to a private address. Fixes bugs
17877       17674 and 8976; bugfix on 0.2.3.21-rc. Patch by "teor".
17879   o Minor bugfixes (safe logging):
17880     - When logging a malformed hostname received through socks4, scrub
17881       it if SafeLogging says we should. Fixes bug 17419; bugfix
17882       on 0.1.1.16-rc.
17884   o Minor bugfixes (statistics code):
17885     - Consistently check for overflow in round_*_to_next_multiple_of
17886       functions, and add unit tests with additional and maximal values.
17887       Fixes part of bug 13192; bugfix on 0.2.2.1-alpha.
17888     - Handle edge cases in the laplace functions: avoid division by
17889       zero, avoid taking the log of zero, and silence clang type
17890       conversion warnings using round and trunc. Add unit tests for edge
17891       cases with maximal values. Fixes part of bug 13192; bugfix
17892       on 0.2.6.2-alpha.
17894   o Minor bugfixes (testing):
17895     - The test for log_heartbeat was incorrectly failing in timezones
17896       with non-integer offsets. Instead of comparing the end of the time
17897       string against a constant, compare it to the output of
17898       format_local_iso_time when given the correct input. Fixes bug
17899       18039; bugfix on 0.2.5.4-alpha.
17900     - Make unit tests pass on IPv6-only systems, and systems without
17901       localhost addresses (like some FreeBSD jails). Fixes bug 17632;
17902       bugfix on 0.2.7.3-rc. Patch by "teor".
17903     - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix
17904       on 0.2.4.8-alpha.
17905     - Check the full results of SHA256 and SHA512 digests in the unit
17906       tests. Bugfix on 0.2.2.4-alpha. Patch by "teor".
17908   o Code simplification and refactoring:
17909     - Move logging of redundant policy entries in
17910       policies_parse_exit_policy_internal into its own function. Closes
17911       ticket 17608; patch from "juce".
17912     - Extract the more complicated parts of circuit_mark_for_close()
17913       into a new function that we run periodically before circuits are
17914       freed. This change removes more than half of the functions
17915       currently in the "blob". Closes ticket 17218.
17916     - Clean up a little duplicated code in
17917       crypto_expand_key_material_TAP(). Closes ticket 17587; patch
17918       from "pfrankw".
17919     - Decouple the list of streams waiting to be attached to circuits
17920       from the overall connection list. This change makes it possible to
17921       attach streams quickly while simplifying Tor's callgraph and
17922       avoiding O(N) scans of the entire connection list. Closes
17923       ticket 17590.
17924     - When a direct directory request fails immediately on launch,
17925       instead of relaunching that request from inside the code that
17926       launches it, instead mark the connection for teardown. This change
17927       simplifies Tor's callback and prevents the directory-request
17928       launching code from invoking itself recursively. Closes
17929       ticket 17589
17930     - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't
17931       use them. Closes ticket 17926.
17933   o Documentation:
17934     - Add a description of the correct use of the '--keygen' command-
17935       line option. Closes ticket 17583; based on text by 's7r'.
17936     - Document the minimum HeartbeatPeriod value. Closes ticket 15638.
17937     - Explain actual minima for BandwidthRate. Closes ticket 16382.
17938     - Fix a minor formatting typo in the manpage. Closes ticket 17791.
17939     - Mention torspec URL in the manpage and point the reader to it
17940       whenever we mention a document that belongs in torspce. Fixes
17941       issue 17392.
17943   o Removed features:
17944     - Remove client-side support for connecting to Tor relays running
17945       versions of Tor before 0.2.3.6-alpha. These relays didn't support
17946       the v3 TLS handshake protocol, and are no longer allowed on the
17947       Tor network. Implements the client side of ticket 11150. Based on
17948       patches by Tom van der Woerdt.
17950   o Testing:
17951     - Add unit tests to check for common RNG failure modes, such as
17952       returning all zeroes, identical values, or incrementing values
17953       (OpenSSL's rand_predictable feature). Patch by "teor".
17954     - Log more information when the backtrace tests fail. Closes ticket
17955       17892. Patch from "cypherpunks."
17956     - Always test both ed25519 backends, so that we can be sure that our
17957       batch-open replacement code works. Part of ticket 16794.
17958     - Cover dns_resolve_impl() in dns.c with unit tests. Implements a
17959       portion of ticket 16831.
17960     - More unit tests for compat_libevent.c, procmon.c, tortls.c,
17961       util_format.c, directory.c, and options_validate.c. Closes tickets
17962       17075, 17082, 17084, 17003, and 17076 respectively. Patches from
17963       Ola Bini.
17964     - Unit tests for directory_handle_command_get. Closes ticket 17004.
17965       Patch from Reinaldo de Souza Jr.
17968 Changes in version 0.2.7.6 - 2015-12-10
17969   Tor version 0.2.7.6 fixes a major bug in entry guard selection, as
17970   well as a minor bug in hidden service reliability.
17972   o Major bugfixes (guard selection):
17973     - Actually look at the Guard flag when selecting a new directory
17974       guard. When we implemented the directory guard design, we
17975       accidentally started treating all relays as if they have the Guard
17976       flag during guard selection, leading to weaker anonymity and worse
17977       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
17978       by Mohsen Imani.
17980   o Minor features (geoip):
17981     - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2
17982       Country database.
17984   o Minor bugfixes (compilation):
17985     - When checking for net/pfvar.h, include netinet/in.h if possible.
17986       This fixes transparent proxy detection on OpenBSD. Fixes bug
17987       17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
17988     - Fix a compilation warning with Clang 3.6: Do not check the
17989       presence of an address which can never be NULL. Fixes bug 17781.
17991   o Minor bugfixes (correctness):
17992     - When displaying an IPv6 exit policy, include the mask bits
17993       correctly even when the number is greater than 31. Fixes bug
17994       16056; bugfix on 0.2.4.7-alpha. Patch from "gturner".
17995     - The wrong list was used when looking up expired intro points in a
17996       rend service object, causing what we think could be reachability
17997       issues for hidden services, and triggering a BUG log. Fixes bug
17998       16702; bugfix on 0.2.7.2-alpha.
17999     - Fix undefined behavior in the tor_cert_checksig function. Fixes
18000       bug 17722; bugfix on 0.2.7.2-alpha.
18003 Changes in version 0.2.7.5 - 2015-11-20
18004   The Tor 0.2.7 release series is dedicated to the memory of Tor user
18005   and privacy advocate Caspar Bowden (1961-2015). Caspar worked
18006   tirelessly to advocate human rights regardless of national borders,
18007   and oppose the encroachments of mass surveillance. He opposed national
18008   exceptionalism, he brought clarity to legal and policy debates, he
18009   understood and predicted the impact of mass surveillance on the world,
18010   and he laid the groundwork for resisting it. While serving on the Tor
18011   Project's board of directors, he brought us his uncompromising focus
18012   on technical excellence in the service of humankind. Caspar was an
18013   inimitable force for good and a wonderful friend. He was kind,
18014   humorous, generous, gallant, and believed we should protect one
18015   another without exception. We honor him here for his ideals, his
18016   efforts, and his accomplishments. Please honor his memory with works
18017   that would make him proud.
18019   Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series.
18021   The 0.2.7 series adds a more secure identity key type for relays,
18022   improves cryptography performance, resolves several longstanding
18023   hidden-service performance issues, improves controller support for
18024   hidden services, and includes small bugfixes and performance
18025   improvements throughout the program. This release series also includes
18026   more tests than before, and significant simplifications to which parts
18027   of Tor invoke which others.
18029   (This release contains no code changes since 0.2.7.4-rc.)
18032 Changes in version 0.2.7.4-rc - 2015-10-21
18033   Tor 0.2.7.4-rc is the second release candidate in the 0.2.7 series. It
18034   fixes some important memory leaks, and a scary-looking (but mostly
18035   harmless in practice) invalid-read bug. It also has a few small
18036   bugfixes, notably fixes for compilation and portability on different
18037   platforms. If no further significant bounds are found, the next
18038   release will the the official stable release.
18040   o Major bugfixes (security, correctness):
18041     - Fix an error that could cause us to read 4 bytes before the
18042       beginning of an openssl string. This bug could be used to cause
18043       Tor to crash on systems with unusual malloc implementations, or
18044       systems with unusual hardening installed. Fixes bug 17404; bugfix
18045       on 0.2.3.6-alpha.
18047   o Major bugfixes (correctness):
18048     - Fix a use-after-free bug in validate_intro_point_failure(). Fixes
18049       bug 17401; bugfix on 0.2.7.3-rc.
18051   o Major bugfixes (memory leaks):
18052     - Fix a memory leak in ed25519 batch signature checking. Fixes bug
18053       17398; bugfix on 0.2.6.1-alpha.
18054     - Fix a memory leak in rend_cache_failure_entry_free(). Fixes bug
18055       17402; bugfix on 0.2.7.3-rc.
18056     - Fix a memory leak when reading an expired signing key from disk.
18057       Fixes bug 17403; bugfix on 0.2.7.2-rc.
18059   o Minor features (geoIP):
18060     - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2
18061       Country database.
18063   o Minor bugfixes (compilation):
18064     - Repair compilation with the most recent (unreleased, alpha)
18065       vesions of OpenSSL 1.1. Fixes part of ticket 17237.
18066     - Fix an integer overflow warning in test_crypto_slow.c. Fixes bug
18067       17251; bugfix on 0.2.7.2-alpha.
18068     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
18069       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
18071   o Minor bugfixes (portability):
18072     - Use libexecinfo on FreeBSD to enable backtrace support. Fixes
18073       part of bug 17151; bugfix on 0.2.5.2-alpha. Patch from
18074       Marcin Cieślak.
18076   o Minor bugfixes (sandbox):
18077     - Add the "hidserv-stats" filename to our sandbox filter for the
18078       HiddenServiceStatistics option to work properly. Fixes bug 17354;
18079       bugfix on 0.2.6.2-alpha. Patch from David Goulet.
18081   o Minor bugfixes (testing):
18082     - Add unit tests for get_interface_address* failure cases. Fixes bug
18083       17173; bugfix on 0.2.7.3-rc. Patch by fk/teor.
18084     - Fix breakage when running 'make check' with BSD make. Fixes bug
18085       17154; bugfix on 0.2.7.3-rc. Patch by Marcin Cieślak.
18086     - Make the get_ifaddrs_* unit tests more tolerant of different
18087       network configurations. (Don't assume every test box has an IPv4
18088       address, and don't assume every test box has a non-localhost
18089       address.) Fixes bug 17255; bugfix on 0.2.7.3-rc. Patch by "teor".
18090     - Skip backtrace tests when backtrace support is not compiled in.
18091       Fixes part of bug 17151; bugfix on 0.2.7.1-alpha. Patch from
18092       Marcin Cieślak.
18094   o Documentation:
18095     - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609.
18096     - Note that HiddenServicePorts can take a unix domain socket. Closes
18097       ticket 17364.
18100 Changes in version 0.2.7.3-rc - 2015-09-25
18101   Tor 0.2.7.3-rc is the first release candidate in the 0.2.7 series. It
18102   contains numerous usability fixes for Ed25519 keys, safeguards against
18103   several misconfiguration problems, significant simplifications to
18104   Tor's callgraph, and numerous bugfixes and small features.
18106   This is the most tested release of Tor to date. The unit tests cover
18107   39.40% of the code, and the integration tests (accessible with "make
18108   test-full-online", requiring stem and chutney and a network
18109   connection) raise the coverage to 64.49%.
18111   o Major features (security, hidden services):
18112     - Hidden services, if using the EntryNodes option, are required to
18113       use more than one EntryNode, in order to avoid a guard discovery
18114       attack. (This would only affect people who had configured hidden
18115       services and manually specified the EntryNodes option with a
18116       single entry-node. The impact was that it would be easy to
18117       remotely identify the guard node used by such a hidden service.
18118       See ticket for more information.) Fixes ticket 14917.
18120   o Major features (Ed25519 keys, keypinning):
18121     - The key-pinning option on directory authorities is now advisory-
18122       only by default. In a future version, or when the AuthDirPinKeys
18123       option is set, pins are enforced again. Disabling key-pinning
18124       seemed like a good idea so that we can survive the fallout of any
18125       usability problems associated with Ed25519 keys. Closes
18126       ticket 17135.
18128   o Major features (Ed25519 performance):
18129     - Improve the speed of Ed25519 operations and Curve25519 keypair
18130       generation when built targeting 32 bit x86 platforms with SSE2
18131       available. Implements ticket 16535.
18132     - Improve the runtime speed of Ed25519 signature verification by
18133       using Ed25519-donna's batch verification support. Implements
18134       ticket 16533.
18136   o Major features (performance testing):
18137     - The test-network.sh script now supports performance testing.
18138       Requires corresponding chutney performance testing changes. Patch
18139       by "teor". Closes ticket 14175.
18141   o Major features (relay, Ed25519):
18142     - Significant usability improvements for Ed25519 key management. Log
18143       messages are better, and the code can recover from far more
18144       failure conditions. Thanks to "s7r" for reporting and diagnosing
18145       so many of these!
18146     - Add a new OfflineMasterKey option to tell Tor never to try loading
18147       or generating a secret Ed25519 identity key. You can use this in
18148       combination with tor --keygen to manage offline and/or encrypted
18149       Ed25519 keys. Implements ticket 16944.
18150     - Add a --newpass option to allow changing or removing the
18151       passphrase of an encrypted key with tor --keygen. Implements part
18152       of ticket 16769.
18153     - On receiving a HUP signal, check to see whether the Ed25519
18154       signing key has changed, and reload it if so. Closes ticket 16790.
18156   o Major bugfixes (relay, Ed25519):
18157     - Avoid crashing on 'tor --keygen'. Fixes bug 16679; bugfix on
18158       0.2.7.2-alpha. Reported by "s7r".
18159     - Improve handling of expired signing keys with offline master keys.
18160       Fixes bug 16685; bugfix on 0.2.7.2-alpha. Reported by "s7r".
18162   o Minor features (client-side privacy):
18163     - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit
18164       lifespan when IsolateSOCKSAuth and streams with SOCKS
18165       authentication are attached to the circuit. This allows
18166       applications like TorBrowser to manage circuit lifetime on their
18167       own. Implements feature 15482.
18168     - When logging malformed hostnames from SOCKS5 requests, respect
18169       SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc.
18171   o Minor features (compilation):
18172     - Give a warning as early as possible when trying to build with an
18173       unsupported OpenSSL version. Closes ticket 16901.
18174     - Fail during configure if we're trying to build against an OpenSSL
18175       built without ECC support. Fixes bug 17109, bugfix on 0.2.7.1-alpha
18176       which started requiring ECC.
18178   o Minor features (geoip):
18179     - Update geoip and geoip6 to the September 3 2015 Maxmind GeoLite2
18180       Country database.
18182   o Minor features (hidden services):
18183     - Relays need to have the Fast flag to get the HSDir flag. As this
18184       is being written, we'll go from 2745 HSDirs down to 2342, a ~14%
18185       drop. This change should make some attacks against the hidden
18186       service directory system harder. Fixes ticket 15963.
18187     - Turn on hidden service statistics collection by setting the torrc
18188       option HiddenServiceStatistics to "1" by default. (This keeps
18189       track only of the fraction of traffic used by hidden services, and
18190       the total number of hidden services in existence.) Closes
18191       ticket 15254.
18192     - Client now uses an introduction point failure cache to know when
18193       to fetch or keep a descriptor in their cache. Previously, failures
18194       were recorded implicitly, but not explicitly remembered. Closes
18195       ticket 16389.
18197   o Minor features (testing, authorities, documentation):
18198     - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to
18199       explicitly manage consensus flags in testing networks. Patch by
18200       "robgjansen", modified by "teor". Implements part of ticket 14882.
18202   o Minor bugfixes (security, exit policies):
18203     - ExitPolicyRejectPrivate now also rejects the relay's published
18204       IPv6 address (if any), and any publicly routable IPv4 or IPv6
18205       addresses on any local interfaces. ticket 17027. Patch by "teor".
18206       Fixes bug 17027; bugfix on 0.2.0.11-alpha.
18208   o Minor bug fixes (torrc exit policies):
18209     - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only
18210       produce IPv6 wildcard addresses. Previously they would produce
18211       both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part
18212       of bug 16069; bugfix on 0.2.4.7-alpha.
18213     - When parsing torrc ExitPolicies, we now warn for a number of cases
18214       where the user's intent is likely to differ from Tor's actual
18215       behavior. These include: using an IPv4 address with an accept6 or
18216       reject6 line; using "private" on an accept6 or reject6 line; and
18217       including any ExitPolicy lines after accept *:* or reject *:*.
18218       Related to ticket 16069.
18219     - When parsing torrc ExitPolicies, we now issue an info-level
18220       message when expanding an "accept/reject *" line to include both
18221       IPv4 and IPv6 wildcard addresses. Related to ticket 16069.
18222     - In each instance above, usage advice is provided to avoid the
18223       message. Resolves ticket 16069. Patch by "teor". Fixes part of bug
18224       16069; bugfix on 0.2.4.7-alpha.
18226   o Minor bugfixes (authority):
18227     - Don't assign "HSDir" to a router if it isn't Valid and Running.
18228       Fixes bug 16524; bugfix on 0.2.7.2-alpha.
18229     - Downgrade log messages about Ed25519 key issues if they are in old
18230       cached router descriptors. Fixes part of bug 16286; bugfix
18231       on 0.2.7.2-alpha.
18232     - When we find an Ed25519 key issue in a cached descriptor, stop
18233       saying the descriptor was just "uploaded". Fixes another part of
18234       bug 16286; bugfix on 0.2.7.2-alpha.
18236   o Minor bugfixes (control port):
18237     - Repair a warning and a spurious result when getting the maximum
18238       number of file descriptors from the controller. Fixes bug 16697;
18239       bugfix on 0.2.7.2-alpha.
18241   o Minor bugfixes (correctness):
18242     - When calling channel_free_list(), avoid calling smartlist_remove()
18243       while inside a FOREACH loop. This partially reverts commit
18244       17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
18245       incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha.
18247   o Minor bugfixes (documentation):
18248     - Advise users on how to configure separate IPv4 and IPv6 exit
18249       policies in the manpage and sample torrcs. Related to ticket 16069.
18250     - Fix the usage message of tor-resolve(1) so that it no longer lists
18251       the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta.
18252     - Fix an error in the manual page and comments for
18253       TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir
18254       required "ORPort connectivity". While this is true, it is in no
18255       way unique to the HSDir flag. Of all the flags, only HSDirs need a
18256       DirPort configured in order for the authorities to assign that
18257       particular flag. Patch by "teor". Fixed as part of 14882; bugfix
18258       on 0.2.6.3-alpha.
18260   o Minor bugfixes (Ed25519):
18261     - Fix a memory leak when reading router descriptors with expired
18262       Ed25519 certificates. Fixes bug 16539; bugfix on 0.2.7.2-alpha.
18264   o Minor bugfixes (linux seccomp2 sandbox):
18265     - Allow bridge authorities to run correctly under the seccomp2
18266       sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha.
18267     - Allow routers with ed25519 keys to run correctly under the
18268       seccomp2 sandbox. Fixes bug 16965; bugfix on 0.2.7.2-alpha.
18270   o Minor bugfixes (open file limit):
18271     - Fix set_max_file_descriptors() to set by default the max open file
18272       limit to the current limit when setrlimit() fails. Fixes bug
18273       16274; bugfix on 0.2.0.10-alpha. Patch by dgoulet.
18275   o Minor bugfixes (portability):
18276     - Try harder to normalize the exit status of the Tor process to the
18277       standard-provided range. Fixes bug 16975; bugfix on every version
18278       of Tor ever.
18279     - Check correctly for Windows socket errors in the workqueue
18280       backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha.
18281     - Fix the behavior of crypto_rand_time_range() when told to consider
18282       times before 1970. (These times were possible when running in a
18283       simulated network environment where time()'s output starts at
18284       zero.) Fixes bug 16980; bugfix on 0.2.7.1-alpha.
18285     - Restore correct operation of TLS client-cipher detection on
18286       OpenSSL 1.1. Fixes bug 14047; bugfix on 0.2.7.2-alpha.
18288   o Minor bugfixes (relay):
18289     - Ensure that worker threads actually exit when a fatal error or
18290       shutdown is indicated. This fix doesn't currently affect the
18291       behavior of Tor, because Tor workers never indicates fatal error
18292       or shutdown except in the unit tests. Fixes bug 16868; bugfix
18293       on 0.2.6.3-alpha.
18294     - Unblock threads before releasing the work queue mutex to ensure
18295       predictable scheduling behavior. Fixes bug 16644; bugfix
18296       on 0.2.6.3-alpha.
18298   o Code simplification and refactoring:
18299     - Change the function that's called when we need to retry all
18300       downloads so that it only reschedules the downloads to happen
18301       immediately, rather than launching them all at once itself. This
18302       further simplifies Tor's callgraph.
18303     - Move some format-parsing functions out of crypto.c and
18304       crypto_curve25519.c into crypto_format.c and/or util_format.c.
18305     - Move the client-only parts of init_keys() into a separate
18306       function. Closes ticket 16763.
18307     - Simplify the microdesc_free() implementation so that it no longer
18308       appears (to code analysis tools) to potentially invoke a huge
18309       suite of other microdesc functions.
18310     - Simply the control graph further by deferring the inner body of
18311       directory_all_unreachable() into a callback. Closes ticket 16762.
18312     - Treat the loss of an owning controller as equivalent to a SIGTERM
18313       signal. This removes a tiny amount of duplicated code, and
18314       simplifies our callgraph. Closes ticket 16788.
18315     - When generating an event to send to the controller, we no longer
18316       put the event over the network immediately. Instead, we queue
18317       these events, and use a Libevent callback to deliver them. This
18318       change simplifies Tor's callgraph by reducing the number of
18319       functions from which all other Tor functions are reachable. Closes
18320       ticket 16695.
18321     - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools
18322       that try to scan or compile every file on Unix won't decide that
18323       they are broken.
18324     - Remove the unused "nulterminate" argument from buf_pullup().
18326   o Documentation:
18327     - Recommend a 40 GB example AccountingMax in torrc.sample rather
18328       than a 4 GB max. Closes ticket 16742.
18329     - Include the TUNING document in our source tarball. It is referred
18330       to in the ChangeLog and an error message. Fixes bug 16929; bugfix
18331       on 0.2.6.1-alpha.
18333   o Removed code:
18334     - The internal pure-C tor-fw-helper tool is now removed from the Tor
18335       distribution, in favor of the pure-Go clone available from
18336       https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries
18337       used by the C tor-fw-helper are not, in our opinion, very
18338       confidence- inspiring in their secure-programming techniques.
18339       Closes ticket 13338.
18340     - Remove the code that would try to aggressively flush controller
18341       connections while writing to them. This code was introduced in
18342       0.1.2.7-alpha, in order to keep output buffers from exceeding
18343       their limits. But there is no longer a maximum output buffer size,
18344       and flushing data in this way caused some undesirable recursions
18345       in our call graph. Closes ticket 16480.
18347   o Testing:
18348     - Make "bridges+hs" the default test network. This tests almost all
18349       tor functionality during make test-network, while allowing tests
18350       to succeed on non-IPv6 systems. Requires chutney commit 396da92 in
18351       test-network-bridges-hs. Closes tickets 16945 (tor) and 16946
18352       (chutney). Patches by "teor".
18353     - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side-
18354       by-side in the same parent directory. Closes ticket 16903. Patch
18355       by "teor".
18356     - Use environment variables rather than autoconf substitutions to
18357       send variables from the build system to the test scripts. This
18358       change should be easier to maintain, and cause 'make distcheck' to
18359       work better than before. Fixes bug 17148.
18360     - Add a new set of callgraph analysis scripts that use clang to
18361       produce a list of which Tor functions are reachable from which
18362       other Tor functions. We're planning to use these to help simplify
18363       our code structure by identifying illogical dependencies.
18364     - Add new 'test-full' and 'test-full-online' targets to run all
18365       tests, including integration tests with stem and chutney.
18366     - Make the test-workqueue test work on Windows by initializing the
18367       network before we begin.
18368     - New make target (make test-network-all) to run multiple applicable
18369       chutney test cases. Patch from Teor; closes 16953.
18370     - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl()
18371       functions in dns.c. Implements a portion of ticket 16831.
18372     - When building Tor with testing coverage enabled, run Chutney tests
18373       (if any) using the 'tor-cov' coverage binary.
18374     - When running test-network or test-stem, check for the absence of
18375       stem/chutney before doing any build operations.
18378 Changes in version 0.2.7.2-alpha - 2015-07-27
18379   This, the second alpha in the Tor 0.2.7 series, has a number of new
18380   features, including a way to manually pick the number of introduction
18381   points for hidden services, and the much stronger Ed25519 signing key
18382   algorithm for regular Tor relays (including support for encrypted
18383   offline identity keys in the new algorithm).
18385   Support for Ed25519 on relays is currently limited to signing router
18386   descriptors; later alphas in this series will extend Ed25519 key
18387   support to more parts of the Tor protocol.
18389   o Major features (Ed25519 identity keys, Proposal 220):
18390     - All relays now maintain a stronger identity key, using the Ed25519
18391       elliptic curve signature format. This master key is designed so
18392       that it can be kept offline. Relays also generate an online
18393       signing key, and a set of other Ed25519 keys and certificates.
18394       These are all automatically regenerated and rotated as needed.
18395       Implements part of ticket 12498.
18396     - Directory authorities now vote on Ed25519 identity keys along with
18397       RSA1024 keys. Implements part of ticket 12498.
18398     - Directory authorities track which Ed25519 identity keys have been
18399       used with which RSA1024 identity keys, and do not allow them to
18400       vary freely. Implements part of ticket 12498.
18401     - Microdescriptors now include Ed25519 identity keys. Implements
18402       part of ticket 12498.
18403     - Add support for offline encrypted Ed25519 master keys. To use this
18404       feature on your tor relay, run "tor --keygen" to make a new master
18405       key (or to make a new signing key if you already have a master
18406       key). Closes ticket 13642.
18408   o Major features (Hidden services):
18409     - Add the torrc option HiddenServiceNumIntroductionPoints, to
18410       specify a fixed number of introduction points. Its maximum value
18411       is 10 and default is 3. Using this option can increase a hidden
18412       service's reliability under load, at the cost of making it more
18413       visible that the hidden service is facing extra load. Closes
18414       ticket 4862.
18415     - Remove the adaptive algorithm for choosing the number of
18416       introduction points, which used to change the number of
18417       introduction points (poorly) depending on the number of
18418       connections the HS sees. Closes ticket 4862.
18420   o Major features (onion key cross-certification):
18421     - Relay descriptors now include signatures of their own identity
18422       keys, made using the TAP and ntor onion keys. These signatures
18423       allow relays to prove ownership of their own onion keys. Because
18424       of this change, microdescriptors will no longer need to include
18425       RSA identity keys. Implements proposal 228; closes ticket 12499.
18427   o Major features (performance):
18428     - Improve the runtime speed of Ed25519 operations by using the
18429       public-domain Ed25519-donna by Andrew M. ("floodyberry").
18430       Implements ticket 16467.
18431     - Improve the runtime speed of the ntor handshake by using an
18432       optimized curve25519 basepoint scalarmult implementation from the
18433       public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on
18434       ideas by Adam Langley. Implements ticket 9663.
18436   o Major bugfixes (client-side privacy, also in 0.2.6.9):
18437     - Properly separate out each SOCKSPort when applying stream
18438       isolation. The error occurred because each port's session group
18439       was being overwritten by a default value when the listener
18440       connection was initialized. Fixes bug 16247; bugfix on
18441       0.2.6.3-alpha. Patch by "jojelino".
18443   o Major bugfixes (hidden service clients, stability, also in 0.2.6.10):
18444     - Stop refusing to store updated hidden service descriptors on a
18445       client. This reverts commit 9407040c59218 (which indeed fixed bug
18446       14219, but introduced a major hidden service reachability
18447       regression detailed in bug 16381). This is a temporary fix since
18448       we can live with the minor issue in bug 14219 (it just results in
18449       some load on the network) but the regression of 16381 is too much
18450       of a setback. First-round fix for bug 16381; bugfix
18451       on 0.2.6.3-alpha.
18453   o Major bugfixes (hidden services):
18454     - When cannibalizing a circuit for an introduction point, always
18455       extend to the chosen exit node (creating a 4 hop circuit).
18456       Previously Tor would use the current circuit exit node, which
18457       changed the original choice of introduction point, and could cause
18458       the hidden service to skip excluded introduction points or
18459       reconnect to a skipped introduction point. Fixes bug 16260; bugfix
18460       on 0.1.0.1-rc.
18462   o Major bugfixes (open file limit):
18463     - The open file limit wasn't checked before calling
18464       tor_accept_socket_nonblocking(), which would make Tor exceed the
18465       limit. Now, before opening a new socket, Tor validates the open
18466       file limit just before, and if the max has been reached, return an
18467       error. Fixes bug 16288; bugfix on 0.1.1.1-alpha.
18469   o Major bugfixes (stability, also in 0.2.6.10):
18470     - Stop crashing with an assertion failure when parsing certain kinds
18471       of malformed or truncated microdescriptors. Fixes bug 16400;
18472       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
18473       by "cypherpunks_backup".
18474     - Stop random client-side assertion failures that could occur when
18475       connecting to a busy hidden service, or connecting to a hidden
18476       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
18477       on 0.1.0.1-rc.
18479   o Minor features (directory authorities, security, also in 0.2.6.9):
18480     - The HSDir flag given by authorities now requires the Stable flag.
18481       For the current network, this results in going from 2887 to 2806
18482       HSDirs. Also, it makes it harder for an attacker to launch a sybil
18483       attack by raising the effort for a relay to become Stable to
18484       require at the very least 7 days, while maintaining the 96 hours
18485       uptime requirement for HSDir. Implements ticket 8243.
18487   o Minor features (client):
18488     - Relax the validation of hostnames in SOCKS5 requests, allowing the
18489       character '_' to appear, in order to cope with domains observed in
18490       the wild that are serving non-RFC compliant records. Resolves
18491       ticket 16430.
18492     - Relax the validation done to hostnames in SOCKS5 requests, and
18493       allow a single trailing '.' to cope with clients that pass FQDNs
18494       using that syntax to explicitly indicate that the domain name is
18495       fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
18496     - Add GroupWritable and WorldWritable options to unix-socket based
18497       SocksPort and ControlPort options. These options apply to a single
18498       socket, and override {Control,Socks}SocketsGroupWritable. Closes
18499       ticket 15220.
18501   o Minor features (control protocol):
18502     - Support network-liveness GETINFO key and NETWORK_LIVENESS event in
18503       the control protocol. Resolves ticket 15358.
18505   o Minor features (directory authorities):
18506     - Directory authorities no longer vote against the "Fast", "Stable",
18507       and "HSDir" flags just because they were going to vote against
18508       "Running": if the consensus turns out to be that the router was
18509       running, then the authority's vote should count. Patch from Peter
18510       Retzlaff; closes issue 8712.
18512   o Minor features (geoip, also in 0.2.6.10):
18513     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
18514     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
18516   o Minor features (hidden services):
18517     - Add the new options "HiddenServiceMaxStreams" and
18518       "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to
18519       limit the maximum number of simultaneous streams per circuit, and
18520       optionally tear down the circuit when the limit is exceeded. Part
18521       of ticket 16052.
18523   o Minor features (portability):
18524     - Use C99 variadic macros when the compiler is not GCC. This avoids
18525       failing compilations on MSVC, and fixes a log-file-based race
18526       condition in our old workarounds. Original patch from Gisle Vanem.
18528   o Minor bugfixes (compilation, also in 0.2.6.9):
18529     - Build with --enable-systemd correctly when libsystemd is
18530       installed, but systemd is not. Fixes bug 16164; bugfix on
18531       0.2.6.3-alpha. Patch from Peter Palfrader.
18533   o Minor bugfixes (controller):
18534     - Add the descriptor ID in each HS_DESC control event. It was
18535       missing, but specified in control-spec.txt. Fixes bug 15881;
18536       bugfix on 0.2.5.2-alpha.
18538   o Minor bugfixes (crypto error-handling, also in 0.2.6.10):
18539     - Check for failures from crypto_early_init, and refuse to continue.
18540       A previous typo meant that we could keep going with an
18541       uninitialized crypto library, and would have OpenSSL initialize
18542       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
18543       when implementing ticket 4900. Patch by "teor".
18545   o Minor bugfixes (hidden services):
18546     - Fix a crash when reloading configuration while at least one
18547       configured and one ephemeral hidden service exists. Fixes bug
18548       16060; bugfix on 0.2.7.1-alpha.
18549     - Avoid crashing with a double-free bug when we create an ephemeral
18550       hidden service but adding it fails for some reason. Fixes bug
18551       16228; bugfix on 0.2.7.1-alpha.
18553   o Minor bugfixes (Linux seccomp2 sandbox):
18554     - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is
18555       defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha.
18557   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10):
18558     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
18559       these when eventfd2() support is missing. Fixes bug 16363; bugfix
18560       on 0.2.6.3-alpha. Patch from "teor".
18562   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9):
18563     - Fix sandboxing to work when running as a relay, by allowing the
18564       renaming of secret_id_key, and allowing the eventfd2 and futex
18565       syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by
18566       Peter Palfrader.
18567     - Allow systemd connections to work with the Linux seccomp2 sandbox
18568       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
18569       Peter Palfrader.
18571   o Minor bugfixes (relay):
18572     - Fix a rarely-encountered memory leak when failing to initialize
18573       the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch
18574       from "cypherpunks".
18576   o Minor bugfixes (systemd):
18577     - Fix an accidental formatting error that broke the systemd
18578       configuration file. Fixes bug 16152; bugfix on 0.2.7.1-alpha.
18579     - Tor's systemd unit file no longer contains extraneous spaces.
18580       These spaces would sometimes confuse tools like deb-systemd-
18581       helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha.
18583   o Minor bugfixes (tests):
18584     - Use the configured Python executable when running test-stem-full.
18585       Fixes bug 16470; bugfix on 0.2.7.1-alpha.
18587   o Minor bugfixes (tests, also in 0.2.6.9):
18588     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
18589       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
18591   o Minor bugfixes (threads, comments):
18592     - Always initialize return value in compute_desc_id in rendcommon.c
18593       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
18594     - Check for NULL values in getinfo_helper_onions(). Patch by "teor".
18595       Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
18596     - Remove undefined directive-in-macro in test_util_writepid clang
18597       3.7 complains that using a preprocessor directive inside a macro
18598       invocation in test_util_writepid in test_util.c is undefined.
18599       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
18601   o Code simplification and refactoring:
18602     - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order
18603       to ensure they remain consistent and visible everywhere.
18604     - Remove some vestigial workarounds for the MSVC6 compiler. We
18605       haven't supported that in ages.
18606     - The link authentication code has been refactored for better
18607       testability and reliability. It now uses code generated with the
18608       "trunnel" binary encoding generator, to reduce the risk of bugs
18609       due to programmer error. Done as part of ticket 12498.
18611   o Documentation:
18612     - Include a specific and (hopefully) accurate documentation of the
18613       torrc file's meta-format in doc/torrc_format.txt. This is mainly
18614       of interest to people writing programs to parse or generate torrc
18615       files. This document is not a commitment to long-term
18616       compatibility; some aspects of the current format are a bit
18617       ridiculous. Closes ticket 2325.
18619   o Removed features:
18620     - Tor no longer supports copies of OpenSSL that are missing support
18621       for Elliptic Curve Cryptography. (We began using ECC when
18622       available in 0.2.4.8-alpha, for more safe and efficient key
18623       negotiation.) In particular, support for at least one of P256 or
18624       P224 is now required, with manual configuration needed if only
18625       P224 is available. Resolves ticket 16140.
18626     - Tor no longer supports versions of OpenSSL before 1.0. (If you are
18627       on an operating system that has not upgraded to OpenSSL 1.0 or
18628       later, and you compile Tor from source, you will need to install a
18629       more recent OpenSSL to link Tor against.) These versions of
18630       OpenSSL are still supported by the OpenSSL, but the numerous
18631       cryptographic improvements in later OpenSSL releases makes them a
18632       clear choice. Resolves ticket 16034.
18633     - Remove the HidServDirectoryV2 option. Now all relays offer to
18634       store hidden service descriptors. Related to 16543.
18635     - Remove the VoteOnHidServDirectoriesV2 option, since all
18636       authorities have long set it to 1. Closes ticket 16543.
18638   o Testing:
18639     - Document use of coverity, clang static analyzer, and clang dynamic
18640       undefined behavior and address sanitizers in doc/HACKING. Include
18641       detailed usage instructions in the blacklist. Patch by "teor".
18642       Closes ticket 15817.
18643     - The link authentication protocol code now has extensive tests.
18644     - The relay descriptor signature testing code now has
18645       extensive tests.
18646     - The test_workqueue program now runs faster, and is enabled by
18647       default as a part of "make check".
18648     - Now that OpenSSL has its own scrypt implementation, add an unit
18649       test that checks for interoperability between libscrypt_scrypt()
18650       and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt
18651       and rely on EVP_PBE_scrypt() whenever possible. Resolves
18652       ticket 16189.
18655 Changes in version 0.2.6.10 - 2015-07-12
18656   Tor version 0.2.6.10 fixes some significant stability and hidden
18657   service client bugs, bulletproofs the cryptography init process, and
18658   fixes a bug when using the sandbox code with some older versions of
18659   Linux. Everyone running an older version, especially an older version
18660   of 0.2.6, should upgrade.
18662   o Major bugfixes (hidden service clients, stability):
18663     - Stop refusing to store updated hidden service descriptors on a
18664       client. This reverts commit 9407040c59218 (which indeed fixed bug
18665       14219, but introduced a major hidden service reachability
18666       regression detailed in bug 16381). This is a temporary fix since
18667       we can live with the minor issue in bug 14219 (it just results in
18668       some load on the network) but the regression of 16381 is too much
18669       of a setback. First-round fix for bug 16381; bugfix
18670       on 0.2.6.3-alpha.
18672   o Major bugfixes (stability):
18673     - Stop crashing with an assertion failure when parsing certain kinds
18674       of malformed or truncated microdescriptors. Fixes bug 16400;
18675       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
18676       by "cypherpunks_backup".
18677     - Stop random client-side assertion failures that could occur when
18678       connecting to a busy hidden service, or connecting to a hidden
18679       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
18680       on 0.1.0.1-rc.
18682   o Minor features (geoip):
18683     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
18684     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
18686   o Minor bugfixes (crypto error-handling):
18687     - Check for failures from crypto_early_init, and refuse to continue.
18688       A previous typo meant that we could keep going with an
18689       uninitialized crypto library, and would have OpenSSL initialize
18690       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
18691       when implementing ticket 4900. Patch by "teor".
18693   o Minor bugfixes (Linux seccomp2 sandbox):
18694     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
18695       these when eventfd2() support is missing. Fixes bug 16363; bugfix
18696       on 0.2.6.3-alpha. Patch from "teor".
18699 Changes in version 0.2.6.9 - 2015-06-11
18700   Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the
18701   requirements for receiving an HSDir flag, and addresses some other small
18702   bugs in the systemd and sandbox code. Clients using circuit isolation
18703   should upgrade; all directory authorities should upgrade.
18705   o Major bugfixes (client-side privacy):
18706     - Properly separate out each SOCKSPort when applying stream
18707       isolation. The error occurred because each port's session group was
18708       being overwritten by a default value when the listener connection
18709       was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch
18710       by "jojelino".
18712   o Minor feature (directory authorities, security):
18713     - The HSDir flag given by authorities now requires the Stable flag.
18714       For the current network, this results in going from 2887 to 2806
18715       HSDirs. Also, it makes it harder for an attacker to launch a sybil
18716       attack by raising the effort for a relay to become Stable which
18717       takes at the very least 7 days to do so and by keeping the 96
18718       hours uptime requirement for HSDir. Implements ticket 8243.
18720   o Minor bugfixes (compilation):
18721     - Build with --enable-systemd correctly when libsystemd is
18722       installed, but systemd is not. Fixes bug 16164; bugfix on
18723       0.2.6.3-alpha. Patch from Peter Palfrader.
18725   o Minor bugfixes (Linux seccomp2 sandbox):
18726     - Fix sandboxing to work when running as a relaymby renaming of
18727       secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes
18728       bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader.
18729     - Allow systemd connections to work with the Linux seccomp2 sandbox
18730       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
18731       Peter Palfrader.
18733   o Minor bugfixes (tests):
18734     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
18735       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
18738 Changes in version 0.2.6.8 - 2015-05-21
18739   Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and
18740   fixes an authority-side bug in assigning the HSDir flag. All directory
18741   authorities should upgrade.
18743   o Major bugfixes (hidden services, backport from 0.2.7.1-alpha):
18744     - Revert commit that made directory authorities assign the HSDir
18745       flag to relays without a DirPort; this was bad because such relays
18746       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
18747       on 0.2.6.3-alpha.
18749   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
18750     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
18751       a client authorized hidden service. Fixes bug 15823; bugfix
18752       on 0.2.1.6-alpha.
18754   o Minor features (geoip):
18755     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
18756     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
18757       Country database.
18760 Changes in version 0.2.7.1-alpha - 2015-05-12
18761   Tor 0.2.7.1-alpha is the first alpha release in its series. It
18762   includes numerous small features and bugfixes against previous Tor
18763   versions, and numerous small infrastructure improvements. The most
18764   notable features are several new ways for controllers to interact with
18765   the hidden services subsystem.
18767   o New system requirements:
18768     - Tor no longer includes workarounds to support Libevent versions
18769       before 1.3e. Libevent 2.0 or later is recommended. Closes
18770       ticket 15248.
18772   o Major features (controller):
18773     - Add the ADD_ONION and DEL_ONION commands that allow the creation
18774       and management of hidden services via the controller. Closes
18775       ticket 6411.
18776     - New "GETINFO onions/current" and "GETINFO onions/detached"
18777       commands to get information about hidden services created via the
18778       controller. Part of ticket 6411.
18779     - New HSFETCH command to launch a request for a hidden service
18780       descriptor. Closes ticket 14847.
18781     - New HSPOST command to upload a hidden service descriptor. Closes
18782       ticket 3523. Patch by "DonnchaC".
18784   o Major bugfixes (hidden services):
18785     - Revert commit that made directory authorities assign the HSDir
18786       flag to relays without a DirPort; this was bad because such relays
18787       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
18788       on 0.2.6.3-alpha.
18790   o Minor features (clock-jump tolerance):
18791     - Recover better when our clock jumps back many hours, like might
18792       happen for Tails or Whonix users who start with a very wrong
18793       hardware clock, use Tor to discover a more accurate time, and then
18794       fix their clock. Resolves part of ticket 8766.
18796   o Minor features (command-line interface):
18797     - Make --hash-password imply --hush to prevent unnecessary noise.
18798       Closes ticket 15542. Patch from "cypherpunks".
18799     - Print a warning whenever we find a relative file path being used
18800       as torrc option. Resolves issue 14018.
18802   o Minor features (controller):
18803     - Add DirAuthority lines for default directory authorities to the
18804       output of the "GETINFO config/defaults" command if not already
18805       present. Implements ticket 14840.
18806     - Controllers can now use "GETINFO hs/client/desc/id/..." to
18807       retrieve items from the client's hidden service descriptor cache.
18808       Closes ticket 14845.
18809     - Implement a new controller command "GETINFO status/fresh-relay-
18810       descs" to fetch a descriptor/extrainfo pair that was generated on
18811       demand just for the controller's use. Implements ticket 14784.
18813   o Minor features (DoS-resistance):
18814     - Make it harder for attackers to overload hidden services with
18815       introductions, by blocking multiple introduction requests on the
18816       same circuit. Resolves ticket 15515.
18818   o Minor features (geoip):
18819     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
18820     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
18821       Country database.
18823   o Minor features (HS popularity countermeasure):
18824     - To avoid leaking HS popularity, don't cycle the introduction point
18825       when we've handled a fixed number of INTRODUCE2 cells but instead
18826       cycle it when a random number of introductions is reached, thus
18827       making it more difficult for an attacker to find out the amount of
18828       clients that have used the introduction point for a specific HS.
18829       Closes ticket 15745.
18831   o Minor features (logging):
18832     - Include the Tor version in all LD_BUG log messages, since people
18833       tend to cut and paste those into the bugtracker. Implements
18834       ticket 15026.
18836   o Minor features (pluggable transports):
18837     - When launching managed pluggable transports on Linux systems,
18838       attempt to have the kernel deliver a SIGTERM on tor exit if the
18839       pluggable transport process is still running. Resolves
18840       ticket 15471.
18841     - When launching managed pluggable transports, setup a valid open
18842       stdin in the child process that can be used to detect if tor has
18843       terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable
18844       can be used by implementations to detect this new behavior.
18845       Resolves ticket 15435.
18847   o Minor features (testing):
18848     - Add a test to verify that the compiler does not eliminate our
18849       memwipe() implementation. Closes ticket 15377.
18850     - Add make rule `check-changes` to verify the format of changes
18851       files. Closes ticket 15180.
18852     - Add unit tests for control_event_is_interesting(). Add a compile-
18853       time check that the number of events doesn't exceed the capacity
18854       of control_event_t.event_mask. Closes ticket 15431, checks for
18855       bugs similar to 13085. Patch by "teor".
18856     - Command-line argument tests moved to Stem. Resolves ticket 14806.
18857     - Integrate the ntor, backtrace, and zero-length keys tests into the
18858       automake test suite. Closes ticket 15344.
18859     - Remove assertions during builds to determine Tor's test coverage.
18860       We don't want to trigger these even in assertions, so including
18861       them artificially makes our branch coverage look worse than it is.
18862       This patch provides the new test-stem-full and coverage-html-full
18863       configure options. Implements ticket 15400.
18865   o Minor bugfixes (build):
18866     - Improve out-of-tree builds by making non-standard rules work and
18867       clean up additional files and directories. Fixes bug 15053; bugfix
18868       on 0.2.7.0-alpha.
18870   o Minor bugfixes (command-line interface):
18871     - When "--quiet" is provided along with "--validate-config", do not
18872       write anything to stdout on success. Fixes bug 14994; bugfix
18873       on 0.2.3.3-alpha.
18874     - When complaining about bad arguments to "--dump-config", use
18875       stderr, not stdout.
18877   o Minor bugfixes (configuration, unit tests):
18878     - Only add the default fallback directories when the DirAuthorities,
18879       AlternateDirAuthority, and FallbackDir directory config options
18880       are set to their defaults. The default fallback directory list is
18881       currently empty, this fix will only change tor's behavior when it
18882       has default fallback directories. Includes unit tests for
18883       consider_adding_dir_servers(). Fixes bug 15642; bugfix on
18884       90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
18886   o Minor bugfixes (correctness):
18887     - For correctness, avoid modifying a constant string in
18888       handle_control_postdescriptor. Fixes bug 15546; bugfix
18889       on 0.1.1.16-rc.
18890     - Remove side-effects from tor_assert() calls. This was harmless,
18891       because we never disable assertions, but it is bad style and
18892       unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36,
18893       and 0.2.0.10.
18895   o Minor bugfixes (hidden service):
18896     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
18897       a client authorized hidden service. Fixes bug 15823; bugfix
18898       on 0.2.1.6-alpha.
18899     - Remove an extraneous newline character from the end of hidden
18900       service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha.
18902   o Minor bugfixes (interface):
18903     - Print usage information for --dump-config when it is used without
18904       an argument. Also, fix the error message to use different wording
18905       and add newline at the end. Fixes bug 15541; bugfix
18906       on 0.2.5.1-alpha.
18908   o Minor bugfixes (logs):
18909     - When building Tor under Clang, do not include an extra set of
18910       parentheses in log messages that include function names. Fixes bug
18911       15269; bugfix on every released version of Tor when compiled with
18912       recent enough Clang.
18914   o Minor bugfixes (network):
18915     - When attempting to use fallback technique for network interface
18916       lookup, disregard loopback and multicast addresses since they are
18917       unsuitable for public communications.
18919   o Minor bugfixes (statistics):
18920     - Disregard the ConnDirectionStatistics torrc options when Tor is
18921       not a relay since in that mode of operation no sensible data is
18922       being collected and because Tor might run into measurement hiccups
18923       when running as a client for some time, then becoming a relay.
18924       Fixes bug 15604; bugfix on 0.2.2.35.
18926   o Minor bugfixes (test networks):
18927     - When self-testing reachability, use ExtendAllowPrivateAddresses to
18928       determine if local/private addresses imply reachability. The
18929       previous fix used TestingTorNetwork, which implies
18930       ExtendAllowPrivateAddresses, but this excluded rare configurations
18931       where ExtendAllowPrivateAddresses is set but TestingTorNetwork is
18932       not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor",
18933       issue discovered by CJ Ess.
18935   o Minor bugfixes (testing):
18936     - Check for matching value in server response in ntor_ref.py. Fixes
18937       bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
18938       by "joelanders".
18939     - Set the severity correctly when testing
18940       get_interface_addresses_ifaddrs() and
18941       get_interface_addresses_win32(), so that the tests fail gracefully
18942       instead of triggering an assertion. Fixes bug 15759; bugfix on
18943       0.2.6.3-alpha. Reported by Nicolas Derive.
18945   o Code simplification and refactoring:
18946     - Move the hacky fallback code out of get_interface_address6() into
18947       separate function and get it covered with unit-tests. Resolves
18948       ticket 14710.
18949     - Refactor hidden service client-side cache lookup to intelligently
18950       report its various failure cases, and disentangle failure cases
18951       involving a lack of introduction points. Closes ticket 14391.
18952     - Use our own Base64 encoder instead of OpenSSL's, to allow more
18953       control over the output. Part of ticket 15652.
18955   o Documentation:
18956     - Improve the descriptions of statistics-related torrc options in
18957       the manpage to describe rationale and possible uses cases. Fixes
18958       issue 15550.
18959     - Improve the layout and formatting of ./configure --help messages.
18960       Closes ticket 15024. Patch from "cypherpunks".
18961     - Standardize on the term "server descriptor" in the manual page.
18962       Previously, we had used "router descriptor", "server descriptor",
18963       and "relay descriptor" interchangeably. Part of ticket 14987.
18965   o Removed code:
18966     - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code
18967       and always use the internal Base64 decoder. The internal decoder
18968       has been part of tor since 0.2.0.10-alpha, and no one should
18969       be using the OpenSSL one. Part of ticket 15652.
18970     - Remove the 'tor_strclear()' function; use memwipe() instead.
18971       Closes ticket 14922.
18973   o Removed features:
18974     - Remove the (seldom-used) DynamicDHGroups feature. For anti-
18975       fingerprinting we now recommend pluggable transports; for forward-
18976       secrecy in TLS, we now use the P-256 group. Closes ticket 13736.
18977     - Remove the undocumented "--digests" command-line option. It
18978       complicated our build process, caused subtle build issues on
18979       multiple platforms, and is now redundant since we started
18980       including git version identifiers. Closes ticket 14742.
18981     - Tor no longer contains checks for ancient directory cache versions
18982       that didn't know about microdescriptors.
18983     - Tor no longer contains workarounds for stat files generated by
18984       super-old versions of Tor that didn't choose guards sensibly.
18987 Changes in version 0.2.4.27 - 2015-04-06
18988   Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that
18989   could be used by an attacker to crash hidden services, or crash clients
18990   visiting hidden services. Hidden services should upgrade as soon as
18991   possible; clients should upgrade whenever packages become available.
18993   This release also backports a simple improvement to make hidden
18994   services a bit less vulnerable to denial-of-service attacks.
18996   o Major bugfixes (security, hidden service):
18997     - Fix an issue that would allow a malicious client to trigger an
18998       assertion failure and halt a hidden service. Fixes bug 15600;
18999       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
19000     - Fix a bug that could cause a client to crash with an assertion
19001       failure when parsing a malformed hidden service descriptor. Fixes
19002       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
19004   o Minor features (DoS-resistance, hidden service):
19005     - Introduction points no longer allow multiple INTRODUCE1 cells to
19006       arrive on the same circuit. This should make it more expensive for
19007       attackers to overwhelm hidden services with introductions.
19008       Resolves ticket 15515.
19011 Changes in version 0.2.5.12 - 2015-04-06
19012   Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
19013   could be used by an attacker to crash hidden services, or crash clients
19014   visiting hidden services. Hidden services should upgrade as soon as
19015   possible; clients should upgrade whenever packages become available.
19017   This release also backports a simple improvement to make hidden
19018   services a bit less vulnerable to denial-of-service attacks.
19020   o Major bugfixes (security, hidden service):
19021     - Fix an issue that would allow a malicious client to trigger an
19022       assertion failure and halt a hidden service. Fixes bug 15600;
19023       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
19024     - Fix a bug that could cause a client to crash with an assertion
19025       failure when parsing a malformed hidden service descriptor. Fixes
19026       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
19028   o Minor features (DoS-resistance, hidden service):
19029     - Introduction points no longer allow multiple INTRODUCE1 cells to
19030       arrive on the same circuit. This should make it more expensive for
19031       attackers to overwhelm hidden services with introductions.
19032       Resolves ticket 15515.
19035 Changes in version 0.2.6.7 - 2015-04-06
19036   Tor 0.2.6.7 fixes two security issues that could be used by an
19037   attacker to crash hidden services, or crash clients visiting hidden
19038   services. Hidden services should upgrade as soon as possible; clients
19039   should upgrade whenever packages become available.
19041   This release also contains two simple improvements to make hidden
19042   services a bit less vulnerable to denial-of-service attacks.
19044   o Major bugfixes (security, hidden service):
19045     - Fix an issue that would allow a malicious client to trigger an
19046       assertion failure and halt a hidden service. Fixes bug 15600;
19047       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
19048     - Fix a bug that could cause a client to crash with an assertion
19049       failure when parsing a malformed hidden service descriptor. Fixes
19050       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
19052   o Minor features (DoS-resistance, hidden service):
19053     - Introduction points no longer allow multiple INTRODUCE1 cells to
19054       arrive on the same circuit. This should make it more expensive for
19055       attackers to overwhelm hidden services with introductions.
19056       Resolves ticket 15515.
19057     - Decrease the amount of reattempts that a hidden service performs
19058       when its rendezvous circuits fail. This reduces the computational
19059       cost for running a hidden service under heavy load. Resolves
19060       ticket 11447.
19063 Changes in version 0.2.6.6 - 2015-03-24
19064   Tor 0.2.6.6 is the first stable release in the 0.2.6 series.
19066   It adds numerous safety, security, correctness, and performance
19067   improvements. Client programs can be configured to use more kinds of
19068   sockets, AutomapHosts works better, the multithreading backend is
19069   improved, cell transmission is refactored, test coverage is much
19070   higher, more denial-of-service attacks are handled, guard selection is
19071   improved to handle long-term guards better, pluggable transports
19072   should work a bit better, and some annoying hidden service performance
19073   bugs should be addressed.
19075   o Minor bugfixes (portability):
19076     - Use the correct datatype in the SipHash-2-4 function to prevent
19077       compilers from assuming any sort of alignment. Fixes bug 15436;
19078       bugfix on 0.2.5.3-alpha.
19080 Changes in version 0.2.6.5-rc - 2015-03-18
19081   Tor 0.2.6.5-rc is the second and (hopefully) last release candidate in
19082   the 0.2.6. It fixes a small number of bugs found in 0.2.6.4-rc.
19084   o Major bugfixes (client):
19085     - Avoid crashing when making certain configuration option changes on
19086       clients. Fixes bug 15245; bugfix on 0.2.6.3-alpha. Reported
19087       by "anonym".
19089   o Major bugfixes (pluggable transports):
19090     - Initialize the extended OR Port authentication cookie before
19091       launching pluggable transports. This prevents a race condition
19092       that occurred when server-side pluggable transports would cache the
19093       authentication cookie before it has been (re)generated. Fixes bug
19094       15240; bugfix on 0.2.5.1-alpha.
19096   o Major bugfixes (portability):
19097     - Do not crash on startup when running on Solaris. Fixes a bug
19098       related to our fix for 9495; bugfix on 0.2.6.1-alpha. Reported
19099       by "ruebezahl".
19101   o Minor features (heartbeat):
19102     - On relays, report how many connections we negotiated using each
19103       version of the Tor link protocols. This information will let us
19104       know if removing support for very old versions of the Tor
19105       protocols is harming the network. Closes ticket 15212.
19107   o Code simplification and refactoring:
19108     - Refactor main loop to extract the 'loop' part. This makes it
19109       easier to run Tor under Shadow. Closes ticket 15176.
19112 Changes in version 0.2.5.11 - 2015-03-17
19113   Tor 0.2.5.11 is the second stable release in the 0.2.5 series.
19115   It backports several bugfixes from the 0.2.6 branch, including a
19116   couple of medium-level security fixes for relays and exit nodes.
19117   It also updates the list of directory authorities.
19119   o Directory authority changes:
19120     - Remove turtles as a directory authority.
19121     - Add longclaw as a new (v3) directory authority. This implements
19122       ticket 13296. This keeps the directory authority count at 9.
19123     - The directory authority Faravahar has a new IP address. This
19124       closes ticket 14487.
19126   o Major bugfixes (crash, OSX, security):
19127     - Fix a remote denial-of-service opportunity caused by a bug in
19128       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
19129       in OSX 10.9.
19131   o Major bugfixes (relay, stability, possible security):
19132     - Fix a bug that could lead to a relay crashing with an assertion
19133       failure if a buffer of exactly the wrong layout was passed to
19134       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
19135       0.2.0.10-alpha. Patch from 'cypherpunks'.
19136     - Do not assert if the 'data' pointer on a buffer is advanced to the
19137       very end of the buffer; log a BUG message instead. Only assert if
19138       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
19140   o Major bugfixes (exit node stability):
19141     - Fix an assertion failure that could occur under high DNS load.
19142       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
19143       diagnosed and fixed by "cypherpunks".
19145   o Major bugfixes (Linux seccomp2 sandbox):
19146     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
19147       crash during attempts to call wait4. Fixes bug 15088; bugfix on
19148       0.2.5.1-alpha. Patch from "sanic".
19150   o Minor features (controller):
19151     - New "GETINFO bw-event-cache" to get information about recent
19152       bandwidth events. Closes ticket 14128. Useful for controllers to
19153       get recent bandwidth history after the fix for ticket 13988.
19155   o Minor features (geoip):
19156     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
19157     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
19158       Country database.
19160   o Minor bugfixes (client, automapping):
19161     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
19162       no value follows the option. Fixes bug 14142; bugfix on
19163       0.2.4.7-alpha. Patch by "teor".
19164     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
19165       14195; bugfix on 0.1.0.1-rc.
19167   o Minor bugfixes (compilation):
19168     - Build without warnings with the stock OpenSSL srtp.h header, which
19169       has a duplicate declaration of SSL_get_selected_srtp_profile().
19170       Fixes bug 14220; this is OpenSSL's bug, not ours.
19172   o Minor bugfixes (directory authority):
19173     - Allow directory authorities to fetch more data from one another if
19174       they find themselves missing lots of votes. Previously, they had
19175       been bumping against the 10 MB queued data limit. Fixes bug 14261;
19176       bugfix on 0.1.2.5-alpha.
19177     - Enlarge the buffer to read bwauth generated files to avoid an
19178       issue when parsing the file in dirserv_read_measured_bandwidths().
19179       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
19181   o Minor bugfixes (statistics):
19182     - Increase period over which bandwidth observations are aggregated
19183       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
19185   o Minor bugfixes (preventative security, C safety):
19186     - When reading a hexadecimal, base-32, or base-64 encoded value from
19187       a string, always overwrite the whole output buffer. This prevents
19188       some bugs where we would look at (but fortunately, not reveal)
19189       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
19190       versions of Tor.
19193 Changes in version 0.2.4.26 - 2015-03-17
19194   Tor 0.2.4.26 includes an updated list of directory authorities.  It
19195   also backports a couple of stability and security bugfixes from 0.2.5
19196   and beyond.
19198   o Directory authority changes:
19199     - Remove turtles as a directory authority.
19200     - Add longclaw as a new (v3) directory authority. This implements
19201       ticket 13296. This keeps the directory authority count at 9.
19202     - The directory authority Faravahar has a new IP address. This
19203       closes ticket 14487.
19205   o Major bugfixes (exit node stability, also in 0.2.6.3-alpha):
19206     - Fix an assertion failure that could occur under high DNS load.
19207       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
19208       diagnosed and fixed by "cypherpunks".
19210   o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc):
19211     - Fix a bug that could lead to a relay crashing with an assertion
19212       failure if a buffer of exactly the wrong layout was passed to
19213       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
19214       0.2.0.10-alpha. Patch from 'cypherpunks'.
19215     - Do not assert if the 'data' pointer on a buffer is advanced to the
19216       very end of the buffer; log a BUG message instead. Only assert if
19217       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
19219   o Minor features (geoip):
19220     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
19221     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
19222       Country database.
19224 Changes in version 0.2.6.4-rc - 2015-03-09
19225   Tor 0.2.6.4-alpha fixes an issue in the directory code that an
19226   attacker might be able to use in order to crash certain Tor
19227   directories. It also resolves some minor issues left over from, or
19228   introduced in, Tor 0.2.6.3-alpha or earlier.
19230   o Major bugfixes (crash, OSX, security):
19231     - Fix a remote denial-of-service opportunity caused by a bug in
19232       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
19233       in OSX 10.9.
19235   o Major bugfixes (relay, stability, possible security):
19236     - Fix a bug that could lead to a relay crashing with an assertion
19237       failure if a buffer of exactly the wrong layout is passed to
19238       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
19239       0.2.0.10-alpha. Patch from "cypherpunks".
19240     - Do not assert if the 'data' pointer on a buffer is advanced to the
19241       very end of the buffer; log a BUG message instead. Only assert if
19242       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
19244   o Major bugfixes (FreeBSD IPFW transparent proxy):
19245     - Fix address detection with FreeBSD transparent proxies, when
19246       "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix
19247       on 0.2.5.4-alpha.
19249   o Major bugfixes (Linux seccomp2 sandbox):
19250     - Pass IPPROTO_TCP rather than 0 to socket(), so that the Linux
19251       seccomp2 sandbox doesn't fail. Fixes bug 14989; bugfix
19252       on 0.2.6.3-alpha.
19253     - Allow AF_UNIX hidden services to be used with the seccomp2
19254       sandbox. Fixes bug 15003; bugfix on 0.2.6.3-alpha.
19255     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
19256       crash during attempts to call wait4. Fixes bug 15088; bugfix on
19257       0.2.5.1-alpha. Patch from "sanic".
19259   o Minor features (controller):
19260     - Messages about problems in the bootstrap process now include
19261       information about the server we were trying to connect to when we
19262       noticed the problem. Closes ticket 15006.
19264   o Minor features (geoip):
19265     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
19266     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
19267       Country database.
19269   o Minor features (logs):
19270     - Quiet some log messages in the heartbeat and at startup. Closes
19271       ticket 14950.
19273   o Minor bugfixes (certificate handling):
19274     - If an authority operator accidentally makes a signing certificate
19275       with a future publication time, do not discard its real signing
19276       certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.
19277     - Remove any old authority certificates that have been superseded
19278       for at least two days. Previously, we would keep superseded
19279       certificates until they expired, if they were published close in
19280       time to the certificate that superseded them. Fixes bug 11454;
19281       bugfix on 0.2.1.8-alpha.
19283   o Minor bugfixes (compilation):
19284     - Fix a compilation warning on s390. Fixes bug 14988; bugfix
19285       on 0.2.5.2-alpha.
19286     - Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix
19287       on 0.2.6.2-alpha.
19289   o Minor bugfixes (testing):
19290     - Fix endianness issues in unit test for resolve_my_address() to
19291       have it pass on big endian systems. Fixes bug 14980; bugfix on
19292       Tor 0.2.6.3-alpha.
19293     - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug
19294       15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt.
19295     - When running the new 'make test-stem' target, use the configured
19296       python binary. Fixes bug 15037; bugfix on 0.2.6.3-alpha. Patch
19297       from "cypherpunks".
19298     - When running the zero-length-keys tests, do not use the default
19299       torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
19300       by "reezer".
19302   o Directory authority IP change:
19303     - The directory authority Faravahar has a new IP address. This
19304       closes ticket 14487.
19306   o Removed code:
19307     - Remove some lingering dead code that once supported mempools.
19308       Mempools were disabled by default in 0.2.5, and removed entirely
19309       in 0.2.6.3-alpha. Closes more of ticket 14848; patch
19310       by "cypherpunks".
19313 Changes in version 0.2.6.3-alpha - 2015-02-19
19314   Tor 0.2.6.3-alpha is the third (and hopefully final) alpha release in
19315   the 0.2.6.x series. It introduces support for more kinds of sockets,
19316   makes it harder to accidentally run an exit, improves our
19317   multithreading backend, incorporates several fixes for the
19318   AutomapHostsOnResolve option, and fixes numerous other bugs besides.
19320   If no major regressions or security holes are found in this version,
19321   the next version will be a release candidate.
19323   o Deprecated versions:
19324     - Tor relays older than 0.2.4.18-rc are no longer allowed to
19325       advertise themselves on the network. Closes ticket 13555.
19327   o Major features (security, unix domain sockets):
19328     - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk
19329       applications can reach Tor without having to create AF_INET or
19330       AF_INET6 sockets, meaning they can completely disable their
19331       ability to make non-Tor network connections. To create a socket of
19332       this type, use "SocksPort unix:/path/to/socket". Implements
19333       ticket 12585.
19334     - Support mapping hidden service virtual ports to AF_UNIX sockets.
19335       The syntax is "HiddenServicePort 80 unix:/path/to/socket".
19336       Implements ticket 11485.
19338   o Major features (changed defaults):
19339     - Prevent relay operators from unintentionally running exits: When a
19340       relay is configured as an exit node, we now warn the user unless
19341       the "ExitRelay" option is set to 1. We warn even more loudly if
19342       the relay is configured with the default exit policy, since this
19343       can indicate accidental misconfiguration. Setting "ExitRelay 0"
19344       stops Tor from running as an exit relay. Closes ticket 10067.
19346   o Major features (directory system):
19347     - When downloading server- or microdescriptors from a directory
19348       server, we no longer launch multiple simultaneous requests to the
19349       same server. This reduces load on the directory servers,
19350       especially when directory guards are in use. Closes ticket 9969.
19351     - When downloading server- or microdescriptors over a tunneled
19352       connection, do not limit the length of our requests to what the
19353       Squid proxy is willing to handle. Part of ticket 9969.
19354     - Authorities can now vote on the correct digests and latest
19355       versions for different software packages. This allows packages
19356       that include Tor to use the Tor authority system as a way to get
19357       notified of updates and their correct digests. Implements proposal
19358       227. Closes ticket 10395.
19360   o Major features (guards):
19361     - Introduce the Guardfraction feature to improves load balancing on
19362       guard nodes. Specifically, it aims to reduce the traffic gap that
19363       guard nodes experience when they first get the Guard flag. This is
19364       a required step if we want to increase the guard lifetime to 9
19365       months or greater.  Closes ticket 9321.
19367   o Major features (performance):
19368     - Make the CPU worker implementation more efficient by avoiding the
19369       kernel and lengthening pipelines. The original implementation used
19370       sockets to transfer data from the main thread to the workers, and
19371       didn't allow any thread to be assigned more than a single piece of
19372       work at once. The new implementation avoids communications
19373       overhead by making requests in shared memory, avoiding kernel IO
19374       where possible, and keeping more requests in flight at once.
19375       Implements ticket 9682.
19377   o Major features (relay):
19378     - Raise the minimum acceptable configured bandwidth rate for bridges
19379       to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were
19380       20 KiB/sec.) Closes ticket 13822.
19382   o Major bugfixes (exit node stability):
19383     - Fix an assertion failure that could occur under high DNS load.
19384       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
19385       diagnosed and fixed by "cypherpunks".
19387   o Major bugfixes (mixed relay-client operation):
19388     - When running as a relay and client at the same time (not
19389       recommended), if we decide not to use a new guard because we want
19390       to retry older guards, only close the locally-originating circuits
19391       passing through that guard. Previously we would close all the
19392       circuits through that guard. Fixes bug 9819; bugfix on
19393       0.2.1.1-alpha. Reported by "skruffy".
19395   o Minor features (build):
19396     - New --disable-system-torrc compile-time option to prevent Tor from
19397       looking for the system-wide torrc or torrc-defaults files.
19398       Resolves ticket 13037.
19400   o Minor features (controller):
19401     - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller
19402       events so controllers can observe circuit isolation inputs. Closes
19403       ticket 8405.
19404     - ControlPort now supports the unix:/path/to/socket syntax as an
19405       alternative to the ControlSocket option, for consistency with
19406       SocksPort and HiddenServicePort. Closes ticket 14451.
19407     - New "GETINFO bw-event-cache" to get information about recent
19408       bandwidth events. Closes ticket 14128. Useful for controllers to
19409       get recent bandwidth history after the fix for ticket 13988.
19411   o Minor features (Denial of service resistance):
19412     - Count the total number of bytes used storing hidden service
19413       descriptors against the value of MaxMemInQueues. If we're low on
19414       memory, and more than 20% of our memory is used holding hidden
19415       service descriptors, free them until no more than 10% of our
19416       memory holds hidden service descriptors. Free the least recently
19417       fetched descriptors first. Resolves ticket 13806.
19418     - When we have recently been under memory pressure (over 3/4 of
19419       MaxMemInQueues is allocated), then allocate smaller zlib objects
19420       for small requests. Closes ticket 11791.
19422   o Minor features (geoip):
19423     - Update geoip and geoip6 files to the January 7 2015 Maxmind
19424       GeoLite2 Country database.
19426   o Minor features (guard nodes):
19427     - Reduce the time delay before saving guard status to disk from 10
19428       minutes to 30 seconds (or from one hour to 10 minutes if
19429       AvoidDiskWrites is set). Closes ticket 12485.
19431   o Minor features (hidden service):
19432     - Make Sybil attacks against hidden services harder by changing the
19433       minimum time required to get the HSDir flag from 25 hours up to 96
19434       hours. Addresses ticket 14149.
19435     - New option "HiddenServiceAllowUnknownPorts" to allow hidden
19436       services to disable the anti-scanning feature introduced in
19437       0.2.6.2-alpha. With this option not set, a connection to an
19438       unlisted port closes the circuit. With this option set, only a
19439       RELAY_DONE cell is sent. Closes ticket 14084.
19441   o Minor features (interface):
19442     - Implement "-f -" command-line option to read torrc configuration
19443       from standard input, if you don't want to store the torrc file in
19444       the file system. Implements feature 13865.
19446   o Minor features (logging):
19447     - Add a count of unique clients to the bridge heartbeat message.
19448       Resolves ticket 6852.
19449     - Suppress "router info incompatible with extra info" message when
19450       reading extrainfo documents from cache. (This message got loud
19451       around when we closed bug 9812 in 0.2.6.2-alpha.) Closes
19452       ticket 13762.
19453     - Elevate hidden service authorized-client message from DEBUG to
19454       INFO. Closes ticket 14015.
19456   o Minor features (stability):
19457     - Add assertions in our hash-table iteration code to check for
19458       corrupted values that could cause infinite loops. Closes
19459       ticket 11737.
19461   o Minor features (systemd):
19462     - Various improvements and modernizations in systemd hardening
19463       support. Closes ticket 13805. Patch from Craig Andrews.
19465   o Minor features (testing networks):
19466     - Drop the minimum RendPostPeriod on a testing network to 5 seconds,
19467       and the default on a testing network to 2 minutes. Drop the
19468       MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but
19469       keep the default on a testing network at 30 seconds. This reduces
19470       HS bootstrap time to around 25 seconds. Also, change the default
19471       time in test-network.sh to match. Closes ticket 13401. Patch
19472       by "teor".
19473     - Create TestingDirAuthVoteHSDir to correspond to
19474       TestingDirAuthVoteExit/Guard. Ensures that authorities vote the
19475       HSDir flag for the listed relays regardless of uptime or ORPort
19476       connectivity. Respects the value of VoteOnHidServDirectoriesV2.
19477       Partial implementation for ticket 14067. Patch by "teor".
19479   o Minor features (tor2web mode):
19480     - Introduce the config option Tor2webRendezvousPoints, which allows
19481       clients in Tor2webMode to select a specific Rendezvous Point to be
19482       used in HS circuits. This might allow better performance for
19483       Tor2Web nodes. Implements ticket 12844.
19485   o Minor bugfixes (client DNS):
19486     - Report the correct cached DNS expiration times on SOCKS port or in
19487       DNS replies. Previously, we would report everything as "never
19488       expires." Fixes bug 14193; bugfix on 0.2.3.17-beta.
19489     - Avoid a small memory leak when we find a cached answer for a
19490       reverse DNS lookup in a client-side DNS cache. (Remember, client-
19491       side DNS caching is off by default, and is not recommended.) Fixes
19492       bug 14259; bugfix on 0.2.0.1-alpha.
19494   o Minor bugfixes (client, automapping):
19495     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
19496       no value follows the option. Fixes bug 14142; bugfix on
19497       0.2.4.7-alpha. Patch by "teor".
19498     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
19499       14195; bugfix on 0.1.0.1-rc.
19500     - Prevent changes to other options from removing the wildcard value
19501       "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix
19502       on 0.2.0.1-alpha.
19503     - Allow MapAddress and AutomapHostsOnResolve to work together when
19504       an address is mapped into another address type (like .onion) that
19505       must be automapped at resolve time. Fixes bug 7555; bugfix
19506       on 0.2.0.1-alpha.
19508   o Minor bugfixes (client, bridges):
19509     - When we are using bridges and we had a network connectivity
19510       problem, only retry connecting to our currently configured
19511       bridges, not all bridges we know about and remember using. Fixes
19512       bug 14216; bugfix on 0.2.2.17-alpha.
19514   o Minor bugfixes (client, IPv6):
19515     - Reject socks requests to literal IPv6 addresses when IPv6Traffic
19516       flag is not set; and not because the NoIPv4Traffic flag was set.
19517       Previously we'd looked at the NoIPv4Traffic flag for both types of
19518       literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha.
19520   o Minor bugfixes (compilation):
19521     - The address of an array in the middle of a structure will always
19522       be non-NULL. clang recognises this and complains. Disable the
19523       tautologous and redundant check to silence this warning. Fixes bug
19524       14001; bugfix on 0.2.1.2-alpha.
19525     - Avoid warnings when building with systemd 209 or later. Fixes bug
19526       14072; bugfix on 0.2.6.2-alpha. Patch from "h.venev".
19527     - Compile correctly with (unreleased) OpenSSL 1.1.0 headers.
19528       Addresses ticket 14188.
19529     - Build without warnings with the stock OpenSSL srtp.h header, which
19530       has a duplicate declaration of SSL_get_selected_srtp_profile().
19531       Fixes bug 14220; this is OpenSSL's bug, not ours.
19532     - Do not compile any code related to Tor2Web mode when Tor2Web mode
19533       is not enabled at compile time. Previously, this code was included
19534       in a disabled state. See discussion on ticket 12844.
19535     - Remove the --disable-threads configure option again. It was
19536       accidentally partially reintroduced in 29ac883606d6d. Fixes bug
19537       14819; bugfix on 0.2.6.2-alpha.
19539   o Minor bugfixes (controller):
19540     - Report "down" in response to the "GETINFO entry-guards" command
19541       when relays are down with an unreachable_since value. Previously,
19542       we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha.
19543     - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug
19544       14116; bugfix on 0.2.2.9-alpha.
19545     - Add a code for the END_CIRC_REASON_IP_NOW_REDUNDANT circuit close
19546       reason. Fixes bug 14207; bugfix on 0.2.6.2-alpha.
19548   o Minor bugfixes (directory authority):
19549     - Allow directory authorities to fetch more data from one another if
19550       they find themselves missing lots of votes. Previously, they had
19551       been bumping against the 10 MB queued data limit. Fixes bug 14261;
19552       bugfix on 0.1.2.5-alpha.
19553     - Do not attempt to download extrainfo documents which we will be
19554       unable to validate with a matching server descriptor. Fixes bug
19555       13762; bugfix on 0.2.0.1-alpha.
19556     - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the
19557       control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha.
19558     - Enlarge the buffer to read bwauth generated files to avoid an
19559       issue when parsing the file in dirserv_read_measured_bandwidths().
19560       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
19562   o Minor bugfixes (file handling):
19563     - Stop failing when key files are zero-length. Instead, generate new
19564       keys, and overwrite the empty key files. Fixes bug 13111; bugfix
19565       on all versions of Tor. Patch by "teor".
19566     - Stop generating a fresh .old RSA onion key file when the .old file
19567       is missing. Fixes part of 13111; bugfix on 0.0.6rc1.
19568     - Avoid overwriting .old key files with empty key files.
19569     - Skip loading zero-length extrainfo store, router store, stats,
19570       state, and key files.
19571     - Avoid crashing when trying to reload a torrc specified as a
19572       relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix
19573       on 0.2.3.11-alpha.
19575   o Minor bugfixes (hidden services):
19576     - Close the introduction circuit when we have no more usable intro
19577       points, instead of waiting for it to time out. This also ensures
19578       that no follow-up HS descriptor fetch is triggered when the
19579       circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6.
19580     - When fetching a hidden service descriptor for a down service that
19581       was recently up, do not keep refetching until we try the same
19582       replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha.
19583     - Successfully launch Tor with a nonexistent hidden service
19584       directory. Our fix for bug 13942 didn't catch this case. Fixes bug
19585       14106; bugfix on 0.2.6.2-alpha.
19587   o Minor bugfixes (logging):
19588     - Avoid crashing when there are more log domains than entries in
19589       domain_list. Bugfix on 0.2.3.1-alpha.
19590     - Add a string representation for LD_SCHED. Fixes bug 14740; bugfix
19591       on 0.2.6.1-alpha.
19592     - Don't log messages to stdout twice when starting up. Fixes bug
19593       13993; bugfix on 0.2.6.1-alpha.
19595   o Minor bugfixes (parsing):
19596     - Stop accepting milliseconds (or other junk) at the end of
19597       descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25.
19598     - Support two-number and three-number version numbers correctly, in
19599       case we change the Tor versioning system in the future. Fixes bug
19600       13661; bugfix on 0.0.8pre1.
19602   o Minor bugfixes (path counting):
19603     - When deciding whether the consensus lists any exit nodes, count
19604       the number listed in the consensus, not the number we have
19605       descriptors for. Fixes part of bug 14918; bugfix on 0.2.6.2-alpha.
19606     - When deciding whether we have any exit nodes, only examine
19607       ExitNodes when the ExitNodes option is actually set. Fixes part of
19608       bug 14918; bugfix on 0.2.6.2-alpha.
19609     - Get rid of redundant and possibly scary warnings that we are
19610       missing directory information while we bootstrap. Fixes part of
19611       bug 14918; bugfix on 0.2.6.2-alpha.
19613   o Minor bugfixes (portability):
19614     - Fix the ioctl()-based network interface lookup code so that it
19615       will work on systems that have variable-length struct ifreq, for
19616       example Mac OS X.
19617     - Fix scheduler compilation on targets where char is unsigned. Fixes
19618       bug 14764; bugfix on 0.2.6.2-alpha. Reported by Christian Kujau.
19620   o Minor bugfixes (sandbox):
19621     - Allow glibc fatal errors to be sent to stderr before Tor exits.
19622       Previously, glibc would try to write them to /dev/tty, and the
19623       sandbox would trap the call and make Tor exit prematurely. Fixes
19624       bug 14759; bugfix on 0.2.5.1-alpha.
19626   o Minor bugfixes (shutdown):
19627     - When shutting down, always call event_del() on lingering read or
19628       write events before freeing them. Otherwise, we risk double-frees
19629       or read-after-frees in event_base_free(). Fixes bug 12985; bugfix
19630       on 0.1.0.2-rc.
19632   o Minor bugfixes (small memory leaks):
19633     - Avoid leaking memory when using IPv6 virtual address mappings.
19634       Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van
19635       der Woerdt.
19637   o Minor bugfixes (statistics):
19638     - Increase period over which bandwidth observations are aggregated
19639       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
19641   o Minor bugfixes (systemd support):
19642     - Fix detection and operation of systemd watchdog. Fixes part of bug
19643       14141; bugfix on 0.2.6.2-alpha. Patch from Tomasz Torcz.
19644     - Run correctly under systemd with the RunAsDaemon option set. Fixes
19645       part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz.
19646     - Inform the systemd supervisor about more changes in the Tor
19647       process status. Implements part of ticket 14141. Patch from
19648       Tomasz Torcz.
19649     - Cause the "--disable-systemd" option to actually disable systemd
19650       support. Fixes bug 14350; bugfix on 0.2.6.2-alpha. Patch
19651       from "blueness".
19653   o Minor bugfixes (TLS):
19654     - Check more thoroughly throughout the TLS code for possible
19655       unlogged TLS errors. Possible diagnostic or fix for bug 13319.
19657   o Minor bugfixes (transparent proxy):
19658     - Use getsockname, not getsockopt, to retrieve the address for a
19659       TPROXY-redirected connection. Fixes bug 13796; bugfix
19660       on 0.2.5.2-alpha.
19662   o Code simplification and refactoring:
19663     - Move fields related to isolating and configuring client ports into
19664       a shared structure. Previously, they were duplicated across
19665       port_cfg_t, listener_connection_t, and edge_connection_t. Failure
19666       to copy them correctly had been the cause of at least one bug in
19667       the past. Closes ticket 8546.
19668     - Refactor the get_interface_addresses_raw() doom-function into
19669       multiple smaller and simpler subfunctions. Cover the resulting
19670       subfunctions with unit-tests. Fixes a significant portion of
19671       issue 12376.
19672     - Remove workaround in dirserv_thinks_router_is_hs_dir() that was
19673       only for version <= 0.2.2.24 which is now deprecated. Closes
19674       ticket 14202.
19675     - Remove a test for a long-defunct broken version-one
19676       directory server.
19678   o Documentation:
19679     - Adding section on OpenBSD to our TUNING document. Thanks to mmcc
19680       for writing the OpenBSD-specific tips. Resolves ticket 13702.
19681     - Make the tor-resolve documentation match its help string and its
19682       options. Resolves part of ticket 14325.
19683     - Log a more useful error message from tor-resolve when failing to
19684       look up a hidden service address. Resolves part of ticket 14325.
19686   o Downgraded warnings:
19687     - Don't warn when we've attempted to contact a relay using the wrong
19688       ntor onion key. Closes ticket 9635.
19690   o Removed features:
19691     - To avoid confusion with the "ExitRelay" option, "ExitNode" is no
19692       longer silently accepted as an alias for "ExitNodes".
19693     - The --enable-mempool and --enable-buf-freelists options, which
19694       were originally created to work around bad malloc implementations,
19695       no longer exist. They were off-by-default in 0.2.5. Closes
19696       ticket 14848.
19698   o Testing:
19699     - Make the checkdir/perms test complete successfully even if the
19700       global umask is not 022. Fixes bug 14215; bugfix on 0.2.6.2-alpha.
19701     - Test that tor does not fail when key files are zero-length. Check
19702       that tor generates new keys, and overwrites the empty key files.
19703     - Test that tor generates new keys when keys are missing
19704       (existing behavior).
19705     - Test that tor does not overwrite key files that already contain
19706       data (existing behavior). Tests bug 13111. Patch by "teor".
19707     - New "make test-stem" target to run stem integration tests.
19708       Requires that the "STEM_SOURCE_DIR" environment variable be set.
19709       Closes ticket 14107.
19710     - Make the test_cmdline_args.py script work correctly on Windows.
19711       Patch from Gisle Vanem.
19712     - Move the slower unit tests into a new "./src/test/test-slow"
19713       binary that can be run independently of the other tests. Closes
19714       ticket 13243.
19715     - Avoid undefined behavior when sampling huge values from the
19716       Laplace distribution. This made unittests fail on Raspberry Pi.
19717       Bug found by Device. Fixes bug 14090; bugfix on 0.2.6.2-alpha.
19720 Changes in version 0.2.6.2-alpha - 2014-12-31
19721   Tor 0.2.6.2-alpha is the second alpha release in the 0.2.6.x series.
19722   It introduces a major new backend for deciding when to send cells on
19723   channels, which should lead down the road to big performance
19724   increases. It contains security and statistics features for better
19725   work on hidden services, and numerous bugfixes.
19727   This release contains many new unit tests, along with major
19728   performance improvements for running testing networks using Chutney.
19729   Thanks to a series of patches contributed by "teor", testing networks
19730   should now bootstrap in seconds, rather than minutes.
19732   o Major features (relay, infrastructure):
19733     - Complete revision of the code that relays use to decide which cell
19734       to send next. Formerly, we selected the best circuit to write on
19735       each channel, but we didn't select among channels in any
19736       sophisticated way. Now, we choose the best circuits globally from
19737       among those whose channels are ready to deliver traffic.
19739       This patch implements a new inter-cmux comparison API, a global
19740       high/low watermark mechanism and a global scheduler loop for
19741       transmission prioritization across all channels as well as among
19742       circuits on one channel. This schedule is currently tuned to
19743       (tolerantly) avoid making changes in network performance, but it
19744       should form the basis for major circuit performance increases in
19745       the future. Code by Andrea; tuning by Rob Jansen; implements
19746       ticket 9262.
19748   o Major features (hidden services):
19749     - Make HS port scanning more difficult by immediately closing the
19750       circuit when a user attempts to connect to a nonexistent port.
19751       Closes ticket 13667.
19752     - Add a HiddenServiceStatistics option that allows Tor relays to
19753       gather and publish statistics about the overall size and volume of
19754       hidden service usage. Specifically, when this option is turned on,
19755       an HSDir will publish an approximate number of hidden services
19756       that have published descriptors to it the past 24 hours. Also, if
19757       a relay has acted as a hidden service rendezvous point, it will
19758       publish the approximate amount of rendezvous cells it has relayed
19759       the past 24 hours. The statistics themselves are obfuscated so
19760       that the exact values cannot be derived. For more details see
19761       proposal 238, "Better hidden service stats from Tor relays". This
19762       feature is currently disabled by default. Implements feature 13192.
19764   o Major bugfixes (client, automap):
19765     - Repair automapping with IPv6 addresses. This automapping should
19766       have worked previously, but one piece of debugging code that we
19767       inserted to detect a regression actually caused the regression to
19768       manifest itself again. Fixes bug 13811 and bug 12831; bugfix on
19769       0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas
19770       Izquierdo Riera.
19772   o Major bugfixes (hidden services):
19773     - When closing an introduction circuit that was opened in parallel
19774       with others, don't mark the introduction point as unreachable.
19775       Previously, the first successful connection to an introduction
19776       point would make the other introduction points get marked as
19777       having timed out. Fixes bug 13698; bugfix on 0.0.6rc2.
19779   o Directory authority changes:
19780     - Remove turtles as a directory authority.
19781     - Add longclaw as a new (v3) directory authority. This implements
19782       ticket 13296. This keeps the directory authority count at 9.
19784   o Major removed features:
19785     - Tor clients no longer support connecting to hidden services
19786       running on Tor 0.2.2.x and earlier; the Support022HiddenServices
19787       option has been removed. (There shouldn't be any hidden services
19788       running these versions on the network.) Closes ticket 7803.
19790   o Minor features (client):
19791     - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks
19792       is enabled, reject requests with IP addresses as hostnames.
19793       Resolves ticket 13315.
19795   o Minor features (controller):
19796     - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to
19797       write an unscheduled heartbeat message to the log. Implements
19798       feature 9503.
19800   o Minor features (geoip):
19801     - Update geoip and geoip6 to the November 15 2014 Maxmind GeoLite2
19802       Country database.
19804   o Minor features (hidden services):
19805     - When re-enabling the network, don't try to build introduction
19806       circuits until we have successfully built a circuit. This makes
19807       hidden services come up faster when the network is re-enabled.
19808       Patch from "akwizgran". Closes ticket 13447.
19809     - When we fail to retrieve a hidden service descriptor, send the
19810       controller an "HS_DESC FAILED" controller event. Implements
19811       feature 13212.
19812     - New HiddenServiceDirGroupReadable option to cause hidden service
19813       directories and hostname files to be created group-readable. Patch
19814       from "anon", David Stainton, and "meejah". Closes ticket 11291.
19816   o Minor features (systemd):
19817     - Where supported, when running with systemd, report successful
19818       startup to systemd. Part of ticket 11016. Patch by Michael Scherer.
19819     - When running with systemd, support systemd watchdog messages. Part
19820       of ticket 11016. Patch by Michael Scherer.
19822   o Minor features (transparent proxy):
19823     - Update the transparent proxy option checks to allow for both ipfw
19824       and pf on OS X. Closes ticket 14002.
19825     - Use the correct option when using IPv6 with transparent proxy
19826       support on Linux. Resolves 13808. Patch by Francisco Blas
19827       Izquierdo Riera.
19829   o Minor bugfixes (preventative security, C safety):
19830     - When reading a hexadecimal, base-32, or base-64 encoded value from
19831       a string, always overwrite the whole output buffer. This prevents
19832       some bugs where we would look at (but fortunately, not reveal)
19833       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
19834       versions of Tor.
19835     - Clear all memory targeted by tor_addr_{to,from}_sockaddr(), not
19836       just the part that's used. This makes it harder for data leak bugs
19837       to occur in the event of other programming failures. Resolves
19838       ticket 14041.
19840   o Minor bugfixes (client, microdescriptors):
19841     - Use a full 256 bits of the SHA256 digest of a microdescriptor when
19842       computing which microdescriptors to download. This keeps us from
19843       erroneous download behavior if two microdescriptor digests ever
19844       have the same first 160 bits. Fixes part of bug 13399; bugfix
19845       on 0.2.3.1-alpha.
19846     - Reset a router's status if its microdescriptor digest changes,
19847       even if the first 160 bits remain the same. Fixes part of bug
19848       13399; bugfix on 0.2.3.1-alpha.
19850   o Minor bugfixes (compilation):
19851     - Silence clang warnings under --enable-expensive-hardening,
19852       including implicit truncation of 64 bit values to 32 bit, const
19853       char assignment to self, tautological compare, and additional
19854       parentheses around equality tests. Fixes bug 13577; bugfix
19855       on 0.2.5.4-alpha.
19856     - Fix a clang warning about checking whether an address in the
19857       middle of a structure is NULL. Fixes bug 14001; bugfix
19858       on 0.2.1.2-alpha.
19860   o Minor bugfixes (hidden services):
19861     - Correctly send a controller event when we find that a rendezvous
19862       circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha.
19863     - Pre-check directory permissions for new hidden-services to avoid
19864       at least one case of "Bug: Acting on config options left us in a
19865       broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1.
19866     - When adding a new hidden service (for example, via SETCONF), Tor
19867       no longer congratulates the user for running a relay. Fixes bug
19868       13941; bugfix on 0.2.6.1-alpha.
19869     - When fetching hidden service descriptors, we now check not only
19870       for whether we got the hidden service we had in mind, but also
19871       whether we got the particular descriptors we wanted. This prevents
19872       a class of inefficient but annoying DoS attacks by hidden service
19873       directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported
19874       by "special".
19876   o Minor bugfixes (Linux seccomp2 sandbox):
19877     - Make transparent proxy support work along with the seccomp2
19878       sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch
19879       by Francisco Blas Izquierdo Riera.
19880     - Fix a memory leak in tor-resolve when running with the sandbox
19881       enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc.
19883   o Minor bugfixes (logging):
19884     - Downgrade warnings about RSA signature failures to info log level.
19885       Emit a warning when an extra info document is found incompatible
19886       with a corresponding router descriptor. Fixes bug 9812; bugfix
19887       on 0.0.6rc3.
19888     - Make connection_ap_handshake_attach_circuit() log the circuit ID
19889       correctly. Fixes bug 13701; bugfix on 0.0.6.
19891   o Minor bugfixes (misc):
19892     - Stop allowing invalid address patterns like "*/24" that contain
19893       both a wildcard address and a bit prefix length. This affects all
19894       our address-range parsing code. Fixes bug 7484; bugfix
19895       on 0.0.2pre14.
19897   o Minor bugfixes (testing networks, fast startup):
19898     - Allow Tor to build circuits using a consensus with no exits. If
19899       the consensus has no exits (typical of a bootstrapping test
19900       network), allow Tor to build circuits once enough descriptors have
19901       been downloaded. This assists in bootstrapping a testing Tor
19902       network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch
19903       by "teor".
19904     - When V3AuthVotingInterval is low, give a lower If-Modified-Since
19905       header to directory servers. This allows us to obtain consensuses
19906       promptly when the consensus interval is very short. This assists
19907       in bootstrapping a testing Tor network. Fixes parts of bugs 13718
19908       and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor".
19909     - Stop assuming that private addresses are local when checking
19910       reachability in a TestingTorNetwork. Instead, when testing, assume
19911       all OR connections are remote. (This is necessary due to many test
19912       scenarios running all relays on localhost.) This assists in
19913       bootstrapping a testing Tor network. Fixes bug 13924; bugfix on
19914       0.1.0.1-rc. Patch by "teor".
19915     - Avoid building exit circuits from a consensus with no exits. Now
19916       thanks to our fix for 13718, we accept a no-exit network as not
19917       wholly lost, but we need to remember not to try to build exit
19918       circuits on it. Closes ticket 13814; patch by "teor".
19919     - Stop requiring exits to have non-zero bandwithcapacity in a
19920       TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
19921       ignore exit bandwidthcapacity. This assists in bootstrapping a
19922       testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix
19923       on 0.2.0.3-alpha. Patch by "teor".
19924     - Add "internal" to some bootstrap statuses when no exits are
19925       available. If the consensus does not contain Exits, Tor will only
19926       build internal circuits. In this case, relevant statuses will
19927       contain the word "internal" as indicated in the Tor control-
19928        spec.txt. When bootstrap completes, Tor will be ready to build
19929       internal circuits. If a future consensus contains Exits, exit
19930       circuits may become available. Fixes part of bug 13718; bugfix on
19931       0.2.4.10-alpha. Patch by "teor".
19932     - Decrease minimum consensus interval to 10 seconds when
19933       TestingTorNetwork is set, or 5 seconds for the first consensus.
19934       Fix assumptions throughout the code that assume larger intervals.
19935       Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch
19936       by "teor".
19937     - Avoid excluding guards from path building in minimal test
19938       networks, when we're in a test network and excluding guards would
19939       exclude all relays. This typically occurs in incredibly small tor
19940       networks, and those using "TestingAuthVoteGuard *". Fixes part of
19941       bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor".
19943   o Code simplification and refactoring:
19944     - Stop using can_complete_circuits as a global variable; access it
19945       with a function instead.
19946     - Avoid using operators directly as macro arguments: this lets us
19947       apply coccinelle transformations to our codebase more directly.
19948       Closes ticket 13172.
19949     - Combine the functions used to parse ClientTransportPlugin and
19950       ServerTransportPlugin into a single function. Closes ticket 6456.
19951     - Add inline functions and convenience macros for inspecting channel
19952       state. Refactor the code to use convenience macros instead of
19953       checking channel state directly. Fixes issue 7356.
19954     - Document all members of was_router_added_t and rename
19955       ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less
19956       confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644.
19957     - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL
19958       constant instead of hardcoded value. Fixes issue 13840.
19959     - Refactor our generic strmap and digestmap types into a single
19960       implementation, so that we can add a new digest256map
19961       type trivially.
19963   o Documentation:
19964     - Document the bridge-authority-only 'networkstatus-bridges' file.
19965       Closes ticket 13713; patch from "tom".
19966     - Fix typo in PredictedPortsRelevanceTime option description in
19967       manpage. Resolves issue 13707.
19968     - Stop suggesting that users specify relays by nickname: it isn't a
19969       good idea. Also, properly cross-reference how to specify relays in
19970       all parts of manual documenting options that take a list of
19971       relays. Closes ticket 13381.
19972     - Clarify the HiddenServiceDir option description in manpage to make
19973       it clear that relative paths are taken with respect to the current
19974       working directory. Also clarify that this behavior is not
19975       guaranteed to remain indefinitely. Fixes issue 13913.
19977   o Testing:
19978     - New tests for many parts of channel, relay, and circuitmux
19979       functionality. Code by Andrea; part of 9262.
19980     - New tests for parse_transport_line(). Part of ticket 6456.
19981     - In the unit tests, use chgrp() to change the group of the unit
19982       test temporary directory to the current user, so that the sticky
19983       bit doesn't interfere with tests that check directory groups.
19984       Closes 13678.
19985     - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch
19986       by 'rl1987'.
19989 Changes in version 0.2.6.1-alpha - 2014-10-30
19990   Tor 0.2.6.1-alpha is the first release in the Tor 0.2.6.x series. It
19991   includes numerous code cleanups and new tests, and fixes a large
19992   number of annoying bugs. Out-of-memory conditions are handled better
19993   than in 0.2.5, pluggable transports have improved proxy support, and
19994   clients now use optimistic data for contacting hidden services. Also,
19995   we are now more robust to changes in what we consider a parseable
19996   directory object, so that tightening restrictions does not have a risk
19997   of introducing infinite download loops.
19999   This is the first alpha release in a new series, so expect there to be
20000   bugs. Users who would rather test out a more stable branch should stay
20001   with 0.2.5.x for now.
20003   o New compiler and system requirements:
20004     - Tor 0.2.6.x requires that your compiler support more of the C99
20005       language standard than before. The 'configure' script now detects
20006       whether your compiler supports C99 mid-block declarations and
20007       designated initializers. If it does not, Tor will not compile.
20009       We may revisit this requirement if it turns out that a significant
20010       number of people need to build Tor with compilers that don't
20011       bother implementing a 15-year-old standard. Closes ticket 13233.
20012     - Tor no longer supports systems without threading support. When we
20013       began working on Tor, there were several systems that didn't have
20014       threads, or where the thread support wasn't able to run the
20015       threads of a single process on multiple CPUs. That no longer
20016       holds: every system where Tor needs to run well now has threading
20017       support. Resolves ticket 12439.
20019   o Removed platform support:
20020     - We no longer include special code to build on Windows CE; as far
20021       as we know, nobody has used Tor on Windows CE in a very long time.
20022       Closes ticket 11446.
20024   o Major features (bridges):
20025     - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
20026       transports if they are configured via the "TOR_PT_PROXY"
20027       environment variable. Implements proposal 232. Resolves
20028       ticket 8402.
20030   o Major features (client performance, hidden services):
20031     - Allow clients to use optimistic data when connecting to a hidden
20032       service, which should remove a round-trip from hidden service
20033       initialization. See proposal 181 for details. Implements
20034       ticket 13211.
20036   o Major features (directory system):
20037     - Upon receiving an unparseable directory object, if its digest
20038       matches what we expected, then don't try to download it again.
20039       Previously, when we got a descriptor we didn't like, we would keep
20040       trying to download it over and over. Closes ticket 11243.
20042   o Major features (sample torrc):
20043     - Add a new, infrequently-changed "torrc.minimal". This file is
20044       similar to torrc.sample, but it will change as infrequently as
20045       possible, for the benefit of users whose systems prompt them for
20046       intervention whenever a default configuration file is changed.
20047       Making this change allows us to update torrc.sample to be a more
20048       generally useful "sample torrc".
20050   o Major bugfixes (directory authorities):
20051     - Do not assign the HSDir flag to relays if they are not Valid, or
20052       currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha.
20054   o Major bugfixes (directory bandwidth performance):
20055     - Don't flush the zlib buffer aggressively when compressing
20056       directory information for clients. This should save about 7% of
20057       the bandwidth currently used for compressed descriptors and
20058       microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23.
20060   o Minor features (security, memory wiping):
20061     - Ensure we securely wipe keys from memory after
20062       crypto_digest_get_digest and init_curve25519_keypair_from_file
20063       have finished using them. Resolves ticket 13477.
20065   o Minor features (security, out-of-memory handling):
20066     - When handling an out-of-memory condition, allocate less memory for
20067       temporary data structures. Fixes issue 10115.
20068     - When handling an out-of-memory condition, consider more types of
20069       buffers, including those on directory connections, and zlib
20070       buffers. Resolves ticket 11792.
20072   o Minor features:
20073     - When identity keypair is generated for first time, log a
20074       congratulatory message that links to the new relay lifecycle
20075       document. Implements feature 10427.
20077   o Minor features (client):
20078     - Clients are now willing to send optimistic data (before they
20079       receive a 'connected' cell) to relays of any version. (Relays
20080       without support for optimistic data are no longer supported on the
20081       Tor network.) Resolves ticket 13153.
20083   o Minor features (directory authorities):
20084     - Don't list relays with a bandwidth estimate of 0 in the consensus.
20085       Implements a feature proposed during discussion of bug 13000.
20086     - In tor-gencert, report an error if the user provides the same
20087       argument more than once.
20088     - If a directory authority can't find a best consensus method in the
20089       votes that it holds, it now falls back to its favorite consensus
20090       method. Previously, it fell back to method 1. Neither of these is
20091       likely to get enough signatures, but "fall back to favorite"
20092       doesn't require us to maintain support an obsolete consensus
20093       method. Implements part of proposal 215.
20095   o Minor features (logging):
20096     - On Unix-like systems, you can now use named pipes as the target of
20097       the Log option, and other options that try to append to files.
20098       Closes ticket 12061. Patch from "carlo von lynX".
20099     - When opening a log file at startup, send it every log message that
20100       we generated between startup and opening it. Previously, log
20101       messages that were generated before opening the log file were only
20102       logged to stdout. Closes ticket 6938.
20103     - Add a TruncateLogFile option to overwrite logs instead of
20104       appending to them. Closes ticket 5583.
20106   o Minor features (portability, Solaris):
20107     - Threads are no longer disabled by default on Solaris; we believe
20108       that the versions of Solaris with broken threading support are all
20109       obsolete by now. Resolves ticket 9495.
20111   o Minor features (relay):
20112     - Re-check our address after we detect a changed IP address from
20113       getsockname(). This ensures that the controller command "GETINFO
20114       address" will report the correct value. Resolves ticket 11582.
20115       Patch from "ra".
20116     - A new AccountingRule option lets Relays set whether they'd like
20117       AccountingMax to be applied separately to inbound and outbound
20118       traffic, or applied to the sum of inbound and outbound traffic.
20119       Resolves ticket 961. Patch by "chobe".
20121   o Minor features (testing networks):
20122     - Add the TestingDirAuthVoteExit option, which lists nodes to assign
20123       the "Exit" flag regardless of their uptime, bandwidth, or exit
20124       policy. TestingTorNetwork must be set for this option to have any
20125       effect. Previously, authorities would take up to 35 minutes to
20126       give nodes the Exit flag in a test network. Partially implements
20127       ticket 13161.
20129   o Minor features (validation):
20130     - Check all date/time values passed to tor_timegm and
20131       parse_rfc1123_time for validity, taking leap years into account.
20132       Improves HTTP header validation. Implemented with bug 13476.
20133     - In correct_tm(), limit the range of values returned by system
20134       localtime(_r) and gmtime(_r) to be between the years 1 and 8099.
20135       This means we don't have to deal with negative or too large dates,
20136       even if a clock is wrong. Otherwise we might fail to read a file
20137       written by us which includes such a date. Fixes bug 13476.
20139   o Minor bugfixes (bridge clients):
20140     - When configured to use a bridge without an identity digest (not
20141       recommended), avoid launching an extra channel to it when
20142       bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha.
20144   o Minor bugfixes (bridges):
20145     - When DisableNetwork is set, do not launch pluggable transport
20146       plugins, and if any are running, terminate them. Fixes bug 13213;
20147       bugfix on 0.2.3.6-alpha.
20149   o Minor bugfixes (C correctness):
20150     - Fix several instances of possible integer overflow/underflow/NaN.
20151       Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches
20152       from "teor".
20153     - In circuit_build_times_calculate_timeout() in circuitstats.c,
20154       avoid dividing by zero in the pareto calculations. This traps
20155       under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix
20156       on 0.2.2.2-alpha.
20157     - Fix an integer overflow in format_time_interval(). Fixes bug
20158       13393; bugfix on 0.2.0.10-alpha.
20159     - Set the correct day of year value when the system's localtime(_r)
20160       or gmtime(_r) functions fail to set struct tm. Not externally
20161       visible. Fixes bug 13476; bugfix on 0.0.2pre14.
20162     - Avoid unlikely signed integer overflow in tor_timegm on systems
20163       with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14.
20165   o Minor bugfixes (client):
20166     - Fix smartlist_choose_node_by_bandwidth() so that relays with the
20167       BadExit flag are not considered worthy candidates. Fixes bug
20168       13066; bugfix on 0.1.2.3-alpha.
20169     - Use the consensus schedule for downloading consensuses, and not
20170       the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
20171     - Handle unsupported or malformed SOCKS5 requests properly by
20172       responding with the appropriate error message before closing the
20173       connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13.
20175   o Minor bugfixes (client, torrc):
20176     - Stop modifying the value of our DirReqStatistics torrc option just
20177       because we're not a bridge or relay. This bug was causing Tor
20178       Browser users to write "DirReqStatistics 0" in their torrc files
20179       as if they had chosen to change the config. Fixes bug 4244; bugfix
20180       on 0.2.3.1-alpha.
20181     - When GeoIPExcludeUnknown is enabled, do not incorrectly decide
20182       that our options have changed every time we SIGHUP. Fixes bug
20183       9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1".
20185   o Minor bugfixes (controller):
20186     - Return an error when the second or later arguments of the
20187       "setevents" controller command are invalid events. Previously we
20188       would return success while silently skipping invalid events. Fixes
20189       bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
20191   o Minor bugfixes (directory system):
20192     - Always believe that v3 directory authorities serve extra-info
20193       documents, whether they advertise "caches-extra-info" or not.
20194       Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
20195     - When running as a v3 directory authority, advertise that you serve
20196       extra-info documents so that clients who want them can find them
20197       from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
20198     - Check the BRIDGE_DIRINFO flag bitwise rather than using equality.
20199       Previously, directories offering BRIDGE_DIRINFO and some other
20200       flag (i.e. microdescriptors or extrainfo) would be ignored when
20201       looking for bridges. Partially fixes bug 13163; bugfix
20202       on 0.2.0.7-alpha.
20204   o Minor bugfixes (networking):
20205     - Check for orconns and use connection_or_close_for_error() rather
20206       than connection_mark_for_close() directly in the getsockopt()
20207       failure case of connection_handle_write_impl(). Fixes bug 11302;
20208       bugfix on 0.2.4.4-alpha.
20210   o Minor bugfixes (relay):
20211     - When generating our family list, remove spaces from around the
20212       entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
20213     - If our previous bandwidth estimate was 0 bytes, allow publishing a
20214       new relay descriptor immediately. Fixes bug 13000; bugfix
20215       on 0.1.1.6-alpha.
20217   o Minor bugfixes (testing networks):
20218     - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a
20219       testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha.
20220     - Stop using the default authorities in networks which provide both
20221       AlternateDirAuthority and AlternateBridgeAuthority. Partially
20222       fixes bug 13163; bugfix on 0.2.0.13-alpha.
20224   o Minor bugfixes (testing):
20225     - Stop spawn test failures due to a race condition between the
20226       SIGCHLD handler updating the process status, and the test reading
20227       it. Fixes bug 13291; bugfix on 0.2.3.3-alpha.
20229   o Minor bugfixes (testing, Windows):
20230     - Avoid passing an extra backslash when creating a temporary
20231       directory for running the unit tests on Windows. Fixes bug 12392;
20232       bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem.
20234   o Minor bugfixes (windows):
20235     - Remove code to special-case handling of NTE_BAD_KEYSET when
20236       acquiring windows CryptoAPI context. This error can't actually
20237       occur for the parameters we're providing. Fixes bug 10816; bugfix
20238       on 0.0.2pre26.
20240   o Minor bugfixes (zlib):
20241     - Avoid truncating a zlib stream when trying to finalize it with an
20242       empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23.
20244   o Build fixes:
20245     - Allow our configure script to build correctly with autoconf 2.62
20246       again. Fixes bug 12693; bugfix on 0.2.5.2-alpha.
20247     - Improve the error message from ./configure to make it clear that
20248       when asciidoc has not been found, the user will have to either add
20249       --disable-asciidoc argument or install asciidoc. Resolves
20250       ticket 13228.
20252   o Code simplification and refactoring:
20253     - Change the entry_is_live() function to take named bitfield
20254       elements instead of an unnamed list of booleans. Closes
20255       ticket 12202.
20256     - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c.
20257       Resolves ticket 12205.
20258     - Use calloc and reallocarray functions instead of multiply-
20259       then-malloc. This makes it less likely for us to fall victim to an
20260       integer overflow attack when allocating. Resolves ticket 12855.
20261     - Use the standard macro name SIZE_MAX, instead of our
20262       own SIZE_T_MAX.
20263     - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in
20264       functions which take them as arguments. Replace 0 with NO_DIRINFO
20265       in a function call for clarity. Seeks to prevent future issues
20266       like 13163.
20267     - Avoid 4 null pointer errors under clang static analysis by using
20268       tor_assert() to prove that the pointers aren't null. Fixes
20269       bug 13284.
20270     - Rework the API of policies_parse_exit_policy() to use a bitmask to
20271       represent parsing options, instead of a confusing mess of
20272       booleans. Resolves ticket 8197.
20273     - Introduce a helper function to parse ExitPolicy in
20274       or_options_t structure.
20276   o Documentation:
20277     - Add a doc/TUNING document with tips for handling large numbers of
20278       TCP connections when running busy Tor relay. Update the warning
20279       message to point to this file when running out of sockets
20280       operating system is allowing to use simultaneously. Resolves
20281       ticket 9708.
20283   o Removed features:
20284     - We no longer remind the user about configuration options that have
20285       been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak.
20286     - Remove our old, non-weighted bandwidth-based node selection code.
20287       Previously, we used it as a fallback when we couldn't perform
20288       weighted bandwidth-based node selection. But that would only
20289       happen in the cases where we had no consensus, or when we had a
20290       consensus generated by buggy or ancient directory authorities. In
20291       either case, it's better to use the more modern, better maintained
20292       algorithm, with reasonable defaults for the weights. Closes
20293       ticket 13126.
20294     - Remove the --disable-curve25519 configure option. Relays and
20295       clients now are required to support curve25519 and the
20296       ntor handshake.
20297     - The old "StrictEntryNodes" and "StrictExitNodes" options, which
20298       used to be deprecated synonyms for "StrictNodes", are now marked
20299       obsolete. Resolves ticket 12226.
20300     - Clients don't understand the BadDirectory flag in the consensus
20301       anymore, and ignore it.
20303   o Testing:
20304     - Refactor the function that chooses guard nodes so that it can more
20305       easily be tested; write some tests for it.
20306     - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503;
20307       bugfix on 0.2.3.1-alpha. Patch from "cypherpunks."
20308     - Create unit tests for format_time_interval(). With bug 13393.
20309     - Add unit tests for tor_timegm signed overflow, tor_timegm and
20310       parse_rfc1123_time validity checks, correct_tm year clamping. Unit
20311       tests (visible) fixes in bug 13476.
20312     - Add a "coverage-html" make target to generate HTML-visualized
20313       coverage results when building with --enable-coverage. (Requires
20314       lcov.) Patch from Kevin Murray.
20315     - Enable the backtrace handler (where supported) when running the
20316       unit tests.
20317     - Revise all unit tests that used the legacy test_* macros to
20318       instead use the recommended tt_* macros. This patch was generated
20319       with coccinelle, to avoid manual errors. Closes ticket 13119.
20321   o Distribution (systemd):
20322     - systemd unit file: only allow tor to write to /var/lib/tor and
20323       /var/log/tor. The rest of the filesystem is accessible for reading
20324       only. Patch by intrigeri; resolves ticket 12751.
20325     - systemd unit file: ensure that the process and all its children
20326       can never gain new privileges. Patch by intrigeri; resolves
20327       ticket 12939.
20328     - systemd unit file: set up /var/run/tor as writable for the Tor
20329       service. Patch by intrigeri; resolves ticket 13196.
20331   o Removed features (directory authorities):
20332     - Remove code that prevented authorities from listing Tor relays
20333       affected by CVE-2011-2769 as guards. These relays are already
20334       rejected altogether due to the minimum version requirement of
20335       0.2.3.16-alpha. Closes ticket 13152.
20336     - The "AuthDirRejectUnlisted" option no longer has any effect, as
20337       the fingerprints file (approved-routers) has been deprecated.
20338     - Directory authorities do not support being Naming dirauths anymore.
20339       The "NamingAuthoritativeDir" config option is now obsolete.
20340     - Directory authorities do not support giving out the BadDirectory
20341       flag anymore.
20342     - Directory authorities no longer advertise or support consensus
20343       methods 1 through 12 inclusive. These consensus methods were
20344       obsolete and/or insecure: maintaining the ability to support them
20345       served no good purpose. Implements part of proposal 215; closes
20346       ticket 10163.
20348   o Testing (test-network.sh):
20349     - Stop using "echo -n", as some shells' built-in echo doesn't
20350       support "-n". Instead, use "/bin/echo -n". Partially fixes
20351       bug 13161.
20352     - Stop an apparent test-network hang when used with make -j2. Fixes
20353       bug 13331.
20354     - Add a --delay option to test-network.sh, which configures the
20355       delay before the chutney network tests for data transmission.
20356       Partially implements ticket 13161.
20359 Changes in version 0.2.5.10 - 2014-10-24
20360   Tor 0.2.5.10 is the first stable release in the 0.2.5 series.
20362   It adds several new security features, including improved
20363   denial-of-service resistance for relays, new compiler hardening
20364   options, and a system-call sandbox for hardened installations on Linux
20365   (requires seccomp2). The controller protocol has several new features,
20366   resolving IPv6 addresses should work better than before, and relays
20367   should be a little more CPU-efficient. We've added support for more
20368   OpenBSD and FreeBSD transparent proxy types. We've improved the build
20369   system and testing infrastructure to allow unit testing of more parts
20370   of the Tor codebase. Finally, we've addressed several nagging pluggable
20371   transport usability issues, and included numerous other small bugfixes
20372   and features mentioned below.
20374   This release marks end-of-life for Tor 0.2.3.x; those Tor versions
20375   have accumulated many known flaws; everyone should upgrade.
20377   o Deprecated versions:
20378     - Tor 0.2.3.x has reached end-of-life; it has received no patches or
20379       attention for some while.
20382 Changes in version 0.2.5.9-rc - 2014-10-20
20383   Tor 0.2.5.9-rc is the third release candidate for the Tor 0.2.5.x
20384   series. It disables SSL3 in response to the recent "POODLE" attack
20385   (even though POODLE does not affect Tor). It also works around a crash
20386   bug caused by some operating systems' response to the "POODLE" attack
20387   (which does affect Tor). It also contains a few miscellaneous fixes.
20389   o Major security fixes:
20390     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
20391       today support TLS 1.0 or later, so we can safely turn off support
20392       for this old (and insecure) protocol. Fixes bug 13426.
20394   o Major bugfixes (openssl bug workaround):
20395     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
20396       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
20397       13471. This is a workaround for an OpenSSL bug.
20399   o Minor bugfixes:
20400     - Disable the sandbox name resolver cache when running tor-resolve:
20401       tor-resolve doesn't use the sandbox code, and turning it on was
20402       breaking attempts to do tor-resolve on a non-default server on
20403       Linux. Fixes bug 13295; bugfix on 0.2.5.3-alpha.
20405   o Compilation fixes:
20406     - Build and run correctly on systems like OpenBSD-current that have
20407       patched OpenSSL to remove get_cipher_by_char and/or its
20408       implementations. Fixes issue 13325.
20410   o Downgraded warnings:
20411     - Downgrade the severity of the 'unexpected sendme cell from client'
20412       from 'warn' to 'protocol warning'. Closes ticket 8093.
20415 Changes in version 0.2.4.25 - 2014-10-20
20416   Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack
20417   (even though POODLE does not affect Tor). It also works around a crash
20418   bug caused by some operating systems' response to the "POODLE" attack
20419   (which does affect Tor).
20421   o Major security fixes (also in 0.2.5.9-rc):
20422     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
20423       today support TLS 1.0 or later, so we can safely turn off support
20424       for this old (and insecure) protocol. Fixes bug 13426.
20426   o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc):
20427     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
20428       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
20429       13471. This is a workaround for an OpenSSL bug.
20432 Changes in version 0.2.5.8-rc - 2014-09-22
20433   Tor 0.2.5.8-rc is the second release candidate for the Tor 0.2.5.x
20434   series. It fixes a bug that affects consistency and speed when
20435   connecting to hidden services, and it updates the location of one of
20436   the directory authorities.
20438   o Major bugfixes:
20439     - Clients now send the correct address for their chosen rendezvous
20440       point when trying to access a hidden service. They used to send
20441       the wrong address, which would still work some of the time because
20442       they also sent the identity digest of the rendezvous point, and if
20443       the hidden service happened to try connecting to the rendezvous
20444       point from a relay that already had a connection open to it,
20445       the relay would reuse that connection. Now connections to hidden
20446       services should be more robust and faster. Also, this bug meant
20447       that clients were leaking to the hidden service whether they were
20448       on a little-endian (common) or big-endian (rare) system, which for
20449       some users might have reduced their anonymity. Fixes bug 13151;
20450       bugfix on 0.2.1.5-alpha.
20452   o Directory authority changes:
20453     - Change IP address for gabelmoo (v3 directory authority).
20456 Changes in version 0.2.4.24 - 2014-09-22
20457   Tor 0.2.4.24 fixes a bug that affects consistency and speed when
20458   connecting to hidden services, and it updates the location of one of
20459   the directory authorities.
20461   o Major bugfixes:
20462     - Clients now send the correct address for their chosen rendezvous
20463       point when trying to access a hidden service. They used to send
20464       the wrong address, which would still work some of the time because
20465       they also sent the identity digest of the rendezvous point, and if
20466       the hidden service happened to try connecting to the rendezvous
20467       point from a relay that already had a connection open to it,
20468       the relay would reuse that connection. Now connections to hidden
20469       services should be more robust and faster. Also, this bug meant
20470       that clients were leaking to the hidden service whether they were
20471       on a little-endian (common) or big-endian (rare) system, which for
20472       some users might have reduced their anonymity. Fixes bug 13151;
20473       bugfix on 0.2.1.5-alpha.
20475   o Directory authority changes:
20476     - Change IP address for gabelmoo (v3 directory authority).
20478   o Minor features (geoip):
20479     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
20480       Country database.
20483 Changes in version 0.2.5.7-rc - 2014-09-11
20484   Tor 0.2.5.7-rc fixes several regressions from earlier in the 0.2.5.x
20485   release series, and some long-standing bugs related to ORPort reachability
20486   testing and failure to send CREATE cells. It is the first release
20487   candidate for the Tor 0.2.5.x series.
20489   o Major bugfixes (client, startup):
20490     - Start making circuits as soon as DisabledNetwork is turned off.
20491       When Tor started with DisabledNetwork set, it would correctly
20492       conclude that it shouldn't build circuits, but it would mistakenly
20493       cache this conclusion, and continue believing it even when
20494       DisableNetwork is set to 0. Fixes the bug introduced by the fix
20495       for bug 11200; bugfix on 0.2.5.4-alpha.
20496     - Resume expanding abbreviations for command-line options. The fix
20497       for bug 4647 accidentally removed our hack from bug 586 that
20498       rewrote HashedControlPassword to __HashedControlSessionPassword
20499       when it appears on the commandline (which allowed the user to set
20500       her own HashedControlPassword in the torrc file while the
20501       controller generates a fresh session password for each run). Fixes
20502       bug 12948; bugfix on 0.2.5.1-alpha.
20503     - Warn about attempts to run hidden services and relays in the same
20504       process: that's probably not a good idea. Closes ticket 12908.
20506   o Major bugfixes (relay):
20507     - Avoid queuing or sending destroy cells for circuit ID zero when we
20508       fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1.
20509       Found and fixed by "cypherpunks".
20510     - Fix ORPort reachability detection on relays running behind a
20511       proxy, by correctly updating the "local" mark on the controlling
20512       channel when changing the address of an or_connection_t after the
20513       handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha.
20515   o Minor features (bridge):
20516     - Add an ExtORPortCookieAuthFileGroupReadable option to make the
20517       cookie file for the ExtORPort g+r by default.
20519   o Minor features (geoip):
20520     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
20521       Country database.
20523   o Minor bugfixes (logging):
20524     - Reduce the log severity of the "Pluggable transport proxy does not
20525       provide any needed transports and will not be launched." message,
20526       since Tor Browser includes several ClientTransportPlugin lines in
20527       its torrc-defaults file, leading every Tor Browser user who looks
20528       at her logs to see these notices and wonder if they're dangerous.
20529       Resolves bug 13124; bugfix on 0.2.5.3-alpha.
20530     - Downgrade "Unexpected onionskin length after decryption" warning
20531       to a protocol-warn, since there's nothing relay operators can do
20532       about a client that sends them a malformed create cell. Resolves
20533       bug 12996; bugfix on 0.0.6rc1.
20534     - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS
20535       cell on a cannibalized or non-OR circuit. Resolves ticket 12997.
20536     - When logging information about an EXTEND2 or EXTENDED2 cell, log
20537       their names correctly. Fixes part of bug 12700; bugfix
20538       on 0.2.4.8-alpha.
20539     - When logging information about a relay cell whose command we don't
20540       recognize, log its command as an integer. Fixes part of bug 12700;
20541       bugfix on 0.2.1.10-alpha.
20542     - Escape all strings from the directory connection before logging
20543       them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor".
20545   o Minor bugfixes (controller):
20546     - Restore the functionality of CookieAuthFileGroupReadable. Fixes
20547       bug 12864; bugfix on 0.2.5.1-alpha.
20548     - Actually send TRANSPORT_LAUNCHED and HS_DESC events to
20549       controllers. Fixes bug 13085; bugfix on 0.2.5.1-alpha. Patch
20550       by "teor".
20552   o Minor bugfixes (compilation):
20553     - Fix compilation of test.h with MSVC. Patch from Gisle Vanem;
20554       bugfix on 0.2.5.5-alpha.
20555     - Make the nmake make files work again. Fixes bug 13081. Bugfix on
20556       0.2.5.1-alpha. Patch from "NewEraCracker".
20557     - In routerlist_assert_ok(), don't take the address of a
20558       routerinfo's cache_info member unless that routerinfo is non-NULL.
20559       Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor".
20560     - Fix a large number of false positive warnings from the clang
20561       analyzer static analysis tool. This should make real warnings
20562       easier for clang analyzer to find. Patch from "teor". Closes
20563       ticket 13036.
20565   o Distribution (systemd):
20566     - Verify configuration file via ExecStartPre in the systemd unit
20567       file. Patch from intrigeri; resolves ticket 12730.
20568     - Explicitly disable RunAsDaemon in the systemd unit file. Our
20569       current systemd unit uses "Type = simple", so systemd does not
20570       expect tor to fork. If the user has "RunAsDaemon 1" in their
20571       torrc, then things won't work as expected. This is e.g. the case
20572       on Debian (and derivatives), since there we pass "--defaults-torrc
20573       /usr/share/tor/tor-service-defaults-torrc" (that contains
20574       "RunAsDaemon 1") by default. Patch by intrigeri; resolves
20575       ticket 12731.
20577   o Documentation:
20578     - Adjust the URLs in the README to refer to the new locations of
20579       several documents on the website. Fixes bug 12830. Patch from
20580       Matt Pagan.
20581     - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves
20582       ticket 12878.
20585 Changes in version 0.2.5.6-alpha - 2014-07-28
20586   Tor 0.2.5.6-alpha brings us a big step closer to slowing down the
20587   risk from guard rotation, and fixes a variety of other issues to get
20588   us closer to a release candidate.
20590   o Major features (also in 0.2.4.23):
20591     - Make the number of entry guards configurable via a new
20592       NumEntryGuards consensus parameter, and the number of directory
20593       guards configurable via a new NumDirectoryGuards consensus
20594       parameter. Implements ticket 12688.
20596   o Major bugfixes (also in 0.2.4.23):
20597     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
20598       implementation that caused incorrect results on 32-bit
20599       implementations when certain malformed inputs were used along with
20600       a small class of private ntor keys. This bug does not currently
20601       appear to allow an attacker to learn private keys or impersonate a
20602       Tor server, but it could provide a means to distinguish 32-bit Tor
20603       implementations from 64-bit Tor implementations. Fixes bug 12694;
20604       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
20605       Adam Langley.
20607   o Major bugfixes:
20608     - Perform circuit cleanup operations even when circuit
20609       construction operations are disabled (because the network is
20610       disabled, or because there isn't enough directory information).
20611       Previously, when we were not building predictive circuits, we
20612       were not closing expired circuits either. Fixes bug 8387; bugfix on
20613       0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we
20614       became more strict about when we have "enough directory information
20615       to build circuits".
20617   o Minor features:
20618     - Authorities now assign the Guard flag to the fastest 25% of the
20619       network (it used to be the fastest 50%). Also raise the consensus
20620       weight that guarantees the Guard flag from 250 to 2000. For the
20621       current network, this results in about 1100 guards, down from 2500.
20622       This step paves the way for moving the number of entry guards
20623       down to 1 (proposal 236) while still providing reasonable expected
20624       performance for most users. Implements ticket 12690.
20625     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
20626       Country database.
20627     - Slightly enhance the diagnostic message for bug 12184.
20629   o Minor bugfixes (also in 0.2.4.23):
20630     - Warn and drop the circuit if we receive an inbound 'relay early'
20631       cell. Those used to be normal to receive on hidden service circuits
20632       due to bug 1038, but the buggy Tor versions are long gone from
20633       the network so we can afford to resume watching for them. Resolves
20634       the rest of bug 1038; bugfix on 0.2.1.19.
20635     - Correct a confusing error message when trying to extend a circuit
20636       via the control protocol but we don't know a descriptor or
20637       microdescriptor for one of the specified relays. Fixes bug 12718;
20638       bugfix on 0.2.3.1-alpha.
20640   o Minor bugfixes:
20641     - Fix compilation when building with bufferevents enabled. (This
20642       configuration is still not expected to work, however.)
20643       Fixes bugs 12438, 12474, 11578; bugfixes on 0.2.5.1-alpha and
20644       0.2.5.3-alpha. Patches from Anthony G. Basile and Sathyanarayanan
20645       Gunasekaran.
20646     - Compile correctly with builds and forks of OpenSSL (such as
20647       LibreSSL) that disable compression. Fixes bug 12602; bugfix on
20648       0.2.1.1-alpha. Patch from "dhill".
20651 Changes in version 0.2.4.23 - 2014-07-28
20652   Tor 0.2.4.23 brings us a big step closer to slowing down the risk from
20653   guard rotation, and also backports several important fixes from the
20654   Tor 0.2.5 alpha release series.
20656   o Major features:
20657     - Clients now look at the "usecreatefast" consensus parameter to
20658       decide whether to use CREATE_FAST or CREATE cells for the first hop
20659       of their circuit. This approach can improve security on connections
20660       where Tor's circuit handshake is stronger than the available TLS
20661       connection security levels, but the tradeoff is more computational
20662       load on guard relays. Implements proposal 221. Resolves ticket 9386.
20663     - Make the number of entry guards configurable via a new
20664       NumEntryGuards consensus parameter, and the number of directory
20665       guards configurable via a new NumDirectoryGuards consensus
20666       parameter. Implements ticket 12688.
20668   o Major bugfixes:
20669     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
20670       implementation that caused incorrect results on 32-bit
20671       implementations when certain malformed inputs were used along with
20672       a small class of private ntor keys. This bug does not currently
20673       appear to allow an attacker to learn private keys or impersonate a
20674       Tor server, but it could provide a means to distinguish 32-bit Tor
20675       implementations from 64-bit Tor implementations. Fixes bug 12694;
20676       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
20677       Adam Langley.
20679   o Minor bugfixes:
20680     - Warn and drop the circuit if we receive an inbound 'relay early'
20681       cell. Those used to be normal to receive on hidden service circuits
20682       due to bug 1038, but the buggy Tor versions are long gone from
20683       the network so we can afford to resume watching for them. Resolves
20684       the rest of bug 1038; bugfix on 0.2.1.19.
20685     - Correct a confusing error message when trying to extend a circuit
20686       via the control protocol but we don't know a descriptor or
20687       microdescriptor for one of the specified relays. Fixes bug 12718;
20688       bugfix on 0.2.3.1-alpha.
20689     - Avoid an illegal read from stack when initializing the TLS
20690       module using a version of OpenSSL without all of the ciphers
20691       used by the v2 link handshake. Fixes bug 12227; bugfix on
20692       0.2.4.8-alpha.  Found by "starlight".
20694   o Minor features:
20695     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
20696       Country database.
20699 Changes in version 0.2.5.5-alpha - 2014-06-18
20700   Tor 0.2.5.5-alpha fixes a wide variety of remaining issues in the Tor
20701   0.2.5.x release series, including a couple of DoS issues, some
20702   performance regressions, a large number of bugs affecting the Linux
20703   seccomp2 sandbox code, and various other bugfixes. It also adds
20704   diagnostic bugfixes for a few tricky issues that we're trying to
20705   track down.
20707   o Major features (security, traffic analysis resistance):
20708     - Several major improvements to the algorithm used to decide when to
20709       close TLS connections. Previous versions of Tor closed connections
20710       at a fixed interval after the last time a non-padding cell was
20711       sent over the connection, regardless of the target of the
20712       connection. Now, we randomize the intervals by adding up to 50% of
20713       their base value, we measure the length of time since connection
20714       last had at least one circuit, and we allow connections to known
20715       ORs to remain open a little longer (15 minutes instead of 3
20716       minutes minimum). These changes should improve Tor's resistance
20717       against some kinds of traffic analysis, and lower some overhead
20718       from needlessly closed connections. Fixes ticket 6799.
20719       Incidentally fixes ticket 12023; bugfix on 0.2.5.1-alpha.
20721   o Major bugfixes (security, OOM, new since 0.2.5.4-alpha, also in 0.2.4.22):
20722     - Fix a memory leak that could occur if a microdescriptor parse
20723       fails during the tokenizing step. This bug could enable a memory
20724       exhaustion attack by directory servers. Fixes bug 11649; bugfix
20725       on 0.2.2.6-alpha.
20727   o Major bugfixes (security, directory authorities):
20728     - Directory authorities now include a digest of each relay's
20729       identity key as a part of its microdescriptor.
20731       This is a workaround for bug 11743 (reported by "cypherpunks"),
20732       where Tor clients do not support receiving multiple
20733       microdescriptors with the same SHA256 digest in the same
20734       consensus. When clients receive a consensus like this, they only
20735       use one of the relays. Without this fix, a hostile relay could
20736       selectively disable some client use of target relays by
20737       constructing a router descriptor with a different identity and the
20738       same microdescriptor parameters and getting the authorities to
20739       list it in a microdescriptor consensus. This fix prevents an
20740       attacker from causing a microdescriptor collision, because the
20741       router's identity is not forgeable.
20743   o Major bugfixes (relay):
20744     - Use a direct dirport connection when uploading non-anonymous
20745       descriptors to the directory authorities. Previously, relays would
20746       incorrectly use tunnel connections under a fairly wide variety of
20747       circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha.
20748     - When a circuit accidentally has the same circuit ID for its
20749       forward and reverse direction, correctly detect the direction of
20750       cells using that circuit. Previously, this bug made roughly one
20751       circuit in a million non-functional. Fixes bug 12195; this is a
20752       bugfix on every version of Tor.
20754   o Major bugfixes (client, pluggable transports):
20755     - When managing pluggable transports, use OS notification facilities
20756       to learn if they have crashed, and don't attempt to kill any
20757       process that has already exited. Fixes bug 8746; bugfix
20758       on 0.2.3.6-alpha.
20760   o Minor features (diagnostic):
20761     - When logging a warning because of bug 7164, additionally check the
20762       hash table for consistency (as proposed on ticket 11737). This may
20763       help diagnose bug 7164.
20764     - When we log a heartbeat, log how many one-hop circuits we have
20765       that are at least 30 minutes old, and log status information about
20766       a few of them. This is an attempt to track down bug 8387.
20767     - When encountering an unexpected CR while writing text to a file on
20768       Windows, log the name of the file. Should help diagnosing
20769       bug 11233.
20770     - Give more specific warnings when a client notices that an onion
20771       handshake has failed. Fixes ticket 9635.
20772     - Add significant new logging code to attempt to diagnose bug 12184,
20773       where relays seem to run out of available circuit IDs.
20774     - Improve the diagnostic log message for bug 8387 even further to
20775       try to improve our odds of figuring out why one-hop directory
20776       circuits sometimes do not get closed.
20778   o Minor features (security, memory management):
20779     - Memory allocation tricks (mempools and buffer freelists) are now
20780       disabled by default. You can turn them back on with
20781       --enable-mempools and --enable-buf-freelists respectively. We're
20782       disabling these features because malloc performance is good enough
20783       on most platforms, and a similar feature in OpenSSL exacerbated
20784       exploitation of the Heartbleed attack. Resolves ticket 11476.
20786   o Minor features (security):
20787     - Apply the secure SipHash-2-4 function to the hash table mapping
20788       circuit IDs and channels to circuits. We missed this one when we
20789       were converting all the other hash functions to use SipHash back
20790       in 0.2.5.3-alpha. Resolves ticket 11750.
20792   o Minor features (build):
20793     - The configure script has a --disable-seccomp option to turn off
20794       support for libseccomp on systems that have it, in case it (or
20795       Tor's use of it) is broken. Resolves ticket 11628.
20797   o Minor features (other):
20798     - Update geoip and geoip6 to the June 4 2014 Maxmind GeoLite2
20799       Country database.
20801   o Minor bugfixes (security, new since 0.2.5.4-alpha, also in 0.2.4.22):
20802     - When running a hidden service, do not allow TunneledDirConns 0;
20803       this will keep the hidden service from running, and also
20804       make it publish its descriptors directly over HTTP. Fixes bug 10849;
20805       bugfix on 0.2.1.1-alpha.
20807   o Minor bugfixes (performance):
20808     - Avoid a bug where every successful connection made us recompute
20809       the flag telling us whether we have sufficient information to
20810       build circuits. Previously, we would forget our cached value
20811       whenever we successfully opened a channel (or marked a router as
20812       running or not running for any other reason), regardless of
20813       whether we had previously believed the router to be running. This
20814       forced us to run an expensive update operation far too often.
20815       Fixes bug 12170; bugfix on 0.1.2.1-alpha.
20816     - Avoid using tor_memeq() for checking relay cell integrity. This
20817       removes a possible performance bottleneck. Fixes part of bug
20818       12169; bugfix on 0.2.1.31.
20820   o Minor bugfixes (compilation):
20821     - Fix compilation of test_status.c when building with MVSC. Bugfix
20822       on 0.2.5.4-alpha. Patch from Gisle Vanem.
20823     - Resolve GCC complaints on OpenBSD about discarding constness in
20824       TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix
20825       on 0.1.1.23. Patch from Dana Koch.
20826     - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to
20827       treatment of long and time_t as comparable types. Fixes part of
20828       bug 11633. Patch from Dana Koch.
20829     - Make Tor compile correctly with --disable-buf-freelists. Fixes bug
20830       11623; bugfix on 0.2.5.3-alpha.
20831     - When deciding whether to build the 64-bit curve25519
20832       implementation, detect platforms where we can compile 128-bit
20833       arithmetic but cannot link it. Fixes bug 11729; bugfix on
20834       0.2.4.8-alpha. Patch from "conradev".
20835     - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761;
20836       bugfix on 0.2.3.13-alpha. Found by "cypherpunks".
20837     - Fix compilation with dmalloc. Fixes bug 11605; bugfix
20838       on 0.2.4.10-alpha.
20840   o Minor bugfixes (Directory server):
20841     - When sending a compressed set of descriptors or microdescriptors,
20842       make sure to finalize the zlib stream. Previously, we would write
20843       all the compressed data, but if the last descriptor we wanted to
20844       send was missing or too old, we would not mark the stream as
20845       finished. This caused problems for decompression tools. Fixes bug
20846       11648; bugfix on 0.1.1.23.
20848   o Minor bugfixes (Linux seccomp sandbox):
20849     - Make the seccomp sandbox code compile under ARM Linux. Fixes bug
20850       11622; bugfix on 0.2.5.1-alpha.
20851     - Avoid crashing when re-opening listener ports with the seccomp
20852       sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha.
20853     - Avoid crashing with the seccomp sandbox enabled along with
20854       ConstrainedSockets. Fixes bug 12139; bugfix on 0.2.5.1-alpha.
20855     - When we receive a SIGHUP with the sandbox enabled, correctly
20856       support rotating our log files. Fixes bug 12032; bugfix
20857       on 0.2.5.1-alpha.
20858     - Avoid crash when running with sandboxing enabled and
20859       DirReqStatistics not disabled. Fixes bug 12035; bugfix
20860       on 0.2.5.1-alpha.
20861     - Fix a "BUG" warning when trying to write bridge-stats files with
20862       the Linux syscall sandbox filter enabled. Fixes bug 12041; bugfix
20863       on 0.2.5.1-alpha.
20864     - Prevent the sandbox from crashing on startup when run with the
20865       --enable-expensive-hardening configuration option. Fixes bug
20866       11477; bugfix on 0.2.5.4-alpha.
20867     - When running with DirPortFrontPage and sandboxing both enabled,
20868       reload the DirPortFrontPage correctly when restarting. Fixes bug
20869       12028; bugfix on 0.2.5.1-alpha.
20870     - Don't try to enable the sandbox when using the Tor binary to check
20871       its configuration, hash a passphrase, or so on. Doing so was
20872       crashing on startup for some users. Fixes bug 11609; bugfix
20873       on 0.2.5.1-alpha.
20874     - Avoid warnings when running with sandboxing and node statistics
20875       enabled at the same time. Fixes part of 12064; bugfix on
20876       0.2.5.1-alpha. Patch from Michael Wolf.
20877     - Avoid warnings when running with sandboxing enabled at the same
20878       time as cookie authentication, hidden services, or directory
20879       authority voting. Fixes part of 12064; bugfix on 0.2.5.1-alpha.
20880     - Do not allow options that require calls to exec to be enabled
20881       alongside the seccomp2 sandbox: they will inevitably crash. Fixes
20882       bug 12043; bugfix on 0.2.5.1-alpha.
20883     - Handle failures in getpwnam()/getpwuid() when running with the
20884       User option set and the Linux syscall sandbox enabled. Fixes bug
20885       11946; bugfix on 0.2.5.1-alpha.
20886     - Refactor the getaddrinfo workaround that the seccomp sandbox uses
20887       to avoid calling getaddrinfo() after installing the sandbox
20888       filters. Previously, it preloaded a cache with the IPv4 address
20889       for our hostname, and nothing else. Now, it loads the cache with
20890       every address that it used to initialize the Tor process. Fixes
20891       bug 11970; bugfix on 0.2.5.1-alpha.
20893   o Minor bugfixes (pluggable transports):
20894     - Enable the ExtORPortCookieAuthFile option, to allow changing the
20895       default location of the authentication token for the extended OR
20896       Port as used by sever-side pluggable transports. We had
20897       implemented this option before, but the code to make it settable
20898       had been omitted. Fixes bug 11635; bugfix on 0.2.5.1-alpha.
20899     - Avoid another 60-second delay when starting Tor in a pluggable-
20900       transport-using configuration when we already have cached
20901       descriptors for our bridges. Fixes bug 11965; bugfix
20902       on 0.2.3.6-alpha.
20904   o Minor bugfixes (client):
20905     - Avoid "Tried to open a socket with DisableNetwork set" warnings
20906       when starting a client with bridges configured and DisableNetwork
20907       set. (Tor launcher starts Tor with DisableNetwork set the first
20908       time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha.
20910   o Minor bugfixes (testing):
20911     - The Python parts of the test scripts now work on Python 3 as well
20912       as Python 2, so systems where '/usr/bin/python' is Python 3 will
20913       no longer have the tests break. Fixes bug 11608; bugfix
20914       on 0.2.5.2-alpha.
20915     - When looking for versions of python that we could run the tests
20916       with, check for "python2.7" and "python3.3"; previously we were
20917       only looking for "python", "python2", and "python3". Patch from
20918       Dana Koch. Fixes bug 11632; bugfix on 0.2.5.2-alpha.
20919     - Fix all valgrind warnings produced by the unit tests. There were
20920       over a thousand memory leak warnings previously, mostly produced
20921       by forgetting to free things in the unit test code. Fixes bug
20922       11618, bugfixes on many versions of Tor.
20924   o Minor bugfixes (tor-fw-helper):
20925     - Give a correct log message when tor-fw-helper fails to launch.
20926       (Previously, we would say something like "tor-fw-helper sent us a
20927       string we could not parse".) Fixes bug 9781; bugfix
20928       on 0.2.4.2-alpha.
20930   o Minor bugfixes (relay, threading):
20931     - Check return code on spawn_func() in cpuworker code, so that we
20932       don't think we've spawned a nonworking cpuworker and write junk to
20933       it forever. Fix related to bug 4345; bugfix on all released Tor
20934       versions. Found by "skruffy".
20935     - Use a pthread_attr to make sure that spawn_func() cannot return an
20936       error while at the same time launching a thread. Fix related to
20937       bug 4345; bugfix on all released Tor versions. Reported
20938       by "cypherpunks".
20940   o Minor bugfixes (relay, oom prevention):
20941     - Correctly detect the total available system memory. We tried to do
20942       this in 0.2.5.4-alpha, but the code was set up to always return an
20943       error value, even on success. Fixes bug 11805; bugfix
20944       on 0.2.5.4-alpha.
20946   o Minor bugfixes (relay, other):
20947     - We now drop CREATE cells for already-existent circuit IDs and for
20948       zero-valued circuit IDs, regardless of other factors that might
20949       otherwise have called for DESTROY cells. Fixes bug 12191; bugfix
20950       on 0.0.8pre1.
20951     - Avoid an illegal read from stack when initializing the TLS module
20952       using a version of OpenSSL without all of the ciphers used by the
20953       v2 link handshake. Fixes bug 12227; bugfix on 0.2.4.8-alpha. Found
20954       by "starlight".
20955     - When rejecting DATA cells for stream_id zero, still count them
20956       against the circuit's deliver window so that we don't fail to send
20957       a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha.
20959   o Minor bugfixes (logging):
20960     - Fix a misformatted log message about delayed directory fetches.
20961       Fixes bug 11654; bugfix on 0.2.5.3-alpha.
20962     - Squelch a spurious LD_BUG message "No origin circuit for
20963       successful SOCKS stream" in certain hidden service failure cases;
20964       fixes bug 10616.
20966   o Distribution:
20967     - Include a tor.service file in contrib/dist for use with systemd.
20968       Some distributions will be able to use this file unmodified;
20969       others will need to tweak it, or write their own. Patch from Jamie
20970       Nguyen; resolves ticket 8368.
20972   o Documentation:
20973     - Clean up several option names in the manpage to match their real
20974       names, add the missing documentation for a couple of testing and
20975       directory authority options, remove the documentation for a
20976       V2-directory fetching option that no longer exists. Resolves
20977       ticket 11634.
20978     - Correct the documentation so that it lists the correct directory
20979       for the stats files. (They are in a subdirectory called "stats",
20980       not "status".)
20981     - In the manpage, move more authority-only options into the
20982       directory authority section so that operators of regular directory
20983       caches don't get confused.
20985   o Package cleanup:
20986     - The contrib directory has been sorted and tidied. Before, it was
20987       an unsorted dumping ground for useful and not-so-useful things.
20988       Now, it is divided based on functionality, and the items which
20989       seemed to be nonfunctional or useless have been removed. Resolves
20990       ticket 8966; based on patches from "rl1987".
20992   o Removed code:
20993     - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU
20994       and MTBF calculations, but that nobody was using. Fixes ticket 11742.
20995     - The TunnelDirConns and PreferTunnelledDirConns options no longer
20996       exist; tunneled directory connections have been available since
20997       0.1.2.5-alpha, and turning them off is not a good idea. This is a
20998       brute-force fix for 10849, where "TunnelDirConns 0" would break
20999       hidden services.
21002 Changes in version 0.2.4.22 - 2014-05-16
21003   Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5
21004   alpha release series. These include blocking all authority signing
21005   keys that may have been affected by the OpenSSL "heartbleed" bug,
21006   choosing a far more secure set of TLS ciphersuites by default, closing
21007   a couple of memory leaks that could be used to run a target relay out
21008   of RAM, and several others.
21010   o Major features (security, backport from 0.2.5.4-alpha):
21011     - Block authority signing keys that were used on authorities
21012       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
21013       don't have any evidence that these keys _were_ compromised; we're
21014       doing this to be prudent.) Resolves ticket 11464.
21016   o Major bugfixes (security, OOM):
21017     - Fix a memory leak that could occur if a microdescriptor parse
21018       fails during the tokenizing step. This bug could enable a memory
21019       exhaustion attack by directory servers. Fixes bug 11649; bugfix
21020       on 0.2.2.6-alpha.
21022   o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha):
21023     - The relay ciphersuite list is now generated automatically based on
21024       uniform criteria, and includes all OpenSSL ciphersuites with
21025       acceptable strength and forward secrecy. Previously, we had left
21026       some perfectly fine ciphersuites unsupported due to omission or
21027       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
21028       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
21029     - Relays now trust themselves to have a better view than clients of
21030       which TLS ciphersuites are better than others. (Thanks to bug
21031       11513, the relay list is now well-considered, whereas the client
21032       list has been chosen mainly for anti-fingerprinting purposes.)
21033       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
21034       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
21035       AES128. Resolves ticket 11528.
21036     - Clients now try to advertise the same list of ciphersuites as
21037       Firefox 28. This change enables selection of (fast) GCM
21038       ciphersuites, disables some strange old ciphers, and stops
21039       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
21040       Resolves ticket 11438.
21042   o Minor bugfixes (configuration, security):
21043     - When running a hidden service, do not allow TunneledDirConns 0:
21044       trying to set that option together with a hidden service would
21045       otherwise prevent the hidden service from running, and also make
21046       it publish its descriptors directly over HTTP. Fixes bug 10849;
21047       bugfix on 0.2.1.1-alpha.
21049   o Minor bugfixes (controller, backport from 0.2.5.4-alpha):
21050     - Avoid sending a garbage value to the controller when a circuit is
21051       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
21053   o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha):
21054     - Stop leaking memory when we successfully resolve a PTR record.
21055       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
21057   o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha):
21058     - Avoid 60-second delays in the bootstrapping process when Tor is
21059       launching for a second time while using bridges. Fixes bug 9229;
21060       bugfix on 0.2.0.3-alpha.
21062   o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha):
21063     - Give the correct URL in the warning message when trying to run a
21064       relay on an ancient version of Windows. Fixes bug 9393.
21066   o Minor bugfixes (compilation):
21067     - Fix a compilation error when compiling with --disable-curve25519.
21068       Fixes bug 9700; bugfix on 0.2.4.17-rc.
21070   o Minor bugfixes:
21071     - Downgrade the warning severity for the the "md was still
21072       referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code
21073       for trying to diagnose this bug, and the current warning in
21074       earlier versions of tor achieves nothing useful. Addresses warning
21075       from bug 7164.
21077   o Minor features (log verbosity, backport from 0.2.5.4-alpha):
21078     - When we run out of usable circuit IDs on a channel, log only one
21079       warning for the whole channel, and describe how many circuits
21080       there were on the channel. Fixes part of ticket 11553.
21082   o Minor features (security, backport from 0.2.5.4-alpha):
21083     - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but
21084       leave the default at 8GBytes), to better support Raspberry Pi
21085       users. Fixes bug 9686; bugfix on 0.2.4.14-alpha.
21087   o Documentation (backport from 0.2.5.4-alpha):
21088     - Correctly document that we search for a system torrc file before
21089       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
21090       0.2.3.18-rc.
21093 Changes in version 0.2.5.4-alpha - 2014-04-25
21094   Tor 0.2.5.4-alpha includes several security and performance
21095   improvements for clients and relays, including blacklisting authority
21096   signing keys that were used while susceptible to the OpenSSL
21097   "heartbleed" bug, fixing two expensive functions on busy relays,
21098   improved TLS ciphersuite preference lists, support for run-time
21099   hardening on compilers that support AddressSanitizer, and more work on
21100   the Linux sandbox code.
21102   There are also several usability fixes for clients (especially clients
21103   that use bridges), two new TransPort protocols supported (one on
21104   OpenBSD, one on FreeBSD), and various other bugfixes.
21106   This release marks end-of-life for Tor 0.2.2.x; those Tor versions
21107   have accumulated many known flaws; everyone should upgrade.
21109   o Major features (security):
21110     - If you don't specify MaxMemInQueues yourself, Tor now tries to
21111       pick a good value based on your total system memory. Previously,
21112       the default was always 8 GB. You can still override the default by
21113       setting MaxMemInQueues yourself. Resolves ticket 11396.
21114     - Block authority signing keys that were used on authorities
21115       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
21116       don't have any evidence that these keys _were_ compromised; we're
21117       doing this to be prudent.) Resolves ticket 11464.
21119   o Major features (relay performance):
21120     - Speed up server-side lookups of rendezvous and introduction point
21121       circuits by using hashtables instead of linear searches. These
21122       functions previously accounted between 3 and 7% of CPU usage on
21123       some busy relays. Resolves ticket 9841.
21124     - Avoid wasting CPU when extending a circuit over a channel that is
21125       nearly out of circuit IDs. Previously, we would do a linear scan
21126       over possible circuit IDs before finding one or deciding that we
21127       had exhausted our possibilities. Now, we try at most 64 random
21128       circuit IDs before deciding that we probably won't succeed. Fixes
21129       a possible root cause of ticket 11553.
21131   o Major features (seccomp2 sandbox, Linux only):
21132     - The seccomp2 sandbox can now run a test network for multiple hours
21133       without crashing. The sandbox is still experimental, and more bugs
21134       will probably turn up. To try it, enable "Sandbox 1" on a Linux
21135       host. Resolves ticket 11351.
21136     - Strengthen sandbox code: the sandbox can now test the arguments
21137       for rename(), and blocks _sysctl() entirely. Resolves another part
21138       of ticket 11351.
21139     - When the sandbox blocks a system call, it now tries to log a stack
21140       trace before exiting. Resolves ticket 11465.
21142   o Major bugfixes (TLS cipher selection):
21143     - The relay ciphersuite list is now generated automatically based on
21144       uniform criteria, and includes all OpenSSL ciphersuites with
21145       acceptable strength and forward secrecy. Previously, we had left
21146       some perfectly fine ciphersuites unsupported due to omission or
21147       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
21148       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
21149     - Relays now trust themselves to have a better view than clients of
21150       which TLS ciphersuites are better than others. (Thanks to bug
21151       11513, the relay list is now well-considered, whereas the client
21152       list has been chosen mainly for anti-fingerprinting purposes.)
21153       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
21154       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
21155       AES128. Resolves ticket 11528.
21156     - Clients now try to advertise the same list of ciphersuites as
21157       Firefox 28. This change enables selection of (fast) GCM
21158       ciphersuites, disables some strange old ciphers, and stops
21159       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
21160       Resolves ticket 11438.
21162   o Major bugfixes (bridge client):
21163     - Avoid 60-second delays in the bootstrapping process when Tor is
21164       launching for a second time while using bridges. Fixes bug 9229;
21165       bugfix on 0.2.0.3-alpha.
21167   o Minor features (transparent proxy, *BSD):
21168     - Support FreeBSD's ipfw firewall interface for TransPort ports on
21169       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
21170       10267; patch from "yurivict".
21171     - Support OpenBSD's divert-to rules with the pf firewall for
21172       transparent proxy ports. To enable it, set "TransProxyType
21173       pf-divert". This allows Tor to run a TransPort transparent proxy
21174       port on OpenBSD 4.4 or later without root privileges. See the
21175       pf.conf(5) manual page for information on configuring pf to use
21176       divert-to rules. Closes ticket 10896; patch from Dana Koch.
21178   o Minor features (security):
21179     - New --enable-expensive-hardening option to enable security
21180       hardening options that consume nontrivial amounts of CPU and
21181       memory. Right now, this includes AddressSanitizer and UbSan, which
21182       are supported in newer versions of GCC and Clang. Closes ticket
21183       11477.
21185   o Minor features (log verbosity):
21186     - Demote the message that we give when a flushing connection times
21187       out for too long from NOTICE to INFO. It was usually meaningless.
21188       Resolves ticket 5286.
21189     - Don't log so many notice-level bootstrapping messages at startup
21190       about downloading descriptors. Previously, we'd log a notice
21191       whenever we learned about more routers. Now, we only log a notice
21192       at every 5% of progress. Fixes bug 9963.
21193     - Warn less verbosely when receiving a malformed
21194       ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279.
21195     - When we run out of usable circuit IDs on a channel, log only one
21196       warning for the whole channel, and describe how many circuits
21197       there were on the channel. Fixes part of ticket 11553.
21199   o Minor features (relay):
21200     - If a circuit timed out for at least 3 minutes, check if we have a
21201       new external IP address, and publish a new descriptor with the new
21202       IP address if it changed. Resolves ticket 2454.
21204   o Minor features (controller):
21205     - Make the entire exit policy available from the control port via
21206       GETINFO exit-policy/*. Implements enhancement 7952. Patch from
21207       "rl1987".
21208     - Because of the fix for ticket 11396, the real limit for memory
21209       usage may no longer match the configured MaxMemInQueues value. The
21210       real limit is now exposed via GETINFO limits/max-mem-in-queues.
21212   o Minor features (bridge client):
21213     - Report a more useful failure message when we can't connect to a
21214       bridge because we don't have the right pluggable transport
21215       configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto.
21217   o Minor features (diagnostic):
21218     - Add more log messages to diagnose bug 7164, which causes
21219       intermittent "microdesc_free() called but md was still referenced"
21220       warnings. We now include more information, to figure out why we
21221       might be cleaning a microdescriptor for being too old if it's
21222       still referenced by a live node_t object.
21224   o Minor bugfixes (client, DNSPort):
21225     - When using DNSPort, try to respond to AAAA requests with AAAA
21226       answers. Previously, we hadn't looked at the request type when
21227       deciding which answer type to prefer. Fixes bug 10468; bugfix on
21228       0.2.4.7-alpha.
21229     - When receiving a DNS query for an unsupported record type, reply
21230       with no answer rather than with a NOTIMPL error. This behavior
21231       isn't correct either, but it will break fewer client programs, we
21232       hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch
21233       from "epoch".
21235   o Minor bugfixes (exit relay):
21236     - Stop leaking memory when we successfully resolve a PTR record.
21237       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
21239   o Minor bugfixes (bridge client):
21240     - Stop accepting bridge lines containing hostnames. Doing so would
21241       cause clients to perform DNS requests on the hostnames, which was
21242       not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha.
21243     - Avoid a 60-second delay in the bootstrapping process when a Tor
21244       client with pluggable transports re-reads its configuration at
21245       just the wrong time. Re-fixes bug 11156; bugfix on 0.2.5.3-alpha.
21247   o Minor bugfixes (client, logging during bootstrap):
21248     - Warn only once if we start logging in an unsafe way. Previously,
21249       we complain as many times as we had problems. Fixes bug 9870;
21250       bugfix on 0.2.5.1-alpha.
21251     - Only report the first fatal bootstrap error on a given OR
21252       connection. This stops us from telling the controller bogus error
21253       messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha.
21254     - Be more helpful when trying to run sandboxed on Linux without
21255       libseccomp. Instead of saying "Sandbox is not implemented on this
21256       platform", we now explain that we need to be built with
21257       libseccomp. Fixes bug 11543; bugfix on 0.2.5.1-alpha.
21258     - Avoid generating spurious warnings when starting with
21259       DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on
21260       0.2.3.9-alpha.
21262   o Minor bugfixes (closing OR connections):
21263     - If write_to_buf() in connection_write_to_buf_impl_() ever fails,
21264       check if it's an or_connection_t and correctly call
21265       connection_or_close_for_error() rather than
21266       connection_mark_for_close() directly. Fixes bug 11304; bugfix on
21267       0.2.4.4-alpha.
21268     - When closing all connections on setting DisableNetwork to 1, use
21269       connection_or_close_normally() rather than closing OR connections
21270       out from under the channel layer. Fixes bug 11306; bugfix on
21271       0.2.4.4-alpha.
21273   o Minor bugfixes (controller):
21274     - Avoid sending a garbage value to the controller when a circuit is
21275       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
21277   o Minor bugfixes (tor-fw-helper):
21278     - Allow tor-fw-helper to build again by adding src/ext to its
21279       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
21281   o Minor bugfixes (bridges):
21282     - Avoid potential crashes or bad behavior when launching a
21283       server-side managed proxy with ORPort or ExtORPort temporarily
21284       disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
21286   o Minor bugfixes (platform-specific):
21287     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
21288       bug 11426; bugfix on 0.2.5.3-alpha.
21289     - When dumping a malformed directory object to disk, save it in
21290       binary mode on Windows, not text mode. Fixes bug 11342; bugfix on
21291       0.2.2.1-alpha.
21292     - Don't report failures from make_socket_reuseable() on incoming
21293       sockets on OSX: this can happen when incoming connections close
21294       early. Fixes bug 10081.
21296   o Minor bugfixes (trivial memory leaks):
21297     - Fix a small memory leak when signing a directory object. Fixes bug
21298       11275; bugfix on 0.2.4.13-alpha.
21299     - Free placeholder entries in our circuit table at exit; fixes a
21300       harmless memory leak. Fixes bug 11278; bugfix on 0.2.5.1-alpha.
21301     - Don't re-initialize a second set of OpenSSL mutexes when starting
21302       up. Previously, we'd make one set of mutexes, and then immediately
21303       replace them with another. Fixes bug 11726; bugfix on
21304       0.2.5.3-alpha.
21305     - Resolve some memory leaks found by coverity in the unit tests, on
21306       exit in tor-gencert, and on a failure to compute digests for our
21307       own keys when generating a v3 networkstatus vote. These leaks
21308       should never have affected anyone in practice.
21310   o Minor bugfixes (hidden service):
21311     - Only retry attempts to connect to a chosen rendezvous point 8
21312       times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc.
21314   o Minor bugfixes (misc code correctness):
21315     - Fix various instances of undefined behavior in channeltls.c,
21316       tor_memmem(), and eventdns.c that would cause us to construct
21317       pointers to memory outside an allocated object. (These invalid
21318       pointers were not accessed, but C does not even allow them to
21319       exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha,
21320       0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom".
21321     - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to
21322       fix some miscellaneous errors in our tests and codebase. Fixes bug
21323       11232. Bugfixes on versions back as far as 0.2.1.11-alpha.
21324     - Always check return values for unlink, munmap, UnmapViewOfFile;
21325       check strftime return values more often. In some cases all we can
21326       do is report a warning, but this may help prevent deeper bugs from
21327       going unnoticed. Closes ticket 8787; bugfixes on many, many tor
21328       versions.
21329     - Fix numerous warnings from the clang "scan-build" static analyzer.
21330       Some of these are programming style issues; some of them are false
21331       positives that indicated awkward code; some are undefined behavior
21332       cases related to constructing (but not using) invalid pointers;
21333       some are assumptions about API behavior; some are (harmlessly)
21334       logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be
21335       correct; and one or two are genuine bugs that weren't reachable
21336       from the rest of the program. Fixes bug 8793; bugfixes on many,
21337       many tor versions.
21339   o Documentation:
21340     - Build the torify.1 manpage again. Previously, we were only trying
21341       to build it when also building tor-fw-helper. That's why we didn't
21342       notice that we'd broken the ability to build it. Fixes bug 11321;
21343       bugfix on 0.2.5.1-alpha.
21344     - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug
21345       11061; bugfix on 0.2.4.7-alpha.
21346     - Correctly document that we search for a system torrc file before
21347       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
21348       0.2.3.18-rc.
21349     - Resolve warnings from Doxygen.
21351   o Code simplifications and refactoring:
21352     - Remove is_internal_IP() function. Resolves ticket 4645.
21353     - Remove unused function circuit_dump_by_chan from circuitlist.c.
21354       Closes issue 9107; patch from "marek".
21355     - Change our use of the ENUM_BF macro to avoid declarations that
21356       confuse Doxygen.
21358   o Deprecated versions:
21359     - Tor 0.2.2.x has reached end-of-life; it has received no patches or
21360       attention for some while. Directory authorities no longer accept
21361       descriptors from relays running any version of Tor prior to Tor
21362       0.2.3.16-alpha. Resolves ticket 11149.
21364   o Testing:
21365     - New macros in test.h to simplify writing mock-functions for unit
21366       tests. Part of ticket 11507. Patch from Dana Koch.
21367     - Complete tests for the status.c module. Resolves ticket 11507.
21368       Patch from Dana Koch.
21370   o Removed code:
21371     - Remove all code for the long unused v1 directory protocol.
21372       Resolves ticket 11070.
21375 Changes in version 0.2.5.3-alpha - 2014-03-22
21376   Tor 0.2.5.3-alpha includes all the fixes from 0.2.4.21. It contains
21377   two new anti-DoS features for Tor relays, resolves a bug that kept
21378   SOCKS5 support for IPv6 from working, fixes several annoying usability
21379   issues for bridge users, and removes more old code for unused
21380   directory formats.
21382   The Tor 0.2.5.x release series is now in patch-freeze: no feature
21383   patches not already written will be considered for inclusion in 0.2.5.x.
21385   o Major features (relay security, DoS-resistance):
21386     - When deciding whether we have run out of memory and we need to
21387       close circuits, also consider memory allocated in buffers for
21388       streams attached to each circuit.
21390       This change, which extends an anti-DoS feature introduced in
21391       0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays
21392       better resist more memory-based DoS attacks than before. Since the
21393       MaxMemInCellQueues option now applies to all queues, it is renamed
21394       to MaxMemInQueues. This feature fixes bug 10169.
21395     - Avoid hash-flooding denial-of-service attacks by using the secure
21396       SipHash-2-4 hash function for our hashtables. Without this
21397       feature, an attacker could degrade performance of a targeted
21398       client or server by flooding their data structures with a large
21399       number of entries to be stored at the same hash table position,
21400       thereby slowing down the Tor instance. With this feature, hash
21401       table positions are derived from a randomized cryptographic key,
21402       and an attacker cannot predict which entries will collide. Closes
21403       ticket 4900.
21404     - Decrease the lower limit of MaxMemInQueues to 256 MBytes (but leave
21405       the default at 8GBytes), to better support Raspberry Pi users. Fixes
21406       bug 9686; bugfix on 0.2.4.14-alpha.
21408   o Minor features (bridges, pluggable transports):
21409     - Bridges now write the SHA1 digest of their identity key
21410       fingerprint (that is, a hash of a hash of their public key) to
21411       notice-level logs, and to a new hashed-fingerprint file. This
21412       information will help bridge operators look up their bridge in
21413       Globe and similar tools. Resolves ticket 10884.
21414     - Improve the message that Tor displays when running as a bridge
21415       using pluggable transports without an Extended ORPort listener.
21416       Also, log the message in the log file too. Resolves ticket 11043.
21418   o Minor features (other):
21419     - Add a new option, PredictedPortsRelevanceTime, to control how long
21420       after having received a request to connect to a given port Tor
21421       will try to keep circuits ready in anticipation of future requests
21422       for that port. Patch from "unixninja92"; implements ticket 9176.
21423     - Generate a warning if any ports are listed in the SocksPolicy,
21424       DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or
21425       AuthDirBadExit options. (These options only support address
21426       ranges.) Fixes part of ticket 11108.
21427     - Update geoip and geoip6 to the February 7 2014 Maxmind GeoLite2
21428       Country database.
21430   o Minor bugfixes (new since 0.2.5.2-alpha, also in 0.2.4.21):
21431     - Build without warnings under clang 3.4. (We have some macros that
21432       define static functions only some of which will get used later in
21433       the module. Starting with clang 3.4, these give a warning unless the
21434       unused attribute is set on them.) Resolves ticket 10904.
21435     - Fix build warnings about missing "a2x" comment when building the
21436       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
21437       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
21439   o Minor bugfixes (client):
21440     - Improve the log message when we can't connect to a hidden service
21441       because all of the hidden service directory nodes hosting its
21442       descriptor are excluded. Improves on our fix for bug 10722, which
21443       was a bugfix on 0.2.0.10-alpha.
21444     - Raise a control port warning when we fail to connect to all of
21445       our bridges. Previously, we didn't inform the controller, and
21446       the bootstrap process would stall. Fixes bug 11069; bugfix on
21447       0.2.1.2-alpha.
21448     - Exit immediately when a process-owning controller exits.
21449       Previously, tor relays would wait for a little while after their
21450       controller exited, as if they had gotten an INT signal -- but this
21451       was problematic, since there was no feedback for the user. To do a
21452       clean shutdown, controllers should send an INT signal and give Tor
21453       a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta.
21454     - Stop attempting to connect to bridges before our pluggable
21455       transports are configured (harmless but resulted in some erroneous
21456       log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha.
21457     - Fix connections to IPv6 addresses over SOCKS5. Previously, we were
21458       generating incorrect SOCKS5 responses, and confusing client
21459       applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha.
21461   o Minor bugfixes (relays and bridges):
21462     - Avoid crashing on a malformed resolv.conf file when running a
21463       relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23.
21464     - Non-exit relays no longer launch mock DNS requests to check for
21465       DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when
21466       non-exit relays stopped servicing DNS requests. Fixes bug 965;
21467       bugfix on 0.2.1.7-alpha. Patch from Matt Pagan.
21468     - Bridges now report complete directory request statistics. Related
21469       to bug 5824; bugfix on 0.2.2.1-alpha.
21470     - Bridges now never collect statistics that were designed for
21471       relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha.
21472     - Stop giving annoying warning messages when we decide not to launch
21473       a pluggable transport proxy that we don't need (because there are
21474       no bridges configured to use it). Resolves ticket 5018; bugfix
21475       on 0.2.5.2-alpha.
21476     - Give the correct URL in the warning message when trying to run a
21477       relay on an ancient version of Windows. Fixes bug 9393.
21479   o Minor bugfixes (backtrace support):
21480     - Support automatic backtraces on more platforms by using the
21481       "-fasynchronous-unwind-tables" compiler option. This option is
21482       needed for platforms like 32-bit Intel where "-fomit-frame-pointer"
21483       is on by default and table generation is not. This doesn't yet
21484       add Windows support; only Linux, OSX, and some BSDs are affected.
21485       Reported by 'cypherpunks'; fixes bug 11047; bugfix on 0.2.5.2-alpha.
21486     - Avoid strange behavior if two threads hit failed assertions at the
21487       same time and both try to log backtraces at once. (Previously, if
21488       this had happened, both threads would have stored their intermediate
21489       results in the same buffer, and generated junk outputs.) Reported by
21490       "cypherpunks". Fixes bug 11048; bugfix on 0.2.5.2-alpha.
21491     - Fix a compiler warning in format_number_sigsafe(). Bugfix on
21492       0.2.5.2-alpha; patch from Nick Hopper.
21494   o Minor bugfixes (unit tests):
21495     - Fix a small bug in the unit tests that might have made the tests
21496       call 'chmod' with an uninitialized bitmask. Fixes bug 10928;
21497       bugfix on 0.2.5.1-alpha. Patch from Dana Koch.
21499   o Removed code:
21500     - Remove all remaining code related to version-0 hidden service
21501       descriptors: they have not been in use since 0.2.2.1-alpha. Fixes
21502       the rest of bug 10841.
21504   o Documentation:
21505     - Document in the manpage that "KBytes" may also be written as
21506       "kilobytes" or "KB", that "Kbits" may also be written as
21507       "kilobits", and so forth. Closes ticket 9222.
21508     - Document that the ClientOnly config option overrides ORPort.
21509       Our old explanation made ClientOnly sound as though it did
21510       nothing at all. Resolves bug 9059.
21511     - Explain that SocksPolicy, DirPolicy, and similar options don't
21512       take port arguments. Fixes the other part of ticket 11108.
21513     - Fix a comment about the rend_server_descriptor_t.protocols field
21514       to more accurately describe its range. Also, make that field
21515       unsigned, to more accurately reflect its usage. Fixes bug 9099;
21516       bugfix on 0.2.1.5-alpha.
21517     - Fix the manpage's description of HiddenServiceAuthorizeClient:
21518       the maximum client name length is 16, not 19. Fixes bug 11118;
21519       bugfix on 0.2.1.6-alpha.
21521   o Code simplifications and refactoring:
21522     - Get rid of router->address, since in all cases it was just the
21523       string representation of router->addr. Resolves ticket 5528.
21525   o Test infrastructure:
21526     - Update to the latest version of tinytest.
21527     - Improve the tinytest implementation of string operation tests so
21528       that comparisons with NULL strings no longer crash the tests; they
21529       now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha.
21532 Changes in version 0.2.4.21 - 2014-02-28
21533   Tor 0.2.4.21 further improves security against potential adversaries who
21534   find breaking 1024-bit crypto doable, and backports several stability
21535   and robustness patches from the 0.2.5 branch.
21537   o Major features (client security):
21538     - When we choose a path for a 3-hop circuit, make sure it contains
21539       at least one relay that supports the NTor circuit extension
21540       handshake. Otherwise, there is a chance that we're building
21541       a circuit that's worth attacking by an adversary who finds
21542       breaking 1024-bit crypto doable, and that chance changes the game
21543       theory. Implements ticket 9777.
21545   o Major bugfixes:
21546     - Do not treat streams that fail with reason
21547       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
21548       since it could also indicate an ENETUNREACH connection error. Fixes
21549       part of bug 10777; bugfix on 0.2.4.8-alpha.
21551   o Code simplification and refactoring:
21552     - Remove data structures which were introduced to implement the
21553       CellStatistics option: they are now redundant with the new timestamp
21554       field in the regular packed_cell_t data structure, which we did
21555       in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870.
21557   o Minor features:
21558     - Always clear OpenSSL bignums before freeing them -- even bignums
21559       that don't contain secrets. Resolves ticket 10793. Patch by
21560       Florent Daigniere.
21561     - Build without warnings under clang 3.4. (We have some macros that
21562       define static functions only some of which will get used later in
21563       the module. Starting with clang 3.4, these give a warning unless the
21564       unused attribute is set on them.) Resolves ticket 10904.
21565     - Update geoip and geoip6 files to the February 7 2014 Maxmind
21566       GeoLite2 Country database.
21568   o Minor bugfixes:
21569     - Set the listen() backlog limit to the largest actually supported
21570       on the system, not to the value in a header file. Fixes bug 9716;
21571       bugfix on every released Tor.
21572     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
21573       exit node as a NOROUTE error, not an INTERNAL error, since they
21574       can apparently happen when trying to connect to the wrong sort
21575       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
21576     - Fix build warnings about missing "a2x" comment when building the
21577       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
21578       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
21579     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
21580       not entirely remove it from the connection lists. Fixes bug 9602;
21581       bugfix on 0.2.4.4-alpha.
21582     - Fix a segmentation fault in our benchmark code when running with
21583       Fedora's OpenSSL package, or any other OpenSSL that provides
21584       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
21585     - Turn "circuit handshake stats since last time" log messages into a
21586       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
21588   o Documentation fixes:
21589     - Document that all but one DirPort entry must have the NoAdvertise
21590       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
21593 Changes in version 0.2.5.2-alpha - 2014-02-13
21594   Tor 0.2.5.2-alpha includes all the fixes from 0.2.4.18-rc and 0.2.4.20,
21595   like the "poor random number generation" fix and the "building too many
21596   circuits" fix. It also further improves security against potential
21597   adversaries who find breaking 1024-bit crypto doable, and launches
21598   pluggable transports on demand (which gets us closer to integrating
21599   pluggable transport support by default -- not to be confused with Tor
21600   bundles enabling pluggable transports and bridges by default).
21602   o Major features (client security):
21603     - When we choose a path for a 3-hop circuit, make sure it contains
21604       at least one relay that supports the NTor circuit extension
21605       handshake. Otherwise, there is a chance that we're building
21606       a circuit that's worth attacking by an adversary who finds
21607       breaking 1024-bit crypto doable, and that chance changes the game
21608       theory. Implements ticket 9777.
21609     - Clients now look at the "usecreatefast" consensus parameter to
21610       decide whether to use CREATE_FAST or CREATE cells for the first hop
21611       of their circuit. This approach can improve security on connections
21612       where Tor's circuit handshake is stronger than the available TLS
21613       connection security levels, but the tradeoff is more computational
21614       load on guard relays. Implements proposal 221. Resolves ticket 9386.
21616   o Major features (bridges):
21617     - Don't launch pluggable transport proxies if we don't have any
21618       bridges configured that would use them. Now we can list many
21619       pluggable transports, and Tor will dynamically start one when it
21620       hears a bridge address that needs it. Resolves ticket 5018.
21621     - The bridge directory authority now assigns status flags (Stable,
21622       Guard, etc) to bridges based on thresholds calculated over all
21623       Running bridges. Now bridgedb can finally make use of its features
21624       to e.g. include at least one Stable bridge in its answers. Fixes
21625       bug 9859.
21627   o Major features (other):
21628     - Extend ORCONN controller event to include an "ID" parameter,
21629       and add four new controller event types CONN_BW, CIRC_BW,
21630       CELL_STATS, and TB_EMPTY that show connection and circuit usage.
21631       The new events are emitted in private Tor networks only, with the
21632       goal of being able to better track performance and load during
21633       full-network simulations. Implements proposal 218 and ticket 7359.
21634     - On some platforms (currently: recent OSX versions, glibc-based
21635       platforms that support the ELF format, and a few other
21636       Unix-like operating systems), Tor can now dump stack traces
21637       when a crash occurs or an assertion fails. By default, traces
21638       are dumped to stderr (if possible) and to any logs that are
21639       reporting errors. Implements ticket 9299.
21641   o Major bugfixes:
21642     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
21643       not entirely remove it from the connection lists. Fixes bug 9602;
21644       bugfix on 0.2.4.4-alpha.
21645     - Do not treat streams that fail with reason
21646       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
21647       since it could also indicate an ENETUNREACH connection error. Fixes
21648       part of bug 10777; bugfix on 0.2.4.8-alpha.
21650   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
21651     - Do not allow OpenSSL engines to replace the PRNG, even when
21652       HardwareAccel is set. The only default builtin PRNG engine uses
21653       the Intel RDRAND instruction to replace the entire PRNG, and
21654       ignores all attempts to seed it with more entropy. That's
21655       cryptographically stupid: the right response to a new alleged
21656       entropy source is never to discard all previously used entropy
21657       sources. Fixes bug 10402; works around behavior introduced in
21658       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
21659       and "rl1987".
21660     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
21661       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
21662     - Avoid launching spurious extra circuits when a stream is pending.
21663       This fixes a bug where any circuit that _wasn't_ unusable for new
21664       streams would be treated as if it were, causing extra circuits to
21665       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
21667   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21668     - No longer stop reading or writing on cpuworker connections when
21669       our rate limiting buckets go empty. Now we should handle circuit
21670       handshake requests more promptly. Resolves bug 9731.
21671     - Stop trying to bootstrap all our directory information from
21672       only our first guard. Discovered while fixing bug 9946; bugfix
21673       on 0.2.4.8-alpha.
21675   o Minor features (bridges, pluggable transports):
21676     - Add threshold cutoffs to the networkstatus document created by
21677       the Bridge Authority. Fixes bug 1117.
21678     - On Windows, spawn background processes using the CREATE_NO_WINDOW
21679       flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled
21680       doesn't pop up a blank console window. (In Tor Browser Bundle 2.x,
21681       Vidalia set this option for us.) Implements ticket 10297.
21683   o Minor features (security):
21684     - Always clear OpenSSL bignums before freeing them -- even bignums
21685       that don't contain secrets. Resolves ticket 10793. Patch by
21686       Florent Daignière.
21688   o Minor features (config options and command line):
21689     - Add an --allow-missing-torrc commandline option that tells Tor to
21690       run even if the configuration file specified by -f is not available.
21691       Implements ticket 10060.
21692     - Add support for the TPROXY transparent proxying facility on Linux.
21693       See documentation for the new TransProxyType option for more
21694       details. Implementation by "thomo". Closes ticket 10582.
21696   o Minor features (controller):
21697     - Add a new "HS_DESC" controller event that reports activities
21698       related to hidden service descriptors. Resolves ticket 8510.
21699     - New "DROPGUARDS" controller command to forget all current entry
21700       guards. Not recommended for ordinary use, since replacing guards
21701       too frequently makes several attacks easier. Resolves ticket 9934;
21702       patch from "ra".
21704   o Minor features (build):
21705     - Assume that a user using ./configure --host wants to cross-compile,
21706       and give an error if we cannot find a properly named
21707       tool-chain. Add a --disable-tool-name-check option to proceed
21708       nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz.
21709     - If we run ./configure and the compiler recognizes -fstack-protector
21710       but the linker rejects it, warn the user about a potentially missing
21711       libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz.
21713   o Minor features (testing):
21714     - If Python is installed, "make check" now runs extra tests beyond
21715       the unit test scripts.
21716     - When bootstrapping a test network, sometimes very few relays get
21717       the Guard flag. Now a new option "TestingDirAuthVoteGuard" can
21718       specify a set of relays which should be voted Guard regardless of
21719       their uptime or bandwidth. Addresses ticket 9206.
21721   o Minor features (log messages):
21722     - When ServerTransportPlugin is set on a bridge, Tor can write more
21723       useful statistics about bridge use in its extrainfo descriptors,
21724       but only if the Extended ORPort ("ExtORPort") is set too. Add a
21725       log message to inform the user in this case. Resolves ticket 9651.
21726     - When receiving a new controller connection, log the origin address.
21727       Resolves ticket 9698; patch from "sigpipe".
21728     - When logging OpenSSL engine status at startup, log the status of
21729       more engines. Fixes ticket 10043; patch from Joshua Datko.
21730     - Turn "circuit handshake stats since last time" log messages into a
21731       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
21733   o Minor features (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21734     - Improve the circuit queue out-of-memory handler. Previously, when
21735       we ran low on memory, we'd close whichever circuits had the most
21736       queued cells. Now, we close those that have the *oldest* queued
21737       cells, on the theory that those are most responsible for us
21738       running low on memory. Based on analysis from a forthcoming paper
21739       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
21740     - Generate bootstrapping status update events correctly when fetching
21741       microdescriptors. Fixes bug 9927.
21742     - Update to the October 2 2013 Maxmind GeoLite Country database.
21744   o Minor bugfixes (clients):
21745     - When closing a channel that has already been open, do not close
21746       pending circuits that were waiting to connect to the same relay.
21747       Fixes bug 9880; bugfix on 0.2.5.1-alpha. Thanks to skruffy for
21748       finding this bug.
21750   o Minor bugfixes (relays):
21751     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
21752       exit node as a NOROUTE error, not an INTERNAL error, since they
21753       can apparently happen when trying to connect to the wrong sort
21754       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
21756   o Minor bugfixes (bridges):
21757     - Fix a bug where the first connection works to a bridge that uses a
21758       pluggable transport with client-side parameters, but we don't send
21759       the client-side parameters on subsequent connections. (We don't
21760       use any pluggable transports with client-side parameters yet,
21761       but ScrambleSuit will soon become the first one.) Fixes bug 9162;
21762       bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987".
21764   o Minor bugfixes (node selection):
21765     - If ExcludeNodes is set, consider non-excluded hidden service
21766       directory servers before excluded ones. Do not consider excluded
21767       hidden service directory servers at all if StrictNodes is
21768       set. (Previously, we would sometimes decide to connect to those
21769       servers, and then realize before we initiated a connection that
21770       we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha.
21771       Reported by "mr-4".
21772     - If we set the ExitNodes option but it doesn't include any nodes
21773       that have the Exit flag, we would choose not to bootstrap. Now we
21774       bootstrap so long as ExitNodes includes nodes which can exit to
21775       some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha.
21777   o Minor bugfixes (controller and command-line):
21778     - If changing a config option via "setconf" fails in a recoverable
21779       way, we used to nonetheless write our new control ports to the
21780       file described by the "ControlPortWriteToFile" option. Now we only
21781       write out that file if we successfully switch to the new config
21782       option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman".
21783     - When a command-line option such as --version or --help that
21784       ordinarily implies --hush appears on the command line along with
21785       --quiet, then actually obey --quiet. Previously, we obeyed --quiet
21786       only if it appeared later on the command line. Fixes bug 9578;
21787       bugfix on 0.2.5.1-alpha.
21789   o Minor bugfixes (code correctness):
21790     - Previously we used two temporary files when writing descriptors to
21791       disk; now we only use one. Fixes bug 1376.
21792     - Remove an erroneous (but impossible and thus harmless) pointer
21793       comparison that would have allowed compilers to skip a bounds
21794       check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on
21795       0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield.
21796     - Fix an always-true assertion in pluggable transports code so it
21797       actually checks what it was trying to check. Fixes bug 10046;
21798       bugfix on 0.2.3.9-alpha. Found by "dcb".
21800   o Minor bugfixes (protocol correctness):
21801     - When receiving a VERSIONS cell with an odd number of bytes, close
21802       the connection immediately since the cell is malformed. Fixes bug
21803       10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by
21804       "rl1987".
21806   o Minor bugfixes (build):
21807     - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER
21808       turned off (that is, without support for v2 link handshakes). Fixes
21809       bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet".
21810     - Fix compilation warnings and startup issues when running with
21811       "Sandbox 1" and libseccomp-2.1.0. Fixes bug 10563; bugfix on
21812       0.2.5.1-alpha.
21813     - Fix compilation on Solaris 9, which didn't like us having an
21814       identifier named "sun". Fixes bug 10565; bugfix in 0.2.5.1-alpha.
21816   o Minor bugfixes (testing):
21817     - Fix a segmentation fault in our benchmark code when running with
21818       Fedora's OpenSSL package, or any other OpenSSL that provides
21819       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
21821   o Minor bugfixes (log messages):
21822     - Fix a bug where clients using bridges would report themselves
21823       as 50% bootstrapped even without a live consensus document.
21824       Fixes bug 9922; bugfix on 0.2.1.1-alpha.
21825     - Suppress a warning where, if there's only one directory authority
21826       in the network, we would complain that votes and signatures cannot
21827       be uploaded to other directory authorities. Fixes bug 10842;
21828       bugfix on 0.2.2.26-beta.
21829     - Report bootstrapping progress correctly when we're downloading
21830       microdescriptors. We had updated our "do we have enough microdescs
21831       to begin building circuits?" logic most recently in 0.2.4.10-alpha
21832       (see bug 5956), but we left the bootstrap status event logic at
21833       "how far through getting 1/4 of them are we?" Fixes bug 9958;
21834       bugfix on 0.2.2.36, which is where they diverged (see bug 5343).
21836   o Minor bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
21837     - Avoid a crash bug when starting with a corrupted microdescriptor
21838       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
21839     - If we fail to dump a previously cached microdescriptor to disk, avoid
21840       freeing duplicate data later on. Fixes bug 10423; bugfix on
21841       0.2.4.13-alpha. Spotted by "bobnomnom".
21843   o Minor bugfixes on 0.2.4.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21844     - Correctly log long IPv6 exit policies, instead of truncating them
21845       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
21846     - Our default TLS ecdhe groups were backwards: we meant to be using
21847       P224 for relays (for performance win) and P256 for bridges (since
21848       it is more common in the wild). Instead we had it backwards. After
21849       reconsideration, we decided that the default should be P256 on all
21850       hosts, since its security is probably better, and since P224 is
21851       reportedly used quite little in the wild.  Found by "skruffy" on
21852       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
21853     - Free directory authority certificate download statuses on exit
21854       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
21856   o Minor bugfixes on 0.2.3.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21857     - If the guard we choose first doesn't answer, we would try the
21858       second guard, but once we connected to the second guard we would
21859       abandon it and retry the first one, slowing down bootstrapping.
21860       The fix is to treat all our initially chosen guards as acceptable
21861       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
21862     - Fix an assertion failure that would occur when disabling the
21863       ORPort setting on a running Tor process while accounting was
21864       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
21865     - When examining the list of network interfaces to find our address,
21866       do not consider non-running or disabled network interfaces. Fixes
21867       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
21868     - Avoid an off-by-one error when checking buffer boundaries when
21869       formatting the exit status of a pluggable transport helper.
21870       This is probably not an exploitable bug, but better safe than
21871       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
21872       Pedro Ribeiro.
21874   o Removed code and features:
21875     - Clients now reject any directory authority certificates lacking
21876       a dir-key-crosscert element. These have been included since
21877       0.2.1.9-alpha, so there's no real reason for them to be optional
21878       any longer. Completes proposal 157. Resolves ticket 10162.
21879     - Remove all code that existed to support the v2 directory system,
21880       since there are no longer any v2 directory authorities. Resolves
21881       ticket 10758.
21882     - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc
21883       options, which were used for designating authorities as "Hidden
21884       service authorities". There has been no use of hidden service
21885       authorities since 0.2.2.1-alpha, when we stopped uploading or
21886       downloading v0 hidden service descriptors. Fixes bug 10881; also
21887       part of a fix for bug 10841.
21889   o Code simplification and refactoring:
21890     - Remove some old fallback code designed to keep Tor clients working
21891       in a network with only two working relays. Elsewhere in the code we
21892       have long since stopped supporting such networks, so there wasn't
21893       much point in keeping it around. Addresses ticket 9926.
21894     - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536;
21895       bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".
21896     - Remove data structures which were introduced to implement the
21897       CellStatistics option: they are now redundant with the addition
21898       of a timestamp to the regular packed_cell_t data structure, which
21899       we did in 0.2.4.18-rc in order to resolve ticket 9093. Implements
21900       ticket 10870.
21902   o Documentation (man page) fixes:
21903     - Update manpage to describe some of the files you can expect to
21904       find in Tor's DataDirectory. Addresses ticket 9839.
21905     - Document that all but one DirPort entry must have the NoAdvertise
21906       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
21908   o Documentation fixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21909     - Clarify the usage and risks of setting the ContactInfo torrc line
21910       for your relay or bridge. Resolves ticket 9854.
21911     - Add anchors to the manpage so we can link to the html version of
21912       the documentation for specific options. Resolves ticket 9866.
21913     - Replace remaining references to DirServer in man page and
21914       log entries. Resolves ticket 10124.
21916   o Tool changes:
21917     - Make the "tor-gencert" tool used by directory authority operators
21918       create 2048-bit signing keys by default (rather than 1024-bit, since
21919       1024-bit is uncomfortably small these days). Addresses ticket 10324.
21922 Changes in version 0.2.4.20 - 2013-12-22
21923   Tor 0.2.4.20 fixes potentially poor random number generation for users
21924   who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their
21925   torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors,
21926   and 4) have no state file in their DataDirectory (as would happen on
21927   first start). Users who generated relay or hidden service identity
21928   keys in such a situation should discard them and generate new ones.
21930   This release also fixes a logic error that caused Tor clients to build
21931   many more preemptive circuits than they actually need.
21933   o Major bugfixes:
21934     - Do not allow OpenSSL engines to replace the PRNG, even when
21935       HardwareAccel is set. The only default builtin PRNG engine uses
21936       the Intel RDRAND instruction to replace the entire PRNG, and
21937       ignores all attempts to seed it with more entropy. That's
21938       cryptographically stupid: the right response to a new alleged
21939       entropy source is never to discard all previously used entropy
21940       sources. Fixes bug 10402; works around behavior introduced in
21941       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
21942       and "rl1987".
21943     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
21944       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
21945     - Avoid launching spurious extra circuits when a stream is pending.
21946       This fixes a bug where any circuit that _wasn't_ unusable for new
21947       streams would be treated as if it were, causing extra circuits to
21948       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
21950   o Minor bugfixes:
21951     - Avoid a crash bug when starting with a corrupted microdescriptor
21952       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
21953     - If we fail to dump a previously cached microdescriptor to disk, avoid
21954       freeing duplicate data later on. Fixes bug 10423; bugfix on
21955       0.2.4.13-alpha. Spotted by "bobnomnom".
21958 Changes in version 0.2.4.19 - 2013-12-11
21959   The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz
21960   (1986-2013). Aaron worked on diverse projects including helping to guide
21961   Creative Commons, playing a key role in stopping SOPA/PIPA, bringing
21962   transparency to the U.S government's PACER documents, and contributing
21963   design and development for Tor and Tor2Web. Aaron was one of the latest
21964   martyrs in our collective fight for civil liberties and human rights,
21965   and his death is all the more painful because he was one of us.
21967   Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features
21968   a new circuit handshake and link encryption that use ECC to provide
21969   better security and efficiency; makes relays better manage circuit
21970   creation requests; uses "directory guards" to reduce client enumeration
21971   risks; makes bridges collect and report statistics about the pluggable
21972   transports they support; cleans up and improves our geoip database;
21973   gets much closer to IPv6 support for clients, bridges, and relays; makes
21974   directory authorities use measured bandwidths rather than advertised
21975   ones when computing flags and thresholds; disables client-side DNS
21976   caching to reduce tracking risks; and fixes a big bug in bridge
21977   reachability testing. This release introduces two new design
21978   abstractions in the code: a new "channel" abstraction between circuits
21979   and or_connections to allow for implementing alternate relay-to-relay
21980   transports, and a new "circuitmux" abstraction storing the queue of
21981   circuits for a channel. The release also includes many stability,
21982   security, and privacy fixes.
21985 Changes in version 0.2.4.18-rc - 2013-11-16
21986   Tor 0.2.4.18-rc is the fourth release candidate for the Tor 0.2.4.x
21987   series. It takes a variety of fixes from the 0.2.5.x branch to improve
21988   stability, performance, and better handling of edge cases.
21990   o Major features:
21991     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
21992       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
21993       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
21994       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
21995       them to solve bug 6033.)
21997   o Major bugfixes:
21998     - No longer stop reading or writing on cpuworker connections when
21999       our rate limiting buckets go empty. Now we should handle circuit
22000       handshake requests more promptly. Resolves bug 9731.
22001     - If we are unable to save a microdescriptor to the journal, do not
22002       drop it from memory and then reattempt downloading it. Fixes bug
22003       9645; bugfix on 0.2.2.6-alpha.
22004     - Stop trying to bootstrap all our directory information from
22005       only our first guard. Discovered while fixing bug 9946; bugfix
22006       on 0.2.4.8-alpha.
22007     - The new channel code sometimes lost track of in-progress circuits,
22008       causing long-running clients to stop building new circuits. The
22009       fix is to always call circuit_n_chan_done(chan, 0) from
22010       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
22012   o Minor bugfixes (on 0.2.4.x):
22013     - Correctly log long IPv6 exit policies, instead of truncating them
22014       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
22015     - Our default TLS ecdhe groups were backwards: we meant to be using
22016       P224 for relays (for performance win) and P256 for bridges (since
22017       it is more common in the wild). Instead we had it backwards. After
22018       reconsideration, we decided that the default should be P256 on all
22019       hosts, since its security is probably better, and since P224 is
22020       reportedly used quite little in the wild.  Found by "skruffy" on
22021       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
22022     - Free directory authority certificate download statuses on exit
22023       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
22025   o Minor bugfixes (on 0.2.3.x and earlier):
22026     - If the guard we choose first doesn't answer, we would try the
22027       second guard, but once we connected to the second guard we would
22028       abandon it and retry the first one, slowing down bootstrapping.
22029       The fix is to treat all our initially chosen guards as acceptable
22030       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
22031     - Fix an assertion failure that would occur when disabling the
22032       ORPort setting on a running Tor process while accounting was
22033       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
22034     - When examining the list of network interfaces to find our address,
22035       do not consider non-running or disabled network interfaces. Fixes
22036       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
22037     - Avoid an off-by-one error when checking buffer boundaries when
22038       formatting the exit status of a pluggable transport helper.
22039       This is probably not an exploitable bug, but better safe than
22040       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
22041       Pedro Ribeiro.
22043   o Minor features (protecting client timestamps):
22044     - Clients no longer send timestamps in their NETINFO cells. These were
22045       not used for anything, and they provided one small way for clients
22046       to be distinguished from each other as they moved from network to
22047       network or behind NAT. Implements part of proposal 222.
22048     - Clients now round timestamps in INTRODUCE cells down to the nearest
22049       10 minutes. If a new Support022HiddenServices option is set to 0, or
22050       if it's set to "auto" and the feature is disabled in the consensus,
22051       the timestamp is sent as 0 instead. Implements part of proposal 222.
22052     - Stop sending timestamps in AUTHENTICATE cells. This is not such
22053       a big deal from a security point of view, but it achieves no actual
22054       good purpose, and isn't needed. Implements part of proposal 222.
22055     - Reduce down accuracy of timestamps in hidden service descriptors.
22056       Implements part of proposal 222.
22058   o Minor features (other):
22059     - Improve the circuit queue out-of-memory handler. Previously, when
22060       we ran low on memory, we'd close whichever circuits had the most
22061       queued cells. Now, we close those that have the *oldest* queued
22062       cells, on the theory that those are most responsible for us
22063       running low on memory. Based on analysis from a forthcoming paper
22064       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
22065     - Generate bootstrapping status update events correctly when fetching
22066       microdescriptors. Fixes bug 9927.
22067     - Update to the October 2 2013 Maxmind GeoLite Country database.
22069   o Documentation fixes:
22070     - Clarify the usage and risks of setting the ContactInfo torrc line
22071       for your relay or bridge. Resolves ticket 9854.
22072     - Add anchors to the manpage so we can link to the html version of
22073       the documentation for specific options. Resolves ticket 9866.
22074     - Replace remaining references to DirServer in man page and
22075       log entries. Resolves ticket 10124.
22078 Changes in version 0.2.5.1-alpha - 2013-10-02
22079   Tor 0.2.5.1-alpha introduces experimental support for syscall sandboxing
22080   on Linux, allows bridges that offer pluggable transports to report usage
22081   statistics, fixes many issues to make testing easier, and provides
22082   a pile of minor features and bugfixes that have been waiting for a
22083   release of the new branch.
22085   This is the first alpha release in a new series, so expect there to
22086   be bugs. Users who would rather test out a more stable branch should
22087   stay with 0.2.4.x for now.
22089   o Major features (security):
22090     - Use the seccomp2 syscall filtering facility on Linux to limit
22091       which system calls Tor can invoke. This is an experimental,
22092       Linux-only feature to provide defense-in-depth against unknown
22093       attacks. To try turning it on, set "Sandbox 1" in your torrc
22094       file. Please be ready to report bugs. We hope to add support
22095       for better sandboxing in the future, including more fine-grained
22096       filters, better division of responsibility, and support for more
22097       platforms. This work has been done by Cristian-Matei Toader for
22098       Google Summer of Code.
22099     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
22100       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
22101       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
22102       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
22103       them to solve bug 6033.)
22105   o Major features (other):
22106     - Add support for passing arguments to managed pluggable transport
22107       proxies. Implements ticket 3594.
22108     - Bridges now track GeoIP information and the number of their users
22109       even when pluggable transports are in use, and report usage
22110       statistics in their extra-info descriptors. Resolves tickets 4773
22111       and 5040.
22112     - Make testing Tor networks bootstrap better: lower directory fetch
22113       retry schedules and maximum interval without directory requests,
22114       and raise maximum download tries. Implements ticket 6752.
22115     - Add make target 'test-network' to run tests on a Chutney network.
22116       Implements ticket 8530.
22117     - The ntor handshake is now on-by-default, no matter what the
22118       directory authorities recommend. Implements ticket 8561.
22120   o Major bugfixes:
22121     - Instead of writing destroy cells directly to outgoing connection
22122       buffers, queue them and intersperse them with other outgoing cells.
22123       This can prevent a set of resource starvation conditions where too
22124       many pending destroy cells prevent data cells from actually getting
22125       delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912;
22126       bugfix on 0.2.0.1-alpha.
22127     - If we are unable to save a microdescriptor to the journal, do not
22128       drop it from memory and then reattempt downloading it. Fixes bug
22129       9645; bugfix on 0.2.2.6-alpha.
22130     - The new channel code sometimes lost track of in-progress circuits,
22131       causing long-running clients to stop building new circuits. The
22132       fix is to always call circuit_n_chan_done(chan, 0) from
22133       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
22135   o Build features:
22136     - Tor now builds each source file in two modes: a mode that avoids
22137       exposing identifiers needlessly, and another mode that exposes
22138       more identifiers for testing. This lets the compiler do better at
22139       optimizing the production code, while enabling us to take more
22140       radical measures to let the unit tests test things.
22141     - The production builds no longer include functions used only in
22142       the unit tests; all functions exposed from a module only for
22143       unit-testing are now static in production builds.
22144     - Add an --enable-coverage configuration option to make the unit
22145       tests (and a new src/or/tor-cov target) to build with gcov test
22146       coverage support.
22148   o Testing:
22149     - We now have rudimentary function mocking support that our unit
22150       tests can use to test functions in isolation. Function mocking
22151       lets the tests temporarily replace a function's dependencies with
22152       stub functions, so that the tests can check the function without
22153       invoking the other functions it calls.
22154     - Add more unit tests for the <circid,channel>->circuit map, and
22155       the destroy-cell-tracking code to fix bug 7912.
22156     - Unit tests for failing cases of the TAP onion handshake.
22157     - More unit tests for address-manipulation functions.
22159   o Minor features (protecting client timestamps):
22160     - Clients no longer send timestamps in their NETINFO cells. These were
22161       not used for anything, and they provided one small way for clients
22162       to be distinguished from each other as they moved from network to
22163       network or behind NAT. Implements part of proposal 222.
22164     - Clients now round timestamps in INTRODUCE cells down to the nearest
22165       10 minutes. If a new Support022HiddenServices option is set to 0, or
22166       if it's set to "auto" and the feature is disabled in the consensus,
22167       the timestamp is sent as 0 instead. Implements part of proposal 222.
22168     - Stop sending timestamps in AUTHENTICATE cells. This is not such
22169       a big deal from a security point of view, but it achieves no actual
22170       good purpose, and isn't needed. Implements part of proposal 222.
22171     - Reduce down accuracy of timestamps in hidden service descriptors.
22172       Implements part of proposal 222.
22174   o Minor features (config options):
22175     - Config (torrc) lines now handle fingerprints which are missing
22176       their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5.
22177     - Support a --dump-config option to print some or all of the
22178       configured options. Mainly useful for debugging the command-line
22179       option parsing code. Helps resolve ticket 4647.
22180     - Raise awareness of safer logging: notify user of potentially
22181       unsafe config options, like logging more verbosely than severity
22182       "notice" or setting SafeLogging to 0. Resolves ticket 5584.
22183     - Add a new configuration option TestingV3AuthVotingStartOffset
22184       that bootstraps a network faster by changing the timing for
22185       consensus votes. Addresses ticket 8532.
22186     - Add a new torrc option "ServerTransportOptions" that allows
22187       bridge operators to pass configuration parameters to their
22188       pluggable transports. Resolves ticket 8929.
22189     - The config (torrc) file now accepts bandwidth and space limits in
22190       bits as well as bytes. (Anywhere that you can say "2 Kilobytes",
22191       you can now say "16 kilobits", and so on.) Resolves ticket 9214.
22192       Patch by CharlieB.
22194   o Minor features (build):
22195     - Add support for `--library-versions` flag. Implements ticket 6384.
22196     - Return the "unexpected sendme" warnings to a warn severity, but make
22197       them rate limited, to help diagnose ticket 8093.
22198     - Detect a missing asciidoc, and warn the user about it, during
22199       configure rather than at build time. Fixes issue 6506. Patch from
22200       Arlo Breault.
22202   o Minor features (other):
22203     - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking
22204       sockets in a single system call. Implements ticket 5129.
22205     - Log current accounting state (bytes sent and received + remaining
22206       time for the current accounting period) in the relay's heartbeat
22207       message. Implements ticket 5526; patch from Peter Retzlaff.
22208     - Implement the TRANSPORT_LAUNCHED control port event that
22209       notifies controllers about new launched pluggable
22210       transports. Resolves ticket 5609.
22211     - If we're using the pure-C 32-bit curve25519_donna implementation
22212       of curve25519, build it with the -fomit-frame-pointer option to
22213       make it go faster on register-starved hosts. This improves our
22214       handshake performance by about 6% on i386 hosts without nacl.
22215       Closes ticket 8109.
22216     - Update to the September 4 2013 Maxmind GeoLite Country database.
22218   o Minor bugfixes:
22219     - Set the listen() backlog limit to the largest actually supported
22220       on the system, not to the value in a header file. Fixes bug 9716;
22221       bugfix on every released Tor.
22222     - No longer accept malformed http headers when parsing urls from
22223       headers. Now we reply with Bad Request ("400"). Fixes bug 2767;
22224       bugfix on 0.0.6pre1.
22225     - In munge_extrainfo_into_routerinfo(), check the return value of
22226       memchr(). This would have been a serious issue if we ever passed
22227       it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch
22228       from Arlo Breault.
22229     - On the chance that somebody manages to build Tor on a
22230       platform where time_t is unsigned, correct the way that
22231       microdesc_add_to_cache() handles negative time arguments.
22232       Fixes bug 8042; bugfix on 0.2.3.1-alpha.
22233     - Reject relative control socket paths and emit a warning. Previously,
22234       single-component control socket paths would be rejected, but Tor
22235       would not log why it could not validate the config. Fixes bug 9258;
22236       bugfix on 0.2.3.16-alpha.
22238   o Minor bugfixes (command line):
22239     - Use a single command-line parser for parsing torrc options on the
22240       command line and for finding special command-line options to avoid
22241       inconsistent behavior for torrc option arguments that have the same
22242       names as command-line options. Fixes bugs 4647 and 9578; bugfix on
22243       0.0.9pre5.
22244     - No longer allow 'tor --hash-password' with no arguments. Fixes bug
22245       9573; bugfix on 0.0.9pre5.
22247   o Minor fixes (build, auxiliary programs):
22248     - Stop preprocessing the "torify" script with autoconf, since
22249       it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch
22250       from Guilhem.
22251     - The tor-fw-helper program now follows the standard convention and
22252       exits with status code "0" on success. Fixes bug 9030; bugfix on
22253       0.2.3.1-alpha. Patch by Arlo Breault.
22254     - Corrected ./configure advice for what openssl dev package you should
22255       install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha.
22257   o Minor code improvements:
22258     - Remove constants and tests for PKCS1 padding; it's insecure and
22259       shouldn't be used for anything new. Fixes bug 8792; patch
22260       from Arlo Breault.
22261     - Remove instances of strcpy() from the unit tests. They weren't
22262       hurting anything, since they were only in the unit tests, but it's
22263       embarrassing to have strcpy() in the code at all, and some analysis
22264       tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and
22265       0.2.3.8-alpha. Patch from Arlo Breault.
22267   o Removed features:
22268     - Remove migration code from when we renamed the "cached-routers"
22269       file to "cached-descriptors" back in 0.2.0.8-alpha. This
22270       incidentally resolves ticket 6502 by cleaning up the related code
22271       a bit. Patch from Akshay Hebbar.
22273   o Code simplification and refactoring:
22274     - Extract the common duplicated code for creating a subdirectory
22275       of the data directory and writing to a file in it. Fixes ticket
22276       4282; patch from Peter Retzlaff.
22277     - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output
22278       buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(),
22279       i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170.
22280     - Add a set of accessor functions for the circuit timeout data
22281       structure. Fixes ticket 6153; patch from "piet".
22282     - Clean up exit paths from connection_listener_new(). Closes ticket
22283       8789. Patch from Arlo Breault.
22284     - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp()
22285       and drop our own custom pkey_eq() implementation. Fixes bug 9043.
22286     - Use a doubly-linked list to implement the global circuit list.
22287       Resolves ticket 9108. Patch from Marek Majkowski.
22288     - Remove contrib/id_to_fp.c since it wasn't used anywhere.
22291 Changes in version 0.2.4.17-rc - 2013-09-05
22292   Tor 0.2.4.17-rc is the third release candidate for the Tor 0.2.4.x
22293   series. It adds an emergency step to help us tolerate the massive
22294   influx of users: 0.2.4 clients using the new (faster and safer) "NTor"
22295   circuit-level handshakes now effectively jump the queue compared to
22296   the 0.2.3 clients using "TAP" handshakes. This release also fixes a
22297   big bug hindering bridge reachability tests.
22299   o Major features:
22300     - Relays now process the new "NTor" circuit-level handshake requests
22301       with higher priority than the old "TAP" circuit-level handshake
22302       requests. We still process some TAP requests to not totally starve
22303       0.2.3 clients when NTor becomes popular. A new consensus parameter
22304       "NumNTorsPerTAP" lets us tune the balance later if we need to.
22305       Implements ticket 9574.
22307   o Major bugfixes:
22308     - If the circuit build timeout logic is disabled (via the consensus,
22309       or because we are an authority), then don't build testing circuits.
22310       Fixes bug 9657; bugfix on 0.2.2.14-alpha.
22311     - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes;
22312       previously they did not, which prevented them from receiving
22313       successful connections from relays for self-test or bandwidth
22314       testing. Also, when a relay is extending a circuit to a bridge,
22315       it needs to send a NETINFO cell, even when the bridge hasn't sent
22316       an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
22317     - If the time to download the next old-style networkstatus is in
22318       the future, do not decline to consider whether to download the
22319       next microdescriptor networkstatus. Fixes bug 9564; bugfix on
22320       0.2.3.14-alpha.
22322   o Minor bugfixes:
22323     - Avoid double-closing the listener socket in our socketpair()
22324       replacement (used on Windows) in the case where the addresses on
22325       our opened sockets don't match what we expected. Fixes bug 9400;
22326       bugfix on 0.0.2pre7. Found by Coverity.
22328   o Minor fixes (config options):
22329     - Avoid overflows when the user sets MaxCircuitDirtiness to a
22330       ridiculously high value, by imposing a (ridiculously high) 30-day
22331       maximum on MaxCircuitDirtiness.
22332     - Fix the documentation of HeartbeatPeriod to say that the heartbeat
22333       message is logged at notice, not at info.
22334     - Warn and fail if a server is configured not to advertise any
22335       ORPorts at all. (We need *something* to put in our descriptor,
22336       or we just won't work.)
22338   o Minor features:
22339     - Track how many "TAP" and "NTor" circuit handshake requests we get,
22340       and how many we complete, and log it every hour to help relay
22341       operators follow trends in network load. Addresses ticket 9658.
22342     - Update to the August 7 2013 Maxmind GeoLite Country database.
22345 Changes in version 0.2.4.16-rc - 2013-08-10
22346   Tor 0.2.4.16-rc is the second release candidate for the Tor 0.2.4.x
22347   series. It fixes several crash bugs in the 0.2.4 branch.
22349   o Major bugfixes:
22350     - Fix a bug in the voting algorithm that could yield incorrect results
22351       when a non-naming authority declared too many flags. Fixes bug 9200;
22352       bugfix on 0.2.0.3-alpha.
22353     - Fix an uninitialized read that could in some cases lead to a remote
22354       crash while parsing INTRODUCE2 cells. Bugfix on 0.2.4.1-alpha.
22355       Anybody running a hidden service on the experimental 0.2.4.x
22356       branch should upgrade. (This is, so far as we know, unrelated to
22357       the recent news.)
22358     - Avoid an assertion failure when processing DNS replies without the
22359       answer types we expected. Fixes bug 9337; bugfix on 0.2.4.7-alpha.
22360     - Avoid a crash when using --hash-password. Fixes bug 9295; bugfix on
22361       0.2.4.15-rc. Found by stem integration tests.
22363   o Minor bugfixes:
22364     - Fix an invalid memory read that occurred when a pluggable
22365       transport proxy failed its configuration protocol.
22366       Fixes bug 9288; bugfix on 0.2.4.1-alpha.
22367     - When evaluating whether to use a connection that we haven't
22368       decided is canonical using a recent link protocol version,
22369       decide that it's canonical only if it used address _does_
22370       match the desired address. Fixes bug 9309; bugfix on
22371       0.2.4.4-alpha. Reported by skruffy.
22372     - Make the default behavior of NumDirectoryGuards be to track
22373       NumEntryGuards. Now a user who changes only NumEntryGuards will get
22374       the behavior she expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.
22375     - Fix a spurious compilation warning with some older versions of
22376       GCC on FreeBSD. Fixes bug 9254; bugfix on 0.2.4.14-alpha.
22378   o Minor features:
22379     - Update to the July 3 2013 Maxmind GeoLite Country database.
22382 Changes in version 0.2.4.15-rc - 2013-07-01
22383   Tor 0.2.4.15-rc is the first release candidate for the Tor 0.2.4.x
22384   series. It fixes a few smaller bugs, but generally appears stable.
22385   Please test it and let us know whether it is!
22387   o Major bugfixes:
22388     - When receiving a new configuration file via the control port's
22389       LOADCONF command, do not treat the defaults file as absent.
22390       Fixes bug 9122; bugfix on 0.2.3.9-alpha.
22392   o Minor features:
22393     - Issue a warning when running with the bufferevents backend enabled.
22394       It's still not stable, and people should know that they're likely
22395       to hit unexpected problems. Closes ticket 9147.
22398 Changes in version 0.2.4.14-alpha - 2013-06-18
22399   Tor 0.2.4.14-alpha fixes a pair of client guard enumeration problems
22400   present in 0.2.4.13-alpha.
22402   o Major bugfixes:
22403     - When we have too much memory queued in circuits (according to a new
22404       MaxMemInCellQueues option), close the circuits consuming the most
22405       memory. This prevents us from running out of memory as a relay if
22406       circuits fill up faster than they can be drained. Fixes bug 9063;
22407       bugfix on the 54th commit of Tor. This bug is a further fix beyond
22408       bug 6252, whose fix was merged into 0.2.3.21-rc.
22410       This change also fixes an earlier approach taken in 0.2.4.13-alpha,
22411       where we tried to solve this issue simply by imposing an upper limit
22412       on the number of queued cells for a single circuit. That approach
22413       proved to be problematic, since there are ways to provoke clients to
22414       send a number of cells in excess of any such reasonable limit. Fixes
22415       bug 9072; bugfix on 0.2.4.13-alpha.
22417     - Limit hidden service descriptors to at most ten introduction
22418       points, to slow one kind of guard enumeration. Fixes bug 9002;
22419       bugfix on 0.1.1.11-alpha.
22422 Changes in version 0.2.4.13-alpha - 2013-06-14
22423   Tor 0.2.4.13-alpha fixes a variety of potential remote crash
22424   vulnerabilities, makes socks5 username/password circuit isolation
22425   actually actually work (this time for sure!), and cleans up a bunch
22426   of other issues in preparation for a release candidate.
22428   o Major bugfixes (robustness):
22429     - Close any circuit that has too many cells queued on it. Fixes
22430       bug 9063; bugfix on the 54th commit of Tor. This bug is a further
22431       fix beyond bug 6252, whose fix was merged into 0.2.3.21-rc.
22432     - Prevent the get_freelists() function from running off the end of
22433       the list of freelists if it somehow gets an unrecognized
22434       allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by
22435       eugenis.
22436     - Avoid an assertion failure on OpenBSD (and perhaps other BSDs)
22437       when an exit connection with optimistic data succeeds immediately
22438       rather than returning EINPROGRESS. Fixes bug 9017; bugfix on
22439       0.2.3.1-alpha.
22440     - Fix a directory authority crash bug when building a consensus
22441       using an older consensus as its basis. Fixes bug 8833. Bugfix
22442       on 0.2.4.12-alpha.
22444   o Major bugfixes:
22445     - Avoid a memory leak where we would leak a consensus body when we
22446       find that a consensus which we couldn't previously verify due to
22447       missing certificates is now verifiable. Fixes bug 8719; bugfix
22448       on 0.2.0.10-alpha.
22449     - We used to always request authority certificates by identity digest,
22450       meaning we'd get the newest one even when we wanted one with a
22451       different signing key. Then we would complain about being given
22452       a certificate we already had, and never get the one we really
22453       wanted. Now we use the "fp-sk/" resource as well as the "fp/"
22454       resource to request the one we want. Fixes bug 5595; bugfix on
22455       0.2.0.8-alpha.
22456     - Follow the socks5 protocol when offering username/password
22457       authentication. The fix for bug 8117 exposed this bug, and it
22458       turns out real-world applications like Pidgin do care. Bugfix on
22459       0.2.3.2-alpha; fixes bug 8879.
22460     - Prevent failures on Windows Vista and later when rebuilding the
22461       microdescriptor cache. Diagnosed by Robert Ransom. Fixes bug 8822;
22462       bugfix on 0.2.4.12-alpha.
22464   o Minor bugfixes:
22465     - Fix an impossible buffer overrun in the AES unit tests. Fixes
22466       bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis.
22467     - If for some reason we fail to write a microdescriptor while
22468       rebuilding the cache, do not let the annotations from that
22469       microdescriptor linger in the cache file, and do not let the
22470       microdescriptor stay recorded as present in its old location.
22471       Fixes bug 9047; bugfix on 0.2.2.6-alpha.
22472     - Fix a memory leak that would occur whenever a configuration
22473       option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha.
22474     - Paste the description for PathBias parameters from the man
22475       page into or.h, so the code documents them too. Fixes bug 7982;
22476       bugfix on 0.2.3.17-beta and 0.2.4.8-alpha.
22477     - Relays now treat a changed IPv6 ORPort as sufficient reason to
22478       publish an updated descriptor. Fixes bug 6026; bugfix on
22479       0.2.4.1-alpha.
22480     - When launching a resolve request on behalf of an AF_UNIX control
22481       socket, omit the address field of the new entry connection, used in
22482       subsequent controller events, rather than letting tor_dup_addr()
22483       set it to "<unknown address type>". Fixes bug 8639; bugfix on
22484       0.2.4.12-alpha.
22486   o Minor bugfixes (log messages):
22487     - Fix a scaling issue in the path bias accounting code that
22488       resulted in "Bug:" log messages from either
22489       pathbias_scale_close_rates() or pathbias_count_build_success().
22490       This represents a bugfix on a previous bugfix: the original fix
22491       attempted in 0.2.4.10-alpha was incomplete. Fixes bug 8235; bugfix
22492       on 0.2.4.1-alpha.
22493     - Give a less useless error message when the user asks for an IPv4
22494       address on an IPv6-only port, or vice versa. Fixes bug 8846; bugfix
22495       on 0.2.4.7-alpha.
22497   o Minor features:
22498     - Downgrade "unexpected SENDME" warnings to protocol-warn for 0.2.4.x,
22499       to tolerate bug 8093 for now.
22500     - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines
22501       in directory authority votes to describe whether they have enough
22502       measured bandwidths to ignore advertised (relay descriptor)
22503       bandwidth claims. Resolves ticket 8711.
22504     - Update to the June 5 2013 Maxmind GeoLite Country database.
22506   o Removed documentation:
22507     - Remove some of the older contents of doc/ as obsolete; move others
22508       to torspec.git. Fixes bug 8965.
22510   o Code simplification and refactoring:
22511     - Avoid using character buffers when constructing most directory
22512       objects: this approach was unwieldy and error-prone. Instead,
22513       build smartlists of strings, and concatenate them when done.
22516 Changes in version 0.2.4.12-alpha - 2013-04-18
22517   Tor 0.2.4.12-alpha moves Tor forward on several fronts: it starts the
22518   process for lengthening the guard rotation period, makes directory
22519   authority opinions in the consensus a bit less gameable, makes socks5
22520   username/password circuit isolation actually work, and fixes a wide
22521   variety of other issues.
22523   o Major features:
22524     - Raise the default time that a client keeps an entry guard from
22525       "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES
22526       2012 paper. (We would make it even longer, but we need better client
22527       load balancing first.) Also, make the guard lifetime controllable
22528       via a new GuardLifetime torrc option and a GuardLifetime consensus
22529       parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha.
22530     - Directory authorities now prefer using measured bandwidths to
22531       advertised ones when computing flags and thresholds. Resolves
22532       ticket 8273.
22533     - Directory authorities that have more than a threshold number
22534       of relays with measured bandwidths now treat relays with unmeasured
22535       bandwidths as having bandwidth 0. Resolves ticket 8435.
22537   o Major bugfixes (assert / resource use):
22538     - Avoid a bug where our response to TLS renegotiation under certain
22539       network conditions could lead to a busy-loop, with 100% CPU
22540       consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha.
22541     - Avoid an assertion when we discover that we'd like to write a cell
22542       onto a closing connection: just discard the cell. Fixes another
22543       case of bug 7350; bugfix on 0.2.4.4-alpha.
22545   o Major bugfixes (client-side privacy):
22546     - When we mark a circuit as unusable for new circuits, have it
22547       continue to be unusable for new circuits even if MaxCircuitDirtiness
22548       is increased too much at the wrong time, or the system clock jumps
22549       backwards. Fixes bug 6174; bugfix on 0.0.2pre26.
22550     - If ClientDNSRejectInternalAddresses ("do not believe DNS queries
22551       which have resolved to internal addresses") is set, apply that
22552       rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha.
22553     - When an exit relay rejects a stream with reason "exit policy", but
22554       we only know an exit policy summary (e.g. from the microdesc
22555       consensus) for it, do not mark the relay as useless for all exiting.
22556       Instead, mark just the circuit as unsuitable for that particular
22557       address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha.
22558     - Allow applications to get proper stream isolation with
22559       IsolateSOCKSAuth. Many SOCKS5 clients that want to offer
22560       username/password authentication also offer "no authentication". Tor
22561       had previously preferred "no authentication", so the applications
22562       never actually sent Tor their auth details. Now Tor selects
22563       username/password authentication if it's offered. You can disable
22564       this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes
22565       bug 8117; bugfix on 0.2.3.3-alpha.
22567   o Major bugfixes (other):
22568     - When unable to find any working directory nodes to use as a
22569       directory guard, give up rather than adding the same non-working
22570       nodes to the directory guard list over and over. Fixes bug 8231;
22571       bugfix on 0.2.4.8-alpha.
22573   o Minor features:
22574     - Reject as invalid most directory objects containing a NUL.
22575       Belt-and-suspender fix for bug 8037.
22576     - In our testsuite, create temporary directories with a bit more
22577       entropy in their name to make name collisions less likely. Fixes
22578       bug 8638.
22579     - Add CACHED keyword to ADDRMAP events in the control protocol
22580       to indicate whether a DNS result will be cached or not. Resolves
22581       ticket 8596.
22582     - Update to the April 3 2013 Maxmind GeoLite Country database.
22584   o Minor features (build):
22585     - Detect and reject attempts to build Tor with threading support
22586       when OpenSSL has been compiled without threading support.
22587       Fixes bug 6673.
22588     - Clarify that when autoconf is checking for nacl, it is checking
22589       specifically for nacl with a fast curve25519 implementation.
22590       Fixes bug 8014.
22591     - Warn if building on a platform with an unsigned time_t: there
22592       are too many places where Tor currently assumes that time_t can
22593       hold negative values. We'd like to fix them all, but probably
22594       some will remain.
22596   o Minor bugfixes (build):
22597     - Fix some bugs in tor-fw-helper-natpmp when trying to build and
22598       run it on Windows. More bugs likely remain. Patch from Gisle Vanem.
22599       Fixes bug 7280; bugfix on 0.2.3.1-alpha.
22600     - Add the old src/or/micro-revision.i filename to CLEANFILES.
22601       On the off chance that somebody has one, it will go away as soon
22602       as they run "make clean". Fix for bug 7143; bugfix on 0.2.4.1-alpha.
22603     - Build Tor correctly on 32-bit platforms where the compiler can build
22604       but not run code using the "uint128_t" construction. Fixes bug 8587;
22605       bugfix on 0.2.4.8-alpha.
22606     - Fix compilation warning with some versions of clang that would
22607       prefer the -Wswitch-enum compiler flag to warn about switch
22608       statements with missing enum values, even if those switch
22609       statements have a "default:" statement. Fixes bug 8598; bugfix
22610       on 0.2.4.10-alpha.
22612   o Minor bugfixes (protocol):
22613     - Fix the handling of a TRUNCATE cell when it arrives while the
22614       circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1.
22615     - Fix a misframing issue when reading the version numbers in a
22616       VERSIONS cell. Previously we would recognize [00 01 00 02] as
22617       'version 1, version 2, and version 0x100', when it should have
22618       only included versions 1 and 2. Fixes bug 8059; bugfix on
22619       0.2.0.10-alpha. Reported pseudonymously.
22620     - Make the format and order of STREAM events for DNS lookups
22621       consistent among the various ways to launch DNS lookups. Fixes
22622       bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy".
22623     - Correct our check for which versions of Tor support the EXTEND2
22624       cell. We had been willing to send it to Tor 0.2.4.7-alpha and
22625       later, when support was really added in version 0.2.4.8-alpha.
22626       Fixes bug 8464; bugfix on 0.2.4.8-alpha.
22628   o Minor bugfixes (other):
22629     - Correctly store microdescriptors and extrainfo descriptors with
22630       an internal NUL byte. Fixes bug 8037; bugfix on 0.2.0.1-alpha.
22631       Bug reported by "cypherpunks".
22632     - Increase the width of the field used to remember a connection's
22633       link protocol version to two bytes. Harmless for now, since the
22634       only currently recognized versions are one byte long. Reported
22635       pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha.
22636     - If the state file's path bias counts are invalid (presumably from a
22637       buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add
22638       additional checks and log messages to the scaling of Path Bias
22639       counts, in case there still are remaining issues with scaling.
22640       Should help resolve bug 8235.
22641     - Eliminate several instances where we use "Nickname=ID" to refer to
22642       nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use
22643       "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix
22644       on 0.2.3.21-rc, 0.2.4.5-alpha, 0.2.4.8-alpha, and 0.2.4.10-alpha.
22646   o Minor bugfixes (syscalls):
22647     - Always check the return values of functions fcntl() and
22648       setsockopt(). We don't believe these are ever actually failing in
22649       practice, but better safe than sorry. Also, checking these return
22650       values should please analysis tools like Coverity. Patch from
22651       'flupzor'. Fixes bug 8206; bugfix on all versions of Tor.
22652     - Use direct writes rather than stdio when building microdescriptor
22653       caches, in an attempt to mitigate bug 8031, or at least make it
22654       less common.
22656   o Minor bugfixes (config):
22657     - When rejecting a configuration because we were unable to parse a
22658       quoted string, log an actual error message. Fixes bug 7950; bugfix
22659       on 0.2.0.16-alpha.
22660     - Behave correctly when the user disables LearnCircuitBuildTimeout
22661       but doesn't tell us what they would like the timeout to be. Fixes
22662       bug 6304; bugfix on 0.2.2.14-alpha.
22663     - When autodetecting the number of CPUs, use the number of available
22664       CPUs in preference to the number of configured CPUs. Inform the
22665       user if this reduces the number of available CPUs. Fixes bug 8002;
22666       bugfix on 0.2.3.1-alpha.
22667     - Make it an error when you set EntryNodes but disable UseGuardNodes,
22668       since it will (surprisingly to some users) ignore EntryNodes. Fixes
22669       bug 8180; bugfix on 0.2.3.11-alpha.
22670     - Allow TestingTorNetworks to override the 4096-byte minimum for
22671       the Fast threshold. Otherwise they can't bootstrap until they've
22672       observed more traffic. Fixes bug 8508; bugfix on 0.2.4.10-alpha.
22673     - Fix some logic errors when the user manually overrides the
22674       PathsNeededToBuildCircuits option in torrc. Fixes bug 8599; bugfix
22675       on 0.2.4.10-alpha.
22677   o Minor bugfixes (log messages to help diagnose bugs):
22678     - If we fail to free a microdescriptor because of bug 7164, log
22679       the filename and line number from which we tried to free it.
22680     - Add another diagnostic to the heartbeat message: track and log
22681       overhead that TLS is adding to the data we write. If this is
22682       high, we are sending too little data to SSL_write at a time.
22683       Diagnostic for bug 7707.
22684     - Add more detail to a log message about relaxed timeouts, to help
22685       track bug 7799.
22686     - Warn more aggressively when flushing microdescriptors to a
22687       microdescriptor cache fails, in an attempt to mitigate bug 8031,
22688       or at least make it more diagnosable.
22689     - Improve debugging output to help track down bug 8185 ("Bug:
22690       outgoing relay cell has n_chan==NULL. Dropping.")
22691     - Log the purpose of a path-bias testing circuit correctly.
22692       Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.
22694   o Minor bugfixes (0.2.4.x log messages that were too noisy):
22695     - Don't attempt to relax the timeout of already opened 1-hop circuits.
22696       They might never timeout. This should eliminate some/all cases of
22697       the relaxed timeout log message.
22698     - Use circuit creation time for network liveness evaluation. This
22699       should eliminate warning log messages about liveness caused
22700       by changes in timeout evaluation. Fixes bug 6572; bugfix on
22701       0.2.4.8-alpha.
22702     - Reduce a path bias length check from notice to info. The message
22703       is triggered when creating controller circuits. Fixes bug 8196;
22704       bugfix on 0.2.4.8-alpha.
22705     - Fix a path state issue that triggered a notice during relay startup.
22706       Fixes bug 8320; bugfix on 0.2.4.10-alpha.
22707     - Reduce occurrences of warns about circuit purpose in
22708       connection_ap_expire_building(). Fixes bug 8477; bugfix on
22709       0.2.4.11-alpha.
22711   o Minor bugfixes (pre-0.2.4.x log messages that were too noisy):
22712     - If we encounter a write failure on a SOCKS connection before we
22713       finish our SOCKS handshake, don't warn that we closed the
22714       connection before we could send a SOCKS reply. Fixes bug 8427;
22715       bugfix on 0.1.0.1-rc.
22716     - Correctly recognize that [::1] is a loopback address. Fixes
22717       bug 8377; bugfix on 0.2.1.3-alpha.
22718     - Fix a directory authority warn caused when we have a large amount
22719       of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha.
22720     - Don't log inappropriate heartbeat messages when hibernating: a
22721       hibernating node is _expected_ to drop out of the consensus,
22722       decide it isn't bootstrapped, and so forth. Fixes bug 7302;
22723       bugfix on 0.2.3.1-alpha.
22724     - Don't complain about bootstrapping problems while hibernating.
22725       These complaints reflect a general code problem, but not one
22726       with any problematic effects (no connections are actually
22727       opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha.
22729   o Documentation fixes:
22730     - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
22731       names match. Fixes bug 7768.
22732     - Make the torify manpage no longer refer to tsocks; torify hasn't
22733       supported tsocks since 0.2.3.14-alpha.
22734     - Make the tor manpage no longer reference tsocks.
22735     - Fix the GeoIPExcludeUnknown documentation to refer to
22736       ExcludeExitNodes rather than the currently nonexistent
22737       ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk.
22739   o Removed files:
22740     - The tor-tsocks.conf is no longer distributed or installed. We
22741       recommend that tsocks users use torsocks instead. Resolves
22742       ticket 8290.
22745 Changes in version 0.2.4.11-alpha - 2013-03-11
22746   Tor 0.2.4.11-alpha makes relay measurement by directory authorities
22747   more robust, makes hidden service authentication work again, and
22748   resolves a DPI fingerprint for Tor's SSL transport.
22750   o Major features (directory authorities):
22751     - Directory authorities now support a new consensus method (17)
22752       where they cap the published bandwidth of servers for which
22753       insufficient bandwidth measurements exist. Fixes part of bug 2286.
22754     - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer
22755       serve any v2 directory information. Now we can test disabling the
22756       old deprecated v2 directory format, and see whether doing so has
22757       any effect on network load. Begins to fix bug 6783.
22758     - Directory authorities now include inside each vote a statement of
22759       the performance thresholds they used when assigning flags.
22760       Implements ticket 8151.
22762   o Major bugfixes (directory authorities):
22763     - Stop marking every relay as having been down for one hour every
22764       time we restart a directory authority. These artificial downtimes
22765       were messing with our Stable and Guard flag calculations. Fixes
22766       bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
22768   o Major bugfixes (hidden services):
22769     - Allow hidden service authentication to succeed again. When we
22770       refactored the hidden service introduction code back
22771       in 0.2.4.1-alpha, we didn't update the code that checks
22772       whether authentication information is present, causing all
22773       authentication checks to return "false". Fix for bug 8207; bugfix
22774       on 0.2.4.1-alpha. Found by Coverity; this is CID 718615.
22776   o Minor features (relays, bridges):
22777     - Make bridge relays check once a minute for whether their IP
22778       address has changed, rather than only every 15 minutes. Resolves
22779       bugs 1913 and 1992.
22780     - Refactor resolve_my_address() so it returns the method by which we
22781       decided our public IP address (explicitly configured, resolved from
22782       explicit hostname, guessed from interfaces, learned by gethostname).
22783       Now we can provide more helpful log messages when a relay guesses
22784       its IP address incorrectly (e.g. due to unexpected lines in
22785       /etc/hosts). Resolves ticket 2267.
22786     - Teach bridge-using clients to avoid 0.2.2 bridges when making
22787       microdescriptor-related dir requests, and only fall back to normal
22788       descriptors if none of their bridges can handle microdescriptors
22789       (as opposed to the fix in ticket 4013, which caused them to fall
22790       back to normal descriptors if *any* of their bridges preferred
22791       them). Resolves ticket 4994.
22792     - Randomize the lifetime of our SSL link certificate, so censors can't
22793       use the static value for filtering Tor flows. Resolves ticket 8443;
22794       related to ticket 4014 which was included in 0.2.2.33.
22795     - Support a new version of the link protocol that allows 4-byte circuit
22796       IDs. Previously, circuit IDs were limited to 2 bytes, which presented
22797       a possible resource exhaustion issue. Closes ticket 7351; implements
22798       proposal 214.
22800   o Minor features (portability):
22801     - Tweak the curve25519-donna*.c implementations to tolerate systems
22802       that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.
22803     - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine
22804       the signs of types during autoconf. This is better than our old
22805       approach, which didn't work when cross-compiling.
22806     - Detect the sign of enum values, rather than assuming that MSC is the
22807       only compiler where enum types are all signed. Fixes bug 7727;
22808       bugfix on 0.2.4.10-alpha.
22810   o Minor features (other):
22811     - Say "KBytes" rather than "KB" in the man page (for various values
22812       of K), to further reduce confusion about whether Tor counts in
22813       units of memory or fractions of units of memory. Resolves ticket 7054.
22814     - Clear the high bit on curve25519 public keys before passing them to
22815       our backend, in case we ever wind up using a backend that doesn't do
22816       so itself. If we used such a backend, and *didn't* clear the high bit,
22817       we could wind up in a situation where users with such backends would
22818       be distinguishable from users without. Fixes bug 8121; bugfix on
22819       0.2.4.8-alpha.
22820     - Update to the March 6 2013 Maxmind GeoLite Country database.
22822   o Minor bugfixes (clients):
22823     - When we receive a RELAY_END cell with the reason DONE, or with no
22824       reason, before receiving a RELAY_CONNECTED cell, report the SOCKS
22825       status as "connection refused". Previously we reported these cases
22826       as success but then immediately closed the connection. Fixes bug
22827       7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed".
22828     - Downgrade an assertion in connection_ap_expire_beginning to an
22829       LD_BUG message. The fix for bug 8024 should prevent this message
22830       from displaying, but just in case, a warn that we can diagnose
22831       is better than more assert crashes. Fixes bug 8065; bugfix on
22832       0.2.4.8-alpha.
22833     - Lower path use bias thresholds to .80 for notice and .60 for warn.
22834       Also make the rate limiting flags for the path use bias log messages
22835       independent from the original path bias flags. Fixes bug 8161;
22836       bugfix on 0.2.4.10-alpha.
22838   o Minor bugfixes (relays):
22839     - Stop trying to resolve our hostname so often (e.g. every time we
22840       think about doing a directory fetch). Now we reuse the cached
22841       answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc)
22842       and 2410 (bugfix on 0.1.2.2-alpha).
22843     - Stop sending a stray "(null)" in some cases for the server status
22844       "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix
22845       on 0.1.2.6-alpha.
22846     - When choosing which stream on a formerly stalled circuit to wake
22847       first, make better use of the platform's weak RNG. Previously,
22848       we had been using the % ("modulo") operator to try to generate a
22849       1/N chance of picking each stream, but this behaves badly with
22850       many platforms' choice of weak RNG. Fixes bug 7801; bugfix on
22851       0.2.2.20-alpha.
22852     - Use our own weak RNG when we need a weak RNG. Windows's rand() and
22853       Irix's random() only return 15 bits; Solaris's random() returns more
22854       bits but its RAND_MAX says it only returns 15, and so on. Motivated
22855       by the fix for bug 7801; bugfix on 0.2.2.20-alpha.
22857   o Minor bugfixes (directory authorities):
22858     - Directory authorities now use less space when formatting identical
22859       microdescriptor lines in directory votes. Fixes bug 8158; bugfix
22860       on 0.2.4.1-alpha.
22862   o Minor bugfixes (memory leaks spotted by Coverity -- bug 7816):
22863     - Avoid leaking memory if we fail to compute a consensus signature
22864       or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha.
22865     - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix
22866       on 0.2.1.1-alpha.
22867     - Fix a memory leak during safe-cookie controller authentication.
22868       Bugfix on 0.2.3.13-alpha.
22869     - Avoid memory leak of IPv6 policy content if we fail to format it into
22870       a router descriptor. Bugfix on 0.2.4.7-alpha.
22872   o Minor bugfixes (other code correctness issues):
22873     - Avoid a crash if we fail to generate an extrainfo descriptor.
22874       Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity;
22875       this is CID 718634.
22876     - When detecting the largest possible file descriptor (in order to
22877       close all file descriptors when launching a new program), actually
22878       use _SC_OPEN_MAX. The old code for doing this was very, very broken.
22879       Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this
22880       is CID 743383.
22881     - Fix a copy-and-paste error when adding a missing A1 to a routerset
22882       because of GeoIPExcludeUnknown. Fix for Coverity CID 980650.
22883       Bugfix on 0.2.4.10-alpha.
22884     - Fix an impossible-to-trigger integer overflow when estimating how
22885       long our onionskin queue would take. (This overflow would require us
22886       to accept 4 million onionskins before processing 100 of them.) Fixes
22887       bug 8210; bugfix on 0.2.4.10-alpha.
22889   o Code simplification and refactoring:
22890     - Add a wrapper function for the common "log a message with a
22891       rate-limit" case.
22894 Changes in version 0.2.4.10-alpha - 2013-02-04
22895   Tor 0.2.4.10-alpha adds defenses at the directory authority level from
22896   certain attacks that flood the network with relays; changes the queue
22897   for circuit create requests from a sized-based limit to a time-based
22898   limit; resumes building with MSVC on Windows; and fixes a wide variety
22899   of other issues.
22901   o Major bugfixes (directory authority):
22902     - When computing directory thresholds, ignore any rejected-as-sybil
22903       nodes during the computation so that they can't influence Fast,
22904       Guard, etc. (We should have done this for proposal 109.) Fixes
22905       bug 8146.
22906     - When marking a node as a likely sybil, reset its uptime metrics
22907       to zero, so that it cannot time towards getting marked as Guard,
22908       Stable, or HSDir. (We should have done this for proposal 109.) Fixes
22909       bug 8147.
22911   o Major bugfixes:
22912     - When a TLS write is partially successful but incomplete, remember
22913       that the flushed part has been flushed, and notice that bytes were
22914       actually written. Reported and fixed pseudonymously. Fixes bug
22915       7708; bugfix on Tor 0.1.0.5-rc.
22916     - Reject bogus create and relay cells with 0 circuit ID or 0 stream
22917       ID: these could be used to create unexpected streams and circuits
22918       which would count as "present" to some parts of Tor but "absent"
22919       to others, leading to zombie circuits and streams or to a bandwidth
22920       denial-of-service. Fixes bug 7889; bugfix on every released version
22921       of Tor. Reported by "oftc_must_be_destroyed".
22922     - Rename all macros in our local copy of queue.h to begin with "TOR_".
22923       This change seems the only good way to permanently prevent conflicts
22924       with queue.h on various operating systems. Fixes bug 8107; bugfix
22925       on 0.2.4.6-alpha.
22927   o Major features (relay):
22928     - Instead of limiting the number of queued onionskins (aka circuit
22929       create requests) to a fixed, hard-to-configure number, we limit
22930       the size of the queue based on how many we expect to be able to
22931       process in a given amount of time. We estimate the time it will
22932       take to process an onionskin based on average processing time
22933       of previous onionskins. Closes ticket 7291. You'll never have to
22934       configure MaxOnionsPending again.
22936   o Major features (portability):
22937     - Resume building correctly with MSVC and Makefile.nmake. This patch
22938       resolves numerous bugs and fixes reported by ultramage, including
22939       7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669.
22940     - Make the ntor and curve25519 code build correctly with MSVC.
22941       Fix on 0.2.4.8-alpha.
22943   o Minor features:
22944     - When directory authorities are computing thresholds for flags,
22945       never let the threshold for the Fast flag fall below 4096
22946       bytes. Also, do not consider nodes with extremely low bandwidths
22947       when deciding thresholds for various directory flags. This change
22948       should raise our threshold for Fast relays, possibly in turn
22949       improving overall network performance; see ticket 1854. Resolves
22950       ticket 8145.
22951     - The Tor client now ignores sub-domain components of a .onion
22952       address. This change makes HTTP "virtual" hosting
22953       possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and
22954       http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites
22955       hosted on the same hidden service. Implements proposal 204.
22956     - We compute the overhead from passing onionskins back and forth to
22957       cpuworkers, and report it when dumping statistics in response to
22958       SIGUSR1. Supports ticket 7291.
22960   o Minor features (path selection):
22961     - When deciding whether we have enough descriptors to build circuits,
22962       instead of looking at raw relay counts, look at which fraction
22963       of (bandwidth-weighted) paths we're able to build. This approach
22964       keeps clients from building circuits if their paths are likely to
22965       stand out statistically. The default fraction of paths needed is
22966       taken from the consensus directory; you can override it with the
22967       new PathsNeededToBuildCircuits option. Fixes ticket 5956.
22968     - When any country code is listed in ExcludeNodes or ExcludeExitNodes,
22969       and we have GeoIP information, also exclude all nodes with unknown
22970       countries "??" and "A1". This behavior is controlled by the
22971       new GeoIPExcludeUnknown option: you can make such nodes always
22972       excluded with "GeoIPExcludeUnknown 1", and disable the feature
22973       with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto"
22974       gets you the default behavior. Implements feature 7706.
22975     - Path Use Bias: Perform separate accounting for successful circuit
22976       use. Keep separate statistics on stream attempt rates versus stream
22977       success rates for each guard. Provide configurable thresholds to
22978       determine when to emit log messages or disable use of guards that
22979       fail too many stream attempts. Resolves ticket 7802.
22981   o Minor features (log messages):
22982     - When learning a fingerprint for a bridge, log its corresponding
22983       transport type. Implements ticket 7896.
22984     - Improve the log message when "Bug/attack: unexpected sendme cell
22985       from client" occurs, to help us track bug 8093.
22987   o Minor bugfixes:
22988     - Remove a couple of extraneous semicolons that were upsetting the
22989       cparser library. Patch by Christian Grothoff. Fixes bug 7115;
22990       bugfix on 0.2.2.1-alpha.
22991     - Remove a source of rounding error during path bias count scaling;
22992       don't count cannibalized circuits as used for path bias until we
22993       actually try to use them; and fix a circuit_package_relay_cell()
22994       warning message about n_chan==NULL. Fixes bug 7802.
22995     - Detect nacl when its headers are in a nacl/ subdirectory. Also,
22996       actually link against nacl when we're configured to use it. Fixes
22997       bug 7972; bugfix on 0.2.4.8-alpha.
22998     - Compile correctly with the --disable-curve25519 option. Fixes
22999       bug 8153; bugfix on 0.2.4.8-alpha.
23001   o Build improvements:
23002     - Do not report status verbosely from autogen.sh unless the -v flag
23003       is specified. Fixes issue 4664. Patch from Onizuka.
23004     - Replace all calls to snprintf() outside of src/ext with
23005       tor_snprintf(). Also remove the #define to replace snprintf with
23006       _snprintf on Windows; they have different semantics, and all of
23007       our callers should be using tor_snprintf() anyway. Fixes bug 7304.
23008     - Try to detect if we are ever building on a platform where
23009       memset(...,0,...) does not set the value of a double to 0.0. Such
23010       platforms are permitted by the C standard, though in practice
23011       they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't
23012       currently support them, but it's better to detect them and fail
23013       than to perform erroneously.
23015   o Removed features:
23016     - Stop exporting estimates of v2 and v3 directory traffic shares
23017       in extrainfo documents. They were unneeded and sometimes inaccurate.
23018       Also stop exporting any v2 directory request statistics. Resolves
23019       ticket 5823.
23020     - Drop support for detecting and warning about versions of Libevent
23021       before 1.3e. Nothing reasonable ships with them any longer;
23022       warning the user about them shouldn't be needed. Resolves ticket
23023       6826.
23025   o Code simplifications and refactoring:
23026     - Rename "isin" functions to "contains", for grammar. Resolves
23027       ticket 5285.
23028     - Rename Tor's logging function log() to tor_log(), to avoid conflicts
23029       with the natural logarithm function from the system libm. Resolves
23030       ticket 7599.
23033 Changes in version 0.2.4.9-alpha - 2013-01-15
23034   Tor 0.2.4.9-alpha provides a quick fix to make the new ntor handshake
23035   work more robustly.
23037   o Major bugfixes:
23038     - Fix backward compatibility logic when receiving an embedded ntor
23039       handshake tunneled in a CREATE cell. This clears up the "Bug:
23040       couldn't format CREATED cell" warning. Fixes bug 7959; bugfix
23041       on 0.2.4.8-alpha.
23044 Changes in version 0.2.4.8-alpha - 2013-01-14
23045   Tor 0.2.4.8-alpha introduces directory guards to reduce user enumeration
23046   risks, adds a new stronger and faster circuit handshake, and offers
23047   stronger and faster link encryption when both sides support it.
23049   o Major features:
23050     - Preliminary support for directory guards (proposal 207): when
23051       possible, clients now use their entry guards for non-anonymous
23052       directory requests. This can help prevent client enumeration. Note
23053       that this behavior only works when we have a usable consensus
23054       directory, and when options about what to download are more or less
23055       standard. In the future we should re-bootstrap from our guards,
23056       rather than re-bootstrapping from the preconfigured list of
23057       directory sources that ships with Tor. Resolves ticket 6526.
23058     - Tor relays and clients now support a better CREATE/EXTEND cell
23059       format, allowing the sender to specify multiple address, identity,
23060       and handshake types. Implements Robert Ransom's proposal 200;
23061       closes ticket 7199.
23063   o Major features (new circuit handshake):
23064     - Tor now supports a new circuit extension handshake designed by Ian
23065       Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original
23066       circuit extension handshake, later called "TAP", was a bit slow
23067       (especially on the relay side), had a fragile security proof, and
23068       used weaker keys than we'd now prefer. The new circuit handshake
23069       uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman
23070       function, making it significantly more secure than the older
23071       handshake, and significantly faster. Tor can use one of two built-in
23072       pure-C curve25519-donna implementations by Adam Langley, or it
23073       can link against the "nacl" library for a tuned version if present.
23075       The built-in version is very fast for 64-bit systems when building
23076       with GCC. The built-in 32-bit version is still faster than the
23077       old TAP protocol, but using libnacl is better on most such hosts.
23079       Clients don't currently use this protocol by default, since
23080       comparatively few clients support it so far. To try it, set
23081       UseNTorHandshake to 1.
23083       Implements proposal 216; closes ticket 7202.
23085   o Major features (better link encryption):
23086     - Relays can now enable the ECDHE TLS ciphersuites when available
23087       and appropriate. These ciphersuites let us negotiate forward-secure
23088       TLS secret keys more safely and more efficiently than with our
23089       previous use of Diffie-Hellman modulo a 1024-bit prime. By default,
23090       public relays prefer the (faster) P224 group, and bridges prefer
23091       the (more common) P256 group; you can override this with the
23092       TLSECGroup option.
23094       Enabling these ciphers was a little tricky, since for a long time,
23095       clients had been claiming to support them without actually doing
23096       so, in order to foil fingerprinting. But with the client-side
23097       implementation of proposal 198 in 0.2.3.17-beta, clients can now
23098       match the ciphers from recent Firefox versions *and* list the
23099       ciphers they actually mean, so relays can believe such clients
23100       when they advertise ECDHE support in their TLS ClientHello messages.
23102       This feature requires clients running 0.2.3.17-beta or later,
23103       and requires both sides to be running OpenSSL 1.0.0 or later
23104       with ECC support. OpenSSL 1.0.1, with the compile-time option
23105       "enable-ec_nistp_64_gcc_128", is highly recommended.
23107       Implements the relay side of proposal 198; closes ticket 7200.
23109   o Major bugfixes:
23110     - Avoid crashing when, as a relay without IPv6-exit support, a
23111       client insists on getting an IPv6 address or nothing. Fixes bug
23112       7814; bugfix on 0.2.4.7-alpha.
23114   o Minor features:
23115     - Improve circuit build timeout handling for hidden services.
23116       In particular: adjust build timeouts more accurately depending
23117       upon the number of hop-RTTs that a particular circuit type
23118       undergoes. Additionally, launch intro circuits in parallel
23119       if they timeout, and take the first one to reply as valid.
23120     - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are
23121       separate error codes; or at least, don't break for that reason.
23122       Fixes bug 7935. Reported by "oftc_must_be_destroyed".
23123     - Update to the January 2 2013 Maxmind GeoLite Country database.
23125   o Minor features (testing):
23126     - Add benchmarks for DH (1024-bit multiplicative group) and ECDH
23127       (P-256) Diffie-Hellman handshakes to src/or/bench.
23128     - Add benchmark functions to test onion handshake performance.
23130   o Minor features (path bias detection):
23131     - Alter the Path Bias log messages to be more descriptive in terms
23132       of reporting timeouts and other statistics.
23133     - Create three levels of Path Bias log messages, as opposed to just
23134       two. These are configurable via consensus as well as via the torrc
23135       options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate.
23136       The default values are 0.70, 0.50, and 0.30 respectively.
23137     - Separate the log message levels from the decision to drop guards,
23138       which also is available via torrc option PathBiasDropGuards.
23139       PathBiasDropGuards still defaults to 0 (off).
23140     - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards
23141       in combination with PathBiasExtremeRate.
23142     - Increase the default values for PathBiasScaleThreshold and
23143       PathBiasCircThreshold from (200, 20) to (300, 150).
23144     - Add in circuit usage accounting to path bias. If we try to use a
23145       built circuit but fail for any reason, it counts as path bias.
23146       Certain classes of circuits where the adversary gets to pick your
23147       destination node are exempt from this accounting. Usage accounting
23148       can be specifically disabled via consensus parameter or torrc.
23149     - Convert all internal path bias state to double-precision floating
23150       point, to avoid roundoff error and other issues.
23151     - Only record path bias information for circuits that have completed
23152       *two* hops. Assuming end-to-end tagging is the attack vector, this
23153       makes us more resilient to ambient circuit failure without any
23154       detection capability loss.
23156   o Minor bugfixes (log messages):
23157     - Rate-limit the "No circuits are opened. Relaxed timeout for a
23158       circuit with channel state open..." message to once per hour to
23159       keep it from filling the notice logs. Mitigates bug 7799 but does
23160       not fix the underlying cause. Bugfix on 0.2.4.7-alpha.
23161     - Avoid spurious warnings when configuring multiple client ports of
23162       which only some are nonlocal. Previously, we had claimed that some
23163       were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on
23164       0.2.3.3-alpha.
23166   o Code simplifications and refactoring:
23167     - Get rid of a couple of harmless clang warnings, where we compared
23168       enums to ints. These warnings are newly introduced in clang 3.2.
23169     - Split the onion.c file into separate modules for the onion queue
23170       and the different handshakes it supports.
23171     - Remove the marshalling/unmarshalling code for sending requests to
23172       cpuworkers over a socket, and instead just send structs. The
23173       recipient will always be the same Tor binary as the sender, so
23174       any encoding is overkill.
23177 Changes in version 0.2.4.7-alpha - 2012-12-24
23178   Tor 0.2.4.7-alpha introduces a new approach to providing fallback
23179   directory mirrors for more robust bootstrapping; fixes more issues where
23180   clients with changing network conditions refuse to make any circuits;
23181   adds initial support for exiting to IPv6 addresses; resumes being able
23182   to update our GeoIP database, and includes the geoip6 file this time;
23183   turns off the client-side DNS cache by default due to privacy risks;
23184   and fixes a variety of other issues.
23186   o Major features (client resilience):
23187     - Add a new "FallbackDir" torrc option to use when we can't use
23188       a directory mirror from the consensus (either because we lack a
23189       consensus, or because they're all down). Currently, all authorities
23190       are fallbacks by default, and there are no other default fallbacks,
23191       but that will change. This option will allow us to give clients a
23192       longer list of servers to try to get a consensus from when first
23193       connecting to the Tor network, and thereby reduce load on the
23194       directory authorities. Implements proposal 206, "Preconfigured
23195       directory sources for bootstrapping". We also removed the old
23196       "FallbackNetworkstatus" option, since we never got it working well
23197       enough to use it. Closes bug 572.
23198     - If we have no circuits open, use a relaxed timeout (the
23199       95-percentile cutoff) until a circuit succeeds. This heuristic
23200       should allow Tor to succeed at building circuits even when the
23201       network connection drastically changes. Should help with bug 3443.
23203   o Major features (IPv6):
23204     - Relays can now exit to IPv6 addresses: make sure that you have IPv6
23205       connectivity, then set the IPv6Exit flag to 1. Also make sure your
23206       exit policy reads as you would like: the address * applies to all
23207       address families, whereas *4 is IPv4 address only, and *6 is IPv6
23208       addresses only. On the client side, you'll need to wait until the
23209       authorities have upgraded, wait for enough exits to support IPv6,
23210       apply the "IPv6Traffic" flag to a SocksPort, and use Socks5. Closes
23211       ticket 5547, implements proposal 117 as revised in proposal 208.
23213       We DO NOT recommend that clients with actual anonymity needs start
23214       using IPv6 over Tor yet, since not enough exits support it yet.
23216   o Major features (geoip database):
23217     - Maxmind began labelling Tor relays as being in country "A1",
23218       which breaks by-country node selection inside Tor. Now we use a
23219       script to replace "A1" ("Anonymous Proxy") entries in our geoip
23220       file with real country codes. This script fixes about 90% of "A1"
23221       entries automatically and uses manual country code assignments to
23222       fix the remaining 10%. See src/config/README.geoip for details.
23223       Fixes bug 6266. Also update to the December 5 2012 Maxmind GeoLite
23224       Country database, as modified above.
23226   o Major bugfixes (client-side DNS):
23227     - Turn off the client-side DNS cache by default. Updating and using
23228       the DNS cache is now configurable on a per-client-port
23229       level. SOCKSPort, DNSPort, etc lines may now contain
23230       {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't
23231       cache these types of DNS answers when we receive them from an
23232       exit node in response to an application request on this port, and
23233       {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have
23234       cached DNS answers of these types, we shouldn't use them. It's
23235       potentially risky to use cached DNS answers at the client, since
23236       doing so can indicate to one exit what answers we've gotten
23237       for DNS lookups in the past. With IPv6, this becomes especially
23238       problematic. Using cached DNS answers for requests on the same
23239       circuit would present less linkability risk, since all traffic
23240       on a circuit is already linkable, but it would also provide
23241       little performance benefit: the exit node caches DNS replies
23242       too. Implements a simplified version of Proposal 205. Implements
23243       ticket 7570.
23245   o Major bugfixes (other):
23246     - Alter circuit build timeout measurement to start at the point
23247       where we begin the CREATE/CREATE_FAST step (as opposed to circuit
23248       initialization). This should make our timeout measurements more
23249       uniform. Previously, we were sometimes including ORconn setup time
23250       in our circuit build time measurements. Should resolve bug 3443.
23251     - Fix an assertion that could trigger in hibernate_go_dormant() when
23252       closing an or_connection_t: call channel_mark_for_close() rather
23253       than connection_mark_for_close(). Fixes bug 7267. Bugfix on
23254       0.2.4.4-alpha.
23255     - Include the geoip6 IPv6 GeoIP database in the tarball. Fixes bug
23256       7655; bugfix on 0.2.4.6-alpha.
23258   o Minor features:
23259     - Add a new torrc option "ServerTransportListenAddr" to let bridge
23260       operators select the address where their pluggable transports will
23261       listen for connections. Resolves ticket 7013.
23262     - Allow an optional $ before the node identity digest in the
23263       controller command GETINFO ns/id/<identity>, for consistency with
23264       md/id/<identity> and desc/id/<identity>. Resolves ticket 7059.
23265     - Log packaged cell fullness as part of the heartbeat message.
23266       Diagnosis to try to determine the extent of bug 7743.
23268   o Minor features (IPv6):
23269     - AutomapHostsOnResolve now supports IPv6 addresses. By default, we
23270       prefer to hand out virtual IPv6 addresses, since there are more of
23271       them and we can't run out. To override this behavior and make IPv4
23272       addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort
23273       or DNSPort you're using for resolving. Implements ticket 7571.
23274     - AutomapHostsOnResolve responses are now randomized, to avoid
23275       annoying situations where Tor is restarted and applications
23276       connect to the wrong addresses.
23277     - Never try more than 1000 times to pick a new virtual address when
23278       AutomapHostsOnResolve is set. That's good enough so long as we
23279       aren't close to handing out our entire virtual address space;
23280       if you're getting there, it's best to switch to IPv6 virtual
23281       addresses anyway.
23283   o Minor bugfixes:
23284     - The ADDRMAP command can no longer generate an ill-formed error
23285       code on a failed MAPADDRESS. It now says "internal" rather than
23286       an English sentence fragment with spaces in the middle. Bugfix on
23287       Tor 0.2.0.19-alpha.
23288     - Fix log messages and comments to avoid saying "GMT" when we mean
23289       "UTC". Fixes bug 6113.
23290     - Compile on win64 using mingw64. Fixes bug 7260; patches from
23291       "yayooo".
23292     - Fix a crash when debugging unit tests on Windows: deallocate a
23293       shared library with FreeLibrary, not CloseHandle. Fixes bug 7306;
23294       bugfix on 0.2.2.17-alpha. Reported by "ultramage".
23296   o Renamed options:
23297     - The DirServer option is now DirAuthority, for consistency with
23298       current naming patterns. You can still use the old DirServer form.
23300   o Code simplification and refactoring:
23301     - Move the client-side address-map/virtual-address/DNS-cache code
23302       out of connection_edge.c into a new addressmap.c module.
23303     - Remove unused code for parsing v1 directories and "running routers"
23304       documents. Fixes bug 6887.
23307 Changes in version 0.2.3.25 - 2012-11-19
23308   The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi"
23309   Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher,
23310   Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer,
23311   programmer, and friend. Unstinting in his dedication to the cause of
23312   freedom, he inspired and helped many of us as we began our work on
23313   anonymity, and inspires us still. Please honor his memory by writing
23314   software to protect people's freedoms, and by helping others to do so.
23316   Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features
23317   significantly reduced directory overhead (via microdescriptors),
23318   enormous crypto performance improvements for fast relays on new
23319   enough hardware, a new v3 TLS handshake protocol that can better
23320   resist fingerprinting, support for protocol obfuscation plugins (aka
23321   pluggable transports), better scalability for hidden services, IPv6
23322   support for bridges, performance improvements like allowing clients
23323   to skip the first round-trip on the circuit ("optimistic data") and
23324   refilling token buckets more often, a new "stream isolation" design
23325   to isolate different applications on different circuits, and many
23326   stability, security, and privacy fixes.
23328   o Major bugfixes:
23329     - Tor tries to wipe potentially sensitive data after using it, so
23330       that if some subsequent security failure exposes Tor's memory,
23331       the damage will be limited. But we had a bug where the compiler
23332       was eliminating these wipe operations when it decided that the
23333       memory was no longer visible to a (correctly running) program,
23334       hence defeating our attempt at defense in depth. We fix that
23335       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
23336       is unlikely to optimize away. Future versions of Tor may use
23337       a less ridiculously heavy approach for this. Fixes bug 7352.
23338       Reported in an article by Andrey Karpov.
23340   o Minor bugfixes:
23341     - Fix a harmless bug when opting against publishing a relay descriptor
23342       because DisableNetwork is set. Fixes bug 7464; bugfix on
23343       0.2.3.9-alpha.
23346 Changes in version 0.2.4.6-alpha - 2012-11-13
23347   Tor 0.2.4.6-alpha fixes an assert bug that has been plaguing relays,
23348   makes our defense-in-depth memory wiping more reliable, and begins to
23349   count IPv6 addresses in bridge statistics,
23351   o Major bugfixes:
23352     - Fix an assertion failure that could occur when closing a connection
23353       with a spliced rendezvous circuit. Fix for bug 7212; bugfix on
23354       Tor 0.2.4.4-alpha.
23355     - Tor tries to wipe potentially sensitive data after using it, so
23356       that if some subsequent security failure exposes Tor's memory,
23357       the damage will be limited. But we had a bug where the compiler
23358       was eliminating these wipe operations when it decided that the
23359       memory was no longer visible to a (correctly running) program,
23360       hence defeating our attempt at defense in depth. We fix that
23361       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
23362       is unlikely to optimize away. Future versions of Tor may use
23363       a less ridiculously heavy approach for this. Fixes bug 7352.
23364       Reported in an article by Andrey Karpov.
23366   o Minor features:
23367     - Add GeoIP database for IPv6 addresses. The new config option
23368       is GeoIPv6File.
23369     - Bridge statistics now count bridge clients connecting over IPv6:
23370       bridge statistics files now list "bridge-ip-versions" and
23371       extra-info documents list "geoip6-db-digest". The control protocol
23372       "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial
23373       implementation by "shkoo", addressing ticket 5055.
23375   o Minor bugfixes:
23376     - Warn when we are binding low ports when hibernation is enabled;
23377       previously we had warned when we were _advertising_ low ports with
23378       hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
23379     - Fix a harmless bug when opting against publishing a relay descriptor
23380       because DisableNetwork is set. Fixes bug 7464; bugfix on
23381       0.2.3.9-alpha.
23382     - Add warning message when a managed proxy dies during configuration.
23383       Fixes bug 7195; bugfix on 0.2.4.2-alpha.
23384     - Fix a linking error when building tor-fw-helper without miniupnp.
23385       Fixes bug 7235; bugfix on 0.2.4.2-alpha. Fix by Anthony G. Basile.
23386     - Check for closing an or_connection_t without going through correct
23387       channel functions; emit a warning and then call
23388       connection_or_close_for_error() so we don't assert as in bugs 7212
23389       and 7267.
23390     - Compile correctly on compilers without C99 designated initializer
23391       support. Fixes bug 7286; bugfix on 0.2.4.4-alpha.
23392     - Avoid a possible assert that can occur when channel_send_destroy() is
23393       called on a channel in CHANNEL_STATE_CLOSING, CHANNEL_STATE_CLOSED,
23394       or CHANNEL_STATE_ERROR when the Tor process is resumed after being
23395       blocked for a long interval. Fixes bug 7350; bugfix on 0.2.4.4-alpha.
23396     - Fix a memory leak on failing cases of channel_tls_process_certs_cell.
23397       Fixes bug 7422; bugfix on 0.2.4.4-alpha.
23399   o Code simplification and refactoring:
23400     - Start using OpenBSD's implementation of queue.h, so that we don't
23401       need to hand-roll our own pointer and list structures whenever we
23402       need them. (We can't rely on a sys/queue.h, since some operating
23403       systems don't have them, and the ones that do have them don't all
23404       present the same extensions.)
23407 Changes in version 0.2.4.5-alpha - 2012-10-25
23408   Tor 0.2.4.5-alpha comes hard at the heels of 0.2.4.4-alpha, to fix
23409   two important security vulnerabilities that could lead to remotely
23410   triggerable relay crashes, fix a major bug that was preventing clients
23411   from choosing suitable exit nodes, and refactor some of our code.
23413   o Major bugfixes (security, also in 0.2.3.24-rc):
23414     - Fix a group of remotely triggerable assertion failures related to
23415       incorrect link protocol negotiation. Found, diagnosed, and fixed
23416       by "some guy from France". Fix for CVE-2012-2250; bugfix on
23417       0.2.3.6-alpha.
23418     - Fix a denial of service attack by which any directory authority
23419       could crash all the others, or by which a single v2 directory
23420       authority could crash everybody downloading v2 directory
23421       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
23423   o Major bugfixes (also in 0.2.3.24-rc):
23424     - When parsing exit policy summaries from microdescriptors, we had
23425       previously been ignoring the last character in each one, so that
23426       "accept 80,443,8080" would be treated by clients as indicating
23427       a node that allows access to ports 80, 443, and 808. That would
23428       lead to clients attempting connections that could never work,
23429       and ignoring exit nodes that would support their connections. Now
23430       clients parse these exit policy summaries correctly. Fixes bug 7192;
23431       bugfix on 0.2.3.1-alpha.
23433   o Minor bugfixes (also in 0.2.3.24-rc):
23434     - Clients now consider the ClientRejectInternalAddresses config option
23435       when using a microdescriptor consensus stanza to decide whether
23436       an exit relay would allow exiting to an internal address. Fixes
23437       bug 7190; bugfix on 0.2.3.1-alpha.
23439   o Minor bugfixes:
23440     - Only disable TLS session ticket support when running as a TLS
23441       server. Now clients will blend better with regular Firefox
23442       connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc.
23444   o Code simplification and refactoring:
23445     - Start using OpenBSD's implementation of queue.h (originally by
23446       Niels Provos).
23447     - Move the entry node code from circuitbuild.c to its own file.
23448     - Move the circuit build timeout tracking code from circuitbuild.c
23449       to its own file.
23452 Changes in version 0.2.3.24-rc - 2012-10-25
23453   Tor 0.2.3.24-rc fixes two important security vulnerabilities that
23454   could lead to remotely triggerable relay crashes, and fixes
23455   a major bug that was preventing clients from choosing suitable exit
23456   nodes.
23458   o Major bugfixes (security):
23459     - Fix a group of remotely triggerable assertion failures related to
23460       incorrect link protocol negotiation. Found, diagnosed, and fixed
23461       by "some guy from France". Fix for CVE-2012-2250; bugfix on
23462       0.2.3.6-alpha.
23463     - Fix a denial of service attack by which any directory authority
23464       could crash all the others, or by which a single v2 directory
23465       authority could crash everybody downloading v2 directory
23466       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
23468   o Major bugfixes:
23469     - When parsing exit policy summaries from microdescriptors, we had
23470       previously been ignoring the last character in each one, so that
23471       "accept 80,443,8080" would be treated by clients as indicating
23472       a node that allows access to ports 80, 443, and 808. That would
23473       lead to clients attempting connections that could never work,
23474       and ignoring exit nodes that would support their connections. Now
23475       clients parse these exit policy summaries correctly. Fixes bug 7192;
23476       bugfix on 0.2.3.1-alpha.
23478   o Minor bugfixes:
23479     - Clients now consider the ClientRejectInternalAddresses config option
23480       when using a microdescriptor consensus stanza to decide whether
23481       an exit relay would allow exiting to an internal address. Fixes
23482       bug 7190; bugfix on 0.2.3.1-alpha.
23485 Changes in version 0.2.4.4-alpha - 2012-10-20
23486   Tor 0.2.4.4-alpha adds a new v3 directory authority, fixes a privacy
23487   vulnerability introduced by a change in OpenSSL, fixes a remotely
23488   triggerable assert, and adds new channel_t and circuitmux_t abstractions
23489   that will make it easier to test new connection transport and cell
23490   scheduling algorithms.
23492   o New directory authorities (also in 0.2.3.23-rc):
23493     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
23494       authority. Closes ticket 5749.
23496   o Major bugfixes (security/privacy, also in 0.2.3.23-rc):
23497     - Disable TLS session tickets. OpenSSL's implementation was giving
23498       our TLS session keys the lifetime of our TLS context objects, when
23499       perfect forward secrecy would want us to discard anything that
23500       could decrypt a link connection as soon as the link connection
23501       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
23502       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
23503     - Discard extraneous renegotiation attempts once the V3 link
23504       protocol has been initiated. Failure to do so left us open to
23505       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
23506       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
23508   o Internal abstraction features:
23509     - Introduce new channel_t abstraction between circuits and
23510       or_connection_t to allow for implementing alternate OR-to-OR
23511       transports. A channel_t is an abstract object which can either be a
23512       cell-bearing channel, which is responsible for authenticating and
23513       handshaking with the remote OR and transmitting cells to and from
23514       it, or a listening channel, which spawns new cell-bearing channels
23515       at the request of remote ORs. Implements part of ticket 6465.
23516     - Also new is the channel_tls_t subclass of channel_t, adapting it
23517       to the existing or_connection_t code. The V2/V3 protocol handshaking
23518       code which formerly resided in command.c has been moved below the
23519       channel_t abstraction layer and may be found in channeltls.c now.
23520       Implements the rest of ticket 6465.
23521     - Introduce new circuitmux_t storing the queue of circuits for
23522       a channel; this encapsulates and abstracts the queue logic and
23523       circuit selection policy, and allows the latter to be overridden
23524       easily by switching out a policy object. The existing EWMA behavior
23525       is now implemented as a circuitmux_policy_t. Resolves ticket 6816.
23527   o Required libraries:
23528     - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is
23529       strongly recommended.
23531   o Minor features:
23532     - Warn users who run hidden services on a Tor client with
23533       UseEntryGuards disabled that their hidden services will be
23534       vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
23535       attack which motivated Tor to support entry guards in the first
23536       place). Resolves ticket 6889.
23537     - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from
23538       dhill. Resolves ticket 6982.
23539     - Option OutboundBindAddress can be specified multiple times and
23540       accepts IPv6 addresses. Resolves ticket 6876.
23542   o Minor bugfixes (also in 0.2.3.23-rc):
23543     - Don't serve or accept v2 hidden service descriptors over a
23544       relay's DirPort. It's never correct to do so, and disabling it
23545       might make it more annoying to exploit any bugs that turn up in the
23546       descriptor-parsing code. Fixes bug 7149.
23547     - Fix two cases in src/or/transports.c where we were calling
23548       fmt_addr() twice in a parameter list. Bug found by David
23549       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
23550     - Fix memory leaks whenever we logged any message about the "path
23551       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
23552     - When relays refuse a "create" cell because their queue of pending
23553       create cells is too big (typically because their cpu can't keep up
23554       with the arrival rate), send back reason "resource limit" rather
23555       than reason "internal", so network measurement scripts can get a
23556       more accurate picture. Fixes bug 7037; bugfix on 0.1.1.11-alpha.
23558   o Minor bugfixes:
23559     - Command-line option "--version" implies "--quiet". Fixes bug 6997.
23560     - Free some more still-in-use memory at exit, to make hunting for
23561       memory leaks easier. Resolves bug 7029.
23562     - When a Tor client gets a "truncated" relay cell, the first byte of
23563       its payload specifies why the circuit was truncated. We were
23564       ignoring this 'reason' byte when tearing down the circuit, resulting
23565       in the controller not being told why the circuit closed. Now we
23566       pass the reason from the truncated cell to the controller. Bugfix
23567       on 0.1.2.3-alpha; fixes bug 7039.
23568     - Downgrade "Failed to hand off onionskin" messages to "debug"
23569       severity, since they're typically redundant with the "Your computer
23570       is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
23571     - Make clients running with IPv6 bridges connect over IPv6 again,
23572       even without setting new config options ClientUseIPv6 and
23573       ClientPreferIPv6ORPort. Fixes bug 6757; bugfix on 0.2.4.1-alpha.
23574     - Use square brackets around IPv6 addresses in numerous places
23575       that needed them, including log messages, HTTPS CONNECT proxy
23576       requests, TransportProxy statefile entries, and pluggable transport
23577       extra-info lines. Fixes bug 7011; patch by David Fifield.
23579   o Code refactoring and cleanup:
23580     - Source files taken from other packages now reside in src/ext;
23581       previously they were scattered around the rest of Tor.
23582     - Avoid use of reserved identifiers in our C code. The C standard
23583       doesn't like us declaring anything that starts with an
23584       underscore, so let's knock it off before we get in trouble. Fix
23585       for bug 1031; bugfix on the first Tor commit.
23588 Changes in version 0.2.3.23-rc - 2012-10-20
23589   Tor 0.2.3.23-rc adds a new v3 directory authority, fixes a privacy
23590   vulnerability introduced by a change in OpenSSL, and fixes a variety
23591   of smaller bugs in preparation for the release.
23593   o New directory authorities:
23594     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
23595       authority. Closes ticket 5749.
23597   o Major bugfixes (security/privacy):
23598     - Disable TLS session tickets. OpenSSL's implementation was giving
23599       our TLS session keys the lifetime of our TLS context objects, when
23600       perfect forward secrecy would want us to discard anything that
23601       could decrypt a link connection as soon as the link connection
23602       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
23603       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
23604     - Discard extraneous renegotiation attempts once the V3 link
23605       protocol has been initiated. Failure to do so left us open to
23606       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
23607       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
23609   o Major bugfixes:
23610     - Fix a possible crash bug when checking for deactivated circuits
23611       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
23612       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
23614   o Minor bugfixes (on 0.2.3.x):
23615     - Fix two cases in src/or/transports.c where we were calling
23616       fmt_addr() twice in a parameter list. Bug found by David
23617       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
23618     - Convert an assert in the pathbias code to a log message. The assert
23619       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
23620       bugfix on 0.2.3.17-beta.
23621     - Fix memory leaks whenever we logged any message about the "path
23622       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
23624   o Minor bugfixes (on 0.2.2.x and earlier):
23625     - Don't serve or accept v2 hidden service descriptors over a relay's
23626       DirPort. It's never correct to do so, and disabling it might
23627       make it more annoying to exploit any bugs that turn up in the
23628       descriptor-parsing code. Fixes bug 7149.
23629     - When relays refuse a "create" cell because their queue of pending
23630       create cells is too big (typically because their cpu can't keep up
23631       with the arrival rate), send back reason "resource limit" rather
23632       than reason "internal", so network measurement scripts can get a
23633       more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037.
23634     - Correct file sizes when reading binary files on Cygwin, to avoid
23635       a bug where Tor would fail to read its state file. Fixes bug 6844;
23636       bugfix on 0.1.2.7-alpha.
23637     - Avoid undefined behavior when parsing the list of supported
23638       rendezvous/introduction protocols in a hidden service descriptor.
23639       Previously, Tor would have confused (as-yet-unused) protocol version
23640       numbers greater than 32 with lower ones on many platforms. Fixes
23641       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
23643   o Documentation fixes:
23644     - Clarify that hidden services are TCP only. Fixes bug 6024.
23647 Changes in version 0.2.4.3-alpha - 2012-09-22
23648   Tor 0.2.4.3-alpha fixes another opportunity for a remotely triggerable
23649   assertion, resumes letting relays test reachability of their DirPort,
23650   and cleans up a bunch of smaller bugs.
23652   o Security fixes:
23653     - Fix an assertion failure in tor_timegm() that could be triggered
23654       by a badly formatted directory object. Bug found by fuzzing with
23655       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
23657   o Major bugfixes:
23658     - Fix a possible crash bug when checking for deactivated circuits
23659       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
23660       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
23661     - Allow routers to detect that their own DirPorts are running. When
23662       we removed support for versions_supports_begindir, we also
23663       accidentally removed the mechanism we used to self-test our
23664       DirPort. Diagnosed with help from kargig. Fixes bugs 6814 and 6815;
23665       bugfix on 0.2.4.2-alpha.
23667   o Security features:
23668     - Switch to a completely time-invariant approach for picking nodes
23669       weighted by bandwidth. Our old approach would run through the
23670       part of the loop after it had made its choice slightly slower
23671       than it ran through the part of the loop before it had made its
23672       choice. Addresses ticket 6538.
23673     - Disable the use of Guard nodes when in Tor2WebMode. Guard usage
23674       by tor2web clients allows hidden services to identify tor2web
23675       clients through their repeated selection of the same rendezvous
23676       and introduction point circuit endpoints (their guards). Resolves
23677       ticket 6888.
23679   o Minor features:
23680     - Enable Tor to read configuration, state, and key information from
23681       a FIFO. Previously Tor would only read from files with a positive
23682       stat.st_size. Code from meejah; fixes bug 6044.
23684   o Minor bugfixes:
23685     - Correct file sizes when reading binary files on Cygwin, to avoid
23686       a bug where Tor would fail to read its state file. Fixes bug 6844;
23687       bugfix on 0.1.2.7-alpha.
23688     - Correctly handle votes with more than 31 flags. Fixes bug 6853;
23689       bugfix on 0.2.0.3-alpha.
23690     - When complaining about a client port on a public address, log
23691       which address we're complaining about. Fixes bug 4020; bugfix on
23692       0.2.3.3-alpha. Patch by Tom Fitzhenry.
23693     - Convert an assert in the pathbias code to a log message. The assert
23694       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
23695       bugfix on 0.2.3.17-beta.
23696     - Our new buildsystem was overzealous about rebuilding manpages: it
23697       would rebuild them all whenever any one of them changed. Now our
23698       dependency checking should be correct. Fixes bug 6843; bugfix on
23699       0.2.4.1-alpha.
23700     - Don't do reachability testing over IPv6 unless AuthDirPublishIPv6
23701       is set. Fixes bug 6880. Bugfix on 0.2.4.1-alpha.
23702     - Correct log printout about which address family is preferred
23703       when connecting to a bridge with both an IPv4 and IPv6 OR port.
23704       Fixes bug 6884; bugfix on 0.2.4.1-alpha.
23706   o Minor bugfixes (code cleanliness):
23707     - Fix round_to_power_of_2() so it doesn't invoke undefined behavior
23708       with large values. This situation was untriggered, but nevertheless
23709       incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha.
23710     - Reject consensus votes with more than 64 known-flags. We aren't even
23711       close to that limit yet, and our code doesn't handle it correctly.
23712       Fixes bug 6833; bugfix on 0.2.0.1-alpha.
23713     - Avoid undefined behavior when parsing the list of supported
23714       rendezvous/introduction protocols in a hidden service descriptor.
23715       Previously, Tor would have confused (as-yet-unused) protocol version
23716       numbers greater than 32 with lower ones on many platforms. Fixes
23717       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
23718     - Fix handling of rendezvous client authorization types over 8.
23719       Fixes bug 6861; bugfix on 0.2.1.5-alpha.
23720     - Fix building with older versions of GCC (2.95, for one) that don't
23721       like preprocessor directives inside macro arguments. Found by
23722       grarpamp. Fixes bug 6842; bugfix on 0.2.4.2-alpha.
23723     - Switch weighted node selection rule from using a list of doubles
23724       to using a list of int64_t. This change should make the process
23725       slightly easier to debug and maintain. Needed to finish ticket 6538.
23727   o Code simplification and refactoring:
23728     - Move the generic "config" code into a new file, and have "config.c"
23729       hold only torrc- and state-related code. Resolves ticket 6823.
23730     - Move the core of our "choose a weighted element at random" logic
23731       into its own function, and give it unit tests. Now the logic is
23732       testable, and a little less fragile too.
23733     - Removed the testing_since field of node_t, which hasn't been used
23734       for anything since 0.2.0.9-alpha.
23736   o Documentation fixes:
23737     - Clarify that hidden services are TCP only. Fixes bug 6024.
23738     - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on
23739       0.2.3.14-alpha.
23742 Changes in version 0.2.3.22-rc - 2012-09-11
23743   Tor 0.2.3.22-rc fixes another opportunity for a remotely triggerable
23744   assertion.
23746   o Security fixes:
23747     - Fix an assertion failure in tor_timegm() that could be triggered
23748       by a badly formatted directory object. Bug found by fuzzing with
23749       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
23751   o Minor bugfixes:
23752     - Avoid segfault when starting up having run with an extremely old
23753       version of Tor and parsing its state file. Fixes bug 6801; bugfix
23754       on 0.2.2.23-alpha.
23757 Changes in version 0.2.2.39 - 2012-09-11
23758   Tor 0.2.2.39 fixes two more opportunities for remotely triggerable
23759   assertions.
23761   o Security fixes:
23762     - Fix an assertion failure in tor_timegm() that could be triggered
23763       by a badly formatted directory object. Bug found by fuzzing with
23764       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
23765     - Do not crash when comparing an address with port value 0 to an
23766       address policy. This bug could have been used to cause a remote
23767       assertion failure by or against directory authorities, or to
23768       allow some applications to crash clients. Fixes bug 6690; bugfix
23769       on 0.2.1.10-alpha.
23772 Changes in version 0.2.4.2-alpha - 2012-09-10
23773   Tor 0.2.4.2-alpha enables port forwarding for pluggable transports,
23774   raises the default rate limiting even more, and makes the bootstrapping
23775   log messages less noisy.
23777   o Major features:
23778     - Automatically forward the TCP ports of pluggable transport
23779       proxies using tor-fw-helper if PortForwarding is enabled. Implements
23780       ticket 4567.
23782   o Major bugfixes:
23783     - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB
23784       to 1GB/1GB. The previous defaults were intended to be "basically
23785       infinite", but it turns out they're now limiting our 100mbit+
23786       relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the
23787       last time we raised it).
23789   o Minor features:
23790     - Detect when we're running with a version of OpenSSL other than the
23791       one we compiled with. This has occasionally given people hard-to-
23792       track-down errors.
23793     - Log fewer lines at level "notice" about our OpenSSL and Libevent
23794       versions and capabilities when everything is going right. Resolves
23795       part of ticket 6736.
23796     - Directory authorities no long accept descriptors for any version of
23797       Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha.
23798       These versions are insecure, unsupported, or both. Implements
23799       ticket 6789.
23801   o Minor bugfixes:
23802     - Rename the (internal-use-only) UsingTestingNetworkDefaults option
23803       to start with a triple-underscore so the controller won't touch it.
23804       Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha.
23805     - Avoid segfault when starting up having run with an extremely old
23806       version of Tor and parsing its state file. Fixes bug 6801; bugfix
23807       on 0.2.2.23-alpha.
23808     - Rename the (testing-use-only) _UseFilteringSSLBufferevents option
23809       so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha.
23810     - Don't follow the NULL pointer if microdescriptor generation fails.
23811       (This does not appear to be triggerable, but it's best to be safe.)
23812       Found by "f. tp.". Fixes bug 6797; bugfix on 0.2.4.1-alpha.
23813     - Fix mis-declared dependencies on src/common/crypto.c and
23814       src/or/tor_main.c that could break out-of-tree builds under some
23815       circumstances. Fixes bug 6778; bugfix on 0.2.4.1-alpha.
23816     - Avoid a warning when building common_sha1.i out of tree. Fixes bug
23817       6778; bugfix on 0.2.4.1-alpha.
23818     - Fix a harmless (in this case) build warning for implicitly
23819       converting a strlen() to an int. Bugfix on 0.2.4.1-alpha.
23821   o Removed features:
23822     - Now that all versions before 0.2.2.x are disallowed, we no longer
23823       need to work around their missing features. Thus we can remove a
23824       bunch of compatibility code.
23826   o Code refactoring:
23827     - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary
23828       TCP ports to forward. In the past it only accepted two ports:
23829       the ORPort and the DirPort.
23832 Changes in version 0.2.4.1-alpha - 2012-09-05
23833   Tor 0.2.4.1-alpha lets bridges publish their pluggable transports to
23834   bridgedb; lets relays use IPv6 addresses and directory authorities
23835   advertise them; and switches to a cleaner build interface.
23837   This is the first alpha release in a new series, so expect there to
23838   be bugs. Users who would rather test out a more stable branch should
23839   stay with 0.2.3.x for now.
23841   o Major features (bridges):
23842     - Bridges now report the pluggable transports they support to the
23843       bridge authority, so it can pass the supported transports on to
23844       bridgedb and/or eventually do reachability testing. Implements
23845       ticket 3589.
23847   o Major features (IPv6):
23848     - Bridge authorities now accept IPv6 bridge addresses and include
23849       them in network status documents. Implements ticket 5534.
23850     - Clients who set "ClientUseIPv6 1" may connect to entry nodes over
23851       IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely
23852       to happen. Implements ticket 5535.
23853     - All kind of relays, not just bridges, can now advertise an IPv6
23854       OR port. Implements ticket 6362.
23855     - Directory authorities vote on IPv6 OR ports using the new consensus
23856       method 14. Implements ticket 6363.
23858   o Major features (build):
23859     - Switch to a nonrecursive Makefile structure. Now instead of each
23860       Makefile.am invoking other Makefile.am's, there is a master
23861       Makefile.am that includes the others. This change makes our build
23862       process slightly more maintainable, and improves parallelism for
23863       building with make -j. Original patch by Stewart Smith; various
23864       fixes by Jim Meyering.
23865     - Where available, we now use automake's "silent" make rules by
23866       default, so that warnings are easier to spot. You can get the old
23867       behavior with "make V=1". Patch by Stewart Smith for ticket 6522.
23869   o Minor features (code security and spec conformance):
23870     - Clear keys and key-derived material left on the stack in
23871       rendservice.c and rendclient.c. Check return value of
23872       crypto_pk_write_private_key_to_string() in rend_service_load_keys().
23873       These fixes should make us more forward-secure against cold-boot
23874       attacks and the like. Fixes bug 2385.
23875     - Reject EXTEND cells sent to nonexistent streams. According to the
23876       spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but
23877       we were only checking for stream IDs that were currently in use.
23878       Found while hunting for more instances of bug 6271. Bugfix on
23879       0.0.2pre8, which introduced incremental circuit construction.
23881   o Minor features (streamlining);
23882     - No longer include the "opt" prefix when generating routerinfos
23883       or v2 directories: it has been needless since Tor 0.1.2. Closes
23884       ticket 5124.
23885     - Remove some now-needless code that tried to aggressively flush
23886       OR connections as data was added to them. Since 0.2.0.1-alpha, our
23887       cell queue logic has saved us from the failure mode that this code
23888       was supposed to prevent. Removing this code will limit the number
23889       of baroque control flow paths through Tor's network logic. Reported
23890       pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha.
23892   o Minor features (controller):
23893     - Add a "GETINFO signal/names" control port command. Implements
23894       ticket 3842.
23895     - Provide default values for all options via "GETINFO config/defaults".
23896       Implements ticket 4971.
23898   o Minor features (IPv6):
23899     - New config option "AuthDirHasIPv6Connectivity 1" that directory
23900       authorities should set if they have IPv6 connectivity and want to
23901       do reachability tests for IPv6 relays. Implements feature 5974.
23902     - A relay with an IPv6 OR port now sends that address in NETINFO
23903       cells (in addition to its other address). Implements ticket 6364.
23905   o Minor features (log messages):
23906     - Omit the first heartbeat log message, because it never has anything
23907       useful to say, and it clutters up the bootstrapping messages.
23908       Resolves ticket 6758.
23909     - Don't log about reloading the microdescriptor cache at startup. Our
23910       bootstrap warnings are supposed to tell the user when there's a
23911       problem, and our bootstrap notices say when there isn't. Resolves
23912       ticket 6759; bugfix on 0.2.2.6-alpha.
23913     - Don't log "I learned some more directory information" when we're
23914       reading cached directory information. Reserve it for when new
23915       directory information arrives in response to a fetch. Resolves
23916       ticket 6760.
23917     - Prevent rounding error in path bias counts when scaling
23918       them down, and use the correct scale factor default. Also demote
23919       some path bias related log messages down a level and make others
23920       less scary sounding. Fixes bug 6647. Bugfix against 0.2.3.17-beta.
23921     - We no longer warn so much when generating manpages from their
23922       asciidoc source.
23924   o Code simplifications and refactoring:
23925     - Enhance our internal sscanf replacement so that we can eliminate
23926       the last remaining uses of the system sscanf. (Though those uses
23927       of sscanf were safe, sscanf itself is generally error prone, so
23928       we want to eliminate when we can.) Fixes ticket 4195 and Coverity
23929       CID 448.
23930     - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620.
23931     - Move last_reachable and testing_since from routerinfo_t to node_t.
23932       Implements ticket 5529.
23933     - Add replaycache_t structure, functions and unit tests, then refactor
23934       rend_service_introduce() to be more clear to read, improve, debug,
23935       and test. Resolves bug 6177.
23936     - Finally remove support for malloc_good_size and malloc_usable_size.
23937       We had hoped that these functions would let us eke a little more
23938       memory out of our malloc implementation. Unfortunately, the only
23939       implementations that provided these functions are also ones that
23940       are already efficient about not overallocation: they never got us
23941       more than 7 or so bytes per allocation. Removing them saves us a
23942       little code complexity and a nontrivial amount of build complexity.
23944   o New requirements:
23945     - Tor maintainers now require Automake version 1.9 or later to build
23946       Tor from the Git repository. (Automake is not required when building
23947       from a source distribution.)
23950 Changes in version 0.2.3.21-rc - 2012-09-05
23951   Tor 0.2.3.21-rc is the fourth release candidate for the Tor 0.2.3.x
23952   series. It fixes a trio of potential security bugs, fixes a bug where
23953   we were leaving some of the fast relays out of the microdescriptor
23954   consensus, resumes interpreting "ORPort 0" and "DirPort 0" correctly,
23955   and cleans up other smaller issues.
23957   o Major bugfixes (security):
23958     - Tear down the circuit if we get an unexpected SENDME cell. Clients
23959       could use this trick to make their circuits receive cells faster
23960       than our flow control would have allowed, or to gum up the network,
23961       or possibly to do targeted memory denial-of-service attacks on
23962       entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
23963       from July 2002, before the release of Tor 0.0.0. We had committed
23964       this patch previously, but we had to revert it because of bug 6271.
23965       Now that 6271 is fixed, this patch appears to work.
23966     - Reject any attempt to extend to an internal address. Without
23967       this fix, a router could be used to probe addresses on an internal
23968       network to see whether they were accepting connections. Fixes bug
23969       6710; bugfix on 0.0.8pre1.
23970     - Do not crash when comparing an address with port value 0 to an
23971       address policy. This bug could have been used to cause a remote
23972       assertion failure by or against directory authorities, or to
23973       allow some applications to crash clients. Fixes bug 6690; bugfix
23974       on 0.2.1.10-alpha.
23976   o Major bugfixes:
23977     - Remove the upper bound on microdescriptor length. We were hitting
23978       the limit for routers with complex exit policies or family
23979       declarations, causing clients to not use them. Fixes the first
23980       piece of bug 6404; fix on 0.2.2.6-alpha.
23981     - Detect "ORPort 0" as meaning, uniformly, that we're not running
23982       as a relay. Previously, some of our code would treat the presence
23983       of any ORPort line as meaning that we should act like a relay,
23984       even though our new listener code would correctly not open any
23985       ORPorts for ORPort 0. Similar bugs in other Port options are also
23986       fixed. Fixes the first half of bug 6507; bugfix on 0.2.3.3-alpha.
23988   o Minor bugfixes:
23989     - Avoid a pair of double-free and use-after-mark bugs that can
23990       occur with certain timings in canceled and re-received DNS
23991       requests. Fixes bug 6472; bugfix on 0.0.7rc1.
23992     - Fix build and 64-bit compile warnings from --enable-openbsd-malloc.
23993       Fixes bug 6379. Bugfix on 0.2.0.20-rc.
23994     - Allow one-hop directory fetching circuits the full "circuit build
23995       timeout" period, rather than just half of it, before failing them
23996       and marking the relay down. This fix should help reduce cases where
23997       clients declare relays (or worse, bridges) unreachable because
23998       the TLS handshake takes a few seconds to complete. Fixes bug 6743;
23999       bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
24000       30 seconds.
24001     - Authorities no longer include any router in their microdescriptor
24002       consensuses for which they couldn't generate or agree on a
24003       microdescriptor. Fixes the second piece of bug 6404; fix on
24004       0.2.2.6-alpha.
24005     - Detect and reject attempts to specify both "FooPort" and
24006       "FooPort 0" in the same configuration domain. (It's still okay
24007       to have a FooPort in your configuration file, and use "FooPort 0"
24008       on the command line to disable it.) Fixes the second half of bug
24009       6507; bugfix on 0.2.3.3-alpha.
24010     - Make wildcarded addresses (that is, ones beginning with "*.") work
24011       when provided via the controller's MapAddress command. Previously,
24012       they were accepted, but we never actually noticed that they were
24013       wildcards. Fixes bug 6244; bugfix on 0.2.3.9-alpha.
24014     - Avoid crashing on a malformed state file where EntryGuardPathBias
24015       precedes EntryGuard. Fix for bug 6774; bugfix on 0.2.3.17-beta.
24016     - Add a (probably redundant) memory clear between iterations of
24017       the router status voting loop, to prevent future coding errors
24018       where data might leak between iterations of the loop. Resolves
24019       ticket 6514.
24021   o Minor bugfixes (log messages):
24022     - Downgrade "set buildtimeout to low value" messages to "info"
24023       severity; they were never an actual problem, there was never
24024       anything reasonable to do about them, and they tended to spam logs
24025       from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha.
24026     - Downgrade path-bias warning messages to "info". We'll try to get
24027       them working better in 0.2.4. Add internal circuit construction
24028       state to protect against the noisy warn message "Unexpectedly high
24029       circuit_successes". Also add some additional rate-limited notice
24030       messages to help determine the root cause of the warn. Fixes bug
24031       6475. Bugfix against 0.2.3.17-beta.
24032     - Move log message when unable to find a microdesc in a routerstatus
24033       entry to parse time. Previously we'd spam this warning every time
24034       we tried to figure out which microdescriptors to download. Fixes
24035       the third piece of bug 6404; fix on 0.2.3.18-rc.
24037   o Minor features:
24038     - Consider new, removed or changed IPv6 OR ports a non-cosmetic
24039       change when the authority is deciding whether to accept a newly
24040       uploaded descriptor. Implements ticket 6423.
24041     - Add missing documentation for consensus and microdesc files.
24042       Resolves ticket 6732.
24045 Changes in version 0.2.2.38 - 2012-08-12
24046   Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing
24047   attack that could in theory leak path information.
24049   o Security fixes:
24050     - Avoid an uninitialized memory read when reading a vote or consensus
24051       document that has an unrecognized flavor name. This read could
24052       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
24053     - Try to leak less information about what relays a client is
24054       choosing to a side-channel attacker. Previously, a Tor client would
24055       stop iterating through the list of available relays as soon as it
24056       had chosen one, thus finishing a little earlier when it picked
24057       a router earlier in the list. If an attacker can recover this
24058       timing information (nontrivial but not proven to be impossible),
24059       they could learn some coarse-grained information about which relays
24060       a client was picking (middle nodes in particular are likelier to
24061       be affected than exits). The timing attack might be mitigated by
24062       other factors (see bug 6537 for some discussion), but it's best
24063       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
24066 Changes in version 0.2.3.20-rc - 2012-08-05
24067   Tor 0.2.3.20-rc is the third release candidate for the Tor 0.2.3.x
24068   series. It fixes a pair of code security bugs and a potential anonymity
24069   issue, updates our RPM spec files, and cleans up other smaller issues.
24071   o Security fixes:
24072     - Avoid read-from-freed-memory and double-free bugs that could occur
24073       when a DNS request fails while launching it. Fixes bug 6480;
24074       bugfix on 0.2.0.1-alpha.
24075     - Avoid an uninitialized memory read when reading a vote or consensus
24076       document that has an unrecognized flavor name. This read could
24077       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
24078     - Try to leak less information about what relays a client is
24079       choosing to a side-channel attacker. Previously, a Tor client would
24080       stop iterating through the list of available relays as soon as it
24081       had chosen one, thus finishing a little earlier when it picked
24082       a router earlier in the list. If an attacker can recover this
24083       timing information (nontrivial but not proven to be impossible),
24084       they could learn some coarse-grained information about which relays
24085       a client was picking (middle nodes in particular are likelier to
24086       be affected than exits). The timing attack might be mitigated by
24087       other factors (see bug 6537 for some discussion), but it's best
24088       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
24090   o Minor features:
24091     - Try to make the warning when giving an obsolete SOCKSListenAddress
24092       a little more useful.
24093     - Terminate active server managed proxies if Tor stops being a
24094       relay. Addresses parts of bug 6274; bugfix on 0.2.3.6-alpha.
24095     - Provide a better error message about possible OSX Asciidoc failure
24096       reasons. Fixes bug 6436.
24097     - Warn when Tor is configured to use accounting in a way that can
24098       link a hidden service to some other hidden service or public
24099       address. Resolves ticket 6490.
24101   o Minor bugfixes:
24102     - Check return value of fputs() when writing authority certificate
24103       file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha.
24104     - Ignore ServerTransportPlugin lines when Tor is not configured as
24105       a relay. Fixes bug 6274; bugfix on 0.2.3.6-alpha.
24106     - When disabling guards for having too high a proportion of failed
24107       circuits, make sure to look at each guard. Fixes bug 6397; bugfix
24108       on 0.2.3.17-beta.
24110   o Packaging (RPM):
24111     - Update our default RPM spec files to work with mock and rpmbuild
24112       on RHEL/Fedora. They have an updated set of dependencies and
24113       conflicts, a fix for an ancient typo when creating the "_tor"
24114       user, and better instructions. Thanks to Ondrej Mikle for the
24115       patch series. Fixes bug 6043.
24117   o Testing:
24118     - Make it possible to set the TestingTorNetwork configuration
24119       option using AlternateDirAuthority and AlternateBridgeAuthority
24120       as an alternative to setting DirServer. Addresses ticket 6377.
24122   o Documentation:
24123     - Clarify the documentation for the Alternate*Authority options.
24124       Fixes bug 6387.
24125     - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500.
24127   o Code simplification and refactoring:
24128     - Do not use SMARTLIST_FOREACH for any loop whose body exceeds
24129       10 lines. Also, don't nest them. Doing so in the past has
24130       led to hard-to-debug code. The new style is to use the
24131       SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400.
24134 Changes in version 0.2.3.19-rc - 2012-07-06
24135   Tor 0.2.3.19-rc is the second release candidate for the Tor 0.2.3.x
24136   series. It fixes the compile on Windows, reverts to a GeoIP database
24137   that isn't as broken, and fixes a flow control bug that has been around
24138   since the beginning of Tor.
24140   o Major bugfixes:
24141     - Fix a bug handling SENDME cells on nonexistent streams that could
24142       result in bizarre window values. Report and patch contributed
24143       pseudonymously. Fixes part of bug 6271. This bug was introduced
24144       before the first Tor release, in svn commit r152.
24145     - Revert to the May 1 2012 Maxmind GeoLite Country database. In the
24146       June 2012 database, Maxmind marked many Tor relays as country "A1",
24147       which will cause risky behavior for clients that set EntryNodes
24148       or ExitNodes. Addresses bug 6334; bugfix on 0.2.3.17-beta.
24149     - Instead of ENOBUFS on Windows, say WSAENOBUFS. Fixes compilation
24150       on Windows. Fixes bug 6296; bugfix on 0.2.3.18-rc.
24152   o Minor bugfixes:
24153     - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
24154       bugfix on 0.2.1.10-alpha.
24157 Changes in version 0.2.3.18-rc - 2012-06-28
24158   Tor 0.2.3.18-rc is the first release candidate for the Tor 0.2.3.x
24159   series. It fixes a few smaller bugs, but generally appears stable.
24160   Please test it and let us know whether it is!
24162   o Major bugfixes:
24163     - Allow wildcarded mapaddress targets to be specified on the
24164       controlport. Partially fixes bug 6244; bugfix on 0.2.3.9-alpha.
24165     - Make our linker option detection code more robust against linkers
24166       such as on FreeBSD 8, where a bad combination of options completes
24167       successfully but makes an unrunnable binary. Fixes bug 6173;
24168       bugfix on 0.2.3.17-beta.
24170   o Minor bugfixes (on 0.2.2.x and earlier):
24171     - Avoid a false positive in the util/threads unit test by increasing
24172       the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha.
24173     - Replace "Sending publish request" log messages with "Launching
24174       upload", so that they no longer confusingly imply that we're
24175       sending something to a directory we might not even be connected
24176       to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha.
24177     - Make sure to set *socket_error in all error cases in
24178       connection_connect(), so it can't produce a warning about
24179       errno being zero from errno_to_orconn_end_reason(). Bugfix on
24180       0.2.1.1-alpha; resolves ticket 6028.
24181     - Downgrade "Got a certificate, but we already have it" log messages
24182       from warning to info, except when we're a dirauth. Fixes bug 5238;
24183       bugfix on 0.2.1.7-alpha.
24184     - When checking for requested signatures on the latest consensus
24185       before serving it to a client, make sure to check the right
24186       consensus flavor. Bugfix on 0.2.2.6-alpha.
24187     - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN.
24188       Fixes bug 5932; bugfix on 0.2.2.7-alpha.
24190   o Minor bugfixes (on 0.2.3.x):
24191     - Make format_helper_exit_status() avoid unnecessary space padding
24192       and stop confusing log_from_pipe(). Fixes ticket 5557; bugfix
24193       on 0.2.3.1-alpha.
24194     - Downgrade a message about cleaning the microdescriptor cache to
24195       "info" from "notice". Fixes bug 6238; bugfix on 0.2.3.1-alpha.
24196     - Log a BUG message at severity INFO if we have a networkstatus with
24197       a missing entry for some microdescriptor. Continues on a patch
24198       to 0.2.3.2-alpha.
24199     - Improve the log message when a managed proxy fails to launch. Fixes
24200       bug 5099; bugfix on 0.2.3.6-alpha.
24201     - Don't do DNS lookups when parsing corrupted managed proxy protocol
24202       messages. Fixes bug 6226; bugfix on 0.2.3.6-alpha.
24203     - When formatting wildcarded address mappings for the controller,
24204       be sure to include "*." as appropriate. Partially fixes bug 6244;
24205       bugfix on 0.2.3.9-alpha.
24206     - Avoid a warning caused by using strcspn() from glibc with clang 3.0.
24207       Bugfix on 0.2.3.13-alpha.
24208     - Stop logging messages about running with circuit timeout learning
24209       enabled at severity LD_BUG. Fixes bug 6169; bugfix on 0.2.3.17-beta.
24210     - Disable a spurious warning about reading on a marked and flushing
24211       connection. We shouldn't be doing that, but apparently we
24212       sometimes do. Fixes bug 6203; bugfix on 0.2.3.17-beta.
24213     - Fix a bug that stopped AllowDotExit from working on addresses
24214       that had an entry in the DNS cache. Fixes bug 6211; bugfix on
24215       0.2.3.17-beta.
24217   o Code simplification, refactoring, unit tests:
24218     - Move tor_gettimeofday_cached() into compat_libevent.c, and use
24219       Libevent's notion of cached time when possible.
24220     - Remove duplicate code for invoking getrlimit() from control.c.
24221     - Add a unit test for the environment_variable_names_equal function.
24223   o Documentation:
24224     - Document the --defaults-torrc option, and the new (in 0.2.3)
24225       semantics for overriding, extending, and clearing lists of
24226       options. Closes bug 4748.
24229 Changes in version 0.2.3.17-beta - 2012-06-15
24230   Tor 0.2.3.17-beta enables compiler and linker hardening by default,
24231   gets our TLS handshake back on track for being able to blend in with
24232   Firefox, fixes a big bug in 0.2.3.16-alpha that broke Tor's interaction
24233   with Vidalia, and otherwise continues to get us closer to a release
24234   candidate.
24236   o Major features:
24237     - Enable gcc and ld hardening by default. Resolves ticket 5210.
24238     - Update TLS cipher list to match Firefox 8 and later. Resolves
24239       ticket 4744.
24240     - Implement the client side of proposal 198: remove support for
24241       clients falsely claiming to support standard ciphersuites that
24242       they can actually provide. As of modern OpenSSL versions, it's not
24243       necessary to fake any standard ciphersuite, and doing so prevents
24244       us from using better ciphersuites in the future, since servers
24245       can't know whether an advertised ciphersuite is really supported or
24246       not. Some hosts -- notably, ones with very old versions of OpenSSL
24247       or where OpenSSL has been built with ECC disabled -- will stand
24248       out because of this change; TBB users should not be affected.
24250   o Major bugfixes:
24251     - Change the default value for DynamicDHGroups (introduced in
24252       0.2.3.9-alpha) to 0. This feature can make Tor relays less
24253       identifiable by their use of the mod_ssl DH group, but at
24254       the cost of some usability (#4721) and bridge tracing (#6087)
24255       regressions. Resolves ticket 5598.
24256     - Send a CRLF at the end of each STATUS_* control protocol event. This
24257       bug tickled a bug in Vidalia which would make it freeze. Fixes
24258       bug 6094; bugfix on 0.2.3.16-alpha.
24260   o Minor bugfixes:
24261     - Disable writing on marked-for-close connections when they are
24262       blocked on bandwidth, to prevent busy-looping in Libevent. Fixes
24263       bug 5263; bugfix on 0.0.2pre13, where we first added a special
24264       case for flushing marked connections.
24265     - Detect SSL handshake even when the initial attempt to write the
24266       server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha.
24267     - Change the AllowDotExit rules so they should actually work.
24268       We now enforce AllowDotExit only immediately after receiving an
24269       address via SOCKS or DNSPort: other sources are free to provide
24270       .exit addresses after the resolution occurs. Fixes bug 3940;
24271       bugfix on 0.2.2.1-alpha.
24272     - Fix a (harmless) integer overflow in cell statistics reported by
24273       some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha.
24274     - Make sure circuitbuild.c checks LearnCircuitBuildTimeout in all the
24275       right places and never depends on the consensus parameters or
24276       computes adaptive timeouts when it is disabled. Fixes bug 5049;
24277       bugfix on 0.2.2.14-alpha.
24278     - When building Tor on Windows with -DUNICODE (not default), ensure
24279       that error messages, filenames, and DNS server names are always
24280       NUL-terminated when we convert them to a single-byte encoding.
24281       Fixes bug 5909; bugfix on 0.2.2.16-alpha.
24282     - Make Tor build correctly again with -DUNICODE -D_UNICODE defined.
24283       Fixes bug 6097; bugfix on 0.2.2.16-alpha.
24284     - Fix an edge case where TestingTorNetwork is set but the authorities
24285       and relays all have an uptime of zero, where the private Tor network
24286       could briefly lack support for hidden services. Fixes bug 3886;
24287       bugfix on 0.2.2.18-alpha.
24288     - Correct the manpage's descriptions for the default values of
24289       DirReqStatistics and ExtraInfoStatistics. Fixes bug 2865; bugfix
24290       on 0.2.3.1-alpha.
24291     - Fix the documentation for the --hush and --quiet command line
24292       options, which changed their behavior back in 0.2.3.3-alpha.
24293     - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
24294       0.2.3.11-alpha.
24296   o Minor features:
24297     - Rate-limit the "Weighted bandwidth is 0.000000" message, and add
24298       more information to it, so that we can track it down in case it
24299       returns again. Mitigates bug 5235.
24300     - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in
24301       options_validate(); warn if LearnCircuitBuildTimeout is disabled and
24302       CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452.
24303     - Warn the user when HTTPProxy, but no other proxy type, is
24304       configured. This can cause surprising behavior: it doesn't send
24305       all of Tor's traffic over the HTTPProxy -- it sends unencrypted
24306       directory traffic only. Resolves ticket 4663.
24307     - Issue a notice if a guard completes less than 40% of your circuits.
24308       Threshold is configurable by torrc option PathBiasNoticeRate and
24309       consensus parameter pb_noticepct. There is additional, off-by-
24310       default code to disable guards which fail too many circuits.
24311       Addresses ticket 5458.
24312     - Update to the June 6 2012 Maxmind GeoLite Country database.
24314   o Code simplifications and refactoring:
24315     - Remove validate_pluggable_transports_config(): its warning
24316       message is now handled by connection_or_connect().
24319 Changes in version 0.2.2.37 - 2012-06-06
24320   Tor 0.2.2.37 introduces a workaround for a critical renegotiation
24321   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
24322   currently).
24324   o Major bugfixes:
24325     - Work around a bug in OpenSSL that broke renegotiation with TLS
24326       1.1 and TLS 1.2. Without this workaround, all attempts to speak
24327       the v2 Tor connection protocol when both sides were using OpenSSL
24328       1.0.1 would fail. Resolves ticket 6033.
24329     - When waiting for a client to renegotiate, don't allow it to add
24330       any bytes to the input buffer. This fixes a potential DoS issue.
24331       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
24332     - Fix an edge case where if we fetch or publish a hidden service
24333       descriptor, we might build a 4-hop circuit and then use that circuit
24334       for exiting afterwards -- even if the new last hop doesn't obey our
24335       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
24337   o Minor bugfixes:
24338     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
24339       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
24341   o Minor features:
24342     - Tell GCC and Clang to check for any errors in format strings passed
24343       to the tor_v*(print|scan)f functions.
24346 Changes in version 0.2.3.16-alpha - 2012-06-05
24347   Tor 0.2.3.16-alpha introduces a workaround for a critical renegotiation
24348   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
24349   currently). It also fixes a variety of smaller bugs and other cleanups
24350   that get us closer to a release candidate.
24352   o Major bugfixes (general):
24353     - Work around a bug in OpenSSL that broke renegotiation with TLS
24354       1.1 and TLS 1.2. Without this workaround, all attempts to speak
24355       the v2 Tor connection protocol when both sides were using OpenSSL
24356       1.0.1 would fail. Resolves ticket 6033.
24357     - When waiting for a client to renegotiate, don't allow it to add
24358       any bytes to the input buffer. This fixes a potential DoS issue.
24359       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
24360     - Pass correct OR address to managed proxies (like obfsproxy),
24361       even when ORListenAddress is used. Fixes bug 4865; bugfix on
24362       0.2.3.9-alpha.
24363     - The advertised platform of a router now includes only its operating
24364       system's name (e.g., "Linux", "Darwin", "Windows 7"), and not its
24365       service pack level (for Windows) or its CPU architecture (for Unix).
24366       We also no longer include the "git-XYZ" tag in the version. Resolves
24367       part of bug 2988.
24369   o Major bugfixes (clients):
24370     - If we are unable to find any exit that supports our predicted ports,
24371       stop calling them predicted, so that we don't loop and build
24372       hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6,
24373       which introduced predicted ports.
24374     - Fix an edge case where if we fetch or publish a hidden service
24375       descriptor, we might build a 4-hop circuit and then use that circuit
24376       for exiting afterwards -- even if the new last hop doesn't obey our
24377       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
24378     - Check at each new consensus whether our entry guards were picked
24379       long enough ago that we should rotate them. Previously, we only
24380       did this check at startup, which could lead to us holding a guard
24381       indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc.
24382     - When fetching a bridge descriptor from a bridge authority,
24383       always do so anonymously, whether we have been able to open
24384       circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha.
24385       This behavior makes it *safer* to use UpdateBridgesFromAuthority,
24386       but we'll need to wait for bug 6010 before it's actually usable.
24388   o Major bugfixes (directory authorities):
24389     - When computing weight parameters, behave more robustly in the
24390       presence of a bad bwweightscale value. Previously, the authorities
24391       would crash if they agreed on a sufficiently broken weight_scale
24392       value: now, they use a reasonable default and carry on. Partial
24393       fix for 5786; bugfix on 0.2.2.17-alpha.
24394     - Check more thoroughly to prevent a rogue authority from
24395       double-voting on any consensus directory parameter. Previously,
24396       authorities would crash in this case if the total number of
24397       votes for any parameter exceeded the number of active voters,
24398       but would let it pass otherwise. Partial fix for bug 5786; bugfix
24399       on 0.2.2.2-alpha.
24401   o Minor features:
24402     - Rate-limit log messages when asked to connect anonymously to
24403       a private address. When these hit, they tended to hit fast and
24404       often. Also, don't bother trying to connect to addresses that we
24405       are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory
24406       reply makes us think we have been lied to, even when the address the
24407       client tried to connect to was "localhost." Resolves ticket 2822.
24408     - Allow packagers to insert an extra string in server descriptor
24409       platform lines by setting the preprocessor variable TOR_BUILD_TAG.
24410       Resolves the rest of ticket 2988.
24411     - Raise the threshold of server descriptors needed (75%) and exit
24412       server descriptors needed (50%) before we will declare ourselves
24413       bootstrapped. This will make clients start building circuits a
24414       little later, but makes the initially constructed circuits less
24415       skewed and less in conflict with further directory fetches. Fixes
24416       ticket 3196.
24417     - Close any connection that sends unrecognized junk before the
24418       handshake. Solves an issue noted in bug 4369.
24419     - Improve log messages about managed transports. Resolves ticket 5070.
24420     - Tag a bridge's descriptor as "never to be sent unencrypted".
24421       This shouldn't matter, since bridges don't open non-anonymous
24422       connections to the bridge authority and don't allow unencrypted
24423       directory connections from clients, but we might as well make
24424       sure. Closes bug 5139.
24425     - Expose our view of whether we have gone dormant to the controller,
24426       via a new "GETINFO dormant" value. Torbutton and other controllers
24427       can use this to avoid doing periodic requests through Tor while
24428       it's dormant (bug 4718). Fixes bug 5954.
24429     - Tell GCC and Clang to check for any errors in format strings passed
24430       to the tor_v*(print|scan)f functions.
24431     - Update to the May 1 2012 Maxmind GeoLite Country database.
24433   o Minor bugfixes (already included in 0.2.2.36):
24434     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
24435       Fixes bug 5346; bugfix on 0.0.8pre3.
24436     - Correct parsing of certain date types in parse_http_time().
24437       Without this patch, If-Modified-Since would behave
24438       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
24439       Esteban Manchado Velázques.
24440     - Make our number-parsing functions always treat too-large values
24441       as an error, even when those values exceed the width of the
24442       underlying type. Previously, if the caller provided these
24443       functions with minima or maxima set to the extreme values of the
24444       underlying integer type, these functions would return those
24445       values on overflow rather than treating overflow as an error.
24446       Fixes part of bug 5786; bugfix on 0.0.9.
24447     - If we hit the error case where routerlist_insert() replaces an
24448       existing (old) server descriptor, make sure to remove that
24449       server descriptor from the old_routers list. Fix related to bug
24450       1776. Bugfix on 0.2.2.18-alpha.
24451     - Clarify the behavior of MaxCircuitDirtiness with hidden service
24452       circuits. Fixes issue 5259.
24454   o Minor bugfixes (coding cleanup, on 0.2.2.x and earlier):
24455     - Prevent a null-pointer dereference when receiving a data cell
24456       for a nonexistent stream when the circuit in question has an
24457       empty deliver window. We don't believe this is triggerable,
24458       since we don't currently allow deliver windows to become empty,
24459       but the logic is tricky enough that it's better to make the code
24460       robust. Fixes bug 5541; bugfix on 0.0.2pre14.
24461     - Fix a memory leak when trying to launch a DNS request when the
24462       network is disabled or the nameservers are unconfigurable. Fixes
24463       bug 5916; bugfix on Tor 0.1.2.1-alpha (for the unconfigurable
24464       nameserver case) and on 0.2.3.9-alpha (for the DisableNetwork case).
24465     - Don't hold a Windows file handle open for every file mapping;
24466       the file mapping handle is sufficient. Fixes bug 5951; bugfix on
24467       0.1.2.1-alpha.
24468     - Avoid O(n^2) performance characteristics when parsing a large
24469       extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha.
24470     - Format more doubles with %f, not %lf. Patch from grarpamp to make
24471       Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on
24472       Tor 0.2.0.8-alpha.
24473     - Make our replacement implementation of strtok_r() compatible with
24474       the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091;
24475       bugfix on 0.2.2.1-alpha.
24476     - Fix a NULL-pointer dereference on a badly formed
24477       SETCIRCUITPURPOSE command. Found by mikeyc. Fixes bug 5796;
24478       bugfix on 0.2.2.9-alpha.
24479     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
24480       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
24481     - Defensively refactor rend_mid_rendezvous() so that protocol
24482       violations and length checks happen in the beginning. Fixes
24483       bug 5645.
24484     - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
24485       that IPv6 stuff will compile on MSVC, and compilation issues
24486       will be easier to track down. Fixes bug 5861.
24488   o Minor bugfixes (correctness, on 0.2.2.x and earlier):
24489     - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as
24490       resource exhaustion, so that clients can adjust their load to
24491       try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which
24492       started using END_STREAM_REASON_RESOURCELIMIT.
24493     - Don't check for whether the address we're using for outbound
24494       connections has changed until after the outbound connection has
24495       completed. On Windows, getsockname() doesn't succeed until the
24496       connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha.
24497     - If the configuration tries to set MyFamily on a bridge, refuse to
24498       do so, and warn about the security implications. Fixes bug 4657;
24499       bugfix on 0.2.0.3-alpha.
24500     - If the client fails to set a reasonable set of ciphersuites
24501       during its v2 handshake renegotiation, allow the renegotiation to
24502       continue nevertheless (i.e. send all the required certificates).
24503       Fixes bug 4591; bugfix on 0.2.0.20-rc.
24504     - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP
24505       option is set to 0 (which Vidalia version 0.2.16 now does when
24506       a SAVECONF attempt fails), perform other actions that SIGHUP
24507       usually causes (like reopening the logs). Fixes bug 5095; bugfix
24508       on 0.2.1.9-alpha.
24509     - If we fail to write a microdescriptor to the disk cache, do not
24510       continue replacing the old microdescriptor file. Fixes bug 2954;
24511       bugfix on 0.2.2.6-alpha.
24512     - Exit nodes don't need to fetch certificates for authorities that
24513       they don't recognize; only directory authorities, bridges,
24514       and caches need to do that. Fixes part of bug 2297; bugfix on
24515       0.2.2.11-alpha.
24516     - Correctly handle checking the permissions on the parent
24517       directory of a control socket in the root directory. Bug found
24518       by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor
24519       0.2.2.26-beta.
24520     - When told to add a bridge with the same digest as a preexisting
24521       bridge but a different addr:port, change the addr:port as
24522       requested. Previously we would not notice the change. Fixes half
24523       of bug 5603; fix on 0.2.2.26-beta.
24524     - End AUTHCHALLENGE error messages (in the control protocol) with
24525       a CRLF. Fixes bug 5760; bugfix on 0.2.2.36 and 0.2.3.13-alpha.
24527   o Minor bugfixes (on 0.2.3.x):
24528     - Turn an assertion (that the number of handshakes received as a
24529       server is not < 1) into a warning. Fixes bug 4873; bugfix on
24530       0.2.3.1-alpha.
24531     - Format IPv4 addresses correctly in ADDRMAP events. (Previously,
24532       we had reversed them when the answer was cached.) Fixes bug
24533       5723; bugfix on 0.2.3.1-alpha.
24534     - Work correctly on Linux systems with accept4 support advertised in
24535       their headers, but without accept4 support in the kernel. Fix
24536       by murb. Fixes bug 5762; bugfix on 0.2.3.1-alpha.
24537     - When told to add a bridge with the same addr:port as a preexisting
24538       bridge but a different transport, change the transport as
24539       requested. Previously we would not notice the change. Fixes half
24540       of bug 5603; fix on 0.2.3.2-alpha.
24541     - Avoid a "double-reply" warning when replying to a SOCKS request
24542       with a parse error. Patch from Fabian Keil. Fixes bug 4108;
24543       bugfix on 0.2.3.4-alpha.
24544     - Fix a bug where a bridge authority crashes if it has seen no
24545       directory requests when it's time to write statistics to disk.
24546       Fixes bug 5891; bugfix on 0.2.3.6-alpha. Also fixes bug 5508 in
24547       a better way.
24548     - Don't try to open non-control listeners when DisableNetwork is set.
24549       Previously, we'd open all listeners, then immediately close them.
24550       Fixes bug 5604; bugfix on 0.2.3.9-alpha.
24551     - Don't abort the managed proxy protocol if the managed proxy
24552       sends us an unrecognized line; ignore it instead. Fixes bug
24553       5910; bugfix on 0.2.3.9-alpha.
24554     - Fix a compile warning in crypto.c when compiling with clang 3.1.
24555       Fixes bug 5969, bugfix on 0.2.3.9-alpha.
24556     - Fix a compilation issue on GNU Hurd, which doesn't have PATH_MAX.
24557       Fixes bug 5355; bugfix on 0.2.3.11-alpha.
24558     - Remove bogus definition of "_WIN32" from src/win32/orconfig.h, to
24559       unbreak the MSVC build. Fixes bug 5858; bugfix on 0.2.3.12-alpha.
24560     - Resolve numerous small warnings and build issues with MSVC. Resolves
24561       bug 5859.
24563   o Documentation fixes:
24564     - Improve the manual's documentation for the NT Service command-line
24565       options. Addresses ticket 3964.
24566     - Clarify SessionGroup documentation slightly; resolves ticket 5437.
24567     - Document the changes to the ORPort and DirPort options, and the
24568       fact that {OR/Dir}ListenAddress is now unnecessary (and
24569       therefore deprecated). Resolves ticket 5597.
24571   o Removed files:
24572     - Remove the torrc.bridge file: we don't use it for anything, and
24573       it had become badly desynchronized from torrc.sample. Resolves
24574       bug 5622.
24577 Changes in version 0.2.2.36 - 2012-05-24
24578   Tor 0.2.2.36 updates the addresses for two of the eight directory
24579   authorities, fixes some potential anonymity and security issues,
24580   and fixes several crash bugs.
24582   Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many
24583   known flaws, and nobody should be using them. You should upgrade. If
24584   you're using a Linux or BSD and its packages are obsolete, stop using
24585   those packages and upgrade anyway.
24587   o Directory authority changes:
24588     - Change IP address for maatuska (v3 directory authority).
24589     - Change IP address for ides (v3 directory authority), and rename
24590       it to turtles.
24592   o Security fixes:
24593     - When building or running with any version of OpenSSL earlier
24594       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
24595       versions have a bug (CVE-2011-4576) in which their block cipher
24596       padding includes uninitialized data, potentially leaking sensitive
24597       information to any peer with whom they make a SSLv3 connection. Tor
24598       does not use SSL v3 by default, but a hostile client or server
24599       could force an SSLv3 connection in order to gain information that
24600       they shouldn't have been able to get. The best solution here is to
24601       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
24602       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
24603       to make sure that the bug can't happen.
24604     - Never use a bridge or a controller-supplied node as an exit, even
24605       if its exit policy allows it. Found by wanoskarnet. Fixes bug
24606       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
24607       and 0.2.0.3-alpha (for bridge-purpose descriptors).
24608     - Only build circuits if we have a sufficient threshold of the total
24609       descriptors that are marked in the consensus with the "Exit"
24610       flag. This mitigates an attack proposed by wanoskarnet, in which
24611       all of a client's bridges collude to restrict the exit nodes that
24612       the client knows about. Fixes bug 5343.
24613     - Provide controllers with a safer way to implement the cookie
24614       authentication mechanism. With the old method, if another locally
24615       running program could convince a controller that it was the Tor
24616       process, then that program could trick the controller into telling
24617       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
24618       authentication method uses a challenge-response approach to prevent
24619       this attack. Fixes bug 5185; implements proposal 193.
24621   o Major bugfixes:
24622     - Avoid logging uninitialized data when unable to decode a hidden
24623       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
24624     - Avoid a client-side assertion failure when receiving an INTRODUCE2
24625       cell on a general purpose circuit. Fixes bug 5644; bugfix on
24626       0.2.1.6-alpha.
24627     - Fix builds when the path to sed, openssl, or sha1sum contains
24628       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
24629       on 0.2.2.1-alpha.
24630     - Correct our replacements for the timeradd() and timersub() functions
24631       on platforms that lack them (for example, Windows). The timersub()
24632       function is used when expiring circuits, while timeradd() is
24633       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
24634       bugfix on 0.2.2.24-alpha.
24635     - Fix the SOCKET_OK test that we use to tell when socket
24636       creation fails so that it works on Win64. Fixes part of bug 4533;
24637       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
24639   o Minor bugfixes:
24640     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
24641       Fixes bug 5346; bugfix on 0.0.8pre3.
24642     - Make our number-parsing functions always treat too-large values
24643       as an error, even when those values exceed the width of the
24644       underlying type. Previously, if the caller provided these
24645       functions with minima or maxima set to the extreme values of the
24646       underlying integer type, these functions would return those
24647       values on overflow rather than treating overflow as an error.
24648       Fixes part of bug 5786; bugfix on 0.0.9.
24649     - Older Linux kernels erroneously respond to strange nmap behavior
24650       by having accept() return successfully with a zero-length
24651       socket. When this happens, just close the connection. Previously,
24652       we would try harder to learn the remote address: but there was
24653       no such remote address to learn, and our method for trying to
24654       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
24655       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
24656     - Correct parsing of certain date types in parse_http_time().
24657       Without this patch, If-Modified-Since would behave
24658       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
24659       Esteban Manchado Velázques.
24660     - Change the BridgePassword feature (part of the "bridge community"
24661       design, which is not yet implemented) to use a time-independent
24662       comparison. The old behavior might have allowed an adversary
24663       to use timing to guess the BridgePassword value. Fixes bug 5543;
24664       bugfix on 0.2.0.14-alpha.
24665     - Detect and reject certain misformed escape sequences in
24666       configuration values. Previously, these values would cause us
24667       to crash if received in a torrc file or over an authenticated
24668       control port. Bug found by Esteban Manchado Velázquez, and
24669       independently by Robert Connolly from Matta Consulting who further
24670       noted that it allows a post-authentication heap overflow. Patch
24671       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
24672       bugfix on 0.2.0.16-alpha.
24673     - Fix a compile warning when using the --enable-openbsd-malloc
24674       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
24675     - During configure, detect when we're building with clang version
24676       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
24677       CFLAGS. clang doesn't support them yet.
24678     - When sending an HTTP/1.1 proxy request, include a Host header.
24679       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
24680     - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE
24681       command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha.
24682     - If we hit the error case where routerlist_insert() replaces an
24683       existing (old) server descriptor, make sure to remove that
24684       server descriptor from the old_routers list. Fix related to bug
24685       1776. Bugfix on 0.2.2.18-alpha.
24687   o Minor bugfixes (documentation and log messages):
24688     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
24689       Fixes bug 4856; bugfix on Tor 0.0.6.
24690     - Update "ClientOnly" man page entry to explain that there isn't
24691       really any point to messing with it. Resolves ticket 5005.
24692     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
24693       directory authority option (introduced in Tor 0.2.2.34).
24694     - Downgrade the "We're missing a certificate" message from notice
24695       to info: people kept mistaking it for a real problem, whereas it
24696       is seldom the problem even when we are failing to bootstrap. Fixes
24697       bug 5067; bugfix on 0.2.0.10-alpha.
24698     - Correctly spell "connect" in a log message on failure to create a
24699       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta.
24700     - Clarify the behavior of MaxCircuitDirtiness with hidden service
24701       circuits. Fixes issue 5259.
24703   o Minor features:
24704     - Directory authorities now reject versions of Tor older than
24705       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
24706       inclusive. These versions accounted for only a small fraction of
24707       the Tor network, and have numerous known security issues. Resolves
24708       issue 4788.
24709     - Update to the May 1 2012 Maxmind GeoLite Country database.
24711   o Feature removal:
24712     - When sending or relaying a RELAY_EARLY cell, we used to convert
24713       it to a RELAY cell if the connection was using the v1 link
24714       protocol. This was a workaround for older versions of Tor, which
24715       didn't handle RELAY_EARLY cells properly. Now that all supported
24716       versions can handle RELAY_EARLY cells, and now that we're enforcing
24717       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
24718       remove this workaround. Addresses bug 4786.
24721 Changes in version 0.2.3.15-alpha - 2012-04-30
24722   Tor 0.2.3.15-alpha fixes a variety of smaller bugs, including making
24723   the development branch build on Windows again.
24725   o Minor bugfixes (on 0.2.2.x and earlier):
24726     - Make sure that there are no unhandled pending TLS errors before
24727       reading from a TLS stream. We had checks in 0.1.0.3-rc, but
24728       lost them in 0.1.0.5-rc when we refactored read_to_buf_tls().
24729       Bugfix on 0.1.0.5-rc; fixes bug 4528.
24730     - Fix an assert that directory authorities could trigger on sighup
24731       during some configuration state transitions. We now don't treat
24732       it as a fatal error when the new descriptor we just generated in
24733       init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha.
24734     - After we pick a directory mirror, we would refuse to use it if
24735       it's in our ExcludeExitNodes list, resulting in mysterious failures
24736       to bootstrap for people who just wanted to avoid exiting from
24737       certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
24738     - When building with --enable-static-tor on OpenBSD, do not
24739       erroneously attempt to link -lrt. Fixes bug 5103.
24741   o Minor bugfixes (on 0.2.3.x):
24742     - When Tor is built with kernel headers from a recent (last few
24743       years) Linux kernel, do not fail to run on older (pre-2.6.28
24744       Linux kernels). Fixes bug 5112; bugfix on 0.2.3.1-alpha.
24745     - Fix cross-compilation issues with mingw. Bugfixes on 0.2.3.6-alpha
24746       and 0.2.3.12-alpha.
24747     - Fix compilation with miniupnpc version 1.6; patch from
24748       Anthony G. Basile. Fixes bug 5434; bugfix on 0.2.3.12-alpha.
24749     - Fix compilation with MSVC, which had defined MS_WINDOWS. Bugfix
24750       on 0.2.3.13-alpha; found and fixed by Gisle Vanem.
24751     - Fix compilation on platforms without unistd.h, or where environ
24752       is defined in stdlib.h. Fixes bug 5704; bugfix on 0.2.3.13-alpha.
24754   o Minor features:
24755     - Directory authorities are now a little more lenient at accepting
24756       older router descriptors, or newer router descriptors that don't
24757       make big changes. This should help ameliorate past and future
24758       issues where routers think they have uploaded valid descriptors,
24759       but the authorities don't think so. Fix for ticket 2479.
24760     - Make the code that clients use to detect an address change be
24761       IPv6-aware, so that it won't fill clients' logs with error
24762       messages when trying to get the IPv4 address of an IPv6
24763       connection. Implements ticket 5537.
24765   o Removed features:
24766     - Remove the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays option;
24767       authorities needed to use it for a while to keep the network working
24768       as people upgraded to 0.2.1.31, 0.2.2.34, or 0.2.3.6-alpha, but
24769       that was six months ago. As of now, it should no longer be needed
24770       or used.
24773 Changes in version 0.2.3.14-alpha - 2012-04-23
24774   Tor 0.2.3.14-alpha fixes yet more bugs to get us closer to a release
24775   candidate. It also dramatically speeds up AES: fast relays should
24776   consider switching to the newer OpenSSL library.
24778   o Directory authority changes:
24779     - Change IP address for ides (v3 directory authority), and rename
24780       it to turtles.
24782   o Major bugfixes:
24783     - Avoid logging uninitialized data when unable to decode a hidden
24784       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
24785     - Avoid a client-side assertion failure when receiving an INTRODUCE2
24786       cell on a general purpose circuit. Fixes bug 5644; bugfix on
24787       0.2.1.6-alpha.
24788     - If authorities are unable to get a v2 consensus document from other
24789       directory authorities, they no longer fall back to fetching
24790       them from regular directory caches. Fixes bug 5635; bugfix on
24791       0.2.2.26-beta, where routers stopped downloading v2 consensus
24792       documents entirely.
24793     - When we start a Tor client with a normal consensus already cached,
24794       be willing to download a microdescriptor consensus. Fixes bug 4011;
24795       fix on 0.2.3.1-alpha.
24797   o Major features (performance):
24798     - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64
24799       instruction set, take advantage of OpenSSL's AESNI, bitsliced, or
24800       vectorized AES implementations as appropriate. These can be much,
24801       much faster than other AES implementations.
24803   o Minor bugfixes (0.2.2.x and earlier):
24804     - Don't launch more than 10 service-side introduction-point circuits
24805       for a hidden service in five minutes. Previously, we would consider
24806       launching more introduction-point circuits if at least one second
24807       had passed without any introduction-point circuits failing. Fixes
24808       bug 4607; bugfix on 0.0.7pre1.
24809     - Change the BridgePassword feature (part of the "bridge community"
24810       design, which is not yet implemented) to use a time-independent
24811       comparison. The old behavior might have allowed an adversary
24812       to use timing to guess the BridgePassword value. Fixes bug 5543;
24813       bugfix on 0.2.0.14-alpha.
24814     - Enforce correct return behavior of tor_vsscanf() when the '%%'
24815       pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13.
24816     - When sending an HTTP/1.1 proxy request, include a Host header.
24817       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
24818     - Don't log that we have "decided to publish new relay descriptor"
24819       unless we are actually publishing a descriptor. Fixes bug 3942;
24820       bugfix on 0.2.2.28-beta.
24822   o Minor bugfixes (0.2.3.x):
24823     - Fix a bug where a bridge authority crashes (on a failed assert)
24824       if it has seen no directory requests when it's time to write
24825       statistics to disk. Fixes bug 5508. Bugfix on 0.2.3.6-alpha.
24826     - Fix bug stomping on ORPort option NoListen and ignoring option
24827       NoAdvertise. Fixes bug 5151; bugfix on 0.2.3.9-alpha.
24828     - In the testsuite, provide a large enough buffer in the tor_sscanf
24829       unit test. Otherwise we'd overrun that buffer and crash during
24830       the unit tests. Found by weasel. Fixes bug 5449; bugfix on
24831       0.2.3.12-alpha.
24832     - Make sure we create the keys directory if it doesn't exist and we're
24833       about to store the dynamic Diffie-Hellman parameters. Fixes bug
24834       5572; bugfix on 0.2.3.13-alpha.
24835     - Fix a small memory leak when trying to decode incorrect base16
24836       authenticator during SAFECOOKIE authentication. Found by
24837       Coverity Scan. Fixes CID 507. Bugfix on 0.2.3.13-alpha.
24839   o Minor features:
24840     - Add more information to a log statement that might help track down
24841       bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
24842       non-IP address" messages (or any Bug messages, for that matter!),
24843       please let us know about it.
24844     - Relays now understand an IPv6 address when they get one from a
24845       directory server. Resolves ticket 4875.
24846     - Resolve IPv6 addresses in bridge and entry statistics to country
24847       code "??" which means we at least count them. Resolves ticket 5053;
24848       improves on 0.2.3.9-alpha.
24849     - Update to the April 3 2012 Maxmind GeoLite Country database.
24850     - Begin a doc/state-contents.txt file to explain the contents of
24851       the Tor state file. Fixes bug 2987.
24853   o Default torrc changes:
24854     - Stop listing "socksport 9050" in torrc.sample. We open a socks
24855       port on 9050 by default anyway, so this should not change anything
24856       in practice.
24857     - Stop mentioning the deprecated *ListenAddress options in
24858       torrc.sample. Fixes bug 5438.
24859     - Document unit of bandwidth related options in sample torrc.
24860       Fixes bug 5621.
24862   o Removed features:
24863     - The "torify" script no longer supports the "tsocks" socksifier
24864       tool, since tsocks doesn't support DNS and UDP right for Tor.
24865       Everyone should be using torsocks instead. Fixes bugs 3530 and
24866       5180. Based on a patch by "ugh".
24868   o Code refactoring:
24869     - Change the symmetric cipher interface so that creating and
24870       initializing a stream cipher are no longer separate functions.
24871     - Remove all internal support for unpadded RSA. We never used it, and
24872       it would be a bad idea to start.
24875 Changes in version 0.2.3.13-alpha - 2012-03-26
24876   Tor 0.2.3.13-alpha fixes a variety of stability and correctness bugs
24877   in managed pluggable transports, as well as providing other cleanups
24878   that get us closer to a release candidate.
24880   o Directory authority changes:
24881     - Change IP address for maatuska (v3 directory authority).
24883   o Security fixes:
24884     - Provide controllers with a safer way to implement the cookie
24885       authentication mechanism. With the old method, if another locally
24886       running program could convince a controller that it was the Tor
24887       process, then that program could trick the controller into telling
24888       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
24889       authentication method uses a challenge-response approach to prevent
24890       this attack. Fixes bug 5185, implements proposal 193.
24891     - Never use a bridge or a controller-supplied node as an exit, even
24892       if its exit policy allows it. Found by wanoskarnet. Fixes bug
24893       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
24894       and 0.2.0.3-alpha (for bridge-purpose descriptors).
24895     - Only build circuits if we have a sufficient threshold of the total
24896       descriptors that are marked in the consensus with the "Exit"
24897       flag. This mitigates an attack proposed by wanoskarnet, in which
24898       all of a client's bridges collude to restrict the exit nodes that
24899       the client knows about. Fixes bug 5343.
24901   o Major bugfixes (on Tor 0.2.3.x):
24902     - Avoid an assert when managed proxies like obfsproxy are configured,
24903       and we receive HUP signals or setconf attempts too rapidly. This
24904       situation happens most commonly when Vidalia tries to attach to
24905       Tor or tries to configure the Tor it's attached to. Fixes bug 5084;
24906       bugfix on 0.2.3.6-alpha.
24907     - Fix a relay-side pluggable transports bug where managed proxies were
24908       unreachable from the Internet, because Tor asked them to bind on
24909       localhost. Fixes bug 4725; bugfix on 0.2.3.9-alpha.
24910     - Stop discarding command-line arguments when TestingTorNetwork
24911       is set. Discovered by Kevin Bauer. Fixes bug 5373; bugfix on
24912       0.2.3.9-alpha, where task 4552 added support for two layers of
24913       torrc files.
24914     - Resume allowing the unit tests to run in gdb. This was accidentally
24915       made impossible when the DisableDebuggerAttachment option was
24916       introduced. Fixes bug 5448; bugfix on 0.2.3.9-alpha.
24917     - Resume building with nat-pmp support. Fixes bug 4955; bugfix on
24918       0.2.3.11-alpha. Reported by Anthony G. Basile.
24920   o Minor bugfixes (on 0.2.2.x and earlier):
24921     - Ensure we don't cannibalize circuits that are longer than three hops
24922       already, so we don't end up making circuits with 5 or more
24923       hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on
24924       0.1.0.1-rc which introduced cannibalization.
24925     - Detect and reject certain misformed escape sequences in
24926       configuration values. Previously, these values would cause us
24927       to crash if received in a torrc file or over an authenticated
24928       control port. Bug found by Esteban Manchado Velázquez, and
24929       independently by Robert Connolly from Matta Consulting who further
24930       noted that it allows a post-authentication heap overflow. Patch
24931       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
24932       bugfix on 0.2.0.16-alpha.
24933     - Fix a compile warning when using the --enable-openbsd-malloc
24934       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
24935     - Directory caches no longer refuse to clean out descriptors because
24936       of missing v2 networkstatus documents, unless they're configured
24937       to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on
24938       0.2.2.26-beta. Patch by Daniel Bryg.
24939     - Update to the latest version of the tinytest unit testing framework.
24940       This includes a couple of bugfixes that can be relevant for
24941       running forked unit tests on Windows, and removes all reserved
24942       identifiers.
24944   o Minor bugfixes (on 0.2.3.x):
24945     - On a failed pipe() call, don't leak file descriptors. Fixes bug
24946       4296; bugfix on 0.2.3.1-alpha.
24947     - Spec conformance: on a v3 handshake, do not send a NETINFO cell
24948       until after we have received a CERTS cell. Fixes bug 4361; bugfix
24949       on 0.2.3.6-alpha. Patch by "frosty".
24950     - When binding to an IPv6 address, set the IPV6_V6ONLY socket
24951       option, so that the IP stack doesn't decide to use it for IPv4
24952       too. Fixes bug 4760; bugfix on 0.2.3.9-alpha.
24953     - Ensure that variables set in Tor's environment cannot override
24954       environment variables that Tor passes to a managed
24955       pluggable-transport proxy. Previously, Tor would pass every
24956       variable in its environment to managed proxies along with the new
24957       ones, in such a way that on many operating systems, the inherited
24958       environment variables would override those which Tor tried to
24959       explicitly set. Bugfix on 0.2.3.12-alpha for most Unixoid systems;
24960       bugfix on 0.2.3.9-alpha for Windows.
24962   o Minor features:
24963     - A wide variety of new unit tests by Esteban Manchado Velázquez.
24964     - Shorten links in the tor-exit-notice file. Patch by Christian Kujau.
24965     - Update to the March 6 2012 Maxmind GeoLite Country database.
24968 Changes in version 0.2.3.12-alpha - 2012-02-13
24969   Tor 0.2.3.12-alpha lets fast exit relays scale better, allows clients
24970   to use bridges that run Tor 0.2.2.x, and resolves several big bugs
24971   when Tor is configured to use a pluggable transport like obfsproxy.
24973   o Major bugfixes:
24974     - Fix builds when the path to sed, openssl, or sha1sum contains
24975       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
24976       on 0.2.2.1-alpha.
24977     - Set the SO_REUSEADDR socket option before we call bind() on outgoing
24978       connections. This change should allow busy exit relays to stop
24979       running out of available sockets as quickly. Fixes bug 4950;
24980       bugfix on 0.2.2.26-beta.
24981     - Allow 0.2.3.x clients to use 0.2.2.x bridges. Previously the client
24982       would ask the bridge for microdescriptors, which are only supported
24983       in 0.2.3.x, and then fail to bootstrap when it didn't get the
24984       answers it wanted. Fixes bug 4013; bugfix on 0.2.3.2-alpha.
24985     - Properly set up obfsproxy's environment when in managed mode. The
24986       Tor Browser Bundle needs LD_LIBRARY_PATH to be passed to obfsproxy,
24987       and when you run your Tor as a daemon, there's no HOME. Fixes bugs
24988       5076 and 5082; bugfix on 0.2.3.6-alpha.
24990   o Minor features:
24991     - Use the dead_strip option when building Tor on OS X. This reduces
24992       binary size by almost 19% when linking openssl and libevent
24993       statically, which we do for Tor Browser Bundle.
24994     - Fix broken URLs in the sample torrc file, and tell readers about
24995       the OutboundBindAddress, ExitPolicyRejectPrivate, and
24996       PublishServerDescriptor options. Addresses bug 4652.
24997     - Update to the February 7 2012 Maxmind GeoLite Country database.
24999   o Minor bugfixes:
25000     - Downgrade the "We're missing a certificate" message from notice
25001       to info: people kept mistaking it for a real problem, whereas it
25002       is seldom the problem even when we are failing to bootstrap. Fixes
25003       bug 5067; bugfix on 0.2.0.10-alpha.
25004     - Don't put "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200" in a
25005       managed pluggable transport server proxy's environment.
25006       Previously, we would put it there, even though Tor doesn't
25007       implement an 'extended server port' yet, and even though Tor
25008       almost certainly isn't listening at that address. For now, we set
25009       it to an empty string to avoid crashing older obfsproxies. Bugfix
25010       on 0.2.3.6-alpha.
25011     - Log the heartbeat message every HeartbeatPeriod seconds, not every
25012       HeartbeatPeriod + 1 seconds. Fixes bug 4942; bugfix on
25013       0.2.3.1-alpha. Bug reported by Scott Bennett.
25014     - Calculate absolute paths correctly on Windows. Fixes bug 4973;
25015       bugfix on 0.2.3.11-alpha.
25016     - Update "ClientOnly" man page entry to explain that there isn't
25017       really any point to messing with it. Resolves ticket 5005.
25018     - Use the correct CVE number for CVE-2011-4576 in our comments and
25019       log messages. Found by "fermenthor". Resolves bug 5066; bugfix on
25020       0.2.3.11-alpha.
25022   o Code simplifications and refactoring:
25023     - Use the _WIN32 macro throughout our code to detect Windows.
25024       (Previously we had used the obsolete 'WIN32' and the idiosyncratic
25025       'MS_WINDOWS'.)
25028 Changes in version 0.2.3.11-alpha - 2012-01-22
25029   Tor 0.2.3.11-alpha marks feature-freeze for the 0.2.3 tree. It deploys
25030   the last step of the plan to limit maximum circuit length, includes
25031   a wide variety of hidden service performance and correctness fixes,
25032   works around an OpenSSL security flaw if your distro is too stubborn
25033   to upgrade, and fixes a bunch of smaller issues.
25035   o Major features:
25036     - Now that Tor 0.2.0.x is completely deprecated, enable the final
25037       part of "Proposal 110: Avoiding infinite length circuits" by
25038       refusing all circuit-extend requests that do not use a relay_early
25039       cell. This change helps Tor resist a class of denial-of-service
25040       attacks by limiting the maximum circuit length.
25041     - Adjust the number of introduction points that a hidden service
25042       will try to maintain based on how long its introduction points
25043       remain in use and how many introductions they handle. Fixes
25044       part of bug 3825.
25045     - Try to use system facilities for enumerating local interface
25046       addresses, before falling back to our old approach (which was
25047       binding a UDP socket, and calling getsockname() on it). That
25048       approach was scaring OS X users whose draconian firewall
25049       software warned about binding to UDP sockets, regardless of
25050       whether packets were sent. Now we try to use getifaddrs(),
25051       SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the
25052       system supports. Resolves ticket 1827.
25054   o Major security workaround:
25055     - When building or running with any version of OpenSSL earlier
25056       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
25057       versions have a bug (CVE-2011-4576) in which their block cipher
25058       padding includes uninitialized data, potentially leaking sensitive
25059       information to any peer with whom they make a SSLv3 connection. Tor
25060       does not use SSL v3 by default, but a hostile client or server
25061       could force an SSLv3 connection in order to gain information that
25062       they shouldn't have been able to get. The best solution here is to
25063       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
25064       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
25065       to make sure that the bug can't happen.
25067   o Major bugfixes:
25068     - Fix the SOCKET_OK test that we use to tell when socket
25069       creation fails so that it works on Win64. Fixes part of bug 4533;
25070       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
25071     - Correct our replacements for the timeradd() and timersub() functions
25072       on platforms that lack them (for example, Windows). The timersub()
25073       function is used when expiring circuits, while timeradd() is
25074       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
25075       bugfix on 0.2.2.24-alpha and 0.2.3.1-alpha.
25076     - Do not use OpenSSL 1.0.0's counter mode: it has a critical bug
25077       that was fixed in OpenSSL 1.0.0a. We test for the counter mode
25078       bug at runtime, not compile time, because some distributions hack
25079       their OpenSSL to mis-report its version. Fixes bug 4779; bugfix
25080       on 0.2.3.9-alpha. Found by Pascal.
25082   o Minor features (controller):
25083     - Use absolute path names when reporting the torrc filename in the
25084       control protocol, so a controller can more easily find the torrc
25085       file. Resolves bug 1101.
25086     - Extend the control protocol to report flags that control a circuit's
25087       path selection in CIRC events and in replies to 'GETINFO
25088       circuit-status'. Implements part of ticket 2411.
25089     - Extend the control protocol to report the hidden service address
25090       and current state of a hidden-service-related circuit in CIRC
25091       events and in replies to 'GETINFO circuit-status'. Implements part
25092       of ticket 2411.
25093     - When reporting the path to the cookie file to the controller,
25094       give an absolute path. Resolves ticket 4881.
25095     - Allow controllers to request an event notification whenever a
25096       circuit is cannibalized or its purpose is changed. Implements
25097       part of ticket 3457.
25098     - Include the creation time of a circuit in CIRC and CIRC2
25099       control-port events and the list produced by the 'GETINFO
25100       circuit-status' control-port command.
25102   o Minor features (directory authorities):
25103     - Directory authorities now reject versions of Tor older than
25104       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
25105       inclusive. These versions accounted for only a small fraction of
25106       the Tor network, and have numerous known security issues. Resolves
25107       issue 4788.
25108     - Authority operators can now vote for all relays in a given
25109       set of countries to be BadDir/BadExit/Invalid/Rejected.
25110     - Provide two consensus parameters (FastFlagMinThreshold and
25111       FastFlagMaxThreshold) to control the range of allowable bandwidths
25112       for the Fast directory flag. These allow authorities to run
25113       experiments on appropriate requirements for being a "Fast" node.
25114       The AuthDirFastGuarantee config value still applies. Implements
25115       ticket 3946.
25116     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
25117       directory authority option (introduced in Tor 0.2.2.34).
25119   o Minor features (other):
25120     - Don't disable the DirPort when we cannot exceed our AccountingMax
25121       limit during this interval because the effective bandwidthrate is
25122       low enough. This is useful in a situation where AccountMax is only
25123       used as an additional safeguard or to provide statistics.
25124     - Prepend an informative header to generated dynamic_dh_params files.
25125     - If EntryNodes are given, but UseEntryGuards is set to 0, warn that
25126       EntryNodes will have no effect. Resolves issue 2571.
25127     - Log more useful messages when we fail to disable debugger
25128       attachment.
25129     - Log which authority we're missing votes from when we go to fetch
25130       them from the other auths.
25131     - Log (at debug level) whenever a circuit's purpose is changed.
25132     - Add missing documentation for the MaxClientCircuitsPending,
25133       UseMicrodescriptors, UserspaceIOCPBuffers, and
25134       _UseFilteringSSLBufferevents options, all introduced during
25135       the 0.2.3.x series.
25136     - Update to the January 3 2012 Maxmind GeoLite Country database.
25138   o Minor bugfixes (hidden services):
25139     - Don't close hidden service client circuits which have almost
25140       finished connecting to their destination when they reach
25141       the normal circuit-build timeout. Previously, we would close
25142       introduction circuits which are waiting for an acknowledgement
25143       from the introduction point, and rendezvous circuits which have
25144       been specified in an INTRODUCE1 cell sent to a hidden service,
25145       after the normal CBT. Now, we mark them as 'timed out', and launch
25146       another rendezvous attempt in parallel. This behavior change can
25147       be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout
25148       option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha.
25149     - Don't close hidden-service-side rendezvous circuits when they
25150       reach the normal circuit-build timeout. This behavior change can
25151       be disabled using the new
25152       CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the
25153       remaining part of bug 1297; bugfix on 0.2.2.2-alpha.
25154     - Make sure we never mark the wrong rendezvous circuit as having
25155       had its introduction cell acknowledged by the introduction-point
25156       relay. Previously, when we received an INTRODUCE_ACK cell on a
25157       client-side hidden-service introduction circuit, we might have
25158       marked a rendezvous circuit other than the one we specified in
25159       the INTRODUCE1 cell as INTRO_ACKED, which would have produced
25160       a warning message and interfered with the hidden service
25161       connection-establishment process. Fixes bug 4759; bugfix on
25162       0.2.3.3-alpha, when we added the stream-isolation feature which
25163       might cause Tor to open multiple rendezvous circuits for the same
25164       hidden service.
25165     - Don't trigger an assertion failure when we mark a new client-side
25166       hidden-service introduction circuit for close during the process
25167       of creating it. Fixes bug 4796; bugfix on 0.2.3.6-alpha. Reported
25168       by murb.
25170   o Minor bugfixes (log messages):
25171     - Correctly spell "connect" in a log message on failure to create a
25172       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta and
25173       0.2.3.2-alpha.
25174     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
25175       Fixes bug 4856; bugfix on Tor 0.0.6.
25176     - Fix the log message describing how we work around discovering
25177       that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
25178       4837; bugfix on 0.2.2.9-alpha.
25179     - When logging about a disallowed .exit name, do not also call it
25180       an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha.
25182   o Minor bugfixes (build fixes):
25183     - During configure, detect when we're building with clang version
25184       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
25185       CFLAGS. clang doesn't support them yet.
25186     - During configure, search for library containing cos function as
25187       libm lives in libcore on some platforms (BeOS/Haiku). Linking
25188       against libm was hard-coded before. Fixes the first part of bug
25189       4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes
25190       Pedersen.
25191     - Detect attempts to build Tor on (as yet hypothetical) versions
25192       of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial
25193       fix for bug 4533. Bugfix on 0.2.2.28-beta.
25194     - Preprocessor directives should not be put inside the arguments
25195       of a macro. This would break compilation with GCC releases prior
25196       to version 3.3. We would never recommend such an old GCC version,
25197       but it is apparently required for binary compatibility on some
25198       platforms (namely, certain builds of Haiku). Fixes the other part
25199       of bug 4727; bugfix on 0.2.3.3-alpha. Patch and analysis by Martin
25200       Hebnes Pedersen.
25202   o Minor bugfixes (other):
25203     - Older Linux kernels erroneously respond to strange nmap behavior
25204       by having accept() return successfully with a zero-length
25205       socket. When this happens, just close the connection. Previously,
25206       we would try harder to learn the remote address: but there was
25207       no such remote address to learn, and our method for trying to
25208       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
25209       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
25210     - Fix null-pointer access that could occur if TLS allocation failed.
25211       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un". This was
25212       erroneously listed as fixed in 0.2.3.9-alpha, but the fix had
25213       accidentally been reverted.
25214     - Fix our implementation of crypto_random_hostname() so it can't
25215       overflow on ridiculously large inputs. (No Tor version has ever
25216       provided this kind of bad inputs, but let's be correct in depth.)
25217       Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer.
25218     - Find more places in the code that should have been testing for
25219       invalid sockets using the SOCKET_OK macro. Required for a fix
25220       for bug 4533. Bugfix on 0.2.2.28-beta.
25221     - Fix an assertion failure when, while running with bufferevents, a
25222       connection finishes connecting after it is marked for close, but
25223       before it is closed. Fixes bug 4697; bugfix on 0.2.3.1-alpha.
25224     - test_util_spawn_background_ok() hardcoded the expected value
25225       for ENOENT to 2. This isn't portable as error numbers are
25226       platform specific, and particularly the hurd has ENOENT at
25227       0x40000002. Construct expected string at runtime, using the correct
25228       value for ENOENT. Fixes bug 4733; bugfix on 0.2.3.1-alpha.
25229     - Reject attempts to disable DisableDebuggerAttachment while Tor is
25230       running. Fixes bug 4650; bugfix on 0.2.3.9-alpha.
25231     - Use an appropriate-width type for sockets in tor-fw-helper on
25232       win64. Fixes bug 1983 at last. Bugfix on 0.2.3.9-alpha.
25234   o Feature removal:
25235     - When sending or relaying a RELAY_EARLY cell, we used to convert
25236       it to a RELAY cell if the connection was using the v1 link
25237       protocol. This was a workaround for older versions of Tor, which
25238       didn't handle RELAY_EARLY cells properly. Now that all supported
25239       versions can handle RELAY_EARLY cells, and now that we're enforcing
25240       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
25241       remove this workaround. Addresses bug 4786.
25243   o Code simplifications and refactoring:
25244     - Use OpenSSL's built-in SSL_state_string_long() instead of our
25245       own homebrewed ssl_state_to_string() replacement. Patch from
25246       Emile Snyder. Fixes bug 4653.
25247     - Use macros to indicate OpenSSL versions, so we don't need to worry
25248       about accidental hexadecimal bit shifts.
25249     - Remove some workaround code for OpenSSL 0.9.6 (which is no longer
25250       supported).
25251     - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf.
25252     - Use the smartlist_add_asprintf() alias more consistently.
25253     - Use a TOR_INVALID_SOCKET macro when initializing a socket to an
25254       invalid value, rather than just -1.
25255     - Rename a handful of old identifiers, mostly related to crypto
25256       structures and crypto functions. By convention, our "create an
25257       object" functions are called "type_new()", our "free an object"
25258       functions are called "type_free()", and our types indicate that
25259       they are types only with a final "_t". But a handful of older
25260       types and functions broke these rules, with function names like
25261       "type_create" or "subsystem_op_type", or with type names like
25262       type_env_t.
25265 Changes in version 0.2.3.10-alpha - 2011-12-16
25266   Tor 0.2.3.10-alpha fixes a critical heap-overflow security issue in
25267   Tor's buffers code. Absolutely everybody should upgrade.
25269   The bug relied on an incorrect calculation when making data continuous
25270   in one of our IO buffers, if the first chunk of the buffer was
25271   misaligned by just the wrong amount. The miscalculation would allow an
25272   attacker to overflow a piece of heap-allocated memory. To mount this
25273   attack, the attacker would need to either open a SOCKS connection to
25274   Tor's SocksPort (usually restricted to localhost), or target a Tor
25275   instance configured to make its connections through a SOCKS proxy
25276   (which Tor does not do by default).
25278   Good security practice requires that all heap-overflow bugs should be
25279   presumed to be exploitable until proven otherwise, so we are treating
25280   this as a potential code execution attack. Please upgrade immediately!
25281   This bug does not affect bufferevents-based builds of Tor. Special
25282   thanks to "Vektor" for reporting this issue to us!
25284   This release also contains a few minor bugfixes for issues discovered
25285   in 0.2.3.9-alpha.
25287   o Major bugfixes:
25288     - Fix a heap overflow bug that could occur when trying to pull
25289       data into the first chunk of a buffer, when that chunk had
25290       already had some data drained from it. Fixes CVE-2011-2778;
25291       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
25293   o Minor bugfixes:
25294     - If we can't attach streams to a rendezvous circuit when we
25295       finish connecting to a hidden service, clear the rendezvous
25296       circuit's stream-isolation state and try to attach streams
25297       again. Previously, we cleared rendezvous circuits' isolation
25298       state either too early (if they were freshly built) or not at all
25299       (if they had been built earlier and were cannibalized). Bugfix on
25300       0.2.3.3-alpha; fixes bug 4655.
25301     - Fix compilation of the libnatpmp helper on non-Windows. Bugfix on
25302       0.2.3.9-alpha; fixes bug 4691. Reported by Anthony G. Basile.
25303     - Fix an assertion failure when a relay with accounting enabled
25304       starts up while dormant. Fixes bug 4702; bugfix on 0.2.3.9-alpha.
25306   o Minor features:
25307     - Update to the December 6 2011 Maxmind GeoLite Country database.
25310 Changes in version 0.2.2.35 - 2011-12-16
25311   Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's
25312   buffers code. Absolutely everybody should upgrade.
25314   The bug relied on an incorrect calculation when making data continuous
25315   in one of our IO buffers, if the first chunk of the buffer was
25316   misaligned by just the wrong amount. The miscalculation would allow an
25317   attacker to overflow a piece of heap-allocated memory. To mount this
25318   attack, the attacker would need to either open a SOCKS connection to
25319   Tor's SocksPort (usually restricted to localhost), or target a Tor
25320   instance configured to make its connections through a SOCKS proxy
25321   (which Tor does not do by default).
25323   Good security practice requires that all heap-overflow bugs should be
25324   presumed to be exploitable until proven otherwise, so we are treating
25325   this as a potential code execution attack. Please upgrade immediately!
25326   This bug does not affect bufferevents-based builds of Tor. Special
25327   thanks to "Vektor" for reporting this issue to us!
25329   Tor 0.2.2.35 also fixes several bugs in previous versions, including
25330   crash bugs for unusual configurations, and a long-term bug that
25331   would prevent Tor from starting on Windows machines with draconian
25332   AV software.
25334   With this release, we remind everyone that 0.2.0.x has reached its
25335   formal end-of-life. Those Tor versions have many known flaws, and
25336   nobody should be using them. You should upgrade -- ideally to the
25337   0.2.2.x series. If you're using a Linux or BSD and its packages are
25338   obsolete, stop using those packages and upgrade anyway.
25340   The Tor 0.2.1.x series is also approaching its end-of-life: it will no
25341   longer receive support after some time in early 2012.
25343   o Major bugfixes:
25344     - Fix a heap overflow bug that could occur when trying to pull
25345       data into the first chunk of a buffer, when that chunk had
25346       already had some data drained from it. Fixes CVE-2011-2778;
25347       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
25348     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
25349       that it doesn't attempt to allocate a socketpair. This could cause
25350       some problems on Windows systems with overzealous firewalls. Fix for
25351       bug 4457; workaround for Libevent versions 2.0.1-alpha through
25352       2.0.15-stable.
25353     - If we mark an OR connection for close based on a cell we process,
25354       don't process any further cells on it. We already avoid further
25355       reads on marked-for-close connections, but now we also discard the
25356       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
25357       which was the first version where we might mark a connection for
25358       close based on processing a cell on it.
25359     - Correctly sanity-check that we don't underflow on a memory
25360       allocation (and then assert) for hidden service introduction
25361       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
25362       bugfix on 0.2.1.5-alpha.
25363     - Fix a memory leak when we check whether a hidden service
25364       descriptor has any usable introduction points left. Fixes bug
25365       4424. Bugfix on 0.2.2.25-alpha.
25366     - Don't crash when we're running as a relay and don't have a GeoIP
25367       file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix
25368       we've had in the 0.2.3.x branch already.
25369     - When running as a client, do not print a misleading (and plain
25370       wrong) log message that we're collecting "directory request"
25371       statistics: clients don't collect statistics. Also don't create a
25372       useless (because empty) stats file in the stats/ directory. Fixes
25373       bug 4353; bugfix on 0.2.2.34.
25375   o Minor bugfixes:
25376     - Detect failure to initialize Libevent. This fix provides better
25377       detection for future instances of bug 4457.
25378     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
25379       function. This was eating up hideously large amounts of time on some
25380       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
25381     - Resolve an integer overflow bug in smartlist_ensure_capacity().
25382       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
25383       Mansour Moufid.
25384     - Don't warn about unused log_mutex in log.c when building with
25385       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
25386       0.1.0.6-rc which introduced --disable-threads.
25387     - When configuring, starting, or stopping an NT service, stop
25388       immediately after the service configuration attempt has succeeded
25389       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
25390     - When sending a NETINFO cell, include the original address
25391       received for the other side, not its canonical address. Found
25392       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
25393     - Fix a typo in a hibernation-related log message. Fixes bug 4331;
25394       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
25395     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
25396       occurred when a client tried to fetch a descriptor for a bridge
25397       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
25398     - Backport fixes for a pair of compilation warnings on Windows.
25399       Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta.
25400     - If we had ever tried to call tor_addr_to_str on an address of
25401       unknown type, we would have done a strdup on an uninitialized
25402       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
25403       Reported by "troll_un".
25404     - Correctly detect and handle transient lookup failures from
25405       tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
25406       Reported by "troll_un".
25407     - Fix null-pointer access that could occur if TLS allocation failed.
25408       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
25409     - Use tor_socket_t type for listener argument to accept(). Fixes bug
25410       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
25412   o Minor features:
25413     - Add two new config options for directory authorities:
25414       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
25415       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
25416       that is always sufficient to satisfy the bandwidth requirement for
25417       the Guard flag. Now it will be easier for researchers to simulate
25418       Tor networks with different values. Resolves ticket 4484.
25419     - When Tor ignores a hidden service specified in its configuration,
25420       include the hidden service's directory in the warning message.
25421       Previously, we would only tell the user that some hidden service
25422       was ignored. Bugfix on 0.0.6; fixes bug 4426.
25423     - Update to the December 6 2011 Maxmind GeoLite Country database.
25425   o Packaging changes:
25426     - Make it easier to automate expert package builds on Windows,
25427       by removing an absolute path from makensis.exe command.
25430 Changes in version 0.2.1.32 - 2011-12-16
25431   Tor 0.2.1.32 backports important security and privacy fixes for
25432   oldstable. This release is intended only for package maintainers and
25433   others who cannot use the 0.2.2 stable series. All others should be
25434   using Tor 0.2.2.x or newer.
25436   The Tor 0.2.1.x series will reach formal end-of-life some time in
25437   early 2012; we will stop releasing patches for it then.
25439   o Major bugfixes (also included in 0.2.2.x):
25440     - Correctly sanity-check that we don't underflow on a memory
25441       allocation (and then assert) for hidden service introduction
25442       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
25443       bugfix on 0.2.1.5-alpha.
25444     - Fix a heap overflow bug that could occur when trying to pull
25445       data into the first chunk of a buffer, when that chunk had
25446       already had some data drained from it. Fixes CVE-2011-2778;
25447       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
25449   o Minor features:
25450     - Update to the December 6 2011 Maxmind GeoLite Country database.
25453 Changes in version 0.2.3.9-alpha - 2011-12-08
25454   Tor 0.2.3.9-alpha introduces initial IPv6 support for bridges, adds
25455   a "DisableNetwork" security feature that bundles can use to avoid
25456   touching the network until bridges are configured, moves forward on
25457   the pluggable transport design, fixes a flaw in the hidden service
25458   design that unnecessarily prevented clients with wrong clocks from
25459   reaching hidden services, and fixes a wide variety of other issues.
25461   o Major features:
25462     - Clients can now connect to private bridges over IPv6. Bridges
25463       still need at least one IPv4 address in order to connect to
25464       other relays. Note that we don't yet handle the case where the
25465       user has two bridge lines for the same bridge (one IPv4, one
25466       IPv6). Implements parts of proposal 186.
25467     - New "DisableNetwork" config option to prevent Tor from launching any
25468       connections or accepting any connections except on a control port.
25469       Bundles and controllers can set this option before letting Tor talk
25470       to the rest of the network, for example to prevent any connections
25471       to a non-bridge address. Packages like Orbot can also use this
25472       option to instruct Tor to save power when the network is off.
25473     - Clients and bridges can now be configured to use a separate
25474       "transport" proxy. This approach makes the censorship arms race
25475       easier by allowing bridges to use protocol obfuscation plugins. It
25476       implements the "managed proxy" part of proposal 180 (ticket 3472).
25477     - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode
25478       implementation. It makes AES_CTR about 7% faster than our old one
25479       (which was about 10% faster than the one OpenSSL used to provide).
25480       Resolves ticket 4526.
25481     - Add a "tor2web mode" for clients that want to connect to hidden
25482       services non-anonymously (and possibly more quickly). As a safety
25483       measure to try to keep users from turning this on without knowing
25484       what they are doing, tor2web mode must be explicitly enabled at
25485       compile time, and a copy of Tor compiled to run in tor2web mode
25486       cannot be used as a normal Tor client. Implements feature 2553.
25487     - Add experimental support for running on Windows with IOCP and no
25488       kernel-space socket buffers. This feature is controlled by a new
25489       "UserspaceIOCPBuffers" config option (off by default), which has
25490       no effect unless Tor has been built with support for bufferevents,
25491       is running on Windows, and has enabled IOCP. This may, in the long
25492       run, help solve or mitigate bug 98.
25493     - Use a more secure consensus parameter voting algorithm. Now at
25494       least three directory authorities or a majority of them must
25495       vote on a given parameter before it will be included in the
25496       consensus. Implements proposal 178.
25498   o Major bugfixes:
25499     - Hidden services now ignore the timestamps on INTRODUCE2 cells.
25500       They used to check that the timestamp was within 30 minutes
25501       of their system clock, so they could cap the size of their
25502       replay-detection cache, but that approach unnecessarily refused
25503       service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when
25504       the v3 intro-point protocol (the first one which sent a timestamp
25505       field in the INTRODUCE2 cell) was introduced; fixes bug 3460.
25506     - Only use the EVP interface when AES acceleration is enabled,
25507       to avoid a 5-7% performance regression. Resolves issue 4525;
25508       bugfix on 0.2.3.8-alpha.
25510   o Privacy/anonymity features (bridge detection):
25511     - Make bridge SSL certificates a bit more stealthy by using random
25512       serial numbers, in the same fashion as OpenSSL when generating
25513       self-signed certificates. Implements ticket 4584.
25514     - Introduce a new config option "DynamicDHGroups", enabled by
25515       default, which provides each bridge with a unique prime DH modulus
25516       to be used during SSL handshakes. This option attempts to help
25517       against censors who might use the Apache DH modulus as a static
25518       identifier for bridges. Addresses ticket 4548.
25520   o Minor features (new/different config options):
25521     - New configuration option "DisableDebuggerAttachment" (on by default)
25522       to prevent basic debugging attachment attempts by other processes.
25523       Supports Mac OS X and Gnu/Linux. Resolves ticket 3313.
25524     - Allow MapAddress directives to specify matches against super-domains,
25525       as in "MapAddress *.torproject.org *.torproject.org.torserver.exit".
25526       Implements issue 933.
25527     - Slightly change behavior of "list" options (that is, config
25528       options that can appear more than once) when they appear both in
25529       torrc and on the command line. Previously, the command-line options
25530       would be appended to the ones from torrc. Now, the command-line
25531       options override the torrc options entirely. This new behavior
25532       allows the user to override list options (like exit policies and
25533       ports to listen on) from the command line, rather than simply
25534       appending to the list.
25535     - You can get the old (appending) command-line behavior for "list"
25536       options by prefixing the option name with a "+".
25537     - You can remove all the values for a "list" option from the command
25538       line without adding any new ones by prefixing the option name
25539       with a "/".
25540     - Add experimental support for a "defaults" torrc file to be parsed
25541       before the regular torrc. Torrc options override the defaults file's
25542       options in the same way that the command line overrides the torrc.
25543       The SAVECONF controller command saves only those options which
25544       differ between the current configuration and the defaults file. HUP
25545       reloads both files. (Note: This is an experimental feature; its
25546       behavior will probably be refined in future 0.2.3.x-alpha versions
25547       to better meet packagers' needs.) Implements task 4552.
25549   o Minor features:
25550     - Try to make the introductory warning message that Tor prints on
25551       startup more useful for actually finding help and information.
25552       Resolves ticket 2474.
25553     - Running "make version" now displays the version of Tor that
25554       we're about to build. Idea from katmagic; resolves issue 4400.
25555     - Expire old or over-used hidden service introduction points.
25556       Required by fix for bug 3460.
25557     - Move the replay-detection cache for the RSA-encrypted parts of
25558       INTRODUCE2 cells to the introduction point data structures.
25559       Previously, we would use one replay-detection cache per hidden
25560       service. Required by fix for bug 3460.
25561     - Reduce the lifetime of elements of hidden services' Diffie-Hellman
25562       public key replay-detection cache from 60 minutes to 5 minutes. This
25563       replay-detection cache is now used only to detect multiple
25564       INTRODUCE2 cells specifying the same rendezvous point, so we can
25565       avoid launching multiple simultaneous attempts to connect to it.
25567   o Minor bugfixes (on Tor 0.2.2.x and earlier):
25568     - Resolve an integer overflow bug in smartlist_ensure_capacity().
25569       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
25570       Mansour Moufid.
25571     - Fix a minor formatting issue in one of tor-gencert's error messages.
25572       Fixes bug 4574.
25573     - Prevent a false positive from the check-spaces script, by disabling
25574       the "whitespace between function name and (" check for functions
25575       named 'op()'.
25576     - Fix a log message suggesting that people contact a non-existent
25577       email address. Fixes bug 3448.
25578     - Fix null-pointer access that could occur if TLS allocation failed.
25579       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
25580     - Report a real bootstrap problem to the controller on router
25581       identity mismatch. Previously we just said "foo", which probably
25582       made a lot of sense at the time. Fixes bug 4169; bugfix on
25583       0.2.1.1-alpha.
25584     - If we had ever tried to call tor_addr_to_str() on an address of
25585       unknown type, we would have done a strdup() on an uninitialized
25586       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
25587       Reported by "troll_un".
25588     - Correctly detect and handle transient lookup failures from
25589       tor_addr_lookup(). Fixes bug 4530; bugfix on 0.2.1.5-alpha.
25590       Reported by "troll_un".
25591     - Use tor_socket_t type for listener argument to accept(). Fixes bug
25592       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
25593     - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes
25594       bug 4532; found by "troll_un".
25596   o Minor bugfixes (on Tor 0.2.3.x):
25597     - Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
25598       fixes bug 4554.
25599     - Don't send two ESTABLISH_RENDEZVOUS cells when opening a new
25600       circuit for use as a hidden service client's rendezvous point.
25601       Fixes bugs 4641 and 4171; bugfix on 0.2.3.3-alpha. Diagnosed
25602       with help from wanoskarnet.
25603     - Restore behavior of overriding SocksPort, ORPort, and similar
25604       options from the command line. Bugfix on 0.2.3.3-alpha.
25606   o Build fixes:
25607     - Properly handle the case where the build-tree is not the same
25608       as the source tree when generating src/common/common_sha1.i,
25609       src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953;
25610       bugfix on 0.2.0.1-alpha.
25612   o Code simplifications, cleanups, and refactorings:
25613     - Remove the pure attribute from all functions that used it
25614       previously. In many cases we assigned it incorrectly, because the
25615       functions might assert or call impure functions, and we don't have
25616       evidence that keeping the pure attribute is worthwhile. Implements
25617       changes suggested in ticket 4421.
25618     - Remove some dead code spotted by coverity. Fixes cid 432.
25619       Bugfix on 0.2.3.1-alpha, closes bug 4637.
25622 Changes in version 0.2.3.8-alpha - 2011-11-22
25623   Tor 0.2.3.8-alpha fixes some crash and assert bugs, including a
25624   socketpair-related bug that has been bothering Windows users. It adds
25625   support to serve microdescriptors to controllers, so Vidalia's network
25626   map can resume listing relays (once Vidalia implements its side),
25627   and adds better support for hardware AES acceleration. Finally, it
25628   starts the process of adjusting the bandwidth cutoff for getting the
25629   "Fast" flag from 20KB to (currently) 32KB -- preliminary results show
25630   that tiny relays harm performance more than they help network capacity.
25632   o Major bugfixes:
25633     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
25634       that it doesn't attempt to allocate a socketpair. This could cause
25635       some problems on Windows systems with overzealous firewalls. Fix for
25636       bug 4457; workaround for Libevent versions 2.0.1-alpha through
25637       2.0.15-stable.
25638     - Correctly sanity-check that we don't underflow on a memory
25639       allocation (and then assert) for hidden service introduction
25640       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
25641       bugfix on 0.2.1.5-alpha.
25642     - Remove the artificially low cutoff of 20KB to guarantee the Fast
25643       flag. In the past few years the average relay speed has picked
25644       up, and while the "top 7/8 of the network get the Fast flag" and
25645       "all relays with 20KB or more of capacity get the Fast flag" rules
25646       used to have the same result, now the top 7/8 of the network has
25647       a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489.
25648     - Fix a rare assertion failure when checking whether a v0 hidden
25649       service descriptor has any usable introduction points left, and
25650       we don't have enough information to build a circuit to the first
25651       intro point named in the descriptor. The HS client code in
25652       0.2.3.x no longer uses v0 HS descriptors, but this assertion can
25653       trigger on (and crash) v0 HS authorities. Fixes bug 4411.
25654       Bugfix on 0.2.3.1-alpha; diagnosed by frosty_un.
25655     - Make bridge authorities not crash when they are asked for their own
25656       descriptor. Bugfix on 0.2.3.7-alpha, reported by Lucky Green.
25657     - When running as a client, do not print a misleading (and plain
25658       wrong) log message that we're collecting "directory request"
25659       statistics: clients don't collect statistics. Also don't create a
25660       useless (because empty) stats file in the stats/ directory. Fixes
25661       bug 4353; bugfix on 0.2.2.34 and 0.2.3.7-alpha.
25663   o Major features:
25664     - Allow Tor controllers like Vidalia to obtain the microdescriptor
25665       for a relay by identity digest or nickname. Previously,
25666       microdescriptors were only available by their own digests, so a
25667       controller would have to ask for and parse the whole microdescriptor
25668       consensus in order to look up a single relay's microdesc. Fixes
25669       bug 3832; bugfix on 0.2.3.1-alpha.
25670     - Use OpenSSL's EVP interface for AES encryption, so that all AES
25671       operations can use hardware acceleration (if present). Resolves
25672       ticket 4442.
25674   o Minor bugfixes (on 0.2.2.x and earlier):
25675     - Detect failure to initialize Libevent. This fix provides better
25676       detection for future instances of bug 4457.
25677     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
25678       function. This was eating up hideously large amounts of time on some
25679       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
25680     - Don't warn about unused log_mutex in log.c when building with
25681       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
25682       0.1.0.6-rc which introduced --disable-threads.
25683     - Allow manual 'authenticate' commands to the controller interface
25684       from netcat (nc) as well as telnet. We were rejecting them because
25685       they didn't come with the expected whitespace at the end of the
25686       command. Bugfix on 0.1.1.1-alpha; fixes bug 2893.
25687     - Fix some (not actually triggerable) buffer size checks in usage of
25688       tor_inet_ntop. Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch
25689       by Anders Sundman.
25690     - Fix parsing of some corner-cases with tor_inet_pton(). Fixes
25691       bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman.
25692     - When configuring, starting, or stopping an NT service, stop
25693       immediately after the service configuration attempt has succeeded
25694       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
25695     - When sending a NETINFO cell, include the original address
25696       received for the other side, not its canonical address. Found
25697       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
25698     - Rename the bench_{aes,dmap} functions to test_*, so that tinytest
25699       can pick them up when the tests aren't disabled. Bugfix on
25700       0.2.2.4-alpha which introduced tinytest.
25701     - Fix a memory leak when we check whether a hidden service
25702       descriptor has any usable introduction points left. Fixes bug
25703       4424. Bugfix on 0.2.2.25-alpha.
25704     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
25705       occurred when a client tried to fetch a descriptor for a bridge
25706       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
25708   o Minor bugfixes (on 0.2.3.x):
25709     - Make util unit tests build correctly with MSVC. Bugfix on
25710       0.2.3.3-alpha. Patch by Gisle Vanem.
25711     - Successfully detect AUTH_CHALLENGE cells with no recognized
25712       authentication type listed. Fixes bug 4367; bugfix on 0.2.3.6-alpha.
25713       Found by frosty_un.
25714     - If a relay receives an AUTH_CHALLENGE cell it can't answer,
25715       it should still send a NETINFO cell to allow the connection to
25716       become open. Fixes bug 4368; fix on 0.2.3.6-alpha; bug found by
25717       "frosty".
25718     - Log less loudly when we get an invalid authentication certificate
25719       from a source other than a directory authority: it's not unusual
25720       to see invalid certs because of clock skew. Fixes bug 4370; bugfix
25721       on 0.2.3.6-alpha.
25722     - Tolerate servers with more clock skew in their authentication
25723       certificates than previously. Fixes bug 4371; bugfix on
25724       0.2.3.6-alpha.
25725     - Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
25726       on 0.2.3.4-alpha and 0.2.3.6-alpha.
25728   o Minor features:
25729     - Add two new config options for directory authorities:
25730       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
25731       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
25732       that is always sufficient to satisfy the bandwidth requirement for
25733       the Guard flag. Now it will be easier for researchers to simulate
25734       Tor networks with different values. Resolves ticket 4484.
25735     - When Tor ignores a hidden service specified in its configuration,
25736       include the hidden service's directory in the warning message.
25737       Previously, we would only tell the user that some hidden service
25738       was ignored. Bugfix on 0.0.6; fixes bug 4426.
25739     - When we fail to initialize Libevent, retry with IOCP disabled so we
25740       don't need to turn on multi-threading support in Libevent, which in
25741       turn requires a working socketpair(). This is a workaround for bug
25742       4457, which affects Libevent versions from 2.0.1-alpha through
25743       2.0.15-stable.
25744     - Detect when we try to build on a platform that doesn't define
25745       AF_UNSPEC to 0. We don't work there, so refuse to compile.
25746     - Update to the November 1 2011 Maxmind GeoLite Country database.
25748   o Packaging changes:
25749     - Make it easier to automate expert package builds on Windows,
25750       by removing an absolute path from makensis.exe command.
25752   o Code simplifications and refactoring:
25753     - Remove some redundant #include directives throughout the code.
25754       Patch from Andrea Gelmini.
25755     - Unconditionally use OpenSSL's AES implementation instead of our
25756       old built-in one. OpenSSL's AES has been better for a while, and
25757       relatively few servers should still be on any version of OpenSSL
25758       that doesn't have good optimized assembly AES.
25759     - Use the name "CERTS" consistently to refer to the new cell type;
25760       we were calling it CERT in some places and CERTS in others.
25762   o Testing:
25763     - Numerous new unit tests for functions in util.c and address.c by
25764       Anders Sundman.
25765     - The long-disabled benchmark tests are now split into their own
25766       ./src/test/bench binary.
25767     - The benchmark tests can now use more accurate timers than
25768       gettimeofday() when such timers are available.
25771 Changes in version 0.2.3.7-alpha - 2011-10-30
25772   Tor 0.2.3.7-alpha fixes a crash bug in 0.2.3.6-alpha introduced by
25773   the new v3 handshake. It also resolves yet another bridge address
25774   enumeration issue.
25776   o Major bugfixes:
25777     - If we mark an OR connection for close based on a cell we process,
25778       don't process any further cells on it. We already avoid further
25779       reads on marked-for-close connections, but now we also discard the
25780       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
25781       which was the first version where we might mark a connection for
25782       close based on processing a cell on it.
25783     - Fix a double-free bug that would occur when we received an invalid
25784       certificate in a CERT cell in the new v3 handshake. Fixes bug 4343;
25785       bugfix on 0.2.3.6-alpha.
25786     - Bridges no longer include their address in NETINFO cells on outgoing
25787       OR connections, to allow them to blend in better with clients.
25788       Removes another avenue for enumerating bridges. Reported by
25789       "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO
25790       cells were introduced.
25792   o Trivial fixes:
25793     - Fixed a typo in a hibernation-related log message. Fixes bug 4331;
25794       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
25797 Changes in version 0.2.3.6-alpha - 2011-10-26
25798   Tor 0.2.3.6-alpha includes the fix from 0.2.2.34 for a critical
25799   anonymity vulnerability where an attacker can deanonymize Tor
25800   users. Everybody should upgrade.
25802   This release also features support for a new v3 connection handshake
25803   protocol, and fixes to make hidden service connections more robust.
25805   o Major features:
25806     - Implement a new handshake protocol (v3) for authenticating Tors to
25807       each other over TLS. It should be more resistant to fingerprinting
25808       than previous protocols, and should require less TLS hacking for
25809       future Tor implementations. Implements proposal 176.
25810     - Allow variable-length padding cells to disguise the length of
25811       Tor's TLS records. Implements part of proposal 184.
25813   o Privacy/anonymity fixes (clients):
25814     - Clients and bridges no longer send TLS certificate chains on
25815       outgoing OR connections. Previously, each client or bridge would
25816       use the same cert chain for all outgoing OR connections until
25817       its IP address changes, which allowed any relay that the client
25818       or bridge contacted to determine which entry guards it is using.
25819       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
25820     - If a relay receives a CREATE_FAST cell on a TLS connection, it
25821       no longer considers that connection as suitable for satisfying a
25822       circuit EXTEND request. Now relays can protect clients from the
25823       CVE-2011-2768 issue even if the clients haven't upgraded yet.
25824     - Directory authorities no longer assign the Guard flag to relays
25825       that haven't upgraded to the above "refuse EXTEND requests
25826       to client connections" fix. Now directory authorities can
25827       protect clients from the CVE-2011-2768 issue even if neither
25828       the clients nor the relays have upgraded yet. There's a new
25829       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
25830       to let us transition smoothly, else tomorrow there would be no
25831       guard relays.
25833   o Major bugfixes (hidden services):
25834     - Improve hidden service robustness: when an attempt to connect to
25835       a hidden service ends, be willing to refetch its hidden service
25836       descriptors from each of the HSDir relays responsible for them
25837       immediately. Previously, we would not consider refetching the
25838       service's descriptors from each HSDir for 15 minutes after the last
25839       fetch, which was inconvenient if the hidden service was not running
25840       during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335.
25841     - When one of a hidden service's introduction points appears to be
25842       unreachable, stop trying it. Previously, we would keep trying
25843       to build circuits to the introduction point until we lost the
25844       descriptor, usually because the user gave up and restarted Tor.
25845       Partly fixes bug 3825.
25846     - Don't launch a useless circuit after failing to use one of a
25847       hidden service's introduction points. Previously, we would
25848       launch a new introduction circuit, but not set the hidden service
25849       which that circuit was intended to connect to, so it would never
25850       actually be used. A different piece of code would then create a
25851       new introduction circuit correctly. Bug reported by katmagic and
25852       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
25854   o Major bugfixes (other):
25855     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
25856       that they initiated. Relays could distinguish incoming bridge
25857       connections from client connections, creating another avenue for
25858       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
25859       Found by "frosty_un".
25860     - Don't update the AccountingSoftLimitHitAt state file entry whenever
25861       tor gets started. This prevents a wrong average bandwidth
25862       estimate, which would cause relays to always start a new accounting
25863       interval at the earliest possible moment. Fixes bug 2003; bugfix
25864       on 0.2.2.7-alpha. Reported by BryonEldridge, who also helped
25865       immensely in tracking this bug down.
25866     - Fix a crash bug when changing node restrictions while a DNS lookup
25867       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
25868       by "Tey'".
25870   o Minor bugfixes (on 0.2.2.x and earlier):
25871     - When a hidden service turns an extra service-side introduction
25872       circuit into a general-purpose circuit, free the rend_data and
25873       intro_key fields first, so we won't leak memory if the circuit
25874       is cannibalized for use as another service-side introduction
25875       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
25876     - Rephrase the log message emitted if the TestSocks check is
25877       successful. Patch from Fabian Keil; fixes bug 4094.
25878     - Bridges now skip DNS self-tests, to act a little more stealthily.
25879       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
25880       bridges. Patch by "warms0x".
25881     - Remove a confusing dollar sign from the example fingerprint in the
25882       man page, and also make the example fingerprint a valid one. Fixes
25883       bug 4309; bugfix on 0.2.1.3-alpha.
25884     - Fix internal bug-checking logic that was supposed to catch
25885       failures in digest generation so that it will fail more robustly
25886       if we ask for a nonexistent algorithm. Found by Coverity Scan.
25887       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
25888     - Report any failure in init_keys() calls launched because our
25889       IP address has changed. Spotted by Coverity Scan. Bugfix on
25890       0.1.1.4-alpha; fixes CID 484.
25892   o Minor bugfixes (on 0.2.3.x):
25893     - Fix a bug in configure.in that kept it from building a configure
25894       script with autoconf versions earlier than 2.61. Fixes bug 2430;
25895       bugfix on 0.2.3.1-alpha.
25896     - Don't warn users that they are exposing a client port to the
25897       Internet if they have specified an RFC1918 address. Previously,
25898       we would warn if the user had specified any non-loopback
25899       address. Bugfix on 0.2.3.3-alpha. Fixes bug 4018; reported by Tas.
25900     - Fix memory leaks in the failing cases of the new SocksPort and
25901       ControlPort code. Found by Coverity Scan. Bugfix on 0.2.3.3-alpha;
25902       fixes coverity CIDs 485, 486, and 487.
25904   o Minor features:
25905     - When a hidden service's introduction point times out, consider
25906       trying it again during the next attempt to connect to the
25907       HS. Previously, we would not try it again unless a newly fetched
25908       descriptor contained it. Required by fixes for bugs 1297 and 3825.
25909     - The next version of Windows will be called Windows 8, and it has
25910       a major version of 6, minor version of 2. Correctly identify that
25911       version instead of calling it "Very recent version". Resolves
25912       ticket 4153; reported by funkstar.
25913     - The Bridge Authority now writes statistics on how many bridge
25914       descriptors it gave out in total, and how many unique descriptors
25915       it gave out. It also lists how often the most and least commonly
25916       fetched descriptors were given out, as well as the median and
25917       25th/75th percentile. Implements tickets 4200 and 4294.
25918     - Update to the October 4 2011 Maxmind GeoLite Country database.
25920   o Code simplifications and refactoring:
25921     - Remove some old code to remember statistics about which descriptors
25922       we've served as a directory mirror. The feature wasn't used and
25923       is outdated now that microdescriptors are around.
25924     - Rename Tor functions that turn strings into addresses, so that
25925       "parse" indicates that no hostname resolution occurs, and
25926       "lookup" indicates that hostname resolution may occur. This
25927       should help prevent mistakes in the future. Fixes bug 3512.
25930 Changes in version 0.2.2.34 - 2011-10-26
25931   Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker
25932   can deanonymize Tor users. Everybody should upgrade.
25934   The attack relies on four components: 1) Clients reuse their TLS cert
25935   when talking to different relays, so relays can recognize a user by
25936   the identity key in her cert. 2) An attacker who knows the client's
25937   identity key can probe each guard relay to see if that identity key
25938   is connected to that guard relay right now. 3) A variety of active
25939   attacks in the literature (starting from "Low-Cost Traffic Analysis
25940   of Tor" by Murdoch and Danezis in 2005) allow a malicious website to
25941   discover the guard relays that a Tor user visiting the website is using.
25942   4) Clients typically pick three guards at random, so the set of guards
25943   for a given user could well be a unique fingerprint for her. This
25944   release fixes components #1 and #2, which is enough to block the attack;
25945   the other two remain as open research problems. Special thanks to
25946   "frosty_un" for reporting the issue to us!
25948   Clients should upgrade so they are no longer recognizable by the TLS
25949   certs they present. Relays should upgrade so they no longer allow a
25950   remote attacker to probe them to test whether unpatched clients are
25951   currently connected to them.
25953   This release also fixes several vulnerabilities that allow an attacker
25954   to enumerate bridge relays. Some bridge enumeration attacks still
25955   remain; see for example proposal 188.
25957   o Privacy/anonymity fixes (clients):
25958     - Clients and bridges no longer send TLS certificate chains on
25959       outgoing OR connections. Previously, each client or bridge would
25960       use the same cert chain for all outgoing OR connections until
25961       its IP address changes, which allowed any relay that the client
25962       or bridge contacted to determine which entry guards it is using.
25963       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
25964     - If a relay receives a CREATE_FAST cell on a TLS connection, it
25965       no longer considers that connection as suitable for satisfying a
25966       circuit EXTEND request. Now relays can protect clients from the
25967       CVE-2011-2768 issue even if the clients haven't upgraded yet.
25968     - Directory authorities no longer assign the Guard flag to relays
25969       that haven't upgraded to the above "refuse EXTEND requests
25970       to client connections" fix. Now directory authorities can
25971       protect clients from the CVE-2011-2768 issue even if neither
25972       the clients nor the relays have upgraded yet. There's a new
25973       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
25974       to let us transition smoothly, else tomorrow there would be no
25975       guard relays.
25977   o Privacy/anonymity fixes (bridge enumeration):
25978     - Bridge relays now do their directory fetches inside Tor TLS
25979       connections, like all the other clients do, rather than connecting
25980       directly to the DirPort like public relays do. Removes another
25981       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
25982     - Bridges relays now build circuits for themselves in a more similar
25983       way to how clients build them. Removes another avenue for
25984       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
25985       when bridges were introduced.
25986     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
25987       that they initiated. Relays could distinguish incoming bridge
25988       connections from client connections, creating another avenue for
25989       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
25990       Found by "frosty_un".
25992   o Major bugfixes:
25993     - Fix a crash bug when changing node restrictions while a DNS lookup
25994       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
25995       by "Tey'".
25996     - Don't launch a useless circuit after failing to use one of a
25997       hidden service's introduction points. Previously, we would
25998       launch a new introduction circuit, but not set the hidden service
25999       which that circuit was intended to connect to, so it would never
26000       actually be used. A different piece of code would then create a
26001       new introduction circuit correctly. Bug reported by katmagic and
26002       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
26004   o Minor bugfixes:
26005     - Change an integer overflow check in the OpenBSD_Malloc code so
26006       that GCC is less likely to eliminate it as impossible. Patch
26007       from Mansour Moufid. Fixes bug 4059.
26008     - When a hidden service turns an extra service-side introduction
26009       circuit into a general-purpose circuit, free the rend_data and
26010       intro_key fields first, so we won't leak memory if the circuit
26011       is cannibalized for use as another service-side introduction
26012       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
26013     - Bridges now skip DNS self-tests, to act a little more stealthily.
26014       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
26015       bridges. Patch by "warms0x".
26016     - Fix internal bug-checking logic that was supposed to catch
26017       failures in digest generation so that it will fail more robustly
26018       if we ask for a nonexistent algorithm. Found by Coverity Scan.
26019       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
26020     - Report any failure in init_keys() calls launched because our
26021       IP address has changed. Spotted by Coverity Scan. Bugfix on
26022       0.1.1.4-alpha; fixes CID 484.
26024   o Minor bugfixes (log messages and documentation):
26025     - Remove a confusing dollar sign from the example fingerprint in the
26026       man page, and also make the example fingerprint a valid one. Fixes
26027       bug 4309; bugfix on 0.2.1.3-alpha.
26028     - The next version of Windows will be called Windows 8, and it has
26029       a major version of 6, minor version of 2. Correctly identify that
26030       version instead of calling it "Very recent version". Resolves
26031       ticket 4153; reported by funkstar.
26032     - Downgrade log messages about circuit timeout calibration from
26033       "notice" to "info": they don't require or suggest any human
26034       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
26035       bugfix on 0.2.2.14-alpha.
26037   o Minor features:
26038     - Turn on directory request statistics by default and include them in
26039       extra-info descriptors. Don't break if we have no GeoIP database.
26040       Backported from 0.2.3.1-alpha; implements ticket 3951.
26041     - Update to the October 4 2011 Maxmind GeoLite Country database.
26044 Changes in version 0.2.1.31 - 2011-10-26
26045   Tor 0.2.1.31 backports important security and privacy fixes for
26046   oldstable. This release is intended only for package maintainers and
26047   others who cannot use the 0.2.2 stable series. All others should be
26048   using Tor 0.2.2.x or newer.
26050   o Security fixes (also included in 0.2.2.x):
26051     - Replace all potentially sensitive memory comparison operations
26052       with versions whose runtime does not depend on the data being
26053       compared. This will help resist a class of attacks where an
26054       adversary can use variations in timing information to learn
26055       sensitive data. Fix for one case of bug 3122. (Safe memcmp
26056       implementation by Robert Ransom based partially on code by DJB.)
26057     - Fix an assert in parsing router descriptors containing IPv6
26058       addresses. This one took down the directory authorities when
26059       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
26061   o Privacy/anonymity fixes (also included in 0.2.2.x):
26062     - Clients and bridges no longer send TLS certificate chains on
26063       outgoing OR connections. Previously, each client or bridge would
26064       use the same cert chain for all outgoing OR connections until
26065       its IP address changes, which allowed any relay that the client
26066       or bridge contacted to determine which entry guards it is using.
26067       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
26068     - If a relay receives a CREATE_FAST cell on a TLS connection, it
26069       no longer considers that connection as suitable for satisfying a
26070       circuit EXTEND request. Now relays can protect clients from the
26071       CVE-2011-2768 issue even if the clients haven't upgraded yet.
26072     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
26073       that they initiated. Relays could distinguish incoming bridge
26074       connections from client connections, creating another avenue for
26075       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
26076       Found by "frosty_un".
26077     - When receiving a hidden service descriptor, check that it is for
26078       the hidden service we wanted. Previously, Tor would store any
26079       hidden service descriptors that a directory gave it, whether it
26080       wanted them or not. This wouldn't have let an attacker impersonate
26081       a hidden service, but it did let directories pre-seed a client
26082       with descriptors that it didn't want. Bugfix on 0.0.6.
26083     - Avoid linkability based on cached hidden service descriptors: forget
26084       all hidden service descriptors cached as a client when processing a
26085       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
26086     - Make the bridge directory authority refuse to answer directory
26087       requests for "all" descriptors. It used to include bridge
26088       descriptors in its answer, which was a major information leak.
26089       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
26090     - Don't attach new streams to old rendezvous circuits after SIGNAL
26091       NEWNYM. Previously, we would keep using an existing rendezvous
26092       circuit if it remained open (i.e. if it were kept open by a
26093       long-lived stream, or if a new stream were attached to it before
26094       Tor could notice that it was old and no longer in use). Bugfix on
26095       0.1.1.15-rc; fixes bug 3375.
26097   o Minor bugfixes (also included in 0.2.2.x):
26098     - When we restart our relay, we might get a successful connection
26099       from the outside before we've started our reachability tests,
26100       triggering a warning: "ORPort found reachable, but I have no
26101       routerinfo yet. Failing to inform controller of success." This
26102       bug was harmless unless Tor is running under a controller
26103       like Vidalia, in which case the controller would never get a
26104       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
26105       fixes bug 1172.
26106     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
26107       enabled. Fixes bug 1526.
26108     - Remove undocumented option "-F" from tor-resolve: it hasn't done
26109       anything since 0.2.1.16-rc.
26110     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
26111       None of the cases where we did this before were wrong, but by making
26112       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
26113     - Fix a rare crash bug that could occur when a client was configured
26114       with a large number of bridges. Fixes bug 2629; bugfix on
26115       0.2.1.2-alpha. Bugfix by trac user "shitlei".
26116     - Correct the warning displayed when a rendezvous descriptor exceeds
26117       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
26118       John Brooks.
26119     - Fix an uncommon assertion failure when running with DNSPort under
26120       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
26121     - When warning about missing zlib development packages during compile,
26122       give the correct package names. Bugfix on 0.2.0.1-alpha.
26123     - Require that introduction point keys and onion keys have public
26124       exponent 65537. Bugfix on 0.2.0.10-alpha.
26125     - Do not crash when our configuration file becomes unreadable, for
26126       example due to a permissions change, between when we start up
26127       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
26128       on 0.0.9pre6.
26129     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
26130       Fixes bug 3208.
26131     - Always NUL-terminate the sun_path field of a sockaddr_un before
26132       passing it to the kernel. (Not a security issue: kernels are
26133       smart enough to reject bad sockaddr_uns.) Found by Coverity;
26134       CID #428. Bugfix on Tor 0.2.0.3-alpha.
26135     - Don't stack-allocate the list of supplementary GIDs when we're
26136       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
26137       could take up to 256K, which is way too much stack. Found by
26138       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
26140   o Minor bugfixes (only in 0.2.1.x):
26141     - Resume using micro-version numbers in 0.2.1.x: our Debian packages
26142       rely on them. Bugfix on 0.2.1.30.
26143     - Use git revisions instead of svn revisions when generating our
26144       micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402.
26146   o Minor features (also included in 0.2.2.x):
26147     - Adjust the expiration time on our SSL session certificates to
26148       better match SSL certs seen in the wild. Resolves ticket 4014.
26149     - Allow nameservers with IPv6 address. Resolves bug 2574.
26150     - Update to the October 4 2011 Maxmind GeoLite Country database.
26153 Changes in version 0.2.3.5-alpha - 2011-09-28
26154   Tor 0.2.3.5-alpha fixes two bugs that make it possible to enumerate
26155   bridge relays; fixes an assertion error that many users started hitting
26156   today; and adds the ability to refill token buckets more often than
26157   once per second, allowing significant performance improvements.
26159   o Security fixes:
26160     - Bridge relays now do their directory fetches inside Tor TLS
26161       connections, like all the other clients do, rather than connecting
26162       directly to the DirPort like public relays do. Removes another
26163       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
26164     - Bridges relays now build circuits for themselves in a more similar
26165       way to how clients build them. Removes another avenue for
26166       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
26167       when bridges were introduced.
26169   o Major bugfixes:
26170     - Fix an "Assertion md->held_by_node == 1 failed" error that could
26171       occur when the same microdescriptor was referenced by two node_t
26172       objects at once. Fix for bug 4118; bugfix on Tor 0.2.3.1-alpha.
26174   o Major features (networking):
26175     - Add a new TokenBucketRefillInterval option to refill token buckets
26176       more frequently than once per second. This should improve network
26177       performance, alleviate queueing problems, and make traffic less
26178       bursty. Implements proposal 183; closes ticket 3630. Design by
26179       Florian Tschorsch and Björn Scheuermann; implementation by
26180       Florian Tschorsch.
26182   o Minor bugfixes:
26183     - Change an integer overflow check in the OpenBSD_Malloc code so
26184       that GCC is less likely to eliminate it as impossible. Patch
26185       from Mansour Moufid. Fixes bug 4059.
26187   o Minor bugfixes (usability):
26188     - Downgrade log messages about circuit timeout calibration from
26189       "notice" to "info": they don't require or suggest any human
26190       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
26191       bugfix on 0.2.2.14-alpha.
26193   o Minor features (diagnostics):
26194     - When the system call to create a listener socket fails, log the
26195       error message explaining why. This may help diagnose bug 4027.
26198 Changes in version 0.2.3.4-alpha - 2011-09-13
26199   Tor 0.2.3.4-alpha includes the fixes from 0.2.2.33, including a slight
26200   tweak to Tor's TLS handshake that makes relays and bridges that run
26201   this new version reachable from Iran again. It also fixes a few new
26202   bugs in 0.2.3.x, and teaches relays to recognize when they're not
26203   listed in the network consensus and republish.
26205   o Major bugfixes (also part of 0.2.2.33):
26206     - Avoid an assertion failure when reloading a configuration with
26207       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
26208       3923; bugfix on 0.2.2.25-alpha.
26210   o Minor features (security, also part of 0.2.2.33):
26211     - Check for replays of the public-key encrypted portion of an
26212       INTRODUCE1 cell, in addition to the current check for replays of
26213       the g^x value. This prevents a possible class of active attacks
26214       by an attacker who controls both an introduction point and a
26215       rendezvous point, and who uses the malleability of AES-CTR to
26216       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
26217       that these attacks are infeasible (requiring the attacker to send
26218       on the order of zettabytes of altered cells in a short interval),
26219       but we'd rather block them off in case there are any classes of
26220       this attack that we missed. Reported by Willem Pinckaers.
26222   o Minor features (also part of 0.2.2.33):
26223     - Adjust the expiration time on our SSL session certificates to
26224       better match SSL certs seen in the wild. Resolves ticket 4014.
26225     - Change the default required uptime for a relay to be accepted as
26226       a HSDir (hidden service directory) from 24 hours to 25 hours.
26227       Improves on 0.2.0.10-alpha; resolves ticket 2649.
26228     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
26229       authorities to abstain from voting on assignment of the HSDir
26230       consensus flag. Related to bug 2649.
26231     - Update to the September 6 2011 Maxmind GeoLite Country database.
26233   o Minor bugfixes (also part of 0.2.2.33):
26234     - Demote the 'replay detected' log message emitted when a hidden
26235       service receives the same Diffie-Hellman public key in two different
26236       INTRODUCE2 cells to info level. A normal Tor client can cause that
26237       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
26238       fixes part of bug 2442.
26239     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
26240       level. There is nothing that a hidden service's operator can do
26241       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
26242       of bug 2442.
26243     - Clarify a log message specifying the characters permitted in
26244       HiddenServiceAuthorizeClient client names. Previously, the log
26245       message said that "[A-Za-z0-9+-_]" were permitted; that could have
26246       given the impression that every ASCII character between "+" and "_"
26247       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
26249   o Build fixes (also part of 0.2.2.33):
26250     - Clean up some code issues that prevented Tor from building on older
26251       BSDs. Fixes bug 3894; reported by "grarpamp".
26252     - Search for a platform-specific version of "ar" when cross-compiling.
26253       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
26255   o Major bugfixes:
26256     - Fix a bug where the SocksPort option (for example) would get
26257       ignored and replaced by the default if a SocksListenAddress
26258       option was set. Bugfix on 0.2.3.3-alpha; fixes bug 3936. Fix by
26259       Fabian Keil.
26261   o Major features:
26262     - Relays now try regenerating and uploading their descriptor more
26263       frequently if they are not listed in the consensus, or if the
26264       version of their descriptor listed in the consensus is too
26265       old. This fix should prevent situations where a server declines
26266       to re-publish itself because it has done so too recently, even
26267       though the authorities decided not to list its recent-enough
26268       descriptor. Fix for bug 3327.
26270   o Minor features:
26271     - Relays now include a reason for regenerating their descriptors
26272       in an HTTP header when uploading to the authorities. This will
26273       make it easier to debug descriptor-upload issues in the future.
26274     - When starting as root and then changing our UID via the User
26275       control option, and we have a ControlSocket configured, make sure
26276       that the ControlSocket is owned by the same account that Tor will
26277       run under. Implements ticket 3421; fix by Jérémy Bobbio.
26279   o Minor bugfixes:
26280     - Abort if tor_vasprintf fails in connection_printf_to_buf (a
26281       utility function used in the control-port code). This shouldn't
26282       ever happen unless Tor is completely out of memory, but if it did
26283       happen and Tor somehow recovered from it, Tor could have sent a log
26284       message to a control port in the middle of a reply to a controller
26285       command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha.
26286     - Make 'FetchUselessDescriptors' cause all descriptor types and
26287       all consensus types (including microdescriptors) to get fetched.
26288       Fixes bug 3851; bugfix on 0.2.3.1-alpha.
26290   o Code refactoring:
26291     - Make a new "entry connection" struct as an internal subtype of "edge
26292       connection", to simplify the code and make exit connections smaller.
26295 Changes in version 0.2.2.33 - 2011-09-13
26296   Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's
26297   TLS handshake that makes relays and bridges that run this new version
26298   reachable from Iran again.
26300   o Major bugfixes:
26301     - Avoid an assertion failure when reloading a configuration with
26302       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
26303       3923; bugfix on 0.2.2.25-alpha.
26305   o Minor features (security):
26306     - Check for replays of the public-key encrypted portion of an
26307       INTRODUCE1 cell, in addition to the current check for replays of
26308       the g^x value. This prevents a possible class of active attacks
26309       by an attacker who controls both an introduction point and a
26310       rendezvous point, and who uses the malleability of AES-CTR to
26311       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
26312       that these attacks are infeasible (requiring the attacker to send
26313       on the order of zettabytes of altered cells in a short interval),
26314       but we'd rather block them off in case there are any classes of
26315       this attack that we missed. Reported by Willem Pinckaers.
26317   o Minor features:
26318     - Adjust the expiration time on our SSL session certificates to
26319       better match SSL certs seen in the wild. Resolves ticket 4014.
26320     - Change the default required uptime for a relay to be accepted as
26321       a HSDir (hidden service directory) from 24 hours to 25 hours.
26322       Improves on 0.2.0.10-alpha; resolves ticket 2649.
26323     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
26324       authorities to abstain from voting on assignment of the HSDir
26325       consensus flag. Related to bug 2649.
26326     - Update to the September 6 2011 Maxmind GeoLite Country database.
26328   o Minor bugfixes (documentation and log messages):
26329     - Correct the man page to explain that HashedControlPassword and
26330       CookieAuthentication can both be set, in which case either method
26331       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
26332       when we decided to allow these config options to both be set. Issue
26333       raised by bug 3898.
26334     - Demote the 'replay detected' log message emitted when a hidden
26335       service receives the same Diffie-Hellman public key in two different
26336       INTRODUCE2 cells to info level. A normal Tor client can cause that
26337       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
26338       fixes part of bug 2442.
26339     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
26340       level. There is nothing that a hidden service's operator can do
26341       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
26342       of bug 2442.
26343     - Clarify a log message specifying the characters permitted in
26344       HiddenServiceAuthorizeClient client names. Previously, the log
26345       message said that "[A-Za-z0-9+-_]" were permitted; that could have
26346       given the impression that every ASCII character between "+" and "_"
26347       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
26349   o Build fixes:
26350     - Provide a substitute implementation of lround() for MSVC, which
26351       apparently lacks it. Patch from Gisle Vanem.
26352     - Clean up some code issues that prevented Tor from building on older
26353       BSDs. Fixes bug 3894; reported by "grarpamp".
26354     - Search for a platform-specific version of "ar" when cross-compiling.
26355       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
26358 Changes in version 0.2.3.3-alpha - 2011-09-01
26359   Tor 0.2.3.3-alpha adds a new "stream isolation" feature to improve Tor's
26360   security, and provides client-side support for the microdescriptor
26361   and optimistic data features introduced earlier in the 0.2.3.x
26362   series. It also includes numerous critical bugfixes in the (optional)
26363   bufferevent-based networking backend.
26365   o Major features (stream isolation):
26366     - You can now configure Tor so that streams from different
26367       applications are isolated on different circuits, to prevent an
26368       attacker who sees your streams as they leave an exit node from
26369       linking your sessions to one another. To do this, choose some way
26370       to distinguish the applications: have them connect to different
26371       SocksPorts, or have one of them use SOCKS4 while the other uses
26372       SOCKS5, or have them pass different authentication strings to the
26373       SOCKS proxy. Then, use the new SocksPort syntax to configure the
26374       degree of isolation you need. This implements Proposal 171.
26375     - There's a new syntax for specifying multiple client ports (such as
26376       SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare
26377       multiple *Port entries with full addr:port syntax on each.
26378       The old *ListenAddress format is still supported, but you can't
26379       mix it with the new *Port syntax.
26381   o Major features (other):
26382     - Enable microdescriptor fetching by default for clients. This allows
26383       clients to download a much smaller amount of directory information.
26384       To disable it (and go back to the old-style consensus and
26385       descriptors), set "UseMicrodescriptors 0" in your torrc file.
26386     - Tor's firewall-helper feature, introduced in 0.2.3.1-alpha (see the
26387       "PortForwarding" config option), now supports Windows.
26388     - When using an exit relay running 0.2.3.x, clients can now
26389       "optimistically" send data before the exit relay reports that
26390       the stream has opened. This saves a round trip when starting
26391       connections where the client speaks first (such as web browsing).
26392       This behavior is controlled by a consensus parameter (currently
26393       disabled). To turn it on or off manually, use the "OptimisticData"
26394       torrc option. Implements proposal 181; code by Ian Goldberg.
26396   o Major bugfixes (bufferevents, fixes on 0.2.3.1-alpha):
26397     - When using IOCP on Windows, we need to enable Libevent windows
26398       threading support.
26399     - The IOCP backend now works even when the user has not specified
26400       the (internal, debugging-only) _UseFilteringSSLBufferevents option.
26401       Fixes part of bug 3752.
26402     - Correctly record the bytes we've read and written when using
26403       bufferevents, so that we can include them in our bandwidth history
26404       and advertised bandwidth. Fixes bug 3803.
26405     - Apply rate-limiting only at the bottom of a chain of filtering
26406       bufferevents. This prevents us from filling up internal read
26407       buffers and violating rate-limits when filtering bufferevents
26408       are enabled. Fixes part of bug 3804.
26409     - Add high-watermarks to the output buffers for filtered
26410       bufferevents. This prevents us from filling up internal write
26411       buffers and wasting CPU cycles when filtering bufferevents are
26412       enabled. Fixes part of bug 3804.
26413     - Correctly notice when data has been written from a bufferevent
26414       without flushing it completely. Fixes bug 3805.
26415     - Fix a bug where server-side tunneled bufferevent-based directory
26416       streams would get closed prematurely. Fixes bug 3814.
26417     - Fix a use-after-free error with per-connection rate-limiting
26418       buckets. Fixes bug 3888.
26420   o Major bugfixes (also part of 0.2.2.31-rc):
26421     - If we're configured to write our ControlPorts to disk, only write
26422       them after switching UID and creating the data directory. This way,
26423       we don't fail when starting up with a nonexistent DataDirectory
26424       and a ControlPortWriteToFile setting based on that directory. Fixes
26425       bug 3747; bugfix on Tor 0.2.2.26-beta.
26427   o Minor features:
26428     - Added a new CONF_CHANGED event so that controllers can be notified
26429       of any configuration changes made by other controllers, or by the
26430       user. Implements ticket 1692.
26431     - Use evbuffer_copyout() in inspect_evbuffer(). This fixes a memory
26432       leak when using bufferevents, and lets Libevent worry about how to
26433       best copy data out of a buffer.
26434     - Replace files in stats/ rather than appending to them. Now that we
26435       include statistics in extra-info descriptors, it makes no sense to
26436       keep old statistics forever. Implements ticket 2930.
26438   o Minor features (build compatibility):
26439     - Limited, experimental support for building with nmake and MSVC.
26440     - Provide a substitute implementation of lround() for MSVC, which
26441       apparently lacks it. Patch from Gisle Vanem.
26443   o Minor features (also part of 0.2.2.31-rc):
26444     - Update to the August 2 2011 Maxmind GeoLite Country database.
26446   o Minor bugfixes (on 0.2.3.x-alpha):
26447     - Fix a spurious warning when parsing SOCKS requests with
26448       bufferevents enabled. Fixes bug 3615; bugfix on 0.2.3.2-alpha.
26449     - Get rid of a harmless warning that could happen on relays running
26450       with bufferevents. The warning was caused by someone doing an http
26451       request to a relay's orport. Also don't warn for a few related
26452       non-errors. Fixes bug 3700; bugfix on 0.2.3.1-alpha.
26454   o Minor bugfixes (on 2.2.x and earlier):
26455     - Correct the man page to explain that HashedControlPassword and
26456       CookieAuthentication can both be set, in which case either method
26457       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
26458       when we decided to allow these config options to both be set. Issue
26459       raised by bug 3898.
26460     - The "--quiet" and "--hush" options now apply not only to Tor's
26461       behavior before logs are configured, but also to Tor's behavior in
26462       the absence of configured logs. Fixes bug 3550; bugfix on
26463       0.2.0.10-alpha.
26465   o Minor bugfixes (also part of 0.2.2.31-rc):
26466     - Write several files in text mode, on OSes that distinguish text
26467       mode from binary mode (namely, Windows). These files are:
26468       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
26469       that collect those statistics; 'client_keys' and 'hostname' for
26470       hidden services that use authentication; and (in the tor-gencert
26471       utility) newly generated identity and signing keys. Previously,
26472       we wouldn't specify text mode or binary mode, leading to an
26473       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
26474       the DirRecordUsageByCountry option which would have triggered
26475       the assertion failure was added), although this assertion failure
26476       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
26477     - Selectively disable deprecation warnings on OS X because Lion
26478       started deprecating the shipped copy of openssl. Fixes bug 3643.
26479     - Remove an extra pair of quotation marks around the error
26480       message in control-port STATUS_GENERAL BUG events. Bugfix on
26481       0.1.2.6-alpha; fixes bug 3732.
26482     - When unable to format an address as a string, report its value
26483       as "???" rather than reusing the last formatted address. Bugfix
26484       on 0.2.1.5-alpha.
26486   o Code simplifications and refactoring:
26487     - Rewrite the listener-selection logic so that parsing which ports
26488       we want to listen on is now separate from binding to the ports
26489       we want.
26491   o Build changes:
26492     - Building Tor with bufferevent support now requires Libevent
26493       2.0.13-stable or later. Previous versions of Libevent had bugs in
26494       SSL-related bufferevents and related issues that would make Tor
26495       work badly with bufferevents. Requiring 2.0.13-stable also allows
26496       Tor with bufferevents to take advantage of Libevent APIs
26497       introduced after 2.0.8-rc.
26500 Changes in version 0.2.2.32 - 2011-08-27
26501   The Tor 0.2.2 release series is dedicated to the memory of Andreas
26502   Pfitzmann (1958-2010), a pioneer in anonymity and privacy research,
26503   a founder of the PETS community, a leader in our field, a mentor,
26504   and a friend. He left us with these words: "I had the possibility
26505   to contribute to this world that is not as it should be. I hope I
26506   could help in some areas to make the world a better place, and that
26507   I could also encourage other people to be engaged in improving the
26508   world. Please, stay engaged. This world needs you, your love, your
26509   initiative -- now I cannot be part of that anymore."
26511   Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally
26512   ready. More than two years in the making, this release features improved
26513   client performance and hidden service reliability, better compatibility
26514   for Android, correct behavior for bridges that listen on more than
26515   one address, more extensible and flexible directory object handling,
26516   better reporting of network statistics, improved code security, and
26517   many many other features and bugfixes.
26520 Changes in version 0.2.2.31-rc - 2011-08-17
26521   Tor 0.2.2.31-rc is the second and hopefully final release candidate
26522   for the Tor 0.2.2.x series.
26524   o Major bugfixes:
26525     - Remove an extra pair of quotation marks around the error
26526       message in control-port STATUS_GENERAL BUG events. Bugfix on
26527       0.1.2.6-alpha; fixes bug 3732.
26528     - If we're configured to write our ControlPorts to disk, only write
26529       them after switching UID and creating the data directory. This way,
26530       we don't fail when starting up with a nonexistent DataDirectory
26531       and a ControlPortWriteToFile setting based on that directory. Fixes
26532       bug 3747; bugfix on Tor 0.2.2.26-beta.
26534   o Minor features:
26535     - Update to the August 2 2011 Maxmind GeoLite Country database.
26537   o Minor bugfixes:
26538     - Allow GETINFO fingerprint to return a fingerprint even when
26539       we have not yet built a router descriptor. Fixes bug 3577;
26540       bugfix on 0.2.0.1-alpha.
26541     - Write several files in text mode, on OSes that distinguish text
26542       mode from binary mode (namely, Windows). These files are:
26543       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
26544       that collect those statistics; 'client_keys' and 'hostname' for
26545       hidden services that use authentication; and (in the tor-gencert
26546       utility) newly generated identity and signing keys. Previously,
26547       we wouldn't specify text mode or binary mode, leading to an
26548       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
26549       the DirRecordUsageByCountry option which would have triggered
26550       the assertion failure was added), although this assertion failure
26551       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
26552     - Selectively disable deprecation warnings on OS X because Lion
26553       started deprecating the shipped copy of openssl. Fixes bug 3643.
26554     - When unable to format an address as a string, report its value
26555       as "???" rather than reusing the last formatted address. Bugfix
26556       on 0.2.1.5-alpha.
26559 Changes in version 0.2.3.2-alpha - 2011-07-18
26560   Tor 0.2.3.2-alpha introduces two new experimental features:
26561   microdescriptors and pluggable transports. It also continues cleaning
26562   up a variety of recently introduced features.
26564   o Major features:
26565     - Clients can now use microdescriptors instead of regular descriptors
26566       to build circuits. Microdescriptors are authority-generated
26567       summaries of regular descriptors' contents, designed to change
26568       very rarely (see proposal 158 for details). This feature is
26569       designed to save bandwidth, especially for clients on slow internet
26570       connections. It's off by default for now, since nearly no caches
26571       support it, but it will be on-by-default for clients in a future
26572       version. You can use the UseMicrodescriptors option to turn it on.
26573     - Tor clients using bridges can now be configured to use a separate
26574       'transport' proxy for each bridge. This approach helps to resist
26575       censorship by allowing bridges to use protocol obfuscation
26576       plugins. It implements part of proposal 180. Implements ticket 2841.
26577     - While we're trying to bootstrap, record how many TLS connections
26578       fail in each state, and report which states saw the most failures
26579       in response to any bootstrap failures. This feature may speed up
26580       diagnosis of censorship events. Implements ticket 3116.
26582   o Major bugfixes (on 0.2.3.1-alpha):
26583     - When configuring a large set of nodes in EntryNodes (as with
26584       'EntryNodes {cc}' or 'EntryNodes 1.1.1.1/16'), choose only a
26585       random subset to be guards, and choose them in random
26586       order. Fixes bug 2798.
26587     - Tor could crash when remembering a consensus in a non-used consensus
26588       flavor without having a current consensus set. Fixes bug 3361.
26589     - Comparing an unknown address to a microdescriptor's shortened exit
26590       policy would always give a "rejected" result. Fixes bug 3599.
26591     - Using microdescriptors as a client no longer prevents Tor from
26592       uploading and downloading hidden service descriptors. Fixes
26593       bug 3601.
26595   o Minor features:
26596     - Allow nameservers with IPv6 address. Resolves bug 2574.
26597     - Accept attempts to include a password authenticator in the
26598       handshake, as supported by SOCKS5. This handles SOCKS clients that
26599       don't know how to omit a password when authenticating. Resolves
26600       bug 1666.
26601     - When configuring a large set of nodes in EntryNodes, and there are
26602       enough of them listed as Guard so that we don't need to consider
26603       the non-guard entries, prefer the ones listed with the Guard flag.
26604     - Check for and recover from inconsistency in the microdescriptor
26605       cache. This will make it harder for us to accidentally free a
26606       microdescriptor without removing it from the appropriate data
26607       structures. Fixes issue 3135; issue noted by "wanoskarnet".
26608     - Log SSL state transitions at log level DEBUG, log domain
26609       HANDSHAKE. This can be useful for debugging censorship events.
26610       Implements ticket 3264.
26611     - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri;
26612       implements ticket 3439.
26614   o Minor bugfixes (on 0.2.3.1-alpha):
26615     - Do not free all general-purpose regular descriptors just
26616       because microdescriptor use is enabled. Fixes bug 3113.
26617     - Correctly link libevent_openssl when --enable-static-libevent
26618       is passed to configure. Fixes bug 3118.
26619     - Bridges should not complain during their heartbeat log messages that
26620       they are unlisted in the consensus: that's more or less the point
26621       of being a bridge. Fixes bug 3183.
26622     - Report a SIGNAL event to controllers when acting on a delayed
26623       SIGNAL NEWNYM command. Previously, we would report a SIGNAL
26624       event to the controller if we acted on a SIGNAL NEWNYM command
26625       immediately, and otherwise not report a SIGNAL event for the
26626       command at all. Fixes bug 3349.
26627     - Fix a crash when handling the SIGNAL controller command or
26628       reporting ERR-level status events with bufferevents enabled. Found
26629       by Robert Ransom. Fixes bug 3367.
26630     - Always ship the tor-fw-helper manpage in our release tarballs.
26631       Fixes bug 3389. Reported by Stephen Walker.
26632     - Fix a class of double-mark-for-close bugs when bufferevents
26633       are enabled. Fixes bug 3403.
26634     - Update tor-fw-helper to support libnatpmp-20110618. Fixes bug 3434.
26635     - Add SIGNAL to the list returned by the 'GETINFO events/names'
26636       control-port command. Fixes part of bug 3465.
26637     - Prevent using negative indices during unit test runs when read_all()
26638       fails. Spotted by coverity.
26639     - Fix a rare memory leak when checking the nodelist without it being
26640       present. Found by coverity.
26641     - Only try to download a microdescriptor-flavored consensus from
26642       a directory cache that provides them.
26644   o Minor bugfixes (on 0.2.2.x and earlier):
26645     - Assert that hidden-service-related operations are not performed
26646       using single-hop circuits. Previously, Tor would assert that
26647       client-side streams are not attached to single-hop circuits,
26648       but not that other sensitive operations on the client and service
26649       side are not performed using single-hop circuits. Fixes bug 3332;
26650       bugfix on 0.0.6.
26651     - Don't publish a new relay descriptor when we reload our onion key,
26652       unless the onion key has actually changed. Fixes bug 3263 and
26653       resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha.
26654     - Allow GETINFO fingerprint to return a fingerprint even when
26655       we have not yet built a router descriptor. Fixes bug 3577;
26656       bugfix on 0.2.0.1-alpha.
26657     - Make 'tor --digests' list hashes of all Tor source files. Bugfix
26658       on 0.2.2.4-alpha; fixes bug 3427.
26660   o Code simplification and refactoring:
26661     - Use tor_sscanf() in place of scanf() in more places through the
26662       code. This makes us a little more locale-independent, and
26663       should help shut up code-analysis tools that can't tell
26664       a safe sscanf string from a dangerous one.
26665     - Use tt_assert(), not tor_assert(), for checking for test failures.
26666       This makes the unit tests more able to go on in the event that
26667       one of them fails.
26668     - Split connection_about_to_close() into separate functions for each
26669       connection type.
26671   o Build changes:
26672     - On Windows, we now define the _WIN32_WINNT macros only if they
26673       are not already defined. This lets the person building Tor decide,
26674       if they want, to require a later version of Windows.
26677 Changes in version 0.2.2.30-rc - 2011-07-07
26678   Tor 0.2.2.30-rc is the first release candidate for the Tor 0.2.2.x
26679   series. It fixes a few smaller bugs, but generally appears stable.
26680   Please test it and let us know whether it is!
26682   o Minor bugfixes:
26683     - Send a SUCCEEDED stream event to the controller when a reverse
26684       resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
26685       discovered by katmagic.
26686     - Always NUL-terminate the sun_path field of a sockaddr_un before
26687       passing it to the kernel. (Not a security issue: kernels are
26688       smart enough to reject bad sockaddr_uns.) Found by Coverity;
26689       CID #428. Bugfix on Tor 0.2.0.3-alpha.
26690     - Don't stack-allocate the list of supplementary GIDs when we're
26691       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
26692       could take up to 256K, which is way too much stack. Found by
26693       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
26694     - Add BUILDTIMEOUT_SET to the list returned by the 'GETINFO
26695       events/names' control-port command. Bugfix on 0.2.2.9-alpha;
26696       fixes part of bug 3465.
26697     - Fix a memory leak when receiving a descriptor for a hidden
26698       service we didn't ask for. Found by Coverity; CID #30. Bugfix
26699       on 0.2.2.26-beta.
26701   o Minor features:
26702     - Update to the July 1 2011 Maxmind GeoLite Country database.
26705 Changes in version 0.2.2.29-beta - 2011-06-20
26706   Tor 0.2.2.29-beta reverts an accidental behavior change for users who
26707   have bridge lines in their torrc but don't want to use them; gets
26708   us closer to having the control socket feature working on Debian;
26709   and fixes a variety of smaller bugs.
26711   o Major bugfixes:
26712     - Revert the UseBridges option to its behavior before 0.2.2.28-beta.
26713       When we changed the default behavior to "use bridges if any
26714       are listed in the torrc", we surprised users who had bridges
26715       in their torrc files but who didn't actually want to use them.
26716       Partial resolution for bug 3354.
26718   o Privacy fixes:
26719     - Don't attach new streams to old rendezvous circuits after SIGNAL
26720       NEWNYM. Previously, we would keep using an existing rendezvous
26721       circuit if it remained open (i.e. if it were kept open by a
26722       long-lived stream, or if a new stream were attached to it before
26723       Tor could notice that it was old and no longer in use). Bugfix on
26724       0.1.1.15-rc; fixes bug 3375.
26726   o Minor bugfixes:
26727     - Fix a bug when using ControlSocketsGroupWritable with User. The
26728       directory's group would be checked against the current group, not
26729       the configured group. Patch by Jérémy Bobbio. Fixes bug 3393;
26730       bugfix on 0.2.2.26-beta.
26731     - Make connection_printf_to_buf()'s behavior sane. Its callers
26732       expect it to emit a CRLF iff the format string ends with CRLF;
26733       it actually emitted a CRLF iff (a) the format string ended with
26734       CRLF or (b) the resulting string was over 1023 characters long or
26735       (c) the format string did not end with CRLF *and* the resulting
26736       string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha;
26737       fixes part of bug 3407.
26738     - Make send_control_event_impl()'s behavior sane. Its callers
26739       expect it to always emit a CRLF at the end of the string; it
26740       might have emitted extra control characters as well. Bugfix on
26741       0.1.1.9-alpha; fixes another part of bug 3407.
26742     - Make crypto_rand_int() check the value of its input correctly.
26743       Previously, it accepted values up to UINT_MAX, but could return a
26744       negative number if given a value above INT_MAX+1. Found by George
26745       Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14.
26746     - Avoid a segfault when reading a malformed circuit build state
26747       with more than INT_MAX entries. Found by wanoskarnet. Bugfix on
26748       0.2.2.4-alpha.
26749     - When asked about a DNS record type we don't support via a
26750       client DNSPort, reply with NOTIMPL rather than an empty
26751       reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.
26752     - Fix a rare memory leak during stats writing. Found by coverity.
26754   o Minor features:
26755     - Update to the June 1 2011 Maxmind GeoLite Country database.
26757   o Code simplifications and refactoring:
26758     - Remove some dead code as indicated by coverity.
26759     - Remove a few dead assignments during router parsing. Found by
26760       coverity.
26761     - Add some forgotten return value checks during unit tests. Found
26762       by coverity.
26763     - Don't use 1-bit wide signed bit fields. Found by coverity.
26766 Changes in version 0.2.2.28-beta - 2011-06-04
26767   Tor 0.2.2.28-beta makes great progress towards a new stable release: we
26768   fixed a big bug in whether relays stay in the consensus consistently,
26769   we moved closer to handling bridges and hidden services correctly,
26770   and we started the process of better handling the dreaded "my Vidalia
26771   died, and now my Tor demands a password when I try to reconnect to it"
26772   usability issue.
26774   o Major bugfixes:
26775     - Don't decide to make a new descriptor when receiving a HUP signal.
26776       This bug has caused a lot of 0.2.2.x relays to disappear from the
26777       consensus periodically. Fixes the most common case of triggering
26778       bug 1810; bugfix on 0.2.2.7-alpha.
26779     - Actually allow nameservers with IPv6 addresses. Fixes bug 2574.
26780     - Don't try to build descriptors if "ORPort auto" is set and we
26781       don't know our actual ORPort yet. Fix for bug 3216; bugfix on
26782       0.2.2.26-beta.
26783     - Resolve a crash that occurred when setting BridgeRelay to 1 with
26784       accounting enabled. Fixes bug 3228; bugfix on 0.2.2.18-alpha.
26785     - Apply circuit timeouts to opened hidden-service-related circuits
26786       based on the correct start time. Previously, we would apply the
26787       circuit build timeout based on time since the circuit's creation;
26788       it was supposed to be applied based on time since the circuit
26789       entered its current state. Bugfix on 0.0.6; fixes part of bug 1297.
26790     - Use the same circuit timeout for client-side introduction
26791       circuits as for other four-hop circuits, rather than the timeout
26792       for single-hop directory-fetch circuits; the shorter timeout may
26793       have been appropriate with the static circuit build timeout in
26794       0.2.1.x and earlier, but caused many hidden service access attempts
26795       to fail with the adaptive CBT introduced in 0.2.2.2-alpha. Bugfix
26796       on 0.2.2.2-alpha; fixes another part of bug 1297.
26797     - In ticket 2511 we fixed a case where you could use an unconfigured
26798       bridge if you had configured it as a bridge the last time you ran
26799       Tor. Now fix another edge case: if you had configured it as a bridge
26800       but then switched to a different bridge via the controller, you
26801       would still be willing to use the old one. Bugfix on 0.2.0.1-alpha;
26802       fixes bug 3321.
26804   o Major features:
26805     - Add an __OwningControllerProcess configuration option and a
26806       TAKEOWNERSHIP control-port command. Now a Tor controller can ensure
26807       that when it exits, Tor will shut down. Implements feature 3049.
26808     - If "UseBridges 1" is set and no bridges are configured, Tor will
26809       now refuse to build any circuits until some bridges are set.
26810       If "UseBridges auto" is set, Tor will use bridges if they are
26811       configured and we are not running as a server, but otherwise will
26812       make circuits as usual. The new default is "auto". Patch by anonym,
26813       so the Tails LiveCD can stop automatically revealing you as a Tor
26814       user on startup.
26816   o Minor bugfixes:
26817     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
26818     - Remove a trailing asterisk from "exit-policy/default" in the
26819       output of the control port command "GETINFO info/names". Bugfix
26820       on 0.1.2.5-alpha.
26821     - Use a wide type to hold sockets when built for 64-bit Windows builds.
26822       Fixes bug 3270.
26823     - Warn when the user configures two HiddenServiceDir lines that point
26824       to the same directory. Bugfix on 0.0.6 (the version introducing
26825       HiddenServiceDir); fixes bug 3289.
26826     - Remove dead code from rend_cache_lookup_v2_desc_as_dir. Fixes
26827       part of bug 2748; bugfix on 0.2.0.10-alpha.
26828     - Log malformed requests for rendezvous descriptors as protocol
26829       warnings, not warnings. Also, use a more informative log message
26830       in case someone sees it at log level warning without prior
26831       info-level messages. Fixes the other part of bug 2748; bugfix
26832       on 0.2.0.10-alpha.
26833     - Clear the table recording the time of the last request for each
26834       hidden service descriptor from each HS directory on SIGNAL NEWNYM.
26835       Previously, we would clear our HS descriptor cache on SIGNAL
26836       NEWNYM, but if we had previously retrieved a descriptor (or tried
26837       to) from every directory responsible for it, we would refuse to
26838       fetch it again for up to 15 minutes. Bugfix on 0.2.2.25-alpha;
26839       fixes bug 3309.
26840     - Fix a log message that said "bits" while displaying a value in
26841       bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on
26842       0.2.0.1-alpha.
26843     - When checking for 1024-bit keys, check for 1024 bits, not 128
26844       bytes. This allows Tor to correctly discard keys of length 1017
26845       through 1023. Bugfix on 0.0.9pre5.
26847   o Minor features:
26848     - Relays now log the reason for publishing a new relay descriptor,
26849       so we have a better chance of hunting down instances of bug 1810.
26850       Resolves ticket 3252.
26851     - Revise most log messages that refer to nodes by nickname to
26852       instead use the "$key=nickname at address" format. This should be
26853       more useful, especially since nicknames are less and less likely
26854       to be unique. Resolves ticket 3045.
26855     - Log (at info level) when purging pieces of hidden-service-client
26856       state because of SIGNAL NEWNYM.
26858   o Removed options:
26859     - Remove undocumented option "-F" from tor-resolve: it hasn't done
26860       anything since 0.2.1.16-rc.
26863 Changes in version 0.2.2.27-beta - 2011-05-18
26864   Tor 0.2.2.27-beta fixes a bridge-related stability bug in the previous
26865   release, and also adds a few more general bugfixes.
26867   o Major bugfixes:
26868     - Fix a crash bug when changing bridges in a running Tor process.
26869       Fixes bug 3213; bugfix on 0.2.2.26-beta.
26870     - When the controller configures a new bridge, don't wait 10 to 60
26871       seconds before trying to fetch its descriptor. Bugfix on
26872       0.2.0.3-alpha; fixes bug 3198 (suggested by 2355).
26874   o Minor bugfixes:
26875     - Require that onion keys have exponent 65537 in microdescriptors too.
26876       Fixes more of bug 3207; bugfix on 0.2.2.26-beta.
26877     - Tor used to limit HttpProxyAuthenticator values to 48 characters.
26878       Changed the limit to 512 characters by removing base64 newlines.
26879       Fixes bug 2752. Fix by Michael Yakubovich.
26880     - When a client starts or stops using bridges, never use a circuit
26881       that was built before the configuration change. This behavior could
26882       put at risk a user who uses bridges to ensure that her traffic
26883       only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes
26884       bug 3200.
26887 Changes in version 0.2.2.26-beta - 2011-05-17
26888   Tor 0.2.2.26-beta fixes a variety of potential privacy problems. It
26889   also introduces a new "socksport auto" approach that should make it
26890   easier to run multiple Tors on the same system, and does a lot of
26891   cleanup to get us closer to a release candidate.
26893   o Security/privacy fixes:
26894     - Replace all potentially sensitive memory comparison operations
26895       with versions whose runtime does not depend on the data being
26896       compared. This will help resist a class of attacks where an
26897       adversary can use variations in timing information to learn
26898       sensitive data. Fix for one case of bug 3122. (Safe memcmp
26899       implementation by Robert Ransom based partially on code by DJB.)
26900     - When receiving a hidden service descriptor, check that it is for
26901       the hidden service we wanted. Previously, Tor would store any
26902       hidden service descriptors that a directory gave it, whether it
26903       wanted them or not. This wouldn't have let an attacker impersonate
26904       a hidden service, but it did let directories pre-seed a client
26905       with descriptors that it didn't want. Bugfix on 0.0.6.
26906     - On SIGHUP, do not clear out all TrackHostExits mappings, client
26907       DNS cache entries, and virtual address mappings: that's what
26908       NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc.
26910   o Major features:
26911     - The options SocksPort, ControlPort, and so on now all accept a
26912       value "auto" that opens a socket on an OS-selected port. A
26913       new ControlPortWriteToFile option tells Tor to write its
26914       actual control port or ports to a chosen file. If the option
26915       ControlPortFileGroupReadable is set, the file is created as
26916       group-readable. Now users can run two Tor clients on the same
26917       system without needing to manually mess with parameters. Resolves
26918       part of ticket 3076.
26919     - Set SO_REUSEADDR on all sockets, not just listeners. This should
26920       help busy exit nodes avoid running out of useable ports just
26921       because all the ports have been used in the near past. Resolves
26922       issue 2850.
26924   o Minor features:
26925     - New "GETINFO net/listeners/(type)" controller command to return
26926       a list of addresses and ports that are bound for listeners for a
26927       given connection type. This is useful when the user has configured
26928       "SocksPort auto" and the controller needs to know which port got
26929       chosen. Resolves another part of ticket 3076.
26930     - Add a new ControlSocketsGroupWritable configuration option: when
26931       it is turned on, ControlSockets are group-writeable by the default
26932       group of the current user. Patch by Jérémy Bobbio; implements
26933       ticket 2972.
26934     - Tor now refuses to create a ControlSocket in a directory that is
26935       world-readable (or group-readable if ControlSocketsGroupWritable
26936       is 0). This is necessary because some operating systems do not
26937       enforce permissions on an AF_UNIX sockets. Permissions on the
26938       directory holding the socket, however, seems to work everywhere.
26939     - Rate-limit a warning about failures to download v2 networkstatus
26940       documents. Resolves part of bug 1352.
26941     - Backport code from 0.2.3.x that allows directory authorities to
26942       clean their microdescriptor caches. Needed to resolve bug 2230.
26943     - When an HTTPS proxy reports "403 Forbidden", we now explain
26944       what it means rather than calling it an unexpected status code.
26945       Closes bug 2503. Patch from Michael Yakubovich.
26946     - Update to the May 1 2011 Maxmind GeoLite Country database.
26948   o Minor bugfixes:
26949     - Authorities now clean their microdesc cache periodically and when
26950       reading from disk initially, not only when adding new descriptors.
26951       This prevents a bug where we could lose microdescriptors. Bugfix
26952       on 0.2.2.6-alpha. Fixes bug 2230.
26953     - Do not crash when our configuration file becomes unreadable, for
26954       example due to a permissions change, between when we start up
26955       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
26956       on 0.0.9pre6.
26957     - Avoid a bug that would keep us from replacing a microdescriptor
26958       cache on Windows. (We would try to replace the file while still
26959       holding it open. That's fine on Unix, but Windows doesn't let us
26960       do that.) Bugfix on 0.2.2.6-alpha; bug found by wanoskarnet.
26961     - Add missing explanations for the authority-related torrc options
26962       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey in the
26963       man page. Resolves issue 2379.
26964     - As an authority, do not upload our own vote or signature set to
26965       ourself. It would tell us nothing new, and as of 0.2.2.24-alpha,
26966       it would get flagged as a duplicate. Resolves bug 3026.
26967     - Accept hidden service descriptors if we think we might be a hidden
26968       service directory, regardless of what our consensus says. This
26969       helps robustness, since clients and hidden services can sometimes
26970       have a more up-to-date view of the network consensus than we do,
26971       and if they think that the directory authorities list us a HSDir,
26972       we might actually be one. Related to bug 2732; bugfix on
26973       0.2.0.10-alpha.
26974     - When a controller changes TrackHostExits, remove mappings for
26975       hosts that should no longer have their exits tracked. Bugfix on
26976       0.1.0.1-rc.
26977     - When a controller changes VirtualAddrNetwork, remove any mappings
26978       for hosts that were automapped to the old network. Bugfix on
26979       0.1.1.19-rc.
26980     - When a controller changes one of the AutomapHosts* options, remove
26981       any mappings for hosts that should no longer be automapped. Bugfix
26982       on 0.2.0.1-alpha.
26983     - Do not reset the bridge descriptor download status every time we
26984       re-parse our configuration or get a configuration change. Fixes
26985       bug 3019; bugfix on 0.2.0.3-alpha.
26987   o Minor bugfixes (code cleanup):
26988     - When loading the microdesc journal, remember its current size.
26989       In 0.2.2, this helps prevent the microdesc journal from growing
26990       without limit on authorities (who are the only ones to use it in
26991       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
26992       Fix posted by "cypherpunks."
26993     - The microdesc journal is supposed to get rebuilt only if it is
26994       at least _half_ the length of the store, not _twice_ the length
26995       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
26996     - Fix a potential null-pointer dereference while computing a
26997       consensus. Bugfix on 0.2.0.3-alpha, found with the help of
26998       clang's analyzer.
26999     - Avoid a possible null-pointer dereference when rebuilding the mdesc
27000       cache without actually having any descriptors to cache. Bugfix on
27001       0.2.2.6-alpha. Issue discovered using clang's static analyzer.
27002     - If we fail to compute the identity digest of a v3 legacy keypair,
27003       warn, and don't use a buffer-full of junk instead. Bugfix on
27004       0.2.1.1-alpha; fixes bug 3106.
27005     - Resolve an untriggerable issue in smartlist_string_num_isin(),
27006       where if the function had ever in the future been used to check
27007       for the presence of a too-large number, it would have given an
27008       incorrect result. (Fortunately, we only used it for 16-bit
27009       values.) Fixes bug 3175; bugfix on 0.1.0.1-rc.
27010     - Require that introduction point keys and onion handshake keys
27011       have a public exponent of 65537. Starts to fix bug 3207; bugfix
27012       on 0.2.0.10-alpha.
27014   o Removed features:
27015     - Caches no longer download and serve v2 networkstatus documents
27016       unless FetchV2Networkstatus flag is set: these documents haven't
27017       haven't been used by clients or relays since 0.2.0.x. Resolves
27018       bug 3022.
27021 Changes in version 0.2.3.1-alpha - 2011-05-05
27022   Tor 0.2.3.1-alpha adds some new experimental features, including support
27023   for an improved network IO backend, IOCP networking on Windows,
27024   microdescriptor caching, "fast-start" support for streams, and automatic
27025   home router configuration. There are also numerous internal improvements
27026   to try to make the code easier for developers to work with.
27028   This is the first alpha release in a new series, so expect there to be
27029   bugs. Users who would rather test out a more stable branch should
27030   stay with 0.2.2.x for now.
27032   o Major features:
27033     - Tor can now optionally build with the "bufferevents" buffered IO
27034       backend provided by Libevent 2. To use this feature, make sure you
27035       have the latest possible version of Libevent, and pass the
27036       --enable-bufferevents flag to configure when building Tor from
27037       source. This feature will make our networking code more flexible,
27038       let us stack layers on each other, and let us use more efficient
27039       zero-copy transports where available.
27040     - As an experimental feature, Tor can use IOCP for networking on Windows.
27041       Once this code is tuned and optimized, it promises much better
27042       performance than the select-based backend we've used in the past. To
27043       try this feature, you must build Tor with Libevent 2, configure Tor
27044       with the "bufferevents" buffered IO backend, and add "DisableIOCP 0" to
27045       your torrc. There are known bugs here: only try this if you can help
27046       debug it as it breaks.
27047     - The EntryNodes option can now include country codes like {de} or IP
27048       addresses or network masks. Previously we had disallowed these options
27049       because we didn't have an efficient way to keep the list up to
27050       date. Fixes bug 1982, but see bug 2798 for an unresolved issue here.
27051     - Exit nodes now accept and queue data on not-yet-connected streams.
27052       Previously, the client wasn't allowed to send data until the stream was
27053       connected, which slowed down all connections. This change will enable
27054       clients to perform a "fast-start" on streams and send data without
27055       having to wait for a confirmation that the stream has opened. (Patch
27056       from Ian Goldberg; implements the server side of Proposal 174.)
27057     - Tor now has initial support for automatic port mapping on the many
27058       home routers that support NAT-PMP or UPnP. (Not yet supported on
27059       Windows). To build the support code, you'll need to have libnatpnp
27060       library and/or the libminiupnpc library, and you'll need to enable the
27061       feature specifically by passing "--enable-upnp" and/or
27062       "--enable-natpnp" to configure. To turn it on, use the new
27063       PortForwarding option.
27064     - Caches now download, cache, and serve multiple "flavors" of the
27065       consensus, including a flavor that describes microdescriptors.
27066     - Caches now download, cache, and serve microdescriptors -- small
27067       summaries of router descriptors that are authenticated by all of the
27068       directory authorities. Once enough caches are running this code,
27069       clients will be able to save significant amounts of directory bandwidth
27070       by downloading microdescriptors instead of router descriptors.
27072   o Minor features:
27073     - Make logging resolution configurable with a new LogTimeGranularity
27074       option, and change the default from 1 millisecond to 1 second.
27075       Implements enhancement 1668.
27076     - We log which torrc file we're using on startup. Implements ticket
27077       2444.
27078     - Ordinarily, Tor does not count traffic from private addresses (like
27079       127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting.
27080       There is now a new option, CountPrivateBandwidth, to disable this
27081       behavior. Patch from Daniel Cagara.
27082     - New --enable-static-tor configure option for building Tor as
27083       statically as possible. Idea, general hackery and thoughts from
27084       Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket
27085       2702.
27086     - If you set the NumCPUs option to 0, Tor will now try to detect how
27087       many CPUs you have. This is the new default behavior.
27088     - Turn on directory request statistics by default and include them in
27089       extra-info descriptors. Don't break if we have no GeoIP database.
27090     - Relays that set "ConnDirectionStatistics 1" write statistics on the
27091       bidirectional use of connections to disk every 24 hours.
27092     - Add a GeoIP file digest to the extra-info descriptor. Implements
27093       enhancement 1883.
27094     - The NodeFamily option -- which let you declare that you want to
27095       consider nodes to be part of a family whether they list themselves
27096       that way or not -- now allows IP address ranges and country codes.
27097     - Add a new 'Heartbeat' log message type to periodically log a message
27098       describing Tor's status at level Notice. This feature is meant for
27099       operators who log at notice, and want to make sure that their Tor
27100       server is still working. Implementation by George Kadianakis.
27102   o Minor bugfixes (on 0.2.2.25-alpha):
27103     - When loading the microdesc journal, remember its current size.
27104       In 0.2.2, this helps prevent the microdesc journal from growing
27105       without limit on authorities (who are the only ones to use it in
27106       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
27107       Fix posted by "cypherpunks."
27108     - The microdesc journal is supposed to get rebuilt only if it is
27109       at least _half_ the length of the store, not _twice_ the length
27110       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
27111     - If as an authority we fail to compute the identity digest of a v3
27112       legacy keypair, warn, and don't use a buffer-full of junk instead.
27113       Bugfix on 0.2.1.1-alpha; fixes bug 3106.
27114     - Authorities now clean their microdesc cache periodically and when
27115       reading from disk initially, not only when adding new descriptors.
27116       This prevents a bug where we could lose microdescriptors. Bugfix
27117       on 0.2.2.6-alpha.
27119   o Minor features (controller):
27120     - Add a new SIGNAL event to the controller interface so that
27121       controllers can be notified when Tor handles a signal. Resolves
27122       issue 1955. Patch by John Brooks.
27123     - Add a new GETINFO option to get total bytes read and written. Patch
27124       from pipe, revised by atagar. Resolves ticket 2345.
27125     - Implement some GETINFO controller fields to provide information about
27126       the Tor process's pid, euid, username, and resource limits.
27128   o Build changes:
27129     - Our build system requires automake 1.6 or later to create the
27130       Makefile.in files. Previously, you could have used 1.4.
27131       This only affects developers and people building Tor from git;
27132       people who build Tor from the source distribution without changing
27133       the Makefile.am files should be fine.
27134     - Our autogen.sh script uses autoreconf to launch autoconf, automake, and
27135       so on. This is more robust against some of the failure modes
27136       associated with running the autotools pieces on their own.
27138   o Minor packaging issues:
27139     - On OpenSUSE, create the /var/run/tor directory on startup if it is not
27140       already created. Patch from Andreas Stieger. Fixes bug 2573.
27142   o Code simplifications and refactoring:
27143     - A major revision to our internal node-selecting and listing logic.
27144       Tor already had at least two major ways to look at the question of
27145       "which Tor servers do we know about": a list of router descriptors,
27146       and a list of entries in the current consensus. With
27147       microdescriptors, we're adding a third. Having so many systems
27148       without an abstraction layer over them was hurting the codebase.
27149       Now, we have a new "node_t" abstraction that presents a consistent
27150       interface to a client's view of a Tor node, and holds (nearly) all
27151       of the mutable state formerly in routerinfo_t and routerstatus_t.
27152     - The helper programs tor-gencert, tor-resolve, and tor-checkkey
27153       no longer link against Libevent: they never used it, but
27154       our library structure used to force them to link it.
27156   o Removed features:
27157     - Remove some old code to work around even older versions of Tor that
27158       used forked processes to handle DNS requests. Such versions of Tor
27159       are no longer in use as servers.
27161   o Documentation fixes:
27162     - Correct a broken faq link in the INSTALL file. Fixes bug 2307.
27163     - Add missing documentation for the authority-related torrc options
27164       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey. Resolves
27165       issue 2379.
27168 Changes in version 0.2.2.25-alpha - 2011-04-29
27169   Tor 0.2.2.25-alpha fixes many bugs: hidden service clients are more
27170   robust, routers no longer overreport their bandwidth, Win7 should crash
27171   a little less, and NEWNYM (as used by Vidalia's "new identity" button)
27172   now prevents hidden service-related activity from being linkable. It
27173   provides more information to Vidalia so you can see if your bridge is
27174   working. Also, 0.2.2.25-alpha revamps the Entry/Exit/ExcludeNodes and
27175   StrictNodes configuration options to make them more reliable, more
27176   understandable, and more regularly applied. If you use those options,
27177   please see the revised documentation for them in the manual page.
27179   o Major bugfixes:
27180     - Relays were publishing grossly inflated bandwidth values because
27181       they were writing their state files wrong--now they write the
27182       correct value. Also, resume reading bandwidth history from the
27183       state file correctly. Fixes bug 2704; bugfix on 0.2.2.23-alpha.
27184     - Improve hidden service robustness: When we find that we have
27185       extended a hidden service's introduction circuit to a relay not
27186       listed as an introduction point in the HS descriptor we currently
27187       have, retry with an introduction point from the current
27188       descriptor. Previously we would just give up. Fixes bugs 1024 and
27189       1930; bugfix on 0.2.0.10-alpha.
27190     - Clients now stop trying to use an exit node associated with a given
27191       destination by TrackHostExits if they fail to reach that exit node.
27192       Fixes bug 2999. Bugfix on 0.2.0.20-rc.
27193     - Fix crash bug on platforms where gmtime and localtime can return
27194       NULL. Windows 7 users were running into this one. Fixes part of bug
27195       2077. Bugfix on all versions of Tor. Found by boboper.
27197   o Security and stability fixes:
27198     - Don't double-free a parsable, but invalid, microdescriptor, even if
27199       it is followed in the blob we're parsing by an unparsable
27200       microdescriptor. Fixes an issue reported in a comment on bug 2954.
27201       Bugfix on 0.2.2.6-alpha; fix by "cypherpunks".
27202     - If the Nickname configuration option isn't given, Tor would pick a
27203       nickname based on the local hostname as the nickname for a relay.
27204       Because nicknames are not very important in today's Tor and the
27205       "Unnamed" nickname has been implemented, this is now problematic
27206       behavior: It leaks information about the hostname without being
27207       useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which
27208       introduced the Unnamed nickname. Reported by tagnaq.
27209     - Fix an uncommon assertion failure when running with DNSPort under
27210       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
27211     - Avoid linkability based on cached hidden service descriptors: forget
27212       all hidden service descriptors cached as a client when processing a
27213       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
27215   o Major features:
27216     - Export GeoIP information on bridge usage to controllers even if we
27217       have not yet been running for 24 hours. Now Vidalia bridge operators
27218       can get more accurate and immediate feedback about their
27219       contributions to the network.
27221   o Major features and bugfixes (node selection):
27222     - Revise and reconcile the meaning of the ExitNodes, EntryNodes,
27223       ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and StrictNodes
27224       options. Previously, we had been ambiguous in describing what
27225       counted as an "exit" node, and what operations exactly "StrictNodes
27226       0" would permit. This created confusion when people saw nodes built
27227       through unexpected circuits, and made it hard to tell real bugs from
27228       surprises. Now the intended behavior is:
27229         . "Exit", in the context of ExitNodes and ExcludeExitNodes, means
27230           a node that delivers user traffic outside the Tor network.
27231         . "Entry", in the context of EntryNodes, means a node used as the
27232           first hop of a multihop circuit. It doesn't include direct
27233           connections to directory servers.
27234         . "ExcludeNodes" applies to all nodes.
27235         . "StrictNodes" changes the behavior of ExcludeNodes only. When
27236           StrictNodes is set, Tor should avoid all nodes listed in
27237           ExcludeNodes, even when it will make user requests fail. When
27238           StrictNodes is *not* set, then Tor should follow ExcludeNodes
27239           whenever it can, except when it must use an excluded node to
27240           perform self-tests, connect to a hidden service, provide a
27241           hidden service, fulfill a .exit request, upload directory
27242           information, or fetch directory information.
27243       Collectively, the changes to implement the behavior fix bug 1090.
27244     - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if
27245       a node is listed in both, it's treated as excluded.
27246     - ExcludeNodes now applies to directory nodes -- as a preference if
27247       StrictNodes is 0, or an absolute requirement if StrictNodes is 1.
27248       Don't exclude all the directory authorities and set StrictNodes to 1
27249       unless you really want your Tor to break.
27250     - ExcludeNodes and ExcludeExitNodes now override exit enclaving.
27251     - ExcludeExitNodes now overrides .exit requests.
27252     - We don't use bridges listed in ExcludeNodes.
27253     - When StrictNodes is 1:
27254        . We now apply ExcludeNodes to hidden service introduction points
27255          and to rendezvous points selected by hidden service users. This
27256          can make your hidden service less reliable: use it with caution!
27257        . If we have used ExcludeNodes on ourself, do not try relay
27258          reachability self-tests.
27259        . If we have excluded all the directory authorities, we will not
27260          even try to upload our descriptor if we're a relay.
27261        . Do not honor .exit requests to an excluded node.
27262     - Remove a misfeature that caused us to ignore the Fast/Stable flags
27263       when ExitNodes is set. Bugfix on 0.2.2.7-alpha.
27264     - When the set of permitted nodes changes, we now remove any mappings
27265       introduced via TrackExitHosts to now-excluded nodes. Bugfix on
27266       0.1.0.1-rc.
27267     - We never cannibalize a circuit that had excluded nodes on it, even
27268       if StrictNodes is 0. Bugfix on 0.1.0.1-rc.
27269     - Revert a change where we would be laxer about attaching streams to
27270       circuits than when building the circuits. This was meant to prevent
27271       a set of bugs where streams were never attachable, but our improved
27272       code here should make this unnecessary. Bugfix on 0.2.2.7-alpha.
27273     - Keep track of how many times we launch a new circuit to handle a
27274       given stream. Too many launches could indicate an inconsistency
27275       between our "launch a circuit to handle this stream" logic and our
27276       "attach this stream to one of the available circuits" logic.
27277     - Improve log messages related to excluded nodes.
27279   o Minor bugfixes:
27280     - Fix a spurious warning when moving from a short month to a long
27281       month on relays with month-based BandwidthAccounting. Bugfix on
27282       0.2.2.17-alpha; fixes bug 3020.
27283     - When a client finds that an origin circuit has run out of 16-bit
27284       stream IDs, we now mark it as unusable for new streams. Previously,
27285       we would try to close the entire circuit. Bugfix on 0.0.6.
27286     - Add a forgotten cast that caused a compile warning on OS X 10.6.
27287       Bugfix on 0.2.2.24-alpha.
27288     - Be more careful about reporting the correct error from a failed
27289       connect() system call. Under some circumstances, it was possible to
27290       look at an incorrect value for errno when sending the end reason.
27291       Bugfix on 0.1.0.1-rc.
27292     - Correctly handle an "impossible" overflow cases in connection byte
27293       counting, where we write or read more than 4GB on an edge connection
27294       in a single second. Bugfix on 0.1.2.8-beta.
27295     - Correct the warning displayed when a rendezvous descriptor exceeds
27296       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
27297       John Brooks.
27298     - Clients and hidden services now use HSDir-flagged relays for hidden
27299       service descriptor downloads and uploads even if the relays have no
27300       DirPort set and the client has disabled TunnelDirConns. This will
27301       eventually allow us to give the HSDir flag to relays with no
27302       DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha.
27303     - Downgrade "no current certificates known for authority" message from
27304       Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha.
27305     - Make the SIGNAL DUMP control-port command work on FreeBSD. Fixes bug
27306       2917. Bugfix on 0.1.1.1-alpha.
27307     - Only limit the lengths of single HS descriptors, even when multiple
27308       HS descriptors are published to an HSDir relay in a single POST
27309       operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir.
27310     - Write the current time into the LastWritten line in our state file,
27311       rather than the time from the previous write attempt. Also, stop
27312       trying to use a time of -1 in our log statements. Fixes bug 3039;
27313       bugfix on 0.2.2.14-alpha.
27314     - Be more consistent in our treatment of file system paths. "~" should
27315       get expanded to the user's home directory in the Log config option.
27316       Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the
27317       feature for the -f and --DataDirectory options.
27319   o Minor features:
27320     - Make sure every relay writes a state file at least every 12 hours.
27321       Previously, a relay could go for weeks without writing its state
27322       file, and on a crash could lose its bandwidth history, capacity
27323       estimates, client country statistics, and so on. Addresses bug 3012.
27324     - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
27325       Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such
27326       clients are already deprecated because of security bugs.
27327     - Don't allow v0 hidden service authorities to act as clients.
27328       Required by fix for bug 3000.
27329     - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required
27330       by fix for bug 3000.
27331     - Ensure that no empty [dirreq-](read|write)-history lines are added
27332       to an extrainfo document. Implements ticket 2497.
27334   o Code simplification and refactoring:
27335     - Remove workaround code to handle directory responses from servers
27336       that had bug 539 (they would send HTTP status 503 responses _and_
27337       send a body too). Since only server versions before
27338       0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to
27339       keep the workaround in place.
27340     - Remove the old 'fuzzy time' logic. It was supposed to be used for
27341       handling calculations where we have a known amount of clock skew and
27342       an allowed amount of unknown skew. But we only used it in three
27343       places, and we never adjusted the known/unknown skew values. This is
27344       still something we might want to do someday, but if we do, we'll
27345       want to do it differently.
27346     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
27347       None of the cases where we did this before were wrong, but by making
27348       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
27349     - Use GetTempDir to find the proper temporary directory location on
27350       Windows when generating temporary files for the unit tests. Patch by
27351       Gisle Vanem.
27354 Changes in version 0.2.2.24-alpha - 2011-04-08
27355   Tor 0.2.2.24-alpha fixes a variety of bugs, including a big bug that
27356   prevented Tor clients from effectively using "multihomed" bridges,
27357   that is, bridges that listen on multiple ports or IP addresses so users
27358   can continue to use some of their addresses even if others get blocked.
27360   o Major bugfixes:
27361     - Fix a bug where bridge users who configure the non-canonical
27362       address of a bridge automatically switch to its canonical
27363       address. If a bridge listens at more than one address, it should be
27364       able to advertise those addresses independently and any non-blocked
27365       addresses should continue to work. Bugfix on Tor 0.2.0.x. Fixes
27366       bug 2510.
27367     - If you configured Tor to use bridge A, and then quit and
27368       configured Tor to use bridge B instead, it would happily continue
27369       to use bridge A if it's still reachable. While this behavior is
27370       a feature if your goal is connectivity, in some scenarios it's a
27371       dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511.
27372     - Directory authorities now use data collected from their own
27373       uptime observations when choosing whether to assign the HSDir flag
27374       to relays, instead of trusting the uptime value the relay reports in
27375       its descriptor. This change helps prevent an attack where a small
27376       set of nodes with frequently-changing identity keys can blackhole
27377       a hidden service. (Only authorities need upgrade; others will be
27378       fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709.
27380   o Minor bugfixes:
27381     - When we restart our relay, we might get a successful connection
27382       from the outside before we've started our reachability tests,
27383       triggering a warning: "ORPort found reachable, but I have no
27384       routerinfo yet. Failing to inform controller of success." This
27385       bug was harmless unless Tor is running under a controller
27386       like Vidalia, in which case the controller would never get a
27387       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
27388       fixes bug 1172.
27389     - Make directory authorities more accurate at recording when
27390       relays that have failed several reachability tests became
27391       unreachable, so we can provide more accuracy at assigning Stable,
27392       Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716.
27393     - Fix an issue that prevented static linking of libevent on
27394       some platforms (notably Linux). Fixes bug 2698; bugfix on
27395       versions 0.2.1.23/0.2.2.8-alpha (the versions introducing
27396       the --with-static-libevent configure option).
27397     - We now ask the other side of a stream (the client or the exit)
27398       for more data on that stream when the amount of queued data on
27399       that stream dips low enough. Previously, we wouldn't ask the
27400       other side for more data until either it sent us more data (which
27401       it wasn't supposed to do if it had exhausted its window!) or we
27402       had completely flushed all our queued data. This flow control fix
27403       should improve throughput. Fixes bug 2756; bugfix on the earliest
27404       released versions of Tor (svn commit r152).
27405     - Avoid a double-mark-for-free warning when failing to attach a
27406       transparent proxy connection. (We thought we had fixed this in
27407       0.2.2.23-alpha, but it turns out our fix was checking the wrong
27408       connection.) Fixes bug 2757; bugfix on 0.1.2.1-alpha (the original
27409       bug) and 0.2.2.23-alpha (the incorrect fix).
27410     - When warning about missing zlib development packages during compile,
27411       give the correct package names. Bugfix on 0.2.0.1-alpha.
27413   o Minor features:
27414     - Directory authorities now log the source of a rejected POSTed v3
27415       networkstatus vote.
27416     - Make compilation with clang possible when using
27417       --enable-gcc-warnings by removing two warning options that clang
27418       hasn't implemented yet and by fixing a few warnings. Implements
27419       ticket 2696.
27420     - When expiring circuits, use microsecond timers rather than
27421       one-second timers. This can avoid an unpleasant situation where a
27422       circuit is launched near the end of one second and expired right
27423       near the beginning of the next, and prevent fluctuations in circuit
27424       timeout values.
27425     - Use computed circuit-build timeouts to decide when to launch
27426       parallel introduction circuits for hidden services. (Previously,
27427       we would retry after 15 seconds.)
27428     - Update to the April 1 2011 Maxmind GeoLite Country database.
27430   o Packaging fixes:
27431     - Create the /var/run/tor directory on startup on OpenSUSE if it is
27432       not already created. Patch from Andreas Stieger. Fixes bug 2573.
27434   o Documentation changes:
27435     - Modernize the doxygen configuration file slightly. Fixes bug 2707.
27436     - Resolve all doxygen warnings except those for missing documentation.
27437       Fixes bug 2705.
27438     - Add doxygen documentation for more functions, fields, and types.
27441 Changes in version 0.2.2.23-alpha - 2011-03-08
27442   Tor 0.2.2.23-alpha lets relays record their bandwidth history so when
27443   they restart they don't lose their bandwidth capacity estimate. This
27444   release also fixes a diverse set of user-facing bugs, ranging from
27445   relays overrunning their rate limiting to clients falsely warning about
27446   clock skew to bridge descriptor leaks by our bridge directory authority.
27448   o Major bugfixes:
27449     - Stop sending a CLOCK_SKEW controller status event whenever
27450       we fetch directory information from a relay that has a wrong clock.
27451       Instead, only inform the controller when it's a trusted authority
27452       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
27453       the rest of bug 1074.
27454     - Fix an assert in parsing router descriptors containing IPv6
27455       addresses. This one took down the directory authorities when
27456       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
27457     - Make the bridge directory authority refuse to answer directory
27458       requests for "all" descriptors. It used to include bridge
27459       descriptors in its answer, which was a major information leak.
27460       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
27461     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
27462       Tor would ignore their RelayBandwidthBurst setting,
27463       potentially using more bandwidth than expected. Bugfix on
27464       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
27465     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
27466       hidserv" in her torrc. The 'hidserv' argument never controlled
27467       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
27469   o Major features:
27470     - Relays now save observed peak bandwidth throughput rates to their
27471       state file (along with total usage, which was already saved)
27472       so that they can determine their correct estimated bandwidth on
27473       restart. Resolves bug 1863, where Tor relays would reset their
27474       estimated bandwidth to 0 after restarting.
27475     - Directory authorities now take changes in router IP address and
27476       ORPort into account when determining router stability. Previously,
27477       if a router changed its IP or ORPort, the authorities would not
27478       treat it as having any downtime for the purposes of stability
27479       calculation, whereas clients would experience downtime since the
27480       change could take a while to propagate to them. Resolves issue 1035.
27481     - Enable Address Space Layout Randomization (ASLR) and Data Execution
27482       Prevention (DEP) by default on Windows to make it harder for
27483       attackers to exploit vulnerabilities. Patch from John Brooks.
27485   o Minor bugfixes (on 0.2.1.x and earlier):
27486     - Fix a rare crash bug that could occur when a client was configured
27487       with a large number of bridges. Fixes bug 2629; bugfix on
27488       0.2.1.2-alpha. Bugfix by trac user "shitlei".
27489     - Avoid a double mark-for-free warning when failing to attach a
27490       transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes
27491       bug 2279.
27492     - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378;
27493       found by "cypherpunks". This bug was introduced before the first
27494       Tor release, in svn commit r110.
27495     - Country codes aren't supported in EntryNodes until 0.2.3.x, so
27496       don't mention them in the manpage. Fixes bug 2450; issue
27497       spotted by keb and G-Lo.
27498     - Fix a bug in bandwidth history state parsing that could have been
27499       triggered if a future version of Tor ever changed the timing
27500       granularity at which bandwidth history is measured. Bugfix on
27501       Tor 0.1.1.11-alpha.
27502     - When a relay decides that its DNS is too broken for it to serve
27503       as an exit server, it advertised itself as a non-exit, but
27504       continued to act as an exit. This could create accidental
27505       partitioning opportunities for users. Instead, if a relay is
27506       going to advertise reject *:* as its exit policy, it should
27507       really act with exit policy "reject *:*". Fixes bug 2366.
27508       Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac.
27509     - In the special case where you configure a public exit relay as your
27510       bridge, Tor would be willing to use that exit relay as the last
27511       hop in your circuit as well. Now we fail that circuit instead.
27512       Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer".
27513     - Fix a bug with our locking implementation on Windows that couldn't
27514       correctly detect when a file was already locked. Fixes bug 2504,
27515       bugfix on 0.2.1.6-alpha.
27516     - Fix IPv6-related connect() failures on some platforms (BSD, OS X).
27517       Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by
27518       "piebeer".
27519     - Set target port in get_interface_address6() correctly. Bugfix
27520       on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660.
27521     - Directory authorities are now more robust to hops back in time
27522       when calculating router stability. Previously, if a run of uptime
27523       or downtime appeared to be negative, the calculation could give
27524       incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing
27525       bug 1035.
27526     - Fix an assert that got triggered when using the TestingTorNetwork
27527       configuration option and then issuing a GETINFO config-text control
27528       command. Fixes bug 2250; bugfix on 0.2.1.2-alpha.
27530   o Minor bugfixes (on 0.2.2.x):
27531     - Clients should not weight BadExit nodes as Exits in their node
27532       selection. Similarly, directory authorities should not count BadExit
27533       bandwidth as Exit bandwidth when computing bandwidth-weights.
27534       Bugfix on 0.2.2.10-alpha; fixes bug 2203.
27535     - Correctly clear our dir_read/dir_write history when there is an
27536       error parsing any bw history value from the state file. Bugfix on
27537       Tor 0.2.2.15-alpha.
27538     - Resolve a bug in verifying signatures of directory objects
27539       with digests longer than SHA1. Bugfix on 0.2.2.20-alpha.
27540       Fixes bug 2409. Found by "piebeer".
27541     - Bridge authorities no longer crash on SIGHUP when they try to
27542       publish their relay descriptor to themselves. Fixes bug 2572. Bugfix
27543       on 0.2.2.22-alpha.
27545   o Minor features:
27546     - Log less aggressively about circuit timeout changes, and improve
27547       some other circuit timeout messages. Resolves bug 2004.
27548     - Log a little more clearly about the times at which we're no longer
27549       accepting new connections. Resolves bug 2181.
27550     - Reject attempts at the client side to open connections to private
27551       IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with
27552       a randomly chosen exit node. Attempts to do so are always
27553       ill-defined, generally prevented by exit policies, and usually
27554       in error. This will also help to detect loops in transparent
27555       proxy configurations. You can disable this feature by setting
27556       "ClientRejectInternalAddresses 0" in your torrc.
27557     - Always treat failure to allocate an RSA key as an unrecoverable
27558       allocation error.
27559     - Update to the March 1 2011 Maxmind GeoLite Country database.
27561   o Minor features (log subsystem):
27562     - Add documentation for configuring logging at different severities in
27563       different log domains. We've had this feature since 0.2.1.1-alpha,
27564       but for some reason it never made it into the manpage. Fixes
27565       bug 2215.
27566     - Make it simpler to specify "All log domains except for A and B".
27567       Previously you needed to say "[*,~A,~B]". Now you can just say
27568       "[~A,~B]".
27569     - Add a "LogMessageDomains 1" option to include the domains of log
27570       messages along with the messages. Without this, there's no way
27571       to use log domains without reading the source or doing a lot
27572       of guessing.
27574   o Packaging changes:
27575     - Stop shipping the Tor specs files and development proposal documents
27576       in the tarball. They are now in a separate git repository at
27577       git://git.torproject.org/torspec.git
27580 Changes in version 0.2.1.30 - 2011-02-23
27581   Tor 0.2.1.30 fixes a variety of less critical bugs. The main other
27582   change is a slight tweak to Tor's TLS handshake that makes relays
27583   and bridges that run this new version reachable from Iran again.
27584   We don't expect this tweak will win the arms race long-term, but it
27585   buys us time until we roll out a better solution.
27587   o Major bugfixes:
27588     - Stop sending a CLOCK_SKEW controller status event whenever
27589       we fetch directory information from a relay that has a wrong clock.
27590       Instead, only inform the controller when it's a trusted authority
27591       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
27592       the rest of bug 1074.
27593     - Fix a bounds-checking error that could allow an attacker to
27594       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
27595       Found by "piebeer".
27596     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
27597       Tor would ignore their RelayBandwidthBurst setting,
27598       potentially using more bandwidth than expected. Bugfix on
27599       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
27600     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
27601       hidserv" in her torrc. The 'hidserv' argument never controlled
27602       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
27604   o Minor features:
27605     - Adjust our TLS Diffie-Hellman parameters to match those used by
27606       Apache's mod_ssl.
27607     - Update to the February 1 2011 Maxmind GeoLite Country database.
27609   o Minor bugfixes:
27610     - Check for and reject overly long directory certificates and
27611       directory tokens before they have a chance to hit any assertions.
27612       Bugfix on 0.2.1.28. Found by "doorss".
27613     - Bring the logic that gathers routerinfos and assesses the
27614       acceptability of circuits into line. This prevents a Tor OP from
27615       getting locked in a cycle of choosing its local OR as an exit for a
27616       path (due to a .exit request) and then rejecting the circuit because
27617       its OR is not listed yet. It also prevents Tor clients from using an
27618       OR running in the same instance as an exit (due to a .exit request)
27619       if the OR does not meet the same requirements expected of an OR
27620       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
27622   o Packaging changes:
27623     - Stop shipping the Tor specs files and development proposal documents
27624       in the tarball. They are now in a separate git repository at
27625       git://git.torproject.org/torspec.git
27626     - Do not include Git version tags as though they are SVN tags when
27627       generating a tarball from inside a repository that has switched
27628       between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402.
27631 Changes in version 0.2.2.22-alpha - 2011-01-25
27632   Tor 0.2.2.22-alpha fixes a few more less-critical security issues. The
27633   main other change is a slight tweak to Tor's TLS handshake that makes
27634   relays and bridges that run this new version reachable from Iran again.
27635   We don't expect this tweak will win the arms race long-term, but it
27636   will buy us a bit more time until we roll out a better solution.
27638   o Major bugfixes:
27639     - Fix a bounds-checking error that could allow an attacker to
27640       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
27641       Found by "piebeer".
27642     - Don't assert when changing from bridge to relay or vice versa
27643       via the controller. The assert happened because we didn't properly
27644       initialize our keys in this case. Bugfix on 0.2.2.18-alpha; fixes
27645       bug 2433. Reported by bastik.
27647   o Minor features:
27648     - Adjust our TLS Diffie-Hellman parameters to match those used by
27649       Apache's mod_ssl.
27650     - Provide a log message stating which geoip file we're parsing
27651       instead of just stating that we're parsing the geoip file.
27652       Implements ticket 2432.
27654   o Minor bugfixes:
27655     - Check for and reject overly long directory certificates and
27656       directory tokens before they have a chance to hit any assertions.
27657       Bugfix on 0.2.1.28 / 0.2.2.20-alpha. Found by "doorss".
27660 Changes in version 0.2.2.21-alpha - 2011-01-15
27661   Tor 0.2.2.21-alpha includes all the patches from Tor 0.2.1.29, which
27662   continues our recent code security audit work. The main fix resolves
27663   a remote heap overflow vulnerability that can allow remote code
27664   execution (CVE-2011-0427). Other fixes address a variety of assert
27665   and crash bugs, most of which we think are hard to exploit remotely.
27667   o Major bugfixes (security), also included in 0.2.1.29:
27668     - Fix a heap overflow bug where an adversary could cause heap
27669       corruption. This bug probably allows remote code execution
27670       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
27671       0.1.2.10-rc.
27672     - Prevent a denial-of-service attack by disallowing any
27673       zlib-compressed data whose compression factor is implausibly
27674       high. Fixes part of bug 2324; reported by "doorss".
27675     - Zero out a few more keys in memory before freeing them. Fixes
27676       bug 2384 and part of bug 2385. These key instances found by
27677       "cypherpunks", based on Andrew Case's report about being able
27678       to find sensitive data in Tor's memory space if you have enough
27679       permissions. Bugfix on 0.0.2pre9.
27681   o Major bugfixes (crashes), also included in 0.2.1.29:
27682     - Prevent calls to Libevent from inside Libevent log handlers.
27683       This had potential to cause a nasty set of crashes, especially
27684       if running Libevent with debug logging enabled, and running
27685       Tor with a controller watching for low-severity log messages.
27686       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
27687     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
27688       underflow errors there too. Fixes the other part of bug 2324.
27689     - Fix a bug where we would assert if we ever had a
27690       cached-descriptors.new file (or another file read directly into
27691       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
27692       on 0.2.1.25. Found by doorss.
27693     - Fix some potential asserts and parsing issues with grossly
27694       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
27695       Found by doorss.
27697   o Minor bugfixes (other), also included in 0.2.1.29:
27698     - Fix a bug with handling misformed replies to reverse DNS lookup
27699       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
27700       bug reported by doorss.
27701     - Fix compilation on mingw when a pthreads compatibility library
27702       has been installed. (We don't want to use it, so we shouldn't
27703       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
27704     - Fix a bug where we would declare that we had run out of virtual
27705       addresses when the address space was only half-exhausted. Bugfix
27706       on 0.1.2.1-alpha.
27707     - Correctly handle the case where AutomapHostsOnResolve is set but
27708       no virtual addresses are available. Fixes bug 2328; bugfix on
27709       0.1.2.1-alpha. Bug found by doorss.
27710     - Correctly handle wrapping around when we run out of virtual
27711       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
27713   o Minor features, also included in 0.2.1.29:
27714     - Update to the January 1 2011 Maxmind GeoLite Country database.
27715     - Introduce output size checks on all of our decryption functions.
27717   o Build changes, also included in 0.2.1.29:
27718     - Tor does not build packages correctly with Automake 1.6 and earlier;
27719       added a check to Makefile.am to make sure that we're building with
27720       Automake 1.7 or later.
27721     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
27722       because we built it with a too-old version of automake. Thus that
27723       release broke ./configure --enable-openbsd-malloc, which is popular
27724       among really fast exit relays on Linux.
27726   o Major bugfixes, new in 0.2.2.21-alpha:
27727     - Prevent crash/heap corruption when the cbtnummodes consensus
27728       parameter is set to 0 or large values. Fixes bug 2317; bugfix
27729       on 0.2.2.14-alpha.
27731   o Major features, new in 0.2.2.21-alpha:
27732     - Introduce minimum/maximum values that clients will believe
27733       from the consensus. Now we'll have a better chance to avoid crashes
27734       or worse when a consensus param has a weird value.
27736   o Minor features, new in 0.2.2.21-alpha:
27737     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
27738       used on bridges, and it makes bridge scanning somewhat easier.
27739     - If writing the state file to disk fails, wait up to an hour before
27740       retrying again, rather than trying again each second. Fixes bug
27741       2346; bugfix on Tor 0.1.1.3-alpha.
27742     - Make Libevent log messages get delivered to controllers later,
27743       and not from inside the Libevent log handler. This prevents unsafe
27744       reentrant Libevent calls while still letting the log messages
27745       get through.
27746     - Detect platforms that brokenly use a signed size_t, and refuse to
27747       build there. Found and analyzed by doorss and rransom.
27748     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
27749       Resolves bug 2314.
27751   o Minor bugfixes, new in 0.2.2.21-alpha:
27752     - Handle SOCKS messages longer than 128 bytes long correctly, rather
27753       than waiting forever for them to finish. Fixes bug 2330; bugfix
27754       on 0.2.0.16-alpha. Found by doorss.
27755     - Add assertions to check for overflow in arguments to
27756       base32_encode() and base32_decode(); fix a signed-unsigned
27757       comparison there too. These bugs are not actually reachable in Tor,
27758       but it's good to prevent future errors too. Found by doorss.
27759     - Correctly detect failures to create DNS requests when using Libevent
27760       versions before v2. (Before Libevent 2, we used our own evdns
27761       implementation. Its return values for Libevent's evdns_resolve_*()
27762       functions are not consistent with those from Libevent.) Fixes bug
27763       2363; bugfix on 0.2.2.6-alpha. Found by "lodger".
27765   o Documentation, new in 0.2.2.21-alpha:
27766     - Document the default socks host and port (127.0.0.1:9050) for
27767       tor-resolve.
27770 Changes in version 0.2.1.29 - 2011-01-15
27771   Tor 0.2.1.29 continues our recent code security audit work. The main
27772   fix resolves a remote heap overflow vulnerability that can allow remote
27773   code execution. Other fixes address a variety of assert and crash bugs,
27774   most of which we think are hard to exploit remotely.
27776   o Major bugfixes (security):
27777     - Fix a heap overflow bug where an adversary could cause heap
27778       corruption. This bug probably allows remote code execution
27779       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
27780       0.1.2.10-rc.
27781     - Prevent a denial-of-service attack by disallowing any
27782       zlib-compressed data whose compression factor is implausibly
27783       high. Fixes part of bug 2324; reported by "doorss".
27784     - Zero out a few more keys in memory before freeing them. Fixes
27785       bug 2384 and part of bug 2385. These key instances found by
27786       "cypherpunks", based on Andrew Case's report about being able
27787       to find sensitive data in Tor's memory space if you have enough
27788       permissions. Bugfix on 0.0.2pre9.
27790   o Major bugfixes (crashes):
27791     - Prevent calls to Libevent from inside Libevent log handlers.
27792       This had potential to cause a nasty set of crashes, especially
27793       if running Libevent with debug logging enabled, and running
27794       Tor with a controller watching for low-severity log messages.
27795       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
27796     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
27797       underflow errors there too. Fixes the other part of bug 2324.
27798     - Fix a bug where we would assert if we ever had a
27799       cached-descriptors.new file (or another file read directly into
27800       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
27801       on 0.2.1.25. Found by doorss.
27802     - Fix some potential asserts and parsing issues with grossly
27803       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
27804       Found by doorss.
27806   o Minor bugfixes (other):
27807     - Fix a bug with handling misformed replies to reverse DNS lookup
27808       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
27809       bug reported by doorss.
27810     - Fix compilation on mingw when a pthreads compatibility library
27811       has been installed. (We don't want to use it, so we shouldn't
27812       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
27813     - Fix a bug where we would declare that we had run out of virtual
27814       addresses when the address space was only half-exhausted. Bugfix
27815       on 0.1.2.1-alpha.
27816     - Correctly handle the case where AutomapHostsOnResolve is set but
27817       no virtual addresses are available. Fixes bug 2328; bugfix on
27818       0.1.2.1-alpha. Bug found by doorss.
27819     - Correctly handle wrapping around to when we run out of virtual
27820       address space. Found by cypherpunks, bugfix on 0.2.0.5-alpha.
27821     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
27822       because we built it with a too-old version of automake. Thus that
27823       release broke ./configure --enable-openbsd-malloc, which is popular
27824       among really fast exit relays on Linux.
27826   o Minor features:
27827     - Update to the January 1 2011 Maxmind GeoLite Country database.
27828     - Introduce output size checks on all of our decryption functions.
27830   o Build changes:
27831     - Tor does not build packages correctly with Automake 1.6 and earlier;
27832       added a check to Makefile.am to make sure that we're building with
27833       Automake 1.7 or later.
27836 Changes in version 0.2.2.20-alpha - 2010-12-17
27837   Tor 0.2.2.20-alpha does some code cleanup to reduce the risk of remotely
27838   exploitable bugs. We also fix a variety of other significant bugs,
27839   change the IP address for one of our directory authorities, and update
27840   the minimum version that Tor relays must run to join the network.
27842   o Major bugfixes:
27843     - Fix a remotely exploitable bug that could be used to crash instances
27844       of Tor remotely by overflowing on the heap. Remote-code execution
27845       hasn't been confirmed, but can't be ruled out. Everyone should
27846       upgrade. Bugfix on the 0.1.1 series and later.
27847     - Fix a bug that could break accounting on 64-bit systems with large
27848       time_t values, making them hibernate for impossibly long intervals.
27849       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
27850     - Fix a logic error in directory_fetches_from_authorities() that
27851       would cause all _non_-exits refusing single-hop-like circuits
27852       to fetch from authorities, when we wanted to have _exits_ fetch
27853       from authorities. Fixes more of 2097. Bugfix on 0.2.2.16-alpha;
27854       fix by boboper.
27855     - Fix a stream fairness bug that would cause newer streams on a given
27856       circuit to get preference when reading bytes from the origin or
27857       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
27858       introduced before the first Tor release, in svn revision r152.
27860   o Directory authority changes:
27861     - Change IP address and ports for gabelmoo (v3 directory authority).
27863   o Minor bugfixes:
27864     - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235.
27865       Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
27866     - Fix an off-by-one error in calculating some controller command
27867       argument lengths. Fortunately, this mistake is harmless since
27868       the controller code does redundant NUL termination too. Found by
27869       boboper. Bugfix on 0.1.1.1-alpha.
27870     - Do not dereference NULL if a bridge fails to build its
27871       extra-info descriptor. Found by an anonymous commenter on
27872       Trac. Bugfix on 0.2.2.19-alpha.
27874   o Minor features:
27875     - Update to the December 1 2010 Maxmind GeoLite Country database.
27876     - Directory authorities now reject relays running any versions of
27877       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
27878       known bugs that keep RELAY_EARLY cells from working on rendezvous
27879       circuits. Followup to fix for bug 2081.
27880     - Directory authorities now reject relays running any version of Tor
27881       older than 0.2.0.26-rc. That version is the earliest that fetches
27882       current directory information correctly. Fixes bug 2156.
27883     - Report only the top 10 ports in exit-port stats in order not to
27884       exceed the maximum extra-info descriptor length of 50 KB. Implements
27885       task 2196.
27888 Changes in version 0.2.1.28 - 2010-12-17
27889   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
27890   exploitable bugs. We also took this opportunity to change the IP address
27891   for one of our directory authorities, and to update the geoip database
27892   we ship.
27894   o Major bugfixes:
27895     - Fix a remotely exploitable bug that could be used to crash instances
27896       of Tor remotely by overflowing on the heap. Remote-code execution
27897       hasn't been confirmed, but can't be ruled out. Everyone should
27898       upgrade. Bugfix on the 0.1.1 series and later.
27900   o Directory authority changes:
27901     - Change IP address and ports for gabelmoo (v3 directory authority).
27903   o Minor features:
27904     - Update to the December 1 2010 Maxmind GeoLite Country database.
27907 Changes in version 0.2.1.27 - 2010-11-23
27908   Yet another OpenSSL security patch broke its compatibility with Tor:
27909   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
27910   also took this opportunity to fix several crash bugs, integrate a new
27911   directory authority, and update the bundled GeoIP database.
27913   o Major bugfixes:
27914     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
27915       No longer set the tlsext_host_name extension on server SSL objects;
27916       but continue to set it on client SSL objects. Our goal in setting
27917       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
27918       bugfix on 0.2.1.1-alpha.
27919     - Do not log messages to the controller while shrinking buffer
27920       freelists. Doing so would sometimes make the controller connection
27921       try to allocate a buffer chunk, which would mess up the internals
27922       of the freelist and cause an assertion failure. Fixes bug 1125;
27923       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
27924     - Learn our external IP address when we're a relay or bridge, even if
27925       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
27926       where we introduced bridge relays that don't need to publish to
27927       be useful. Fixes bug 2050.
27928     - Do even more to reject (and not just ignore) annotations on
27929       router descriptors received anywhere but from the cache. Previously
27930       we would ignore such annotations at first, but cache them to disk
27931       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
27932     - When you're using bridges and your network goes away and your
27933       bridges get marked as down, recover when you attempt a new socks
27934       connection (if the network is back), rather than waiting up to an
27935       hour to try fetching new descriptors for your bridges. Bugfix on
27936       0.2.0.3-alpha; fixes bug 1981.
27938   o Major features:
27939     - Move to the November 2010 Maxmind GeoLite country db (rather
27940       than the June 2009 ip-to-country GeoIP db) for our statistics that
27941       count how many users relays are seeing from each country. Now we'll
27942       have more accurate data, especially for many African countries.
27944   o New directory authorities:
27945     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
27946       authority.
27948   o Minor bugfixes:
27949     - Fix an assertion failure that could occur in directory caches or
27950       bridge users when using a very short voting interval on a testing
27951       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
27952       0.2.0.8-alpha.
27953     - Enforce multiplicity rules when parsing annotations. Bugfix on
27954       0.2.0.8-alpha. Found by piebeer.
27955     - Allow handshaking OR connections to take a full KeepalivePeriod
27956       seconds to handshake. Previously, we would close them after
27957       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
27958       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
27959       for analysis help.
27960     - When building with --enable-gcc-warnings on OpenBSD, disable
27961       warnings in system headers. This makes --enable-gcc-warnings
27962       pass on OpenBSD 4.8.
27964   o Minor features:
27965     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
27966       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
27967       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
27968       Servers can start sending this code when enough clients recognize
27969       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
27970     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
27971       Patch from mingw-san.
27973   o Removed files:
27974     - Remove the old debian/ directory from the main Tor distribution.
27975       The official Tor-for-debian git repository lives at the URL
27976       https://git.torproject.org/debian/tor.git
27977     - Stop shipping the old doc/website/ directory in the tarball. We
27978       changed the website format in late 2010, and what we shipped in
27979       0.2.1.26 really wasn't that useful anyway.
27982 Changes in version 0.2.2.19-alpha - 2010-11-22
27983   Yet another OpenSSL security patch broke its compatibility with Tor:
27984   Tor 0.2.2.19-alpha makes relays work with OpenSSL 0.9.8p and 1.0.0.b.
27986   o Major bugfixes:
27987     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
27988       No longer set the tlsext_host_name extension on server SSL objects;
27989       but continue to set it on client SSL objects. Our goal in setting
27990       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
27991       bugfix on 0.2.1.1-alpha.
27993   o Minor bugfixes:
27994     - Try harder not to exceed the maximum length of 50 KB when writing
27995       statistics to extra-info descriptors. This bug was triggered by very
27996       fast relays reporting exit-port, entry, and dirreq statistics.
27997       Reported by Olaf Selke. Bugfix on 0.2.2.1-alpha. Fixes bug 2183.
27998     - Publish a router descriptor even if generating an extra-info
27999       descriptor fails. Previously we would not publish a router
28000       descriptor without an extra-info descriptor; this can cause fast
28001       exit relays collecting exit-port statistics to drop from the
28002       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
28005 Changes in version 0.2.2.18-alpha - 2010-11-16
28006   Tor 0.2.2.18-alpha fixes several crash bugs that have been nagging
28007   us lately, makes unpublished bridge relays able to detect their IP
28008   address, and fixes a wide variety of other bugs to get us much closer
28009   to a stable release.
28011   o Major bugfixes:
28012     - Do even more to reject (and not just ignore) annotations on
28013       router descriptors received anywhere but from the cache. Previously
28014       we would ignore such annotations at first, but cache them to disk
28015       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
28016     - Do not log messages to the controller while shrinking buffer
28017       freelists. Doing so would sometimes make the controller connection
28018       try to allocate a buffer chunk, which would mess up the internals
28019       of the freelist and cause an assertion failure. Fixes bug 1125;
28020       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
28021     - Learn our external IP address when we're a relay or bridge, even if
28022       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
28023       where we introduced bridge relays that don't need to publish to
28024       be useful. Fixes bug 2050.
28025     - Maintain separate TLS contexts and certificates for incoming and
28026       outgoing connections in bridge relays. Previously we would use the
28027       same TLS contexts and certs for incoming and outgoing connections.
28028       Bugfix on 0.2.0.3-alpha; addresses bug 988.
28029     - Maintain separate identity keys for incoming and outgoing TLS
28030       contexts in bridge relays. Previously we would use the same
28031       identity keys for incoming and outgoing TLS contexts. Bugfix on
28032       0.2.0.3-alpha; addresses the other half of bug 988.
28033     - Avoid an assertion failure when we as an authority receive a
28034       duplicate upload of a router descriptor that we already have,
28035       but which we previously considered an obsolete descriptor.
28036       Fixes another case of bug 1776. Bugfix on 0.2.2.16-alpha.
28037     - Avoid a crash bug triggered by looking at a dangling pointer while
28038       setting the network status consensus. Found by Robert Ransom.
28039       Bugfix on 0.2.2.17-alpha. Fixes bug 2097.
28040     - Fix a logic error where servers that _didn't_ act as exits would
28041       try to keep their server lists more aggressively up to date than
28042       exits, when it was supposed to be the other way around. Bugfix
28043       on 0.2.2.17-alpha.
28045   o Minor bugfixes (on Tor 0.2.1.x and earlier):
28046     - When we're trying to guess whether we know our IP address as
28047       a relay, we would log various ways that we failed to guess
28048       our address, but never log that we ended up guessing it
28049       successfully. Now add a log line to help confused and anxious
28050       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
28051     - Bring the logic that gathers routerinfos and assesses the
28052       acceptability of circuits into line. This prevents a Tor OP from
28053       getting locked in a cycle of choosing its local OR as an exit for a
28054       path (due to a .exit request) and then rejecting the circuit because
28055       its OR is not listed yet. It also prevents Tor clients from using an
28056       OR running in the same instance as an exit (due to a .exit request)
28057       if the OR does not meet the same requirements expected of an OR
28058       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
28059     - Correctly describe errors that occur when generating a TLS object.
28060       Previously we would attribute them to a failure while generating a
28061       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
28062       bug 1994.
28063     - Enforce multiplicity rules when parsing annotations. Bugfix on
28064       0.2.0.8-alpha. Found by piebeer.
28065     - Fix warnings that newer versions of autoconf produced during
28066       ./autogen.sh. These warnings appear to be harmless in our case,
28067       but they were extremely verbose. Fixes bug 2020.
28069   o Minor bugfixes (on Tor 0.2.2.x):
28070     - Enable protection of small arrays whenever we build with gcc
28071       hardening features, not only when also building with warnings
28072       enabled. Fixes bug 2031; bugfix on 0.2.2.14-alpha. Reported by keb.
28074   o Minor features:
28075     - Make hidden services work better in private Tor networks by not
28076       requiring any uptime to join the hidden service descriptor
28077       DHT. Implements ticket 2088.
28078     - Rate-limit the "your application is giving Tor only an IP address"
28079       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
28080     - When AllowSingleHopExits is set, print a warning to explain to the
28081       relay operator why most clients are avoiding her relay.
28082     - Update to the November 1 2010 Maxmind GeoLite Country database.
28084   o Code simplifications and refactoring:
28085     - When we fixed bug 1038 we had to put in a restriction not to send
28086       RELAY_EARLY cells on rend circuits. This was necessary as long
28087       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
28088       active. Now remove this obsolete check. Resolves bug 2081.
28089     - Some options used different conventions for uppercasing of acronyms
28090       when comparing manpage and source. Fix those in favor of the
28091       manpage, as it makes sense to capitalize acronyms.
28092     - Remove the torrc.complete file. It hasn't been kept up to date
28093       and users will have better luck checking out the manpage.
28094     - Remove the obsolete "NoPublish" option; it has been flagged
28095       as obsolete and has produced a warning since 0.1.1.18-rc.
28096     - Remove everything related to building the expert bundle for OS X.
28097       It has confused many users, doesn't work right on OS X 10.6,
28098       and is hard to get rid of once installed. Resolves bug 1274.
28101 Changes in version 0.2.2.17-alpha - 2010-09-30
28102   Tor 0.2.2.17-alpha introduces a feature to make it harder for clients
28103   to use one-hop circuits (which can put the exit relays at higher risk,
28104   plus unbalance the network); fixes a big bug in bandwidth accounting
28105   for relays that want to limit their monthly bandwidth use; fixes a
28106   big pile of bugs in how clients tolerate temporary network failure;
28107   and makes our adaptive circuit build timeout feature (which improves
28108   client performance if your network is fast while not breaking things
28109   if your network is slow) better handle bad networks.
28111   o Major features:
28112     - Exit relays now try harder to block exit attempts from unknown
28113       relays, to make it harder for people to use them as one-hop proxies
28114       a la tortunnel. Controlled by the refuseunknownexits consensus
28115       parameter (currently enabled), or you can override it on your
28116       relay with the RefuseUnknownExits torrc option. Resolves bug 1751.
28118   o Major bugfixes (0.2.1.x and earlier):
28119     - Fix a bug in bandwidth accounting that could make us use twice
28120       the intended bandwidth when our interval start changes due to
28121       daylight saving time. Now we tolerate skew in stored vs computed
28122       interval starts: if the start of the period changes by no more than
28123       50% of the period's duration, we remember bytes that we transferred
28124       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
28125     - Always search the Windows system directory for system DLLs, and
28126       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
28127     - When you're using bridges and your network goes away and your
28128       bridges get marked as down, recover when you attempt a new socks
28129       connection (if the network is back), rather than waiting up to an
28130       hour to try fetching new descriptors for your bridges. Bugfix on
28131       0.2.0.3-alpha; fixes bug 1981.
28133   o Major bugfixes (on 0.2.2.x):
28134     - Fix compilation on Windows. Bugfix on 0.2.2.16-alpha; related to
28135       bug 1797.
28136     - Fix a segfault that could happen when operating a bridge relay with
28137       no GeoIP database set. Fixes bug 1964; bugfix on 0.2.2.15-alpha.
28138     - The consensus bandwidth-weights (used by clients to choose fast
28139       relays) entered an unexpected edge case in September where
28140       Exits were much scarcer than Guards, resulting in bad weight
28141       recommendations. Now we compute them using new constraints that
28142       should succeed in all cases. Also alter directory authorities to
28143       not include the bandwidth-weights line if they fail to produce
28144       valid values. Fixes bug 1952; bugfix on 0.2.2.10-alpha.
28145     - When weighting bridges during path selection, we used to trust
28146       the bandwidths they provided in their descriptor, only capping them
28147       at 10MB/s. This turned out to be problematic for two reasons:
28148       Bridges could claim to handle a lot more traffic then they
28149       actually would, thus making more clients pick them and have a
28150       pretty effective DoS attack. The other issue is that new bridges
28151       that might not have a good estimate for their bw capacity yet
28152       would not get used at all unless no other bridges are available
28153       to a client. Fixes bug 1912; bugfix on 0.2.2.7-alpha.
28155   o Major bugfixes (on the circuit build timeout feature, 0.2.2.x):
28156     - Ignore cannibalized circuits when recording circuit build times.
28157       This should provide for a minor performance improvement for hidden
28158       service users using 0.2.2.14-alpha, and should remove two spurious
28159       notice log messages. Bugfix on 0.2.2.14-alpha; fixes bug 1740.
28160     - Simplify the logic that causes us to decide if the network is
28161       unavailable for purposes of recording circuit build times. If we
28162       receive no cells whatsoever for the entire duration of a circuit's
28163       full measured lifetime, the network is probably down. Also ignore
28164       one-hop directory fetching circuit timeouts when calculating our
28165       circuit build times. These changes should hopefully reduce the
28166       cases where we see ridiculous circuit build timeouts for people
28167       with spotty wireless connections. Fixes part of bug 1772; bugfix
28168       on 0.2.2.2-alpha.
28169     - Prevent the circuit build timeout from becoming larger than
28170       the maximum build time we have ever seen. Also, prevent the time
28171       period for measurement circuits from becoming larger than twice that
28172       value. Fixes the other part of bug 1772; bugfix on 0.2.2.2-alpha.
28174   o Minor features:
28175     - When we run out of directory information such that we can't build
28176       circuits, but then get enough that we can build circuits, log when
28177       we actually construct a circuit, so the user has a better chance of
28178       knowing what's going on. Fixes bug 1362.
28179     - Be more generous with how much bandwidth we'd use up (with
28180       accounting enabled) before entering "soft hibernation". Previously,
28181       we'd refuse new connections and circuits once we'd used up 95% of
28182       our allotment. Now, we use up 95% of our allotment, AND make sure
28183       that we have no more than 500MB (or 3 hours of expected traffic,
28184       whichever is lower) remaining before we enter soft hibernation.
28185     - If we've configured EntryNodes and our network goes away and/or all
28186       our entrynodes get marked down, optimistically retry them all when
28187       a new socks application request appears. Fixes bug 1882.
28188     - Add some more defensive programming for architectures that can't
28189       handle unaligned integer accesses. We don't know of any actual bugs
28190       right now, but that's the best time to fix them. Fixes bug 1943.
28191     - Support line continuations in the torrc config file. If a line
28192       ends with a single backslash character, the newline is ignored, and
28193       the configuration value is treated as continuing on the next line.
28194       Resolves bug 1929.
28196   o Minor bugfixes (on 0.2.1.x and earlier):
28197     - For bandwidth accounting, calculate our expected bandwidth rate
28198       based on the time during which we were active and not in
28199       soft-hibernation during the last interval. Previously, we were
28200       also considering the time spent in soft-hibernation. If this
28201       was a long time, we would wind up underestimating our bandwidth
28202       by a lot, and skewing our wakeup time towards the start of the
28203       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
28205   o Minor bugfixes (on 0.2.2.x):
28206     - Resume generating CIRC FAILED REASON=TIMEOUT control port messages,
28207       which were disabled by the circuit build timeout changes in
28208       0.2.2.14-alpha. Bugfix on 0.2.2.14-alpha; fixes bug 1739.
28209     - Make sure we don't warn about missing bandwidth weights when
28210       choosing bridges or other relays not in the consensus. Bugfix on
28211       0.2.2.10-alpha; fixes bug 1805.
28212     - In our logs, do not double-report signatures from unrecognized
28213       authorities both as "from unknown authority" and "not
28214       present". Fixes bug 1956, bugfix on 0.2.2.16-alpha.
28217 Changes in version 0.2.2.16-alpha - 2010-09-17
28218   Tor 0.2.2.16-alpha fixes a variety of old stream fairness bugs (most
28219   evident at exit relays), and also continues to resolve all the little
28220   bugs that have been filling up trac lately.
28222   o Major bugfixes (stream-level fairness):
28223     - When receiving a circuit-level SENDME for a blocked circuit, try
28224       to package cells fairly from all the streams that had previously
28225       been blocked on that circuit. Previously, we had started with the
28226       oldest stream, and allowed each stream to potentially exhaust
28227       the circuit's package window. This gave older streams on any
28228       given circuit priority over newer ones. Fixes bug 1937. Detected
28229       originally by Camilo Viecco. This bug was introduced before the
28230       first Tor release, in svn commit r152: it is the new winner of
28231       the longest-lived bug prize.
28232     - When the exit relay got a circuit-level sendme cell, it started
28233       reading on the exit streams, even if had 500 cells queued in the
28234       circuit queue already, so the circuit queue just grew and grew in
28235       some cases. We fix this by not re-enabling reading on receipt of a
28236       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
28237       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
28238       "yetonetime".
28239     - Newly created streams were allowed to read cells onto circuits,
28240       even if the circuit's cell queue was blocked and waiting to drain.
28241       This created potential unfairness, as older streams would be
28242       blocked, but newer streams would gladly fill the queue completely.
28243       We add code to detect this situation and prevent any stream from
28244       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
28245       fixes bug 1298.
28247   o Minor features:
28248     - Update to the September 1 2010 Maxmind GeoLite Country database.
28249     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
28250       not. This would lead to a cookie that is still not group readable.
28251       Closes bug 1843. Suggested by katmagic.
28252     - When logging a rate-limited warning, we now mention how many messages
28253       got suppressed since the last warning.
28254     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
28255       do individual connection-level rate limiting of clients. The torrc
28256       config options with the same names trump the consensus params, if
28257       both are present. Replaces the old "bwconnrate" and "bwconnburst"
28258       consensus params which were broken from 0.2.2.7-alpha through
28259       0.2.2.14-alpha. Closes bug 1947.
28260     - When a router changes IP address or port, authorities now launch
28261       a new reachability test for it. Implements ticket 1899.
28262     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
28263       2 no signature, 4 required" messages about consensus signatures
28264       easier to read, and make sure they get logged at the same severity
28265       as the messages explaining which keys are which. Fixes bug 1290.
28266     - Don't warn when we have a consensus that we can't verify because
28267       of missing certificates, unless those certificates are ones
28268       that we have been trying and failing to download. Fixes bug 1145.
28269     - If you configure your bridge with a known identity fingerprint,
28270       and the bridge authority is unreachable (as it is in at least
28271       one country now), fall back to directly requesting the descriptor
28272       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
28273       closes bug 1138.
28274     - When building with --enable-gcc-warnings on OpenBSD, disable
28275       warnings in system headers. This makes --enable-gcc-warnings
28276       pass on OpenBSD 4.8.
28278   o Minor bugfixes (on 0.2.1.x and earlier):
28279     - Authorities will now attempt to download consensuses if their
28280       own efforts to make a live consensus have failed. This change
28281       means authorities that restart will fetch a valid consensus, and
28282       it means authorities that didn't agree with the current consensus
28283       will still fetch and serve it if it has enough signatures. Bugfix
28284       on 0.2.0.9-alpha; fixes bug 1300.
28285     - Ensure DNS requests launched by "RESOLVE" commands from the
28286       controller respect the __LeaveStreamsUnattached setconf options. The
28287       same goes for requests launched via DNSPort or transparent
28288       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
28289     - Allow handshaking OR connections to take a full KeepalivePeriod
28290       seconds to handshake. Previously, we would close them after
28291       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
28292       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
28293       for analysis help.
28294     - Rate-limit "Failed to hand off onionskin" warnings.
28295     - Never relay a cell for a circuit we have already destroyed.
28296       Between marking a circuit as closeable and finally closing it,
28297       it may have been possible for a few queued cells to get relayed,
28298       even though they would have been immediately dropped by the next
28299       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
28300     - Never queue a cell for a circuit that's already been marked
28301       for close.
28302     - Never vote for a server as "Running" if we have a descriptor for
28303       it claiming to be hibernating, and that descriptor was published
28304       more recently than our last contact with the server. Bugfix on
28305       0.2.0.3-alpha; fixes bug 911.
28306     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
28307       bug 1848.
28309   o Minor bugfixes (on 0.2.2.x):
28310     - Fix a regression introduced in 0.2.2.7-alpha that marked relays
28311       down if a directory fetch fails and you've configured either
28312       bridges or EntryNodes. The intent was to mark the relay as down
28313       _unless_ you're using bridges or EntryNodes, since if you are
28314       then you could quickly run out of entry points.
28315     - Fix the Windows directory-listing code. A bug introduced in
28316       0.2.2.14-alpha could make Windows directory servers forget to load
28317       some of their cached v2 networkstatus files.
28318     - Really allow clients to use relays as bridges. Fixes bug 1776;
28319       bugfix on 0.2.2.15-alpha.
28320     - Demote a warn to info that happens when the CellStatistics option
28321       was just enabled. Bugfix on 0.2.2.15-alpha; fixes bug 1921.
28322       Reported by Moritz Bartl.
28323     - On Windows, build correctly either with or without Unicode support.
28324       This is necessary so that Tor can support fringe platforms like
28325       Windows 98 (which has no Unicode), or Windows CE (which has no
28326       non-Unicode). Bugfix on 0.2.2.14-alpha; fixes bug 1797.
28328   o Testing
28329     - Add a unit test for cross-platform directory-listing code.
28332 Changes in version 0.2.2.15-alpha - 2010-08-18
28333   Tor 0.2.2.15-alpha fixes a big bug in hidden service availability,
28334   fixes a variety of other bugs that were preventing performance
28335   experiments from moving forward, fixes several bothersome memory leaks,
28336   and generally closes a lot of smaller bugs that have been filling up
28337   trac lately.
28339   o Major bugfixes:
28340     - Stop assigning the HSDir flag to relays that disable their
28341       DirPort (and thus will refuse to answer directory requests). This
28342       fix should dramatically improve the reachability of hidden services:
28343       hidden services and hidden service clients pick six HSDir relays
28344       to store and retrieve the hidden service descriptor, and currently
28345       about half of the HSDir relays will refuse to work. Bugfix on
28346       0.2.0.10-alpha; fixes part of bug 1693.
28347     - The PerConnBWRate and Burst config options, along with the
28348       bwconnrate and bwconnburst consensus params, initialized each conn's
28349       token bucket values only when the connection is established. Now we
28350       update them if the config options change, and update them every time
28351       we get a new consensus. Otherwise we can encounter an ugly edge
28352       case where we initialize an OR conn to client-level bandwidth,
28353       but then later the relay joins the consensus and we leave it
28354       throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.
28355     - Fix a regression that caused Tor to rebind its ports if it receives
28356       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
28358   o Major features:
28359     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
28360       should give us approximately 40-50% more Guard-flagged nodes,
28361       improving the anonymity the Tor network can provide and also
28362       decreasing the dropoff in throughput that relays experience when
28363       they first get the Guard flag.
28364     - Allow enabling or disabling the *Statistics config options while
28365       Tor is running.
28367   o Minor features:
28368     - Update to the August 1 2010 Maxmind GeoLite Country database.
28369     - Have the controller interface give a more useful message than
28370       "Internal Error" in response to failed GETINFO requests.
28371     - Warn when the same option is provided more than once in a torrc
28372       file, on the command line, or in a single SETCONF statement, and
28373       the option is one that only accepts a single line. Closes bug 1384.
28374     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
28375       Patch from mingw-san.
28376     - Add support for the country code "{??}" in torrc options like
28377       ExcludeNodes, to indicate all routers of unknown country. Closes
28378       bug 1094.
28379     - Relays report the number of bytes spent on answering directory
28380       requests in extra-info descriptors similar to {read,write}-history.
28381       Implements enhancement 1790.
28383   o Minor bugfixes (on 0.2.1.x and earlier):
28384     - Complain if PublishServerDescriptor is given multiple arguments that
28385       include 0 or 1. This configuration will be rejected in the future.
28386       Bugfix on 0.2.0.1-alpha; closes bug 1107.
28387     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
28388       Bugfix on 0.2.0.13-alpha; closes bug 928.
28389     - Change "Application request when we're believed to be offline."
28390       notice to "Application request when we haven't used client
28391       functionality lately.", to clarify that it's not an error. Bugfix
28392       on 0.0.9.3; fixes bug 1222.
28393     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
28394       would return "551 Internal error" rather than "552 Unrecognized key
28395       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
28396     - Users can't configure a regular relay to be their bridge. It didn't
28397       work because when Tor fetched the bridge descriptor, it found
28398       that it already had it, and didn't realize that the purpose of the
28399       descriptor had changed. Now we replace routers with a purpose other
28400       than bridge with bridge descriptors when fetching them. Bugfix on
28401       0.1.1.9-alpha. Bug 1776 not yet fixed because now we immediately
28402       refetch the descriptor with router purpose 'general', disabling
28403       it as a bridge.
28404     - Fix a rare bug in rend_fn unit tests: we would fail a test when
28405       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
28406       on 0.2.0.10-alpha; fixes bug 1808.
28407     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
28408       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
28409       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
28410       Servers can start sending this code when enough clients recognize
28411       it. Also update the spec to reflect this new reason. Bugfix on
28412       0.1.0.1-rc; fixes part of bug 1793.
28413     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
28414       when we switch from being a public relay to a bridge. Otherwise
28415       there will still be clients that see the relay in their consensus,
28416       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes bug
28417       932 even more.
28418     - Instead of giving an assertion failure on an internal mismatch
28419       on estimated freelist size, just log a BUG warning and try later.
28420       Mitigates but does not fix bug 1125.
28421     - Fix an assertion failure that could occur in caches or bridge users
28422       when using a very short voting interval on a testing network.
28423       Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
28425   o Minor bugfixes (on 0.2.2.x):
28426     - Alter directory authorities to always consider Exit-flagged nodes
28427       as potential Guard nodes in their votes. The actual decision to
28428       use Exits as Guards is done in the consensus bandwidth weights.
28429       Fixes bug 1294; bugfix on 0.2.2.10-alpha.
28430     - When the controller is reporting the purpose of circuits that
28431       didn't finish building before the circuit build timeout, it was
28432       printing UNKNOWN_13. Now print EXPIRED. Bugfix on 0.2.2.14-alpha.
28433     - Our libevent version parsing code couldn't handle versions like
28434       1.4.14b-stable and incorrectly warned the user about using an
28435       old and broken version of libevent. Treat 1.4.14b-stable like
28436       1.4.14-stable when parsing the version. Fixes bug 1731; bugfix
28437       on 0.2.2.1-alpha.
28438     - Don't use substitution references like $(VAR:MOD) when
28439       $(asciidoc_files) is empty -- make(1) on NetBSD transforms
28440       '$(:x)' to 'x' rather than the empty string. This bites us in
28441       doc/ when configured with --disable-asciidoc. Bugfix on
28442       0.2.2.9-alpha; fixes bug 1773.
28443     - Remove a spurious hidden service server-side log notice about
28444       "Ancient non-dirty circuits". Bugfix on 0.2.2.14-alpha; fixes
28445       bug 1741.
28446     - Fix compilation with --with-dmalloc set. Bugfix on 0.2.2.6-alpha;
28447       fixes bug 1832.
28448     - Correctly report written bytes on linked connections. Found while
28449       implementing 1790. Bugfix on 0.2.2.4-alpha.
28450     - Fix three memory leaks: one in circuit_build_times_parse_state(),
28451       one in dirvote_add_signatures_to_pending_consensus(), and one every
28452       time we parse a v3 network consensus. Bugfixes on 0.2.2.14-alpha,
28453       0.2.2.6-alpha, and 0.2.2.10-alpha respectively; fixes bug 1831.
28455   o Code simplifications and refactoring:
28456     - Take a first step towards making or.h smaller by splitting out
28457       function definitions for all source files in src/or/. Leave
28458       structures and defines in or.h for now.
28459     - Remove a bunch of unused function declarations as well as a block of
28460       #if 0'd code from the unit tests. Closes bug 1824.
28461     - New unit tests for exit-port history statistics; refactored exit
28462       statistics code to be more easily tested.
28463     - Remove the old debian/ directory from the main Tor distribution.
28464       The official Tor-for-debian git repository lives at the URL
28465       https://git.torproject.org/debian/tor.git
28468 Changes in version 0.2.2.14-alpha - 2010-07-12
28469   Tor 0.2.2.14-alpha greatly improves client-side handling of
28470   circuit build timeouts, which are used to estimate speed and improve
28471   performance. We also move to a much better GeoIP database, port Tor to
28472   Windows CE, introduce new compile flags that improve code security,
28473   add an eighth v3 directory authority, and address a lot of more
28474   minor issues.
28476   o Major bugfixes:
28477     - Tor directory authorities no longer crash when started with a
28478       cached-microdesc-consensus file in their data directory. Bugfix
28479       on 0.2.2.6-alpha; fixes bug 1532.
28480     - Treat an unset $HOME like an empty $HOME rather than triggering an
28481       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
28482     - Ignore negative and large circuit build timeout values that can
28483       happen during a suspend or hibernate. These values caused various
28484       asserts to fire. Bugfix on 0.2.2.2-alpha; fixes bug 1245.
28485     - Alter calculation of Pareto distribution parameter 'Xm' for
28486       Circuit Build Timeout learning to use the weighted average of the
28487       top N=3 modes (because we have three entry guards). Considering
28488       multiple modes should improve the timeout calculation in some cases,
28489       and prevent extremely high timeout values. Bugfix on 0.2.2.2-alpha;
28490       fixes bug 1335.
28491     - Alter calculation of Pareto distribution parameter 'Alpha' to use a
28492       right censored distribution model. This approach improves over the
28493       synthetic timeout generation approach that was producing insanely
28494       high timeout values. Now we calculate build timeouts using truncated
28495       times. Bugfix on 0.2.2.2-alpha; fixes bugs 1245 and 1335.
28496     - Do not close circuits that are under construction when they reach
28497       the circuit build timeout. Instead, leave them building (but do not
28498       use them) for up until the time corresponding to the 95th percentile
28499       on the Pareto CDF or 60 seconds, whichever is greater. This is done
28500       to provide better data for the new Pareto model. This percentile
28501       can be controlled by the consensus.
28503   o Major features:
28504     - Move to the June 2010 Maxmind GeoLite country db (rather than the
28505       June 2009 ip-to-country GeoIP db) for our statistics that count
28506       how many users relays are seeing from each country. Now we have
28507       more accurate data for many African countries.
28508     - Port Tor to build and run correctly on Windows CE systems, using
28509       the wcecompat library. Contributed by Valerio Lupi.
28510     - New "--enable-gcc-hardening" ./configure flag (off by default)
28511       to turn on gcc compile time hardening options. It ensures
28512       that signed ints have defined behavior (-fwrapv), enables
28513       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
28514       with canaries (-fstack-protector-all), turns on ASLR protection if
28515       supported by the kernel (-fPIE, -pie), and adds additional security
28516       related warnings. Verified to work on Mac OS X and Debian Lenny.
28517     - New "--enable-linker-hardening" ./configure flag (off by default)
28518       to turn on ELF specific hardening features (relro, now). This does
28519       not work with Mac OS X or any other non-ELF binary format.
28521   o New directory authorities:
28522     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
28523       authority.
28525   o Minor features:
28526     - New config option "WarnUnsafeSocks 0" disables the warning that
28527       occurs whenever Tor receives a socks handshake using a version of
28528       the socks protocol that can only provide an IP address (rather
28529       than a hostname). Setups that do DNS locally over Tor are fine,
28530       and we shouldn't spam the logs in that case.
28531     - Convert the HACKING file to asciidoc, and add a few new sections
28532       to it, explaining how we use Git, how we make changelogs, and
28533       what should go in a patch.
28534     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
28535       event, to give information on the current rate of circuit timeouts
28536       over our stored history.
28537     - Add ability to disable circuit build time learning via consensus
28538       parameter and via a LearnCircuitBuildTimeout config option. Also
28539       automatically disable circuit build time calculation if we are
28540       either a AuthoritativeDirectory, or if we fail to write our state
28541       file. Fixes bug 1296.
28542     - More gracefully handle corrupt state files, removing asserts
28543       in favor of saving a backup and resetting state.
28544     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
28545       system headers.
28547   o Minor bugfixes:
28548     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
28549       enabled.
28550     - When a2x fails, mention that the user could disable manpages instead
28551       of trying to fix their asciidoc installation.
28552     - Where available, use Libevent 2.0's periodic timers so that our
28553       once-per-second cleanup code gets called even more closely to
28554       once per second than it would otherwise. Fixes bug 943.
28555     - If you run a bridge that listens on multiple IP addresses, and
28556       some user configures a bridge address that uses a different IP
28557       address than your bridge writes in its router descriptor, and the
28558       user doesn't specify an identity key, their Tor would discard the
28559       descriptor because "it isn't one of our configured bridges", and
28560       fail to bootstrap. Now believe the descriptor and bootstrap anyway.
28561       Bugfix on 0.2.0.3-alpha.
28562     - If OpenSSL fails to make a duplicate of a private or public key, log
28563       an error message and try to exit cleanly. May help with debugging
28564       if bug 1209 ever remanifests.
28565     - Save a couple bytes in memory allocation every time we escape
28566       certain characters in a string. Patch from Florian Zumbiehl.
28567     - Make it explicit that we don't cannibalize one-hop circuits. This
28568       happens in the wild, but doesn't turn out to be a problem because
28569       we fortunately don't use those circuits. Many thanks to outofwords
28570       for the initial analysis and to swissknife who confirmed that
28571       two-hop circuits are actually created.
28572     - Make directory mirrors report non-zero dirreq-v[23]-shares again.
28573       Fixes bug 1564; bugfix on 0.2.2.9-alpha.
28574     - Eliminate a case where a circuit build time warning was displayed
28575       after network connectivity resumed. Bugfix on 0.2.2.2-alpha.
28578 Changes in version 0.2.1.26 - 2010-05-02
28579   Tor 0.2.1.26 addresses the recent connection and memory overload
28580   problems we've been seeing on relays, especially relays with their
28581   DirPort open. If your relay has been crashing, or you turned it off
28582   because it used too many resources, give this release a try.
28584   This release also fixes yet another instance of broken OpenSSL libraries
28585   that was causing some relays to drop out of the consensus.
28587   o Major bugfixes:
28588     - Teach relays to defend themselves from connection overload. Relays
28589       now close idle circuits early if it looks like they were intended
28590       for directory fetches. Relays are also more aggressive about closing
28591       TLS connections that have no circuits on them. Such circuits are
28592       unlikely to be re-used, and tens of thousands of them were piling
28593       up at the fast relays, causing the relays to run out of sockets
28594       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
28595       their directory fetches over TLS).
28596     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
28597       that claim to be earlier than 0.9.8m, but which have in reality
28598       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
28599       behavior. Possible fix for some cases of bug 1346.
28600     - Directory mirrors were fetching relay descriptors only from v2
28601       directory authorities, rather than v3 authorities like they should.
28602       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
28603       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
28605   o Minor bugfixes:
28606     - Finally get rid of the deprecated and now harmful notion of "clique
28607       mode", where directory authorities maintain TLS connections to
28608       every other relay.
28610   o Testsuite fixes:
28611     - In the util/threads test, no longer free the test_mutex before all
28612       worker threads have finished. Bugfix on 0.2.1.6-alpha.
28613     - The master thread could starve the worker threads quite badly on
28614       certain systems, causing them to run only partially in the allowed
28615       window. This resulted in test failures. Now the master thread sleeps
28616       occasionally for a few microseconds while the two worker-threads
28617       compete for the mutex. Bugfix on 0.2.0.1-alpha.
28620 Changes in version 0.2.2.13-alpha - 2010-04-24
28621   Tor 0.2.2.13-alpha addresses the recent connection and memory overload
28622   problems we've been seeing on relays, especially relays with their
28623   DirPort open. If your relay has been crashing, or you turned it off
28624   because it used too many resources, give this release a try.
28626   o Major bugfixes:
28627     - Teach relays to defend themselves from connection overload. Relays
28628       now close idle circuits early if it looks like they were intended
28629       for directory fetches. Relays are also more aggressive about closing
28630       TLS connections that have no circuits on them. Such circuits are
28631       unlikely to be re-used, and tens of thousands of them were piling
28632       up at the fast relays, causing the relays to run out of sockets
28633       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
28634       their directory fetches over TLS).
28636   o Minor features:
28637     - Finally get rid of the deprecated and now harmful notion of "clique
28638       mode", where directory authorities maintain TLS connections to
28639       every other relay.
28640     - Directory authorities now do an immediate reachability check as soon
28641       as they hear about a new relay. This change should slightly reduce
28642       the time between setting up a relay and getting listed as running
28643       in the consensus. It should also improve the time between setting
28644       up a bridge and seeing use by bridge users.
28645     - Directory authorities no longer launch a TLS connection to every
28646       relay as they startup. Now that we have 2k+ descriptors cached,
28647       the resulting network hiccup is becoming a burden. Besides,
28648       authorities already avoid voting about Running for the first half
28649       hour of their uptime.
28652 Changes in version 0.2.2.12-alpha - 2010-04-20
28653   Tor 0.2.2.12-alpha fixes a critical bug in how directory authorities
28654   handle and vote on descriptors. It was causing relays to drop out of
28655   the consensus.
28657   o Major bugfixes:
28658     - Many relays have been falling out of the consensus lately because
28659       not enough authorities know about their descriptor for them to get
28660       a majority of votes. When we deprecated the v2 directory protocol,
28661       we got rid of the only way that v3 authorities can hear from each
28662       other about other descriptors. Now authorities examine every v3
28663       vote for new descriptors, and fetch them from that authority. Bugfix
28664       on 0.2.1.23.
28665     - Fix two typos in tor_vasprintf() that broke the compile on Windows,
28666       and a warning in or.h related to bandwidth_weight_rule_t that
28667       prevented clean compile on OS X. Fixes bug 1363; bugfix on
28668       0.2.2.11-alpha.
28669     - Fix a segfault on relays when DirReqStatistics is enabled
28670       and 24 hours pass. Bug found by keb. Fixes bug 1365; bugfix on
28671       0.2.2.11-alpha.
28673   o Minor bugfixes:
28674     - Demote a confusing TLS warning that relay operators might get when
28675       someone tries to talk to their OrPort. It is neither the operator's
28676       fault nor can they do anything about it. Fixes bug 1364; bugfix
28677       on 0.2.0.14-alpha.
28680 Changes in version 0.2.2.11-alpha - 2010-04-15
28681   Tor 0.2.2.11-alpha fixes yet another instance of broken OpenSSL
28682   libraries that was causing some relays to drop out of the consensus.
28684   o Major bugfixes:
28685     - Directory mirrors were fetching relay descriptors only from v2
28686       directory authorities, rather than v3 authorities like they should.
28687       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
28688       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
28689     - Fix a parsing error that made every possible value of
28690       CircPriorityHalflifeMsec get treated as "1 msec". Bugfix
28691       on 0.2.2.7-alpha. Rename CircPriorityHalflifeMsec to
28692       CircuitPriorityHalflifeMsec, so authorities can tell newer relays
28693       about the option without breaking older ones.
28694     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
28695       that claim to be earlier than 0.9.8m, but which have in reality
28696       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
28697       behavior. Possible fix for some cases of bug 1346.
28699   o Minor features:
28700     - Experiment with a more aggressive approach to preventing clients
28701       from making one-hop exit streams. Exit relays who want to try it
28702       out can set "RefuseUnknownExits 1" in their torrc, and then look
28703       for "Attempt by %s to open a stream" log messages. Let us know
28704       how it goes!
28705     - Add support for statically linking zlib by specifying
28706       --enable-static-zlib, to go with our support for statically linking
28707       openssl and libevent. Resolves bug 1358.
28709   o Minor bugfixes:
28710     - Fix a segfault that happens whenever a Tor client that is using
28711       libevent2's bufferevents gets a hup signal. Bugfix on 0.2.2.5-alpha;
28712       fixes bug 1341.
28713     - When we cleaned up the contrib/tor-exit-notice.html file, we left
28714       out the first line. Fixes bug 1295.
28715     - When building the manpage from a tarball, we required asciidoc, but
28716       the asciidoc -> roff/html conversion was already done for the
28717       tarball. Make 'make' complain only when we need asciidoc (either
28718       because we're compiling directly from git, or because we altered
28719       the asciidoc manpage in the tarball). Bugfix on 0.2.2.9-alpha.
28720     - When none of the directory authorities vote on any params, Tor
28721       segfaulted when trying to make the consensus from the votes. We
28722       didn't trigger the bug in practice, because authorities do include
28723       params in their votes. Bugfix on 0.2.2.10-alpha; fixes bug 1322.
28725   o Testsuite fixes:
28726     - In the util/threads test, no longer free the test_mutex before all
28727       worker threads have finished. Bugfix on 0.2.1.6-alpha.
28728     - The master thread could starve the worker threads quite badly on
28729       certain systems, causing them to run only partially in the allowed
28730       window. This resulted in test failures. Now the master thread sleeps
28731       occasionally for a few microseconds while the two worker-threads
28732       compete for the mutex. Bugfix on 0.2.0.1-alpha.
28735 Changes in version 0.2.2.10-alpha - 2010-03-07
28736   Tor 0.2.2.10-alpha fixes a regression introduced in 0.2.2.9-alpha that
28737   could prevent relays from guessing their IP address correctly. It also
28738   starts the groundwork for another client-side performance boost, since
28739   currently we're not making efficient use of relays that have both the
28740   Guard flag and the Exit flag.
28742   o Major bugfixes:
28743     - Fix a regression from our patch for bug 1244 that caused relays
28744       to guess their IP address incorrectly if they didn't set Address
28745       in their torrc and/or their address fails to resolve. Bugfix on
28746       0.2.2.9-alpha; fixes bug 1269.
28748   o Major features (performance):
28749     - Directory authorities now compute consensus weightings that instruct
28750       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
28751       and no flag. Clients that use these weightings will distribute
28752       network load more evenly across these different relay types. The
28753       weightings are in the consensus so we can change them globally in
28754       the future. Extra thanks to "outofwords" for finding some nasty
28755       security bugs in the first implementation of this feature.
28757   o Minor features (performance):
28758     - Always perform router selections using weighted relay bandwidth,
28759       even if we don't need a high capacity circuit at the time. Non-fast
28760       circuits now only differ from fast ones in that they can use relays
28761       not marked with the Fast flag. This "feature" could turn out to
28762       be a horrible bug; we should investigate more before it goes into
28763       a stable release.
28765   o Minor features:
28766     - Allow disabling building of the manpages. Skipping the manpage
28767       speeds up the build considerably.
28769   o Minor bugfixes (on 0.2.2.x):
28770     - Fix a memleak in the EXTENDCIRCUIT logic. Spotted by coverity.
28771       Bugfix on 0.2.2.9-alpha.
28772     - Disallow values larger than INT32_MAX for PerConnBWRate|Burst
28773       config option. Bugfix on 0.2.2.7-alpha.
28774     - Ship the asciidoc-helper file in the tarball, so that people can
28775       build from source if they want to, and touching the .1.txt files
28776       doesn't break the build. Bugfix on 0.2.2.9-alpha.
28778   o Minor bugfixes (on 0.2.1.x or earlier):
28779     - Fix a dereference-then-NULL-check sequence when publishing
28780       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
28781       bug 1255.
28782     - Fix another dereference-then-NULL-check sequence. Bugfix on
28783       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
28784     - Make sure we treat potentially not NUL-terminated strings correctly.
28785       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
28787   o Code simplifications and refactoring:
28788     - Fix some urls in the exit notice file and make it XHTML1.1 strict
28789       compliant. Based on a patch from Christian Kujau.
28790     - Don't use sed in asciidoc-helper anymore.
28791     - Make the build process fail if asciidoc cannot be found and
28792       building with asciidoc isn't disabled.
28795 Changes in version 0.2.2.9-alpha - 2010-02-22
28796   Tor 0.2.2.9-alpha makes Tor work again on the latest OS X, updates the
28797   location of a directory authority, and cleans up a bunch of small bugs.
28799   o Directory authority changes:
28800     - Change IP address for dannenberg (v3 directory authority), and
28801       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
28802       service directory authority) from the list.
28804   o Major bugfixes:
28805     - Make Tor work again on the latest OS X: when deciding whether to
28806       use strange flags to turn TLS renegotiation on, detect the OpenSSL
28807       version at run-time, not compile time. We need to do this because
28808       Apple doesn't update its dev-tools headers when it updates its
28809       libraries in a security patch.
28810     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
28811       that could happen on 32-bit platforms with 64-bit time_t. Also fix
28812       a memory leak when requesting a hidden service descriptor we've
28813       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
28814       by aakova.
28815     - Authorities could be tricked into giving out the Exit flag to relays
28816       that didn't allow exiting to any ports. This bug could screw
28817       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
28818       1238. Bug discovered by Martin Kowalczyk.
28819     - When freeing a session key, zero it out completely. We only zeroed
28820       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
28821       patched by ekir. Fixes bug 1254.
28823   o Minor bugfixes:
28824     - Fix static compilation by listing the openssl libraries in the right
28825       order. Bugfix on Tor 0.2.2.8-alpha; fixes bug 1237.
28826     - Resume handling .exit hostnames in a special way: originally we
28827       stripped the .exit part and used the requested exit relay. In
28828       0.2.2.1-alpha we stopped treating them in any special way, meaning
28829       if you use a .exit address then Tor will pass it on to the exit
28830       relay. Now we reject the .exit stream outright, since that behavior
28831       might be more expected by the user. Found and diagnosed by Scott
28832       Bennett and Downie on or-talk.
28833     - Don't spam the controller with events when we have no file
28834       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
28835       for log messages was already solved from bug 748.)
28836     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
28837       "memcpyfail".
28838     - Make the DNSPort option work with libevent 2.x. Don't alter the
28839       behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
28840     - Emit a GUARD DROPPED controller event for a case we missed.
28841     - Make more fields in the controller protocol case-insensitive, since
28842       control-spec.txt said they were.
28843     - Refactor resolve_my_address() to not use gethostbyname() anymore.
28844       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
28845     - Fix a spec conformance issue: the network-status-version token
28846       must be the first token in a v3 consensus or vote. Discovered by
28847       parakeep. Bugfix on 0.2.0.3-alpha.
28849   o Code simplifications and refactoring:
28850     - Generate our manpage and HTML documentation using Asciidoc. This
28851       change should make it easier to maintain the documentation, and
28852       produce nicer HTML.
28853     - Remove the --enable-iphone option. According to reports from Marco
28854       Bonetti, Tor builds fine without any special tweaking on recent
28855       iPhone SDK versions.
28856     - Removed some unnecessary files from the source distribution. The
28857       AUTHORS file has now been merged into the people page on the
28858       website. The roadmaps and design doc can now be found in the
28859       projects directory in svn.
28860     - Enabled various circuit build timeout constants to be controlled
28861       by consensus parameters. Also set better defaults for these
28862       parameters based on experimentation on broadband and simulated
28863       high latency links.
28865   o Minor features:
28866     - The 'EXTENDCIRCUIT' control port command can now be used with
28867       a circ id of 0 and no path. This feature will cause Tor to build
28868       a new 'fast' general purpose circuit using its own path selection
28869       algorithms.
28870     - Added a BUILDTIMEOUT_SET controller event to describe changes
28871       to the circuit build timeout.
28872     - Future-proof the controller protocol a bit by ignoring keyword
28873       arguments we do not recognize.
28874     - Expand homedirs passed to tor-checkkey. This should silence a
28875       coverity complaint about passing a user-supplied string into
28876       open() without checking it.
28879 Changes in version 0.2.1.25 - 2010-03-16
28880   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
28881   prevent relays from guessing their IP address correctly. It also fixes
28882   several minor potential security bugs.
28884   o Major bugfixes:
28885     - Fix a regression from our patch for bug 1244 that caused relays
28886       to guess their IP address incorrectly if they didn't set Address
28887       in their torrc and/or their address fails to resolve. Bugfix on
28888       0.2.1.23; fixes bug 1269.
28889     - When freeing a session key, zero it out completely. We only zeroed
28890       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
28891       patched by ekir. Fixes bug 1254.
28893   o Minor bugfixes:
28894     - Fix a dereference-then-NULL-check sequence when publishing
28895       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
28896       bug 1255.
28897     - Fix another dereference-then-NULL-check sequence. Bugfix on
28898       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
28899     - Make sure we treat potentially not NUL-terminated strings correctly.
28900       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
28904 Changes in version 0.2.1.24 - 2010-02-21
28905   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
28906   for sure!
28908   o Minor bugfixes:
28909     - Work correctly out-of-the-box with even more vendor-patched versions
28910       of OpenSSL. In particular, make it so Debian and OS X don't need
28911       customized patches to run/build.
28914 Changes in version 0.2.1.23 - 2010-02-13
28915   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
28916   again on the latest OS X, and updates the location of a directory
28917   authority.
28919   o Major bugfixes (performance):
28920     - We were selecting our guards uniformly at random, and then weighting
28921       which of our guards we'd use uniformly at random. This imbalance
28922       meant that Tor clients were severely limited on throughput (and
28923       probably latency too) by the first hop in their circuit. Now we
28924       select guards weighted by currently advertised bandwidth. We also
28925       automatically discard guards picked using the old algorithm. Fixes
28926       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
28928   o Major bugfixes:
28929     - Make Tor work again on the latest OS X: when deciding whether to
28930       use strange flags to turn TLS renegotiation on, detect the OpenSSL
28931       version at run-time, not compile time. We need to do this because
28932       Apple doesn't update its dev-tools headers when it updates its
28933       libraries in a security patch.
28934     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
28935       that could happen on 32-bit platforms with 64-bit time_t. Also fix
28936       a memory leak when requesting a hidden service descriptor we've
28937       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
28938       by aakova.
28940   o Directory authority changes:
28941     - Change IP address for dannenberg (v3 directory authority), and
28942       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
28943       service directory authority) from the list.
28945   o Minor bugfixes:
28946     - Refactor resolve_my_address() to not use gethostbyname() anymore.
28947       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
28949   o Minor features:
28950     - Avoid a mad rush at the beginning of each month when each client
28951       rotates half of its guards. Instead we spread the rotation out
28952       throughout the month, but we still avoid leaving a precise timestamp
28953       in the state file about when we first picked the guard. Improves
28954       over the behavior introduced in 0.1.2.17.
28957 Changes in version 0.2.2.8-alpha - 2010-01-26
28958   Tor 0.2.2.8-alpha fixes a crash bug in 0.2.2.7-alpha that has been
28959   causing bridge relays to disappear. If you're running a bridge,
28960   please upgrade.
28962   o Major bugfixes:
28963     - Fix a memory corruption bug on bridges that occurred during the
28964       inclusion of stats data in extra-info descriptors. Also fix the
28965       interface for geoip_get_bridge_stats* to prevent similar bugs in
28966       the future. Diagnosis by Tas, patch by Karsten and Sebastian.
28967       Fixes bug 1208; bugfix on 0.2.2.7-alpha.
28969   o Minor bugfixes:
28970     - Ignore OutboundBindAddress when connecting to localhost.
28971       Connections to localhost need to come _from_ localhost, or else
28972       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
28973       refuse to listen.
28976 Changes in version 0.2.2.7-alpha - 2010-01-19
28977   Tor 0.2.2.7-alpha fixes a huge client-side performance bug, as well
28978   as laying the groundwork for further relay-side performance fixes. It
28979   also starts cleaning up client behavior with respect to the EntryNodes,
28980   ExitNodes, and StrictNodes config options.
28982   This release also rotates two directory authority keys, due to a
28983   security breach of some of the Torproject servers.
28985   o Directory authority changes:
28986     - Rotate keys (both v3 identity and relay identity) for moria1
28987       and gabelmoo.
28989   o Major features (performance):
28990     - We were selecting our guards uniformly at random, and then weighting
28991       which of our guards we'd use uniformly at random. This imbalance
28992       meant that Tor clients were severely limited on throughput (and
28993       probably latency too) by the first hop in their circuit. Now we
28994       select guards weighted by currently advertised bandwidth. We also
28995       automatically discard guards picked using the old algorithm. Fixes
28996       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
28997     - When choosing which cells to relay first, relays can now favor
28998       circuits that have been quiet recently, to provide lower latency
28999       for low-volume circuits. By default, relays enable or disable this
29000       feature based on a setting in the consensus. You can override
29001       this default by using the new "CircuitPriorityHalflife" config
29002       option. Design and code by Ian Goldberg, Can Tang, and Chris
29003       Alexander.
29004     - Add separate per-conn write limiting to go with the per-conn read
29005       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
29006       but never per-conn write limits.
29007     - New consensus params "bwconnrate" and "bwconnburst" to let us
29008       rate-limit client connections as they enter the network. It's
29009       controlled in the consensus so we can turn it on and off for
29010       experiments. It's starting out off. Based on proposal 163.
29012   o Major features (relay selection options):
29013     - Switch to a StrictNodes config option, rather than the previous
29014       "StrictEntryNodes" / "StrictExitNodes" separation that was missing a
29015       "StrictExcludeNodes" option.
29016     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
29017       change during a config reload, mark and discard all our origin
29018       circuits. This fix should address edge cases where we change the
29019       config options and but then choose a circuit that we created before
29020       the change.
29021     - If EntryNodes or ExitNodes are set, be more willing to use an
29022       unsuitable (e.g. slow or unstable) circuit. The user asked for it,
29023       they get it.
29024     - Make EntryNodes config option much more aggressive even when
29025       StrictNodes is not set. Before it would prepend your requested
29026       entrynodes to your list of guard nodes, but feel free to use others
29027       after that. Now it chooses only from your EntryNodes if any of
29028       those are available, and only falls back to others if a) they're
29029       all down and b) StrictNodes is not set.
29030     - Now we refresh your entry guards from EntryNodes at each consensus
29031       fetch -- rather than just at startup and then they slowly rot as
29032       the network changes.
29034   o Major bugfixes:
29035     - Stop bridge directory authorities from answering dbg-stability.txt
29036       directory queries, which would let people fetch a list of all
29037       bridge identities they track. Bugfix on 0.2.1.6-alpha.
29039   o Minor features:
29040     - Log a notice when we get a new control connection. Now it's easier
29041       for security-conscious users to recognize when a local application
29042       is knocking on their controller door. Suggested by bug 1196.
29043     - New config option "CircuitStreamTimeout" to override our internal
29044       timeout schedule for how many seconds until we detach a stream from
29045       a circuit and try a new circuit. If your network is particularly
29046       slow, you might want to set this to a number like 60.
29047     - New controller command "getinfo config-text". It returns the
29048       contents that Tor would write if you send it a SAVECONF command,
29049       so the controller can write the file to disk itself.
29050     - New options for SafeLogging to allow scrubbing only log messages
29051       generated while acting as a relay.
29052     - Ship the bridges spec file in the tarball too.
29053     - Avoid a mad rush at the beginning of each month when each client
29054       rotates half of its guards. Instead we spread the rotation out
29055       throughout the month, but we still avoid leaving a precise timestamp
29056       in the state file about when we first picked the guard. Improves
29057       over the behavior introduced in 0.1.2.17.
29059   o Minor bugfixes (compiling):
29060     - Fix compilation on OS X 10.3, which has a stub mlockall() but
29061       hides it. Bugfix on 0.2.2.6-alpha.
29062     - Fix compilation on Solaris by removing support for the
29063       DisableAllSwap config option. Solaris doesn't have an rlimit for
29064       mlockall, so we cannot use it safely. Fixes bug 1198; bugfix on
29065       0.2.2.6-alpha.
29067   o Minor bugfixes (crashes):
29068     - Do not segfault when writing buffer stats when we haven't observed
29069       a single circuit to report about. Found by Fabian Lanze. Bugfix on
29070       0.2.2.1-alpha.
29071     - If we're in the pathological case where there's no exit bandwidth
29072       but there is non-exit bandwidth, or no guard bandwidth but there
29073       is non-guard bandwidth, don't crash during path selection. Bugfix
29074       on 0.2.0.3-alpha.
29075     - Fix an impossible-to-actually-trigger buffer overflow in relay
29076       descriptor generation. Bugfix on 0.1.0.15.
29078   o Minor bugfixes (privacy):
29079     - Fix an instance where a Tor directory mirror might accidentally
29080       log the IP address of a misbehaving Tor client. Bugfix on
29081       0.1.0.1-rc.
29082     - Don't list Windows capabilities in relay descriptors. We never made
29083       use of them, and maybe it's a bad idea to publish them. Bugfix
29084       on 0.1.1.8-alpha.
29086   o Minor bugfixes (other):
29087     - Resolve an edge case in path weighting that could make us misweight
29088       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
29089     - Fix statistics on client numbers by country as seen by bridges that
29090       were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour
29091       intervals instead of variable 12-to-48-hour intervals.
29092     - After we free an internal connection structure, overwrite it
29093       with a different memory value than we use for overwriting a freed
29094       internal circuit structure. Should help with debugging. Suggested
29095       by bug 1055.
29096     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
29097       too.
29099   o Removed features:
29100     - Remove the HSAuthorityRecordStats option that version 0 hidden
29101       service authorities could have used to track statistics of overall
29102       hidden service usage.
29105 Changes in version 0.2.1.22 - 2010-01-19
29106   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
29107   authorities -- it would tell you its whole history of bridge descriptors
29108   if you make the right directory request. This stable update also
29109   rotates two of the seven v3 directory authority keys and locations.
29111   o Directory authority changes:
29112     - Rotate keys (both v3 identity and relay identity) for moria1
29113       and gabelmoo.
29115   o Major bugfixes:
29116     - Stop bridge directory authorities from answering dbg-stability.txt
29117       directory queries, which would let people fetch a list of all
29118       bridge identities they track. Bugfix on 0.2.1.6-alpha.
29121 Changes in version 0.2.1.21 - 2009-12-21
29122   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
29123   library. If you use Tor on Linux / Unix and you're getting SSL
29124   renegotiation errors, upgrading should help. We also recommend an
29125   upgrade if you're an exit relay.
29127   o Major bugfixes:
29128     - Work around a security feature in OpenSSL 0.9.8l that prevents our
29129       handshake from working unless we explicitly tell OpenSSL that we
29130       are using SSL renegotiation safely. We are, of course, but OpenSSL
29131       0.9.8l won't work unless we say we are.
29132     - Avoid crashing if the client is trying to upload many bytes and the
29133       circuit gets torn down at the same time, or if the flip side
29134       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
29136   o Minor bugfixes:
29137     - Do not refuse to learn about authority certs and v2 networkstatus
29138       documents that are older than the latest consensus. This bug might
29139       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
29140       Spotted and fixed by xmux.
29141     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
29142       trigger platform-specific option misparsing case found by Coverity
29143       Scan.
29144     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
29145       trigger assert. Fixes bug 1173.
29148 Changes in version 0.2.2.6-alpha - 2009-11-19
29149   Tor 0.2.2.6-alpha lays the groundwork for many upcoming features:
29150   support for the new lower-footprint "microdescriptor" directory design,
29151   future-proofing our consensus format against new hash functions or
29152   other changes, and an Android port. It also makes Tor compatible with
29153   the upcoming OpenSSL 0.9.8l release, and fixes a variety of bugs.
29155   o Major features:
29156     - Directory authorities can now create, vote on, and serve multiple
29157       parallel formats of directory data as part of their voting process.
29158       Partially implements Proposal 162: "Publish the consensus in
29159       multiple flavors".
29160     - Directory authorities can now agree on and publish small summaries
29161       of router information that clients can use in place of regular
29162       server descriptors. This transition will eventually allow clients
29163       to use far less bandwidth for downloading information about the
29164       network. Begins the implementation of Proposal 158: "Clients
29165       download consensus + microdescriptors".
29166     - The directory voting system is now extensible to use multiple hash
29167       algorithms for signatures and resource selection. Newer formats
29168       are signed with SHA256, with a possibility for moving to a better
29169       hash algorithm in the future.
29170     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
29171       current and future memory pages via mlockall(). On supported
29172       platforms (modern Linux and probably BSD but not Windows or OS X),
29173       this should effectively disable any and all attempts to page out
29174       memory. This option requires that you start your Tor as root --
29175       if you use DisableAllSwap, please consider using the User option
29176       to properly reduce the privileges of your Tor.
29177     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
29178       to help Tor build correctly for Android phones.
29180   o Major bugfixes:
29181     - Work around a security feature in OpenSSL 0.9.8l that prevents our
29182       handshake from working unless we explicitly tell OpenSSL that we
29183       are using SSL renegotiation safely. We are, but OpenSSL 0.9.8l
29184       won't work unless we say we are.
29186   o Minor bugfixes:
29187     - Fix a crash bug when trying to initialize the evdns module in
29188       Libevent 2. Bugfix on 0.2.1.16-rc.
29189     - Stop logging at severity 'warn' when some other Tor client tries
29190       to establish a circuit with us using weak DH keys. It's a protocol
29191       violation, but that doesn't mean ordinary users need to hear about
29192       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
29193     - Do not refuse to learn about authority certs and v2 networkstatus
29194       documents that are older than the latest consensus. This bug might
29195       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
29196       Spotted and fixed by xmux.
29197     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
29198     - If all authorities restart at once right before a consensus vote,
29199       nobody will vote about "Running", and clients will get a consensus
29200       with no usable relays. Instead, authorities refuse to build a
29201       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
29202     - If your relay can't keep up with the number of incoming create
29203       cells, it would log one warning per failure into your logs. Limit
29204       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
29205     - Bridges now use "reject *:*" as their default exit policy. Bugfix
29206       on 0.2.0.3-alpha; fixes bug 1113.
29207     - Fix a memory leak on directory authorities during voting that was
29208       introduced in 0.2.2.1-alpha. Found via valgrind.
29211 Changes in version 0.2.1.20 - 2009-10-15
29212   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
29213   services at once, prepares for more performance improvements, and
29214   fixes a bunch of smaller bugs.
29216   The Windows and OS X bundles also include a more recent Vidalia,
29217   and switch from Privoxy to Polipo.
29219   The OS X installers are now drag and drop. It's best to un-install
29220   Tor/Vidalia and then install this new bundle, rather than upgrade. If
29221   you want to upgrade, you'll need to update the paths for Tor and Polipo
29222   in the Vidalia Settings window.
29224   o Major bugfixes:
29225     - Send circuit or stream sendme cells when our window has decreased
29226       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
29227       by Karsten when testing the "reduce circuit window" performance
29228       patch. Bugfix on the 54th commit on Tor -- from July 2002,
29229       before the release of Tor 0.0.0. This is the new winner of the
29230       oldest-bug prize.
29231     - Fix a remotely triggerable memory leak when a consensus document
29232       contains more than one signature from the same voter. Bugfix on
29233       0.2.0.3-alpha.
29234     - Avoid segfault in rare cases when finishing an introduction circuit
29235       as a client and finding out that we don't have an introduction key
29236       for it. Fixes bug 1073. Reported by Aaron Swartz.
29238   o Major features:
29239     - Tor now reads the "circwindow" parameter out of the consensus,
29240       and uses that value for its circuit package window rather than the
29241       default of 1000 cells. Begins the implementation of proposal 168.
29243   o New directory authorities:
29244     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
29245       authority.
29246     - Move moria1 and tonga to alternate IP addresses.
29248   o Minor bugfixes:
29249     - Fix a signed/unsigned compile warning in 0.2.1.19.
29250     - Fix possible segmentation fault on directory authorities. Bugfix on
29251       0.2.1.14-rc.
29252     - Fix an extremely rare infinite recursion bug that could occur if
29253       we tried to log a message after shutting down the log subsystem.
29254       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
29255     - Fix an obscure bug where hidden services on 64-bit big-endian
29256       systems might mis-read the timestamp in v3 introduce cells, and
29257       refuse to connect back to the client. Discovered by "rotor".
29258       Bugfix on 0.2.1.6-alpha.
29259     - We were triggering a CLOCK_SKEW controller status event whenever
29260       we connect via the v2 connection protocol to any relay that has
29261       a wrong clock. Instead, we should only inform the controller when
29262       it's a trusted authority that claims our clock is wrong. Bugfix
29263       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
29264     - We were telling the controller about CHECKING_REACHABILITY and
29265       REACHABILITY_FAILED status events whenever we launch a testing
29266       circuit or notice that one has failed. Instead, only tell the
29267       controller when we want to inform the user of overall success or
29268       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
29269       by SwissTorExit.
29270     - Don't warn when we're using a circuit that ends with a node
29271       excluded in ExcludeExitNodes, but the circuit is not used to access
29272       the outside world. This should help fix bug 1090. Bugfix on
29273       0.2.1.6-alpha.
29274     - Work around a small memory leak in some versions of OpenSSL that
29275       stopped the memory used by the hostname TLS extension from being
29276       freed.
29278   o Minor features:
29279     - Add a "getinfo status/accepted-server-descriptor" controller
29280       command, which is the recommended way for controllers to learn
29281       whether our server descriptor has been successfully received by at
29282       least on directory authority. Un-recommend good-server-descriptor
29283       getinfo and status events until we have a better design for them.
29286 Changes in version 0.2.2.5-alpha - 2009-10-11
29287   Tor 0.2.2.5-alpha fixes a few compile problems in 0.2.2.4-alpha.
29289   o Major bugfixes:
29290     - Make the tarball compile again. Oops. Bugfix on 0.2.2.4-alpha.
29292   o Directory authorities:
29293     - Temporarily (just for this release) move dizum to an alternate
29294       IP address.
29297 Changes in version 0.2.2.4-alpha - 2009-10-10
29298   Tor 0.2.2.4-alpha fixes more crash bugs in 0.2.2.2-alpha. It also
29299   introduces a new unit test framework, shifts directry authority
29300   addresses around to reduce the impact from recent blocking events,
29301   and fixes a few smaller bugs.
29303   o Major bugfixes:
29304     - Fix several more asserts in the circuit_build_times code, for
29305       example one that causes Tor to fail to start once we have
29306       accumulated 5000 build times in the state file. Bugfixes on
29307       0.2.2.2-alpha; fixes bug 1108.
29309   o New directory authorities:
29310     - Move moria1 and Tonga to alternate IP addresses.
29312   o Minor features:
29313     - Log SSL state transitions at debug level during handshake, and
29314       include SSL states in error messages. This may help debug future
29315       SSL handshake issues.
29316     - Add a new "Handshake" log domain for activities that happen
29317       during the TLS handshake.
29318     - Revert to the "June 3 2009" ip-to-country file. The September one
29319       seems to have removed most US IP addresses.
29320     - Directory authorities now reject Tor relays with versions less than
29321       0.1.2.14. This step cuts out four relays from the current network,
29322       none of which are very big.
29324   o Minor bugfixes:
29325     - Fix a couple of smaller issues with gathering statistics. Bugfixes
29326       on 0.2.2.1-alpha.
29327     - Fix two memory leaks in the error case of
29328       circuit_build_times_parse_state(). Bugfix on 0.2.2.2-alpha.
29329     - Don't count one-hop circuits when we're estimating how long it
29330       takes circuits to build on average. Otherwise we'll set our circuit
29331       build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
29332     - Directory authorities no longer change their opinion of, or vote on,
29333       whether a router is Running, unless they have themselves been
29334       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
29335       Fixes bug 1023.
29337   o Code simplifications and refactoring:
29338     - Revise our unit tests to use the "tinytest" framework, so we
29339       can run tests in their own processes, have smarter setup/teardown
29340       code, and so on. The unit test code has moved to its own
29341       subdirectory, and has been split into multiple modules.
29344 Changes in version 0.2.2.3-alpha - 2009-09-23
29345   Tor 0.2.2.3-alpha fixes a few crash bugs in 0.2.2.2-alpha.
29347   o Major bugfixes:
29348     - Fix an overzealous assert in our new circuit build timeout code.
29349       Bugfix on 0.2.2.2-alpha; fixes bug 1103.
29351   o Minor bugfixes:
29352     - If the networkstatus consensus tells us that we should use a
29353       negative circuit package window, ignore it. Otherwise we'll
29354       believe it and then trigger an assert. Bugfix on 0.2.2.2-alpha.
29357 Changes in version 0.2.2.2-alpha - 2009-09-21
29358   Tor 0.2.2.2-alpha introduces our latest performance improvement for
29359   clients: Tor tracks the average time it takes to build a circuit, and
29360   avoids using circuits that take too long to build. For fast connections,
29361   this feature can cut your expected latency in half. For slow or flaky
29362   connections, it could ruin your Tor experience. Let us know if it does!
29364   o Major features:
29365     - Tor now tracks how long it takes to build client-side circuits
29366       over time, and adapts its timeout to local network performance.
29367       Since a circuit that takes a long time to build will also provide
29368       bad performance, we get significant latency improvements by
29369       discarding the slowest 20% of circuits. Specifically, Tor creates
29370       circuits more aggressively than usual until it has enough data
29371       points for a good timeout estimate. Implements proposal 151.
29372       We are especially looking for reports (good and bad) from users with
29373       both EDGE and broadband connections that can move from broadband
29374       to EDGE and find out if the build-time data in the .tor/state gets
29375       reset without loss of Tor usability. You should also see a notice
29376       log message telling you that Tor has reset its timeout.
29377     - Directory authorities can now vote on arbitrary integer values as
29378       part of the consensus process. This is designed to help set
29379       network-wide parameters. Implements proposal 167.
29380     - Tor now reads the "circwindow" parameter out of the consensus,
29381       and uses that value for its circuit package window rather than the
29382       default of 1000 cells. Begins the implementation of proposal 168.
29384   o Major bugfixes:
29385     - Fix a remotely triggerable memory leak when a consensus document
29386       contains more than one signature from the same voter. Bugfix on
29387       0.2.0.3-alpha.
29389   o Minor bugfixes:
29390     - Fix an extremely rare infinite recursion bug that could occur if
29391       we tried to log a message after shutting down the log subsystem.
29392       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
29393     - Fix parsing for memory or time units given without a space between
29394       the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
29395     - A networkstatus vote must contain exactly one signature. Spec
29396       conformance issue. Bugfix on 0.2.0.3-alpha.
29397     - Fix an obscure bug where hidden services on 64-bit big-endian
29398       systems might mis-read the timestamp in v3 introduce cells, and
29399       refuse to connect back to the client. Discovered by "rotor".
29400       Bugfix on 0.2.1.6-alpha.
29401     - We were triggering a CLOCK_SKEW controller status event whenever
29402       we connect via the v2 connection protocol to any relay that has
29403       a wrong clock. Instead, we should only inform the controller when
29404       it's a trusted authority that claims our clock is wrong. Bugfix
29405       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
29406     - We were telling the controller about CHECKING_REACHABILITY and
29407       REACHABILITY_FAILED status events whenever we launch a testing
29408       circuit or notice that one has failed. Instead, only tell the
29409       controller when we want to inform the user of overall success or
29410       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
29411       by SwissTorExit.
29412     - Don't warn when we're using a circuit that ends with a node
29413       excluded in ExcludeExitNodes, but the circuit is not used to access
29414       the outside world. This should help fix bug 1090, but more problems
29415       remain. Bugfix on 0.2.1.6-alpha.
29416     - Work around a small memory leak in some versions of OpenSSL that
29417       stopped the memory used by the hostname TLS extension from being
29418       freed.
29419     - Make our 'torify' script more portable; if we have only one of
29420       'torsocks' or 'tsocks' installed, don't complain to the user;
29421       and explain our warning about tsocks better.
29423   o Minor features:
29424     - Add a "getinfo status/accepted-server-descriptor" controller
29425       command, which is the recommended way for controllers to learn
29426       whether our server descriptor has been successfully received by at
29427       least on directory authority. Un-recommend good-server-descriptor
29428       getinfo and status events until we have a better design for them.
29429     - Update to the "September 4 2009" ip-to-country file.
29432 Changes in version 0.2.2.1-alpha - 2009-08-26
29433   Tor 0.2.2.1-alpha disables ".exit" address notation by default, allows
29434   Tor clients to bootstrap on networks where only port 80 is reachable,
29435   makes it more straightforward to support hardware crypto accelerators,
29436   and starts the groundwork for gathering stats safely at relays.
29438   o Security fixes:
29439     - Start the process of disabling ".exit" address notation, since it
29440       can be used for a variety of esoteric application-level attacks
29441       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
29442       on 0.0.9rc5.
29444   o New directory authorities:
29445     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
29446       authority.
29448   o Major features:
29449     - New AccelName and AccelDir options add support for dynamic OpenSSL
29450       hardware crypto acceleration engines.
29451     - Tor now supports tunneling all of its outgoing connections over
29452       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
29453       configuration options. Code by Christopher Davis.
29455   o Major bugfixes:
29456     - Send circuit or stream sendme cells when our window has decreased
29457       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
29458       by Karsten when testing the "reduce circuit window" performance
29459       patch. Bugfix on the 54th commit on Tor -- from July 2002,
29460       before the release of Tor 0.0.0. This is the new winner of the
29461       oldest-bug prize.
29463   o New options for gathering stats safely:
29464     - Directory mirrors that set "DirReqStatistics 1" write statistics
29465       about directory requests to disk every 24 hours. As compared to the
29466       --enable-geoip-stats flag in 0.2.1.x, there are a few improvements:
29467       1) stats are written to disk exactly every 24 hours; 2) estimated
29468       shares of v2 and v3 requests are determined as mean values, not at
29469       the end of a measurement period; 3) unresolved requests are listed
29470       with country code '??'; 4) directories also measure download times.
29471     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
29472       number of exit streams and transferred bytes per port to disk every
29473       24 hours.
29474     - Relays that set "CellStatistics 1" write statistics on how long
29475       cells spend in their circuit queues to disk every 24 hours.
29476     - Entry nodes that set "EntryStatistics 1" write statistics on the
29477       rough number and origins of connecting clients to disk every 24
29478       hours.
29479     - Relays that write any of the above statistics to disk and set
29480       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
29481       their extra-info documents.
29483   o Minor features:
29484     - New --digests command-line switch to output the digests of the
29485       source files Tor was built with.
29486     - The "torify" script now uses torsocks where available.
29487     - The memarea code now uses a sentinel value at the end of each area
29488       to make sure nothing writes beyond the end of an area. This might
29489       help debug some conceivable causes of bug 930.
29490     - Time and memory units in the configuration file can now be set to
29491       fractional units. For example, "2.5 GB" is now a valid value for
29492       AccountingMax.
29493     - Certain Tor clients (such as those behind check.torproject.org) may
29494       want to fetch the consensus in an extra early manner. To enable this
29495       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
29496       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
29497       as only certain clients who must have this information sooner should
29498       set this option.
29499     - Instead of adding the svn revision to the Tor version string, report
29500       the git commit (when we're building from a git checkout).
29502   o Minor bugfixes:
29503     - If any of the v3 certs we download are unparseable, we should
29504       actually notice the failure so we don't retry indefinitely. Bugfix
29505       on 0.2.0.x; reported by "rotator".
29506     - If the cached cert file is unparseable, warn but don't exit.
29507     - Fix possible segmentation fault on directory authorities. Bugfix on
29508       0.2.1.14-rc.
29509     - When Tor fails to parse a descriptor of any kind, dump it to disk.
29510       Might help diagnosing bug 1051.
29512   o Deprecated and removed features:
29513     - The controller no longer accepts the old obsolete "addr-mappings/"
29514       or "unregistered-servers-" GETINFO values.
29515     - Hidden services no longer publish version 0 descriptors, and clients
29516       do not request or use version 0 descriptors. However, the old hidden
29517       service authorities still accept and serve version 0 descriptors
29518       when contacted by older hidden services/clients.
29519     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
29520       always on; using them is necessary for correct forward-compatible
29521       controllers.
29522     - Remove support for .noconnect style addresses. Nobody was using
29523       them, and they provided another avenue for detecting Tor users
29524       via application-level web tricks.
29526   o Packaging changes:
29527     - Upgrade Vidalia from 0.1.15 to 0.2.3 in the Windows and OS X
29528       installer bundles. See
29529       https://trac.vidalia-project.net/browser/vidalia/tags/vidalia-0.2.3/CHANGELOG
29530       for details of what's new in Vidalia 0.2.3.
29531     - Windows Vidalia Bundle: update Privoxy from 3.0.6 to 3.0.14-beta.
29532     - OS X Vidalia Bundle: move to Polipo 1.0.4 with Tor specific
29533       configuration file, rather than the old Privoxy.
29534     - OS X Vidalia Bundle: Vidalia, Tor, and Polipo are compiled as
29535       x86-only for better compatibility with OS X 10.6, aka Snow Leopard.
29536     - OS X Tor Expert Bundle: Tor is compiled as x86-only for
29537       better compatibility with OS X 10.6, aka Snow Leopard.
29538     - OS X Vidalia Bundle: The multi-package installer is now replaced
29539       by a simple drag and drop to the /Applications folder. This change
29540       occurred with the upgrade to Vidalia 0.2.3.
29543 Changes in version 0.2.1.19 - 2009-07-28
29544   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
29545   services on Tor 0.2.1.3-alpha through 0.2.1.18.
29547   o Major bugfixes:
29548     - Make accessing hidden services on 0.2.1.x work right again.
29549       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
29550       part of patch provided by "optimist".
29552   o Minor features:
29553     - When a relay/bridge is writing out its identity key fingerprint to
29554       the "fingerprint" file and to its logs, write it without spaces. Now
29555       it will look like the fingerprints in our bridges documentation,
29556       and confuse fewer users.
29558   o Minor bugfixes:
29559     - Relays no longer publish a new server descriptor if they change
29560       their MaxAdvertisedBandwidth config option but it doesn't end up
29561       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
29562       fixes bug 1026. Patch from Sebastian.
29563     - Avoid leaking memory every time we get a create cell but we have
29564       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
29565       fixes bug 1034. Reported by BarkerJr.
29568 Changes in version 0.2.1.18 - 2009-07-24
29569   Tor 0.2.1.18 lays the foundations for performance improvements,
29570   adds status events to help users diagnose bootstrap problems, adds
29571   optional authentication/authorization for hidden services, fixes a
29572   variety of potential anonymity problems, and includes a huge pile of
29573   other features and bug fixes.
29575   o Build fixes:
29576     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
29579 Changes in version 0.2.1.17-rc - 2009-07-07
29580   Tor 0.2.1.17-rc marks the fourth -- and hopefully last -- release
29581   candidate for the 0.2.1.x series. It lays the groundwork for further
29582   client performance improvements, and also fixes a big bug with directory
29583   authorities that were causing them to assign Guard and Stable flags
29584   poorly.
29586   The Windows bundles also finally include the geoip database that we
29587   thought we'd been shipping since 0.2.0.x (oops), and the OS X bundles
29588   should actually install Torbutton rather than giving you a cryptic
29589   failure message (oops).
29591   o Major features:
29592     - Clients now use the bandwidth values in the consensus, rather than
29593       the bandwidth values in each relay descriptor. This approach opens
29594       the door to more accurate bandwidth estimates once the directory
29595       authorities start doing active measurements. Implements more of
29596       proposal 141.
29598   o Major bugfixes:
29599     - When Tor clients restart after 1-5 days, they discard all their
29600       cached descriptors as too old, but they still use the cached
29601       consensus document. This approach is good for robustness, but
29602       bad for performance: since they don't know any bandwidths, they
29603       end up choosing at random rather than weighting their choice by
29604       speed. Fixed by the above feature of putting bandwidths in the
29605       consensus. Bugfix on 0.2.0.x.
29606     - Directory authorities were neglecting to mark relays down in their
29607       internal histories if the relays fall off the routerlist without
29608       ever being found unreachable. So there were relays in the histories
29609       that haven't been seen for eight months, and are listed as being
29610       up for eight months. This wreaked havoc on the "median wfu"
29611       and "median mtbf" calculations, in turn making Guard and Stable
29612       flags very wrong, hurting network performance. Fixes bugs 696 and
29613       969. Bugfix on 0.2.0.6-alpha.
29615   o Minor bugfixes:
29616     - Serve the DirPortFrontPage page even when we have been approaching
29617       our quotas recently. Fixes bug 1013; bugfix on 0.2.1.8-alpha.
29618     - The control port would close the connection before flushing long
29619       replies, such as the network consensus, if a QUIT command was issued
29620       before the reply had completed. Now, the control port flushes all
29621       pending replies before closing the connection. Also fixed a spurious
29622       warning when a QUIT command is issued after a malformed or rejected
29623       AUTHENTICATE command, but before the connection was closed. Patch
29624       by Marcus Griep. Bugfix on 0.2.0.x; fixes bugs 1015 and 1016.
29625     - When we can't find an intro key for a v2 hidden service descriptor,
29626       fall back to the v0 hidden service descriptor and log a bug message.
29627       Workaround for bug 1024.
29628     - Fix a log message that did not respect the SafeLogging option.
29629       Resolves bug 1027.
29631   o Minor features:
29632     - If we're a relay and we change our IP address, be more verbose
29633       about the reason that made us change. Should help track down
29634       further bugs for relays on dynamic IP addresses.
29637 Changes in version 0.2.0.35 - 2009-06-24
29638   o Security fix:
29639     - Avoid crashing in the presence of certain malformed descriptors.
29640       Found by lark, and by automated fuzzing.
29641     - Fix an edge case where a malicious exit relay could convince a
29642       controller that the client's DNS question resolves to an internal IP
29643       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
29645   o Major bugfixes:
29646     - Finally fix the bug where dynamic-IP relays disappear when their
29647       IP address changes: directory mirrors were mistakenly telling
29648       them their old address if they asked via begin_dir, so they
29649       never got an accurate answer about their new address, so they
29650       just vanished after a day. For belt-and-suspenders, relays that
29651       don't set Address in their config now avoid using begin_dir for
29652       all direct connections. Should fix bugs 827, 883, and 900.
29653     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
29654       that would occur on some exit nodes when DNS failures and timeouts
29655       occurred in certain patterns. Fix for bug 957.
29657   o Minor bugfixes:
29658     - When starting with a cache over a few days old, do not leak
29659       memory for the obsolete router descriptors in it. Bugfix on
29660       0.2.0.33; fixes bug 672.
29661     - Hidden service clients didn't use a cached service descriptor that
29662       was older than 15 minutes, but wouldn't fetch a new one either,
29663       because there was already one in the cache. Now, fetch a v2
29664       descriptor unless the same descriptor was added to the cache within
29665       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
29668 Changes in version 0.2.1.16-rc - 2009-06-20
29669   Tor 0.2.1.16-rc speeds up performance for fast exit relays, and fixes
29670   a bunch of minor bugs.
29672   o Security fixes:
29673     - Fix an edge case where a malicious exit relay could convince a
29674       controller that the client's DNS question resolves to an internal IP
29675       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
29677   o Major performance improvements (on 0.2.0.x):
29678     - Disable and refactor some debugging checks that forced a linear scan
29679       over the whole server-side DNS cache. These accounted for over 50%
29680       of CPU time on a relatively busy exit node's gprof profile. Found
29681       by Jacob.
29682     - Disable some debugging checks that appeared in exit node profile
29683       data.
29685   o Minor features:
29686     - Update to the "June 3 2009" ip-to-country file.
29687     - Do not have tor-resolve automatically refuse all .onion addresses;
29688       if AutomapHostsOnResolve is set in your torrc, this will work fine.
29690   o Minor bugfixes (on 0.2.0.x):
29691     - Log correct error messages for DNS-related network errors on
29692       Windows.
29693     - Fix a race condition that could cause crashes or memory corruption
29694       when running as a server with a controller listening for log
29695       messages.
29696     - Avoid crashing when we have a policy specified in a DirPolicy or
29697       SocksPolicy or ReachableAddresses option with ports set on it,
29698       and we re-load the policy. May fix bug 996.
29699     - Hidden service clients didn't use a cached service descriptor that
29700       was older than 15 minutes, but wouldn't fetch a new one either,
29701       because there was already one in the cache. Now, fetch a v2
29702       descriptor unless the same descriptor was added to the cache within
29703       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
29705   o Minor bugfixes (on 0.2.1.x):
29706     - Don't warn users about low port and hibernation mix when they
29707       provide a *ListenAddress directive to fix that. Bugfix on
29708       0.2.1.15-rc.
29709     - When switching back and forth between bridge mode, do not start
29710       gathering GeoIP data until two hours have passed.
29711     - Do not complain that the user has requested an excluded node as
29712       an exit when the node is not really an exit. This could happen
29713       because the circuit was for testing, or an introduction point.
29714       Fix for bug 984.
29717 Changes in version 0.2.1.15-rc - 2009-05-25
29718   Tor 0.2.1.15-rc marks the second release candidate for the 0.2.1.x
29719   series. It fixes a major bug on fast exit relays, as well as a variety
29720   of more minor bugs.
29722   o Major bugfixes (on 0.2.0.x):
29723     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
29724       that would occur on some exit nodes when DNS failures and timeouts
29725       occurred in certain patterns. Fix for bug 957.
29727   o Minor bugfixes (on 0.2.0.x):
29728     - Actually return -1 in the error case for read_bandwidth_usage().
29729       Harmless bug, since we currently don't care about the return value
29730       anywhere. Bugfix on 0.2.0.9-alpha.
29731     - Provide a more useful log message if bug 977 (related to buffer
29732       freelists) ever reappears, and do not crash right away.
29733     - Fix an assertion failure on 64-bit platforms when we allocated
29734       memory right up to the end of a memarea, then realigned the memory
29735       one step beyond the end. Fixes a possible cause of bug 930.
29736     - Protect the count of open sockets with a mutex, so we can't
29737       corrupt it when two threads are closing or opening sockets at once.
29738       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
29739     - Don't allow a bridge to publish its router descriptor to a
29740       non-bridge directory authority. Fixes part of bug 932.
29741     - When we change to or from being a bridge, reset our counts of
29742       client usage by country. Fixes bug 932.
29743     - Fix a bug that made stream bandwidth get misreported to the
29744       controller.
29745     - Stop using malloc_usable_size() to use more area than we had
29746       actually allocated: it was safe, but made valgrind really unhappy.
29747     - Fix a memory leak when v3 directory authorities load their keys
29748       and cert from disk. Bugfix on 0.2.0.1-alpha.
29750   o Minor bugfixes (on 0.2.1.x):
29751     - Fix use of freed memory when deciding to mark a non-addable
29752       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
29755 Changes in version 0.2.1.14-rc - 2009-04-12
29756   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
29757   series. It begins fixing some major performance problems, and also
29758   finally addresses the bug that was causing relays on dynamic IP
29759   addresses to fall out of the directory.
29761   o Major features:
29762     - Clients replace entry guards that were chosen more than a few months
29763       ago. This change should significantly improve client performance,
29764       especially once more people upgrade, since relays that have been
29765       a guard for a long time are currently overloaded.
29767   o Major bugfixes (on 0.2.0):
29768     - Finally fix the bug where dynamic-IP relays disappear when their
29769       IP address changes: directory mirrors were mistakenly telling
29770       them their old address if they asked via begin_dir, so they
29771       never got an accurate answer about their new address, so they
29772       just vanished after a day. For belt-and-suspenders, relays that
29773       don't set Address in their config now avoid using begin_dir for
29774       all direct connections. Should fix bugs 827, 883, and 900.
29775     - Relays were falling out of the networkstatus consensus for
29776       part of a day if they changed their local config but the
29777       authorities discarded their new descriptor as "not sufficiently
29778       different". Now directory authorities accept a descriptor as changed
29779       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
29780       patch by Sebastian.
29781     - Avoid crashing in the presence of certain malformed descriptors.
29782       Found by lark, and by automated fuzzing.
29784   o Minor features:
29785     - When generating circuit events with verbose nicknames for
29786       controllers, try harder to look up nicknames for routers on a
29787       circuit. (Previously, we would look in the router descriptors we had
29788       for nicknames, but not in the consensus.) Partial fix for bug 941.
29789     - If the bridge config line doesn't specify a port, assume 443.
29790       This makes bridge lines a bit smaller and easier for users to
29791       understand.
29792     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
29793       bytes (aka 20KB/s), to match our documentation. Also update
29794       directory authorities so they always assign the Fast flag to relays
29795       with 20KB/s of capacity. Now people running relays won't suddenly
29796       find themselves not seeing any use, if the network gets faster
29797       on average.
29798     - Update to the "April 3 2009" ip-to-country file.
29800   o Minor bugfixes:
29801     - Avoid trying to print raw memory to the logs when we decide to
29802       give up on downloading a given relay descriptor. Bugfix on
29803       0.2.1.9-alpha.
29804     - In tor-resolve, when the Tor client to use is specified by
29805       <hostname>:<port>, actually use the specified port rather than
29806       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
29807     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
29808     - When starting with a cache over a few days old, do not leak
29809       memory for the obsolete router descriptors in it. Bugfix on
29810       0.2.0.33.
29811     - Avoid double-free on list of successfully uploaded hidden
29812       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
29813     - Change memarea_strndup() implementation to work even when
29814       duplicating a string at the end of a page. This bug was
29815       harmless for now, but could have meant crashes later. Fix by
29816       lark. Bugfix on 0.2.1.1-alpha.
29817     - Limit uploaded directory documents to be 16M rather than 500K.
29818       The directory authorities were refusing v3 consensus votes from
29819       other authorities, since the votes are now 504K. Fixes bug 959;
29820       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
29821     - Directory authorities should never send a 503 "busy" response to
29822       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
29823       bug 959.
29826 Changes in version 0.2.1.13-alpha - 2009-03-09
29827   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
29828   cleanups. We're finally getting close to a release candidate.
29830   o Major bugfixes:
29831     - Correctly update the list of which countries we exclude as
29832       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
29833       lark. Bugfix on 0.2.1.6-alpha.
29835   o Minor bugfixes (on 0.2.0.x and earlier):
29836     - Automatically detect MacOSX versions earlier than 10.4.0, and
29837       disable kqueue from inside Tor when running with these versions.
29838       We previously did this from the startup script, but that was no
29839       help to people who didn't use the startup script. Resolves bug 863.
29840     - When we had picked an exit node for a connection, but marked it as
29841       "optional", and it turned out we had no onion key for the exit,
29842       stop wanting that exit and try again. This situation may not
29843       be possible now, but will probably become feasible with proposal
29844       158. Spotted by rovv. Fixes another case of bug 752.
29845     - Clients no longer cache certificates for authorities they do not
29846       recognize. Bugfix on 0.2.0.9-alpha.
29847     - When we can't transmit a DNS request due to a network error, retry
29848       it after a while, and eventually transmit a failing response to
29849       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
29850     - If the controller claimed responsibility for a stream, but that
29851       stream never finished making its connection, it would live
29852       forever in circuit_wait state. Now we close it after SocksTimeout
29853       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
29854     - Drop begin cells to a hidden service if they come from the middle
29855       of a circuit. Patch from lark.
29856     - When we erroneously receive two EXTEND cells for the same circuit
29857       ID on the same connection, drop the second. Patch from lark.
29858     - Fix a crash that occurs on exit nodes when a nameserver request
29859       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
29860       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
29861       bug 929.
29862     - Do not assume that a stack-allocated character array will be
29863       64-bit aligned on platforms that demand that uint64_t access is
29864       aligned. Possible fix for bug 604.
29865     - Parse dates and IPv4 addresses in a locale- and libc-independent
29866       manner, to avoid platform-dependent behavior on malformed input.
29867     - Build correctly when configured to build outside the main source
29868       path. Patch from Michael Gold.
29869     - We were already rejecting relay begin cells with destination port
29870       of 0. Now also reject extend cells with destination port or address
29871       of 0. Suggested by lark.
29873   o Minor bugfixes (on 0.2.1.x):
29874     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
29875       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
29876     - If we're an exit node, scrub the IP address to which we are exiting
29877       in the logs. Bugfix on 0.2.1.8-alpha.
29879   o Minor features:
29880     - On Linux, use the prctl call to re-enable core dumps when the user
29881       is option is set.
29882     - New controller event NEWCONSENSUS that lists the networkstatus
29883       lines for every recommended relay. Now controllers like Torflow
29884       can keep up-to-date on which relays they should be using.
29885     - Update to the "February 26 2009" ip-to-country file.
29888 Changes in version 0.2.0.34 - 2009-02-08
29889   Tor 0.2.0.34 features several more security-related fixes. You should
29890   upgrade, especially if you run an exit relay (remote crash) or a
29891   directory authority (remote infinite loop), or you're on an older
29892   (pre-XP) or not-recently-patched Windows (remote exploit).
29894   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
29895   have many known flaws, and nobody should be using them. You should
29896   upgrade. If you're using a Linux or BSD and its packages are obsolete,
29897   stop using those packages and upgrade anyway.
29899   o Security fixes:
29900     - Fix an infinite-loop bug on handling corrupt votes under certain
29901       circumstances. Bugfix on 0.2.0.8-alpha.
29902     - Fix a temporary DoS vulnerability that could be performed by
29903       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
29904     - Avoid a potential crash on exit nodes when processing malformed
29905       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
29906     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
29907       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
29909   o Minor bugfixes:
29910     - Fix compilation on systems where time_t is a 64-bit integer.
29911       Patch from Matthias Drochner.
29912     - Don't consider expiring already-closed client connections. Fixes
29913       bug 893. Bugfix on 0.0.2pre20.
29916 Changes in version 0.2.1.12-alpha - 2009-02-08
29917   Tor 0.2.1.12-alpha features several more security-related fixes. You
29918   should upgrade, especially if you run an exit relay (remote crash) or
29919   a directory authority (remote infinite loop), or you're on an older
29920   (pre-XP) or not-recently-patched Windows (remote exploit). It also
29921   includes a big pile of minor bugfixes and cleanups.
29923   o Security fixes:
29924     - Fix an infinite-loop bug on handling corrupt votes under certain
29925       circumstances. Bugfix on 0.2.0.8-alpha.
29926     - Fix a temporary DoS vulnerability that could be performed by
29927       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
29928     - Avoid a potential crash on exit nodes when processing malformed
29929       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
29931   o Minor bugfixes:
29932     - Let controllers actually ask for the "clients_seen" event for
29933       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
29934       reported by Matt Edman.
29935     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
29936       0.2.1.11-alpha.
29937     - Fix a bug in address parsing that was preventing bridges or hidden
29938       service targets from being at IPv6 addresses.
29939     - Solve a bug that kept hardware crypto acceleration from getting
29940       enabled when accounting was turned on. Fixes bug 907. Bugfix on
29941       0.0.9pre6.
29942     - Remove a bash-ism from configure.in to build properly on non-Linux
29943       platforms. Bugfix on 0.2.1.1-alpha.
29944     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
29945       headers. Bugfix on 0.2.0.10-alpha.
29946     - Don't consider expiring already-closed client connections. Fixes
29947       bug 893. Bugfix on 0.0.2pre20.
29948     - Fix another interesting corner-case of bug 891 spotted by rovv:
29949       Previously, if two hosts had different amounts of clock drift, and
29950       one of them created a new connection with just the wrong timing,
29951       the other might decide to deprecate the new connection erroneously.
29952       Bugfix on 0.1.1.13-alpha.
29953     - Resolve a very rare crash bug that could occur when the user forced
29954       a nameserver reconfiguration during the middle of a nameserver
29955       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
29956     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
29957       Bugfix on 0.2.1.7-alpha.
29958     - If we're using bridges and our network goes away, be more willing
29959       to forgive our bridges and try again when we get an application
29960       request. Bugfix on 0.2.0.x.
29962   o Minor features:
29963     - Support platforms where time_t is 64 bits long. (Congratulations,
29964       NetBSD!) Patch from Matthias Drochner.
29965     - Add a 'getinfo status/clients-seen' controller command, in case
29966       controllers want to hear clients_seen events but connect late.
29968   o Build changes:
29969     - Disable GCC's strict alias optimization by default, to avoid the
29970       likelihood of its introducing subtle bugs whenever our code violates
29971       the letter of C99's alias rules.
29974 Changes in version 0.2.0.33 - 2009-01-21
29975   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
29976   useful to users. It also finally fixes a bug where a relay or client
29977   that's been off for many days would take a long time to bootstrap.
29979   This update also fixes an important security-related bug reported by
29980   Ilja van Sprundel. You should upgrade. (We'll send out more details
29981   about the bug once people have had some time to upgrade.)
29983   o Security fixes:
29984     - Fix a heap-corruption bug that may be remotely triggerable on
29985       some platforms. Reported by Ilja van Sprundel.
29987   o Major bugfixes:
29988     - When a stream at an exit relay is in state "resolving" or
29989       "connecting" and it receives an "end" relay cell, the exit relay
29990       would silently ignore the end cell and not close the stream. If
29991       the client never closes the circuit, then the exit relay never
29992       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
29993       reported by "wood".
29994     - When sending CREATED cells back for a given circuit, use a 64-bit
29995       connection ID to find the right connection, rather than an addr:port
29996       combination. Now that we can have multiple OR connections between
29997       the same ORs, it is no longer possible to use addr:port to uniquely
29998       identify a connection.
29999     - Bridge relays that had DirPort set to 0 would stop fetching
30000       descriptors shortly after startup, and then briefly resume
30001       after a new bandwidth test and/or after publishing a new bridge
30002       descriptor. Bridge users that try to bootstrap from them would
30003       get a recent networkstatus but would get descriptors from up to
30004       18 hours earlier, meaning most of the descriptors were obsolete
30005       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
30006     - Prevent bridge relays from serving their 'extrainfo' document
30007       to anybody who asks, now that extrainfo docs include potentially
30008       sensitive aggregated client geoip summaries. Bugfix on
30009       0.2.0.13-alpha.
30010     - If the cached networkstatus consensus is more than five days old,
30011       discard it rather than trying to use it. In theory it could be
30012       useful because it lists alternate directory mirrors, but in practice
30013       it just means we spend many minutes trying directory mirrors that
30014       are long gone from the network. Also discard router descriptors as
30015       we load them if they are more than five days old, since the onion
30016       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
30018   o Minor bugfixes:
30019     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
30020       could make gcc generate non-functional binary search code. Bugfix
30021       on 0.2.0.10-alpha.
30022     - Build correctly on platforms without socklen_t.
30023     - Compile without warnings on solaris.
30024     - Avoid potential crash on internal error during signature collection.
30025       Fixes bug 864. Patch from rovv.
30026     - Correct handling of possible malformed authority signing key
30027       certificates with internal signature types. Fixes bug 880.
30028       Bugfix on 0.2.0.3-alpha.
30029     - Fix a hard-to-trigger resource leak when logging credential status.
30030       CID 349.
30031     - When we can't initialize DNS because the network is down, do not
30032       automatically stop Tor from starting. Instead, we retry failed
30033       dns_init() every 10 minutes, and change the exit policy to reject
30034       *:* until one succeeds. Fixes bug 691.
30035     - Use 64 bits instead of 32 bits for connection identifiers used with
30036       the controller protocol, to greatly reduce risk of identifier reuse.
30037     - When we're choosing an exit node for a circuit, and we have
30038       no pending streams, choose a good general exit rather than one that
30039       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
30040     - Fix another case of assuming, when a specific exit is requested,
30041       that we know more than the user about what hosts it allows.
30042       Fixes one case of bug 752. Patch from rovv.
30043     - Clip the MaxCircuitDirtiness config option to a minimum of 10
30044       seconds. Warn the user if lower values are given in the
30045       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
30046     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
30047       user if lower values are given in the configuration. Bugfix on
30048       0.1.1.17-rc. Patch by Sebastian.
30049     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
30050       the cache because we already had a v0 descriptor with the same ID.
30051       Bugfix on 0.2.0.18-alpha.
30052     - Fix a race condition when freeing keys shared between main thread
30053       and CPU workers that could result in a memory leak. Bugfix on
30054       0.1.0.1-rc. Fixes bug 889.
30055     - Send a valid END cell back when a client tries to connect to a
30056       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
30057       840. Patch from rovv.
30058     - Check which hops rendezvous stream cells are associated with to
30059       prevent possible guess-the-streamid injection attacks from
30060       intermediate hops. Fixes another case of bug 446. Based on patch
30061       from rovv.
30062     - If a broken client asks a non-exit router to connect somewhere,
30063       do not even do the DNS lookup before rejecting the connection.
30064       Fixes another case of bug 619. Patch from rovv.
30065     - When a relay gets a create cell it can't decrypt (e.g. because it's
30066       using the wrong onion key), we were dropping it and letting the
30067       client time out. Now actually answer with a destroy cell. Fixes
30068       bug 904. Bugfix on 0.0.2pre8.
30070   o Minor bugfixes (hidden services):
30071     - Do not throw away existing introduction points on SIGHUP. Bugfix on
30072       0.0.6pre1. Patch by Karsten. Fixes bug 874.
30074   o Minor features:
30075     - Report the case where all signatures in a detached set are rejected
30076       differently than the case where there is an error handling the
30077       detached set.
30078     - When we realize that another process has modified our cached
30079       descriptors, print out a more useful error message rather than
30080       triggering an assertion. Fixes bug 885. Patch from Karsten.
30081     - Implement the 0x20 hack to better resist DNS poisoning: set the
30082       case on outgoing DNS requests randomly, and reject responses that do
30083       not match the case correctly. This logic can be disabled with the
30084       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
30085       of servers that do not reliably preserve case in replies. See
30086       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
30087       for more info.
30088     - Check DNS replies for more matching fields to better resist DNS
30089       poisoning.
30090     - Never use OpenSSL compression: it wastes RAM and CPU trying to
30091       compress cells, which are basically all encrypted, compressed, or
30092       both.
30095 Changes in version 0.2.1.11-alpha - 2009-01-20
30096   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
30097   week it will take a long time to bootstrap again" bug. It also fixes
30098   an important security-related bug reported by Ilja van Sprundel. You
30099   should upgrade. (We'll send out more details about the bug once people
30100   have had some time to upgrade.)
30102   o Security fixes:
30103     - Fix a heap-corruption bug that may be remotely triggerable on
30104       some platforms. Reported by Ilja van Sprundel.
30106   o Major bugfixes:
30107     - Discard router descriptors as we load them if they are more than
30108       five days old. Otherwise if Tor is off for a long time and then
30109       starts with cached descriptors, it will try to use the onion
30110       keys in those obsolete descriptors when building circuits. Bugfix
30111       on 0.2.0.x. Fixes bug 887.
30113   o Minor features:
30114     - Try to make sure that the version of Libevent we're running with
30115       is binary-compatible with the one we built with. May address bug
30116       897 and others.
30117     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
30118       for bug 905. Bugfix on 0.2.1.7-alpha.
30119     - Add a new --enable-local-appdata configuration switch to change
30120       the default location of the datadir on win32 from APPDATA to
30121       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
30122       entirely. Patch from coderman.
30124   o Minor bugfixes:
30125     - Make outbound DNS packets respect the OutboundBindAddress setting.
30126       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
30127     - When our circuit fails at the first hop (e.g. we get a destroy
30128       cell back), avoid using that OR connection anymore, and also
30129       tell all the one-hop directory requests waiting for it that they
30130       should fail. Bugfix on 0.2.1.3-alpha.
30131     - In the torify(1) manpage, mention that tsocks will leak your
30132       DNS requests.
30135 Changes in version 0.2.1.10-alpha - 2009-01-06
30136   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
30137   would make the bridge relay not so useful if it had DirPort set to 0,
30138   and one that could let an attacker learn a little bit of information
30139   about the bridge's users), and a bug that would cause your Tor relay
30140   to ignore a circuit create request it can't decrypt (rather than reply
30141   with an error). It also fixes a wide variety of other bugs.
30143   o Major bugfixes:
30144     - If the cached networkstatus consensus is more than five days old,
30145       discard it rather than trying to use it. In theory it could
30146       be useful because it lists alternate directory mirrors, but in
30147       practice it just means we spend many minutes trying directory
30148       mirrors that are long gone from the network. Helps bug 887 a bit;
30149       bugfix on 0.2.0.x.
30150     - Bridge relays that had DirPort set to 0 would stop fetching
30151       descriptors shortly after startup, and then briefly resume
30152       after a new bandwidth test and/or after publishing a new bridge
30153       descriptor. Bridge users that try to bootstrap from them would
30154       get a recent networkstatus but would get descriptors from up to
30155       18 hours earlier, meaning most of the descriptors were obsolete
30156       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
30157     - Prevent bridge relays from serving their 'extrainfo' document
30158       to anybody who asks, now that extrainfo docs include potentially
30159       sensitive aggregated client geoip summaries. Bugfix on
30160       0.2.0.13-alpha.
30162   o Minor features:
30163     - New controller event "clients_seen" to report a geoip-based summary
30164       of which countries we've seen clients from recently. Now controllers
30165       like Vidalia can show bridge operators that they're actually making
30166       a difference.
30167     - Build correctly against versions of OpenSSL 0.9.8 or later built
30168       without support for deprecated functions.
30169     - Update to the "December 19 2008" ip-to-country file.
30171   o Minor bugfixes (on 0.2.0.x):
30172     - Authorities now vote for the Stable flag for any router whose
30173       weighted MTBF is at least 5 days, regardless of the mean MTBF.
30174     - Do not remove routers as too old if we do not have any consensus
30175       document. Bugfix on 0.2.0.7-alpha.
30176     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
30177       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
30178     - When an exit relay resolves a stream address to a local IP address,
30179       do not just keep retrying that same exit relay over and
30180       over. Instead, just close the stream. Addresses bug 872. Bugfix
30181       on 0.2.0.32. Patch from rovv.
30182     - If a hidden service sends us an END cell, do not consider
30183       retrying the connection; just close it. Patch from rovv.
30184     - When we made bridge authorities stop serving bridge descriptors over
30185       unencrypted links, we also broke DirPort reachability testing for
30186       bridges. So bridges with a non-zero DirPort were printing spurious
30187       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
30188     - When a relay gets a create cell it can't decrypt (e.g. because it's
30189       using the wrong onion key), we were dropping it and letting the
30190       client time out. Now actually answer with a destroy cell. Fixes
30191       bug 904. Bugfix on 0.0.2pre8.
30192     - Squeeze 2-5% out of client performance (according to oprofile) by
30193       improving the implementation of some policy-manipulation functions.
30195   o Minor bugfixes (on 0.2.1.x):
30196     - Make get_interface_address() function work properly again; stop
30197       guessing the wrong parts of our address as our address.
30198     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
30199       send on that circuit. Otherwise we might violate the proposal-110
30200       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
30201       thanks to Karsten.
30202     - When we're sending non-EXTEND cells to the first hop in a circuit,
30203       for example to use an encrypted directory connection, we don't need
30204       to use RELAY_EARLY cells: the first hop knows what kind of cell
30205       it is, and nobody else can even see the cell type. Conserving
30206       RELAY_EARLY cells makes it easier to cannibalize circuits like
30207       this later.
30208     - Stop logging nameserver addresses in reverse order.
30209     - If we are retrying a directory download slowly over and over, do
30210       not automatically give up after the 254th failure. Bugfix on
30211       0.2.1.9-alpha.
30212     - Resume reporting accurate "stream end" reasons to the local control
30213       port. They were lost in the changes for Proposal 148. Bugfix on
30214       0.2.1.9-alpha.
30216   o Deprecated and removed features:
30217     - The old "tor --version --version" command, which would print out
30218       the subversion "Id" of most of the source files, is now removed. It
30219       turned out to be less useful than we'd expected, and harder to
30220       maintain.
30222   o Code simplifications and refactoring:
30223     - Change our header file guard macros to be less likely to conflict
30224       with system headers. Adam Langley noticed that we were conflicting
30225       with log.h on Android.
30226     - Tool-assisted documentation cleanup. Nearly every function or
30227       static variable in Tor should have its own documentation now.
30230 Changes in version 0.2.1.9-alpha - 2008-12-25
30231   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
30233   o New directory authorities:
30234     - gabelmoo (the authority run by Karsten Loesing) now has a new
30235       IP address.
30237   o Security fixes:
30238     - Never use a connection with a mismatched address to extend a
30239       circuit, unless that connection is canonical. A canonical
30240       connection is one whose address is authenticated by the router's
30241       identity key, either in a NETINFO cell or in a router descriptor.
30242     - Avoid a possible memory corruption bug when receiving hidden service
30243       descriptors. Bugfix on 0.2.1.6-alpha.
30245   o Major bugfixes:
30246     - Fix a logic error that would automatically reject all but the first
30247       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
30248       part of bug 813/868. Bug spotted by coderman.
30249     - When a stream at an exit relay is in state "resolving" or
30250       "connecting" and it receives an "end" relay cell, the exit relay
30251       would silently ignore the end cell and not close the stream. If
30252       the client never closes the circuit, then the exit relay never
30253       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
30254       reported by "wood".
30255     - When we can't initialize DNS because the network is down, do not
30256       automatically stop Tor from starting. Instead, retry failed
30257       dns_init() every 10 minutes, and change the exit policy to reject
30258       *:* until one succeeds. Fixes bug 691.
30260   o Minor features:
30261     - Give a better error message when an overzealous init script says
30262       "sudo -u username tor --user username". Makes Bug 882 easier for
30263       users to diagnose.
30264     - When a directory authority gives us a new guess for our IP address,
30265       log which authority we used. Hopefully this will help us debug
30266       the recent complaints about bad IP address guesses.
30267     - Detect svn revision properly when we're using git-svn.
30268     - Try not to open more than one descriptor-downloading connection
30269       to an authority at once. This should reduce load on directory
30270       authorities. Fixes bug 366.
30271     - Add cross-certification to newly generated certificates, so that
30272       a signing key is enough information to look up a certificate.
30273       Partial implementation of proposal 157.
30274     - Start serving certificates by <identity digest, signing key digest>
30275       pairs. Partial implementation of proposal 157.
30276     - Clients now never report any stream end reason except 'MISC'.
30277       Implements proposal 148.
30278     - On platforms with a maximum syslog string length, truncate syslog
30279       messages to that length ourselves, rather than relying on the
30280       system to do it for us.
30281     - Optimize out calls to time(NULL) that occur for every IO operation,
30282       or for every cell. On systems where time() is a slow syscall,
30283       this fix will be slightly helpful.
30284     - Exit servers can now answer resolve requests for ip6.arpa addresses.
30285     - When we download a descriptor that we then immediately (as
30286       a directory authority) reject, do not retry downloading it right
30287       away. Should save some bandwidth on authorities. Fix for bug
30288       888. Patch by Sebastian Hahn.
30289     - When a download gets us zero good descriptors, do not notify
30290       Tor that new directory information has arrived.
30291     - Avoid some nasty corner cases in the logic for marking connections
30292       as too old or obsolete or noncanonical for circuits. Partial
30293       bugfix on bug 891.
30295   o Minor features (controller):
30296     - New CONSENSUS_ARRIVED event to note when a new consensus has
30297       been fetched and validated.
30298     - When we realize that another process has modified our cached
30299       descriptors file, print out a more useful error message rather
30300       than triggering an assertion. Fixes bug 885. Patch from Karsten.
30301     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
30302       controllers to prevent SIGHUP from reloading the
30303       configuration. Fixes bug 856.
30305   o Minor bugfixes:
30306     - Resume using the correct "REASON=" stream when telling the
30307       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
30308     - When a canonical connection appears later in our internal list
30309       than a noncanonical one for a given OR ID, always use the
30310       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
30311       Spotted by rovv.
30312     - Clip the MaxCircuitDirtiness config option to a minimum of 10
30313       seconds. Warn the user if lower values are given in the
30314       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
30315     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
30316       user if lower values are given in the configuration. Bugfix on
30317       0.1.1.17-rc. Patch by Sebastian.
30318     - Fix a race condition when freeing keys shared between main thread
30319       and CPU workers that could result in a memory leak. Bugfix on
30320       0.1.0.1-rc. Fixes bug 889.
30322   o Minor bugfixes (hidden services):
30323     - Do not throw away existing introduction points on SIGHUP (bugfix on
30324       0.0.6pre1); also, do not stall hidden services because we're
30325       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
30326       by John Brooks. Patch by Karsten. Fixes bug 874.
30327     - Fix a memory leak when we decline to add a v2 rendezvous
30328       descriptor to the cache because we already had a v0 descriptor
30329       with the same ID. Bugfix on 0.2.0.18-alpha.
30331   o Deprecated and removed features:
30332     - RedirectExits has been removed. It was deprecated since
30333       0.2.0.3-alpha.
30334     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
30335       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
30336     - Cell pools are now always enabled; --disable-cell-pools is ignored.
30338   o Code simplifications and refactoring:
30339     - Rename the confusing or_is_obsolete field to the more appropriate
30340       is_bad_for_new_circs, and move it to or_connection_t where it
30341       belongs.
30342     - Move edge-only flags from connection_t to edge_connection_t: not
30343       only is this better coding, but on machines of plausible alignment,
30344       it should save 4-8 bytes per connection_t. "Every little bit helps."
30345     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
30346       for consistency; keep old option working for backward compatibility.
30347     - Simplify the code for finding connections to use for a circuit.
30350 Changes in version 0.2.1.8-alpha - 2008-12-08
30351   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
30352   builds better on unusual platforms like Solaris and old OS X, and
30353   fixes a variety of other issues.
30355   o Major features:
30356     - New DirPortFrontPage option that takes an html file and publishes
30357       it as "/" on the DirPort. Now relay operators can provide a
30358       disclaimer without needing to set up a separate webserver. There's
30359       a sample disclaimer in contrib/tor-exit-notice.html.
30361   o Security fixes:
30362     - When the client is choosing entry guards, now it selects at most
30363       one guard from a given relay family. Otherwise we could end up with
30364       all of our entry points into the network run by the same operator.
30365       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
30367   o Major bugfixes:
30368     - Fix a DOS opportunity during the voting signature collection process
30369       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
30370     - Fix a possible segfault when establishing an exit connection. Bugfix
30371       on 0.2.1.5-alpha.
30373   o Minor bugfixes:
30374     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
30375       bug 859.
30376     - Made Tor a little less aggressive about deleting expired
30377       certificates. Partial fix for bug 854.
30378     - Stop doing unaligned memory access that generated bus errors on
30379       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
30380     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
30381       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
30382     - Make USR2 log-level switch take effect immediately. Bugfix on
30383       0.1.2.8-beta.
30384     - If one win32 nameserver fails to get added, continue adding the
30385       rest, and don't automatically fail.
30386     - Use fcntl() for locking when flock() is not available. Should fix
30387       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
30388     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
30389       could make gcc generate non-functional binary search code. Bugfix
30390       on 0.2.0.10-alpha.
30391     - Build correctly on platforms without socklen_t.
30392     - Avoid potential crash on internal error during signature collection.
30393       Fixes bug 864. Patch from rovv.
30394     - Do not use C's stdio library for writing to log files. This will
30395       improve logging performance by a minute amount, and will stop
30396       leaking fds when our disk is full. Fixes bug 861.
30397     - Stop erroneous use of O_APPEND in cases where we did not in fact
30398       want to re-seek to the end of a file before every last write().
30399     - Correct handling of possible malformed authority signing key
30400       certificates with internal signature types. Fixes bug 880. Bugfix
30401       on 0.2.0.3-alpha.
30402     - Fix a hard-to-trigger resource leak when logging credential status.
30403       CID 349.
30405   o Minor features:
30406     - Directory mirrors no longer fetch the v1 directory or
30407       running-routers files. They are obsolete, and nobody asks for them
30408       anymore. This is the first step to making v1 authorities obsolete.
30410   o Minor features (controller):
30411     - Return circuit purposes in response to GETINFO circuit-status. Fixes
30412       bug 858.
30415 Changes in version 0.2.0.32 - 2008-11-20
30416   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
30417   packages (and maybe other packages) noticed by Theo de Raadt, fixes
30418   a smaller security flaw that might allow an attacker to access local
30419   services, further improves hidden service performance, and fixes a
30420   variety of other issues.
30422   o Security fixes:
30423     - The "User" and "Group" config options did not clear the
30424       supplementary group entries for the Tor process. The "User" option
30425       is now more robust, and we now set the groups to the specified
30426       user's primary group. The "Group" option is now ignored. For more
30427       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
30428       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
30429       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
30430     - The "ClientDNSRejectInternalAddresses" config option wasn't being
30431       consistently obeyed: if an exit relay refuses a stream because its
30432       exit policy doesn't allow it, we would remember what IP address
30433       the relay said the destination address resolves to, even if it's
30434       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
30436   o Major bugfixes:
30437     - Fix a DOS opportunity during the voting signature collection process
30438       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
30440   o Major bugfixes (hidden services):
30441     - When fetching v0 and v2 rendezvous service descriptors in parallel,
30442       we were failing the whole hidden service request when the v0
30443       descriptor fetch fails, even if the v2 fetch is still pending and
30444       might succeed. Similarly, if the last v2 fetch fails, we were
30445       failing the whole hidden service request even if a v0 fetch is
30446       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
30447     - When extending a circuit to a hidden service directory to upload a
30448       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
30449       requests failed, because the router descriptor has not been
30450       downloaded yet. In these cases, do not attempt to upload the
30451       rendezvous descriptor, but wait until the router descriptor is
30452       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
30453       descriptor from a hidden service directory for which the router
30454       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
30455       on 0.2.0.10-alpha.
30457   o Minor bugfixes:
30458     - Fix several infrequent memory leaks spotted by Coverity.
30459     - When testing for libevent functions, set the LDFLAGS variable
30460       correctly. Found by Riastradh.
30461     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
30462       bootstrapping with tunneled directory connections. Bugfix on
30463       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
30464     - When asked to connect to A.B.exit:80, if we don't know the IP for A
30465       and we know that server B rejects most-but-not all connections to
30466       port 80, we would previously reject the connection. Now, we assume
30467       the user knows what they were asking for. Fixes bug 752. Bugfix
30468       on 0.0.9rc5. Diagnosed by BarkerJr.
30469     - If we overrun our per-second write limits a little, count this as
30470       having used up our write allocation for the second, and choke
30471       outgoing directory writes. Previously, we had only counted this when
30472       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
30473       Bugfix on 0.2.0.x (??).
30474     - Remove the old v2 directory authority 'lefkada' from the default
30475       list. It has been gone for many months.
30476     - Stop doing unaligned memory access that generated bus errors on
30477       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
30478     - Make USR2 log-level switch take effect immediately. Bugfix on
30479       0.1.2.8-beta.
30481   o Minor bugfixes (controller):
30482     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
30483       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
30486 Changes in version 0.2.1.7-alpha - 2008-11-08
30487   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
30488   packages (and maybe other packages) noticed by Theo de Raadt, fixes
30489   a smaller security flaw that might allow an attacker to access local
30490   services, adds better defense against DNS poisoning attacks on exit
30491   relays, further improves hidden service performance, and fixes a
30492   variety of other issues.
30494   o Security fixes:
30495     - The "ClientDNSRejectInternalAddresses" config option wasn't being
30496       consistently obeyed: if an exit relay refuses a stream because its
30497       exit policy doesn't allow it, we would remember what IP address
30498       the relay said the destination address resolves to, even if it's
30499       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
30500     - The "User" and "Group" config options did not clear the
30501       supplementary group entries for the Tor process. The "User" option
30502       is now more robust, and we now set the groups to the specified
30503       user's primary group. The "Group" option is now ignored. For more
30504       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
30505       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
30506       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
30507     - Do not use or believe expired v3 authority certificates. Patch
30508       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
30510   o Minor features:
30511     - Now NodeFamily and MyFamily config options allow spaces in
30512       identity fingerprints, so it's easier to paste them in.
30513       Suggested by Lucky Green.
30514     - Implement the 0x20 hack to better resist DNS poisoning: set the
30515       case on outgoing DNS requests randomly, and reject responses that do
30516       not match the case correctly. This logic can be disabled with the
30517       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
30518       of servers that do not reliably preserve case in replies. See
30519       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
30520       for more info.
30521     - Preserve case in replies to DNSPort requests in order to support
30522       the 0x20 hack for resisting DNS poisoning attacks.
30524   o Hidden service performance improvements:
30525     - When the client launches an introduction circuit, retry with a
30526       new circuit after 30 seconds rather than 60 seconds.
30527     - Launch a second client-side introduction circuit in parallel
30528       after a delay of 15 seconds (based on work by Christian Wilms).
30529     - Hidden services start out building five intro circuits rather
30530       than three, and when the first three finish they publish a service
30531       descriptor using those. Now we publish our service descriptor much
30532       faster after restart.
30534   o Minor bugfixes:
30535     - Minor fix in the warning messages when you're having problems
30536       bootstrapping; also, be more forgiving of bootstrap problems when
30537       we're still making incremental progress on a given bootstrap phase.
30538     - When we're choosing an exit node for a circuit, and we have
30539       no pending streams, choose a good general exit rather than one that
30540       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
30541     - Send a valid END cell back when a client tries to connect to a
30542       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
30543       840. Patch from rovv.
30544     - If a broken client asks a non-exit router to connect somewhere,
30545       do not even do the DNS lookup before rejecting the connection.
30546       Fixes another case of bug 619. Patch from rovv.
30547     - Fix another case of assuming, when a specific exit is requested,
30548       that we know more than the user about what hosts it allows.
30549       Fixes another case of bug 752. Patch from rovv.
30550     - Check which hops rendezvous stream cells are associated with to
30551       prevent possible guess-the-streamid injection attacks from
30552       intermediate hops. Fixes another case of bug 446. Based on patch
30553       from rovv.
30554     - Avoid using a negative right-shift when comparing 32-bit
30555       addresses. Possible fix for bug 845 and bug 811.
30556     - Make the assert_circuit_ok() function work correctly on circuits that
30557       have already been marked for close.
30558     - Fix read-off-the-end-of-string error in unit tests when decoding
30559       introduction points.
30560     - Fix uninitialized size field for memory area allocation: may improve
30561       memory performance during directory parsing.
30562     - Treat duplicate certificate fetches as failures, so that we do
30563       not try to re-fetch an expired certificate over and over and over.
30564     - Do not say we're fetching a certificate when we'll in fact skip it
30565       because of a pending download.
30568 Changes in version 0.2.1.6-alpha - 2008-09-30
30569   Tor 0.2.1.6-alpha further improves performance and robustness of
30570   hidden services, starts work on supporting per-country relay selection,
30571   and fixes a variety of smaller issues.
30573   o Major features:
30574     - Implement proposal 121: make it possible to build hidden services
30575       that only certain clients are allowed to connect to. This is
30576       enforced at several points, so that unauthorized clients are unable
30577       to send INTRODUCE cells to the service, or even (depending on the
30578       type of authentication) to learn introduction points. This feature
30579       raises the bar for certain kinds of active attacks against hidden
30580       services. Code by Karsten Loesing.
30581     - Relays now store and serve v2 hidden service descriptors by default,
30582       i.e., the new default value for HidServDirectoryV2 is 1. This is
30583       the last step in proposal 114, which aims to make hidden service
30584       lookups more reliable.
30585     - Start work to allow node restrictions to include country codes. The
30586       syntax to exclude nodes in a country with country code XX is
30587       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
30588       refinement to decide what config options should take priority if
30589       you ask to both use a particular node and exclude it.
30590     - Allow ExitNodes list to include IP ranges and country codes, just
30591       like the Exclude*Nodes lists. Patch from Robert Hogan.
30593   o Major bugfixes:
30594     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
30595       Tor to fail to start if you had it configured to use a bridge
30596       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
30597     - When extending a circuit to a hidden service directory to upload a
30598       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
30599       requests failed, because the router descriptor had not been
30600       downloaded yet. In these cases, we now wait until the router
30601       descriptor is downloaded, and then retry. Likewise, clients
30602       now skip over a hidden service directory if they don't yet have
30603       its router descriptor, rather than futilely requesting it and
30604       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
30605       on 0.2.0.10-alpha.
30606     - When fetching v0 and v2 rendezvous service descriptors in parallel,
30607       we were failing the whole hidden service request when the v0
30608       descriptor fetch fails, even if the v2 fetch is still pending and
30609       might succeed. Similarly, if the last v2 fetch fails, we were
30610       failing the whole hidden service request even if a v0 fetch is
30611       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
30612     - DNS replies need to have names matching their requests, but
30613       these names should be in the questions section, not necessarily
30614       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
30616   o Minor features:
30617     - Update to the "September 1 2008" ip-to-country file.
30618     - Allow ports 465 and 587 in the default exit policy again. We had
30619       rejected them in 0.1.0.15, because back in 2005 they were commonly
30620       misconfigured and ended up as spam targets. We hear they are better
30621       locked down these days.
30622     - Use a lockfile to make sure that two Tor processes are not
30623       simultaneously running with the same datadir.
30624     - Serve the latest v3 networkstatus consensus via the control
30625       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
30626     - Better logging about stability/reliability calculations on directory
30627       servers.
30628     - Drop the requirement to have an open dir port for storing and
30629       serving v2 hidden service descriptors.
30630     - Directory authorities now serve a /tor/dbg-stability.txt URL to
30631       help debug WFU and MTBF calculations.
30632     - Implement most of Proposal 152: allow specialized servers to permit
30633       single-hop circuits, and clients to use those servers to build
30634       single-hop circuits when using a specialized controller. Patch
30635       from Josh Albrecht. Resolves feature request 768.
30636     - Add a -p option to tor-resolve for specifying the SOCKS port: some
30637       people find host:port too confusing.
30638     - Make TrackHostExit mappings expire a while after their last use, not
30639       after their creation. Patch from Robert Hogan.
30640     - Provide circuit purposes along with circuit events to the controller.
30642   o Minor bugfixes:
30643     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
30644       Reported by Tas.
30645     - Fixed some memory leaks -- some quite frequent, some almost
30646       impossible to trigger -- based on results from Coverity.
30647     - When testing for libevent functions, set the LDFLAGS variable
30648       correctly. Found by Riastradh.
30649     - Fix an assertion bug in parsing policy-related options; possible fix
30650       for bug 811.
30651     - Catch and report a few more bootstrapping failure cases when Tor
30652       fails to establish a TCP connection. Cleanup on 0.2.1.x.
30653     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
30654       bootstrapping with tunneled directory connections. Bugfix on
30655       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
30656     - When asked to connect to A.B.exit:80, if we don't know the IP for A
30657       and we know that server B rejects most-but-not all connections to
30658       port 80, we would previously reject the connection. Now, we assume
30659       the user knows what they were asking for. Fixes bug 752. Bugfix
30660       on 0.0.9rc5. Diagnosed by BarkerJr.
30661     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
30662       service directories if they have no advertised dir port. Bugfix
30663       on 0.2.0.10-alpha.
30664     - If we overrun our per-second write limits a little, count this as
30665       having used up our write allocation for the second, and choke
30666       outgoing directory writes. Previously, we had only counted this when
30667       we had met our limits precisely. Fixes bug 824. Patch by rovv.
30668       Bugfix on 0.2.0.x (??).
30669     - Avoid a "0 divided by 0" calculation when calculating router uptime
30670       at directory authorities. Bugfix on 0.2.0.8-alpha.
30671     - Make DNS resolved controller events into "CLOSED", not
30672       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
30673       bug 807.
30674     - Fix a bug where an unreachable relay would establish enough
30675       reachability testing circuits to do a bandwidth test -- if
30676       we already have a connection to the middle hop of the testing
30677       circuit, then it could establish the last hop by using the existing
30678       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
30679       circuits no longer use entry guards in 0.2.1.3-alpha.
30680     - If we have correct permissions on $datadir, we complain to stdout
30681       and fail to start. But dangerous permissions on
30682       $datadir/cached-status/ would cause us to open a log and complain
30683       there. Now complain to stdout and fail to start in both cases. Fixes
30684       bug 820, reported by seeess.
30685     - Remove the old v2 directory authority 'lefkada' from the default
30686       list. It has been gone for many months.
30688   o Code simplifications and refactoring:
30689     - Revise the connection_new functions so that a more typesafe variant
30690       exists. This will work better with Coverity, and let us find any
30691       actual mistakes we're making here.
30692     - Refactor unit testing logic so that dmalloc can be used sensibly
30693       with unit tests to check for memory leaks.
30694     - Move all hidden-service related fields from connection and circuit
30695       structure to substructures: this way they won't eat so much memory.
30698 Changes in version 0.2.0.31 - 2008-09-03
30699   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
30700   a big bug we're seeing where in rare cases traffic from one Tor stream
30701   gets mixed into another stream, and fixes a variety of smaller issues.
30703   o Major bugfixes:
30704     - Make sure that two circuits can never exist on the same connection
30705       with the same circuit ID, even if one is marked for close. This
30706       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
30707     - Relays now reject risky extend cells: if the extend cell includes
30708       a digest of all zeroes, or asks to extend back to the relay that
30709       sent the extend cell, tear down the circuit. Ideas suggested
30710       by rovv.
30711     - If not enough of our entry guards are available so we add a new
30712       one, we might use the new one even if it overlapped with the
30713       current circuit's exit relay (or its family). Anonymity bugfix
30714       pointed out by rovv.
30716   o Minor bugfixes:
30717     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
30718       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
30719     - Correctly detect the presence of the linux/netfilter_ipv4.h header
30720       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
30721     - Pick size of default geoip filename string correctly on windows.
30722       Fixes bug 806. Bugfix on 0.2.0.30.
30723     - Make the autoconf script accept the obsolete --with-ssl-dir
30724       option as an alias for the actually-working --with-openssl-dir
30725       option. Fix the help documentation to recommend --with-openssl-dir.
30726       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
30727     - When using the TransPort option on OpenBSD, and using the User
30728       option to change UID and drop privileges, make sure to open
30729       /dev/pf before dropping privileges. Fixes bug 782. Patch from
30730       Christopher Davis. Bugfix on 0.1.2.1-alpha.
30731     - Try to attach connections immediately upon receiving a RENDEZVOUS2
30732       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
30733       on the client side when connecting to a hidden service. Bugfix
30734       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
30735     - When closing an application-side connection because its circuit is
30736       getting torn down, generate the stream event correctly. Bugfix on
30737       0.1.2.x. Anonymous patch.
30740 Changes in version 0.2.1.5-alpha - 2008-08-31
30741   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
30742   in a lot of the infrastructure for adding authorization to hidden
30743   services, lays the groundwork for having clients read their load
30744   balancing information out of the networkstatus consensus rather than
30745   the individual router descriptors, addresses two potential anonymity
30746   issues, and fixes a variety of smaller issues.
30748   o Major features:
30749     - Convert many internal address representations to optionally hold
30750       IPv6 addresses.
30751     - Generate and accept IPv6 addresses in many protocol elements.
30752     - Make resolver code handle nameservers located at ipv6 addresses.
30753     - Begin implementation of proposal 121 ("Client authorization for
30754       hidden services"): configure hidden services with client
30755       authorization, publish descriptors for them, and configure
30756       authorization data for hidden services at clients. The next
30757       step is to actually access hidden services that perform client
30758       authorization.
30759     - More progress toward proposal 141: Network status consensus
30760       documents and votes now contain bandwidth information for each
30761       router and a summary of that router's exit policy. Eventually this
30762       will be used by clients so that they do not have to download every
30763       known descriptor before building circuits.
30765   o Major bugfixes (on 0.2.0.x and before):
30766     - When sending CREATED cells back for a given circuit, use a 64-bit
30767       connection ID to find the right connection, rather than an addr:port
30768       combination. Now that we can have multiple OR connections between
30769       the same ORs, it is no longer possible to use addr:port to uniquely
30770       identify a connection.
30771     - Relays now reject risky extend cells: if the extend cell includes
30772       a digest of all zeroes, or asks to extend back to the relay that
30773       sent the extend cell, tear down the circuit. Ideas suggested
30774       by rovv.
30775     - If not enough of our entry guards are available so we add a new
30776       one, we might use the new one even if it overlapped with the
30777       current circuit's exit relay (or its family). Anonymity bugfix
30778       pointed out by rovv.
30780   o Minor bugfixes:
30781     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
30782       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
30783     - When using the TransPort option on OpenBSD, and using the User
30784       option to change UID and drop privileges, make sure to open /dev/pf
30785       before dropping privileges. Fixes bug 782. Patch from Christopher
30786       Davis. Bugfix on 0.1.2.1-alpha.
30787     - Correctly detect the presence of the linux/netfilter_ipv4.h header
30788       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
30789     - Add a missing safe_str() call for a debug log message.
30790     - Use 64 bits instead of 32 bits for connection identifiers used with
30791       the controller protocol, to greatly reduce risk of identifier reuse.
30792     - Make the autoconf script accept the obsolete --with-ssl-dir
30793       option as an alias for the actually-working --with-openssl-dir
30794       option. Fix the help documentation to recommend --with-openssl-dir.
30795       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
30797   o Minor features:
30798     - Rate-limit too-many-sockets messages: when they happen, they happen
30799       a lot. Resolves bug 748.
30800     - Resist DNS poisoning a little better by making sure that names in
30801       answer sections match.
30802     - Print the SOCKS5 error message string as well as the error code
30803       when a tor-resolve request fails. Patch from Jacob.
30806 Changes in version 0.2.1.4-alpha - 2008-08-04
30807   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
30809   o Major bugfixes:
30810     - The address part of exit policies was not correctly written
30811       to router descriptors. This generated router descriptors that failed
30812       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
30813       on 0.2.1.3-alpha.
30814     - Tor triggered a false assert when extending a circuit to a relay
30815       but we already have a connection open to that relay. Noticed by
30816       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
30818   o Minor bugfixes:
30819     - Fix a hidden service logging bug: in some edge cases, the router
30820       descriptor of a previously picked introduction point becomes
30821       obsolete and we need to give up on it rather than continually
30822       complaining that it has become obsolete. Observed by xiando. Bugfix
30823       on 0.2.1.3-alpha.
30825   o Removed features:
30826     - Take out the TestVia config option, since it was a workaround for
30827       a bug that was fixed in Tor 0.1.1.21.
30830 Changes in version 0.2.1.3-alpha - 2008-08-03
30831   Tor 0.2.1.3-alpha implements most of the pieces to prevent
30832   infinite-length circuit attacks (see proposal 110); fixes a bug that
30833   might cause exit relays to corrupt streams they send back; allows
30834   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
30835   ExcludeExitNodes config options; and fixes a big pile of bugs.
30837   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
30838     - Send a bootstrap problem "warn" event on the first problem if the
30839       reason is NO_ROUTE (that is, our network is down).
30841   o Major features:
30842     - Implement most of proposal 110: The first K cells to be sent
30843       along a circuit are marked as special "early" cells; only K "early"
30844       cells will be allowed. Once this code is universal, we can block
30845       certain kinds of DOS attack by requiring that EXTEND commands must
30846       be sent using an "early" cell.
30848   o Major bugfixes:
30849     - Try to attach connections immediately upon receiving a RENDEZVOUS2
30850       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
30851       on the client side when connecting to a hidden service. Bugfix
30852       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
30853     - Ensure that two circuits can never exist on the same connection
30854       with the same circuit ID, even if one is marked for close. This
30855       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
30857   o Minor features:
30858     - When relays do their initial bandwidth measurement, don't limit
30859       to just our entry guards for the test circuits. Otherwise we tend
30860       to have multiple test circuits going through a single entry guard,
30861       which makes our bandwidth test less accurate. Fixes part of bug 654;
30862       patch contributed by Josh Albrecht.
30863     - Add an ExcludeExitNodes option so users can list a set of nodes
30864       that should be be excluded from the exit node position, but
30865       allowed elsewhere. Implements proposal 151.
30866     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
30867       ExcludeNodes and ExcludeExitNodes lists.
30868     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
30869       be more efficient. Formerly it was quadratic in the number of
30870       servers; now it should be linear. Fixes bug 509.
30871     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
30872       and n_conn_id_digest fields into a separate structure that's
30873       only needed when the circuit has not yet attached to an n_conn.
30875   o Minor bugfixes:
30876     - Change the contrib/tor.logrotate script so it makes the new
30877       logs as "_tor:_tor" rather than the default, which is generally
30878       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
30879     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
30880       warnings (occasionally), but it can also cause the compiler to
30881       eliminate error-checking code. Suggested by Peter Gutmann.
30882     - When a hidden service is giving up on an introduction point candidate
30883       that was not included in the last published rendezvous descriptor,
30884       don't reschedule publication of the next descriptor. Fixes bug 763.
30885       Bugfix on 0.0.9.3.
30886     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
30887       HiddenServiceExcludeNodes as obsolete: they never worked properly,
30888       and nobody claims to be using them. Fixes bug 754. Bugfix on
30889       0.1.0.1-rc. Patch from Christian Wilms.
30890     - Fix a small alignment and memory-wasting bug on buffer chunks.
30891       Spotted by rovv.
30893   o Minor bugfixes (controller):
30894     - When closing an application-side connection because its circuit
30895       is getting torn down, generate the stream event correctly.
30896       Bugfix on 0.1.2.x. Anonymous patch.
30898   o Removed features:
30899     - Remove all backward-compatibility code to support relays running
30900       versions of Tor so old that they no longer work at all on the
30901       Tor network.
30904 Changes in version 0.2.0.30 - 2008-07-15
30905   o Minor bugfixes:
30906     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
30907       warnings (occasionally), but it can also cause the compiler to
30908       eliminate error-checking code. Suggested by Peter Gutmann.
30911 Changes in version 0.2.0.29-rc - 2008-07-08
30912   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
30913   hidden-service performance bugs, and fixes a bunch of smaller bugs.
30915   o Major bugfixes:
30916     - If you have more than one bridge but don't know their keys,
30917       you would only launch a request for the descriptor of the first one
30918       on your list. (Tor considered launching requests for the others, but
30919       found that it already had a connection on the way for $0000...0000
30920       so it didn't open another.) Bugfix on 0.2.0.x.
30921     - If you have more than one bridge but don't know their keys, and the
30922       connection to one of the bridges failed, you would cancel all
30923       pending bridge connections. (After all, they all have the same
30924       digest.) Bugfix on 0.2.0.x.
30925     - When a hidden service was trying to establish an introduction point,
30926       and Tor had built circuits preemptively for such purposes, we
30927       were ignoring all the preemptive circuits and launching a new one
30928       instead. Bugfix on 0.2.0.14-alpha.
30929     - When a hidden service was trying to establish an introduction point,
30930       and Tor *did* manage to reuse one of the preemptively built
30931       circuits, it didn't correctly remember which one it used,
30932       so it asked for another one soon after, until there were no
30933       more preemptive circuits, at which point it launched one from
30934       scratch. Bugfix on 0.0.9.x.
30935     - Make directory servers include the X-Your-Address-Is: http header in
30936       their responses even for begin_dir conns. Now clients who only
30937       ever use begin_dir connections still have a way to learn their IP
30938       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
30940   o Minor bugfixes:
30941     - Fix a macro/CPP interaction that was confusing some compilers:
30942       some GCCs don't like #if/#endif pairs inside macro arguments.
30943       Fixes bug 707.
30944     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
30945       Fixes bug 704; fix from Steven Murdoch.
30946     - When opening /dev/null in finish_daemonize(), do not pass the
30947       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
30948       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
30949     - Correctly detect transparent proxy support on Linux hosts that
30950       require in.h to be included before netfilter_ipv4.h. Patch
30951       from coderman.
30952     - Disallow session resumption attempts during the renegotiation
30953       stage of the v2 handshake protocol. Clients should never be trying
30954       session resumption at this point, but apparently some did, in
30955       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
30956       found by Geoff Goodell.
30959 Changes in version 0.2.1.2-alpha - 2008-06-20
30960   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
30961   make it easier to set up your own private Tor network; fixes several
30962   big bugs with using more than one bridge relay; fixes a big bug with
30963   offering hidden services quickly after Tor starts; and uses a better
30964   API for reporting potential bootstrapping problems to the controller.
30966   o Major features:
30967     - New TestingTorNetwork config option to allow adjustment of
30968       previously constant values that, while reasonable, could slow
30969       bootstrapping. Implements proposal 135. Patch from Karsten.
30971   o Major bugfixes:
30972     - If you have more than one bridge but don't know their digests,
30973       you would only learn a request for the descriptor of the first one
30974       on your list. (Tor considered launching requests for the others, but
30975       found that it already had a connection on the way for $0000...0000
30976       so it didn't open another.) Bugfix on 0.2.0.x.
30977     - If you have more than one bridge but don't know their digests,
30978       and the connection to one of the bridges failed, you would cancel
30979       all pending bridge connections. (After all, they all have the
30980       same digest.) Bugfix on 0.2.0.x.
30981     - When establishing a hidden service, introduction points that
30982       originate from cannibalized circuits are completely ignored and not
30983       included in rendezvous service descriptors. This might be another
30984       reason for delay in making a hidden service available. Bugfix
30985       from long ago (0.0.9.x?)
30987   o Minor features:
30988     - Allow OpenSSL to use dynamic locks if it wants.
30989     - When building a consensus, do not include routers that are down.
30990       This will cut down 30% to 40% on consensus size. Implements
30991       proposal 138.
30992     - In directory authorities' approved-routers files, allow
30993       fingerprints with or without space.
30994     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
30995       controller can query our current bootstrap state in case it attaches
30996       partway through and wants to catch up.
30997     - Send an initial "Starting" bootstrap status event, so we have a
30998       state to start out in.
31000   o Minor bugfixes:
31001     - Asking for a conditional consensus at .../consensus/<fingerprints>
31002       would crash a dirserver if it did not already have a
31003       consensus. Bugfix on 0.2.1.1-alpha.
31004     - Clean up some macro/CPP interactions: some GCC versions don't like
31005       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
31006       0.2.0.x.
31008   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
31009     - Directory authorities shouldn't complain about bootstrapping
31010       problems just because they do a lot of reachability testing and
31011       some of the connection attempts fail.
31012     - Start sending "count" and "recommendation" key/value pairs in
31013       bootstrap problem status events, so the controller can hear about
31014       problems even before Tor decides they're worth reporting for sure.
31015     - If you're using bridges, generate "bootstrap problem" warnings
31016       as soon as you run out of working bridges, rather than waiting
31017       for ten failures -- which will never happen if you have less than
31018       ten bridges.
31019     - If we close our OR connection because there's been a circuit
31020       pending on it for too long, we were telling our bootstrap status
31021       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
31024 Changes in version 0.2.1.1-alpha - 2008-06-13
31025   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
31026   were making the Tor process bloat especially on Linux; makes our TLS
31027   handshake blend in better; sends "bootstrap phase" status events to
31028   the controller, so it can keep the user informed of progress (and
31029   problems) fetching directory information and establishing circuits;
31030   and adds a variety of smaller features.
31032   o Major features:
31033     - More work on making our TLS handshake blend in: modify the list
31034       of ciphers advertised by OpenSSL in client mode to even more
31035       closely resemble a common web browser. We cheat a little so that
31036       we can advertise ciphers that the locally installed OpenSSL doesn't
31037       know about.
31038     - Start sending "bootstrap phase" status events to the controller,
31039       so it can keep the user informed of progress fetching directory
31040       information and establishing circuits. Also inform the controller
31041       if we think we're stuck at a particular bootstrap phase. Implements
31042       proposal 137.
31043     - Resume using OpenSSL's RAND_poll() for better (and more portable)
31044       cross-platform entropy collection again. We used to use it, then
31045       stopped using it because of a bug that could crash systems that
31046       called RAND_poll when they had a lot of fds open. It looks like the
31047       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
31048       at startup, and to call RAND_poll() when we reseed later only if
31049       we have a non-buggy OpenSSL version.
31051   o Major bugfixes:
31052     - When we choose to abandon a new entry guard because we think our
31053       older ones might be better, close any circuits pending on that
31054       new entry guard connection. This fix should make us recover much
31055       faster when our network is down and then comes back. Bugfix on
31056       0.1.2.8-beta; found by lodger.
31058   o Memory fixes and improvements:
31059     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
31060       to avoid unused RAM in buffer chunks and memory pools.
31061     - Speed up parsing and cut down on memory fragmentation by using
31062       stack-style allocations for parsing directory objects. Previously,
31063       this accounted for over 40% of allocations from within Tor's code
31064       on a typical directory cache.
31065     - Use a Bloom filter rather than a digest-based set to track which
31066       descriptors we need to keep around when we're cleaning out old
31067       router descriptors. This speeds up the computation significantly,
31068       and may reduce fragmentation.
31069     - Reduce the default smartlist size from 32 to 16; it turns out that
31070       most smartlists hold around 8-12 elements tops.
31071     - Make dumpstats() log the fullness and size of openssl-internal
31072       buffers.
31073     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
31074       patch to their OpenSSL, turn it on to save memory on servers. This
31075       patch will (with any luck) get included in a mainline distribution
31076       before too long.
31077     - Never use OpenSSL compression: it wastes RAM and CPU trying to
31078       compress cells, which are basically all encrypted, compressed,
31079       or both.
31081   o Minor bugfixes:
31082     - Stop reloading the router list from disk for no reason when we
31083       run out of reachable directory mirrors. Once upon a time reloading
31084       it would set the 'is_running' flag back to 1 for them. It hasn't
31085       done that for a long time.
31086     - In very rare situations new hidden service descriptors were
31087       published earlier than 30 seconds after the last change to the
31088       service. (We currently think that a hidden service descriptor
31089       that's been stable for 30 seconds is worth publishing.)
31091   o Minor features:
31092     - Allow separate log levels to be configured for different logging
31093       domains. For example, this allows one to log all notices, warnings,
31094       or errors, plus all memory management messages of level debug or
31095       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
31096     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
31097       and stop using a warning that had become unfixably verbose under
31098       GCC 4.3.
31099     - New --hush command-line option similar to --quiet. While --quiet
31100       disables all logging to the console on startup, --hush limits the
31101       output to messages of warning and error severity.
31102     - Servers support a new URL scheme for consensus downloads that
31103       allows the client to specify which authorities are trusted.
31104       The server then only sends the consensus if the client will trust
31105       it. Otherwise a 404 error is sent back. Clients use this
31106       new scheme when the server supports it (meaning it's running
31107       0.2.1.1-alpha or later). Implements proposal 134.
31108     - New configure/torrc options (--enable-geoip-stats,
31109       DirRecordUsageByCountry) to record how many IPs we've served
31110       directory info to in each country code, how many status documents
31111       total we've sent to each country code, and what share of the total
31112       directory requests we should expect to see.
31113     - Use the TLS1 hostname extension to more closely resemble browser
31114       behavior.
31115     - Lots of new unit tests.
31116     - Add a macro to implement the common pattern of iterating through
31117       two parallel lists in lockstep.
31120 Changes in version 0.2.0.28-rc - 2008-06-13
31121   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
31122   performance bug, and fixes a bunch of smaller bugs.
31124   o Anonymity fixes:
31125     - Fix a bug where, when we were choosing the 'end stream reason' to
31126       put in our relay end cell that we send to the exit relay, Tor
31127       clients on Windows were sometimes sending the wrong 'reason'. The
31128       anonymity problem is that exit relays may be able to guess whether
31129       the client is running Windows, thus helping partition the anonymity
31130       set. Down the road we should stop sending reasons to exit relays,
31131       or otherwise prevent future versions of this bug.
31133   o Major bugfixes:
31134     - While setting up a hidden service, some valid introduction circuits
31135       were overlooked and abandoned. This might be the reason for
31136       the long delay in making a hidden service available. Bugfix on
31137       0.2.0.14-alpha.
31139   o Minor features:
31140     - Update to the "June 9 2008" ip-to-country file.
31141     - Run 'make test' as part of 'make dist', so we stop releasing so
31142       many development snapshots that fail their unit tests.
31144   o Minor bugfixes:
31145     - When we're checking if we have enough dir info for each relay
31146       to begin establishing circuits, make sure that we actually have
31147       the descriptor listed in the consensus, not just any descriptor.
31148       Bugfix on 0.1.2.x.
31149     - Bridge relays no longer print "xx=0" in their extrainfo document
31150       for every single country code in the geoip db. Bugfix on
31151       0.2.0.27-rc.
31152     - Only warn when we fail to load the geoip file if we were planning to
31153       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
31154     - If we change our MaxAdvertisedBandwidth and then reload torrc,
31155       Tor won't realize it should publish a new relay descriptor. Fixes
31156       bug 688, reported by mfr. Bugfix on 0.1.2.x.
31157     - When we haven't had any application requests lately, don't bother
31158       logging that we have expired a bunch of descriptors. Bugfix
31159       on 0.1.2.x.
31160     - Make relay cells written on a connection count as non-padding when
31161       tracking how long a connection has been in use. Bugfix on
31162       0.2.0.1-alpha. Spotted by lodger.
31163     - Fix unit tests in 0.2.0.27-rc.
31164     - Fix compile on Windows.
31167 Changes in version 0.2.0.27-rc - 2008-06-03
31168   Tor 0.2.0.27-rc adds a few features we left out of the earlier
31169   release candidates. In particular, we now include an IP-to-country
31170   GeoIP database, so controllers can easily look up what country a
31171   given relay is in, and so bridge relays can give us some sanitized
31172   summaries about which countries are making use of bridges. (See proposal
31173   126-geoip-fetching.txt for details.)
31175   o Major features:
31176     - Include an IP-to-country GeoIP file in the tarball, so bridge
31177       relays can report sanitized summaries of the usage they're seeing.
31179   o Minor features:
31180     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
31181       Robert Hogan. Fixes the first part of bug 681.
31182     - Make bridge authorities never serve extrainfo docs.
31183     - Add support to detect Libevent versions in the 1.4.x series
31184       on mingw.
31185     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
31186     - Include a new contrib/tor-exit-notice.html file that exit relay
31187       operators can put on their website to help reduce abuse queries.
31189   o Minor bugfixes:
31190     - When tunneling an encrypted directory connection, and its first
31191       circuit fails, do not leave it unattached and ask the controller
31192       to deal. Fixes the second part of bug 681.
31193     - Make bridge authorities correctly expire old extrainfo documents
31194       from time to time.
31197 Changes in version 0.2.0.26-rc - 2008-05-13
31198   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
31199   in Debian's OpenSSL packages. All users running any 0.2.0.x version
31200   should upgrade, whether they're running Debian or not.
31202   o Major security fixes:
31203     - Use new V3 directory authority keys on the tor26, gabelmoo, and
31204       moria1 V3 directory authorities. The old keys were generated with
31205       a vulnerable version of Debian's OpenSSL package, and must be
31206       considered compromised. Other authorities' keys were not generated
31207       with an affected version of OpenSSL.
31209   o Major bugfixes:
31210     - List authority signatures as "unrecognized" based on DirServer
31211       lines, not on cert cache. Bugfix on 0.2.0.x.
31213   o Minor features:
31214     - Add a new V3AuthUseLegacyKey option to make it easier for
31215       authorities to change their identity keys if they have to.
31218 Changes in version 0.2.0.25-rc - 2008-04-23
31219   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
31221   o Major bugfixes:
31222     - Remember to initialize threading before initializing logging.
31223       Otherwise, many BSD-family implementations will crash hard on
31224       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
31226   o Minor bugfixes:
31227     - Authorities correctly free policies on bad servers on
31228       exit. Fixes bug 672. Bugfix on 0.2.0.x.
31231 Changes in version 0.2.0.24-rc - 2008-04-22
31232   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
31233   v3 directory authority, makes relays with dynamic IP addresses and no
31234   DirPort notice more quickly when their IP address changes, fixes a few
31235   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
31237   o New directory authorities:
31238     - Take lefkada out of the list of v3 directory authorities, since
31239       it has been down for months.
31240     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
31241       authority.
31243   o Major bugfixes:
31244     - Detect address changes more quickly on non-directory mirror
31245       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
31247   o Minor features (security):
31248     - Reject requests for reverse-dns lookup of names that are in
31249       a private address space. Patch from lodger.
31250     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
31251       from lodger.
31253   o Minor bugfixes (crashes):
31254     - Avoid a rare assert that can trigger when Tor doesn't have much
31255       directory information yet and it tries to fetch a v2 hidden
31256       service descriptor. Fixes bug 651, reported by nwf.
31257     - Initialize log mutex before initializing dmalloc. Otherwise,
31258       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
31259     - Use recursive pthread mutexes in order to avoid deadlock when
31260       logging debug-level messages to a controller. Bug spotted by nwf,
31261       bugfix on 0.2.0.16-alpha.
31263   o Minor bugfixes (resource management):
31264     - Keep address policies from leaking memory: start their refcount
31265       at 1, not 2. Bugfix on 0.2.0.16-alpha.
31266     - Free authority certificates on exit, so they don't look like memory
31267       leaks. Bugfix on 0.2.0.19-alpha.
31268     - Free static hashtables for policy maps and for TLS connections on
31269       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
31270     - Avoid allocating extra space when computing consensuses on 64-bit
31271       platforms. Bug spotted by aakova.
31273   o Minor bugfixes (misc):
31274     - Do not read the configuration file when we've only been told to
31275       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
31276       based on patch from Sebastian Hahn.
31277     - Exit relays that are used as a client can now reach themselves
31278       using the .exit notation, rather than just launching an infinite
31279       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
31280     - When attempting to open a logfile fails, tell us why.
31281     - Fix a dumb bug that was preventing us from knowing that we should
31282       preemptively build circuits to handle expected directory requests.
31283       Fixes bug 660. Bugfix on 0.1.2.x.
31284     - Warn less verbosely about clock skew from netinfo cells from
31285       untrusted sources. Fixes bug 663.
31286     - Make controller stream events for DNS requests more consistent,
31287       by adding "new stream" events for DNS requests, and removing
31288       spurious "stream closed" events" for cached reverse resolves.
31289       Patch from mwenge. Fixes bug 646.
31290     - Correctly notify one-hop connections when a circuit build has
31291       failed. Possible fix for bug 669. Found by lodger.
31294 Changes in version 0.2.0.23-rc - 2008-03-24
31295   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
31296   makes bootstrapping faster if the first directory mirror you contact
31297   is down. The bundles also include the new Vidalia 0.1.2 release.
31299   o Major bugfixes:
31300     - When a tunneled directory request is made to a directory server
31301       that's down, notice after 30 seconds rather than 120 seconds. Also,
31302       fail any begindir streams that are pending on it, so they can
31303       retry elsewhere. This was causing multi-minute delays on bootstrap.
31306 Changes in version 0.2.0.22-rc - 2008-03-18
31307   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
31308   enables encrypted directory connections by default for non-relays, fixes
31309   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
31310   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
31312   o Major features:
31313     - Enable encrypted directory connections by default for non-relays,
31314       so censor tools that block Tor directory connections based on their
31315       plaintext patterns will no longer work. This means Tor works in
31316       certain censored countries by default again.
31318   o Major bugfixes:
31319     - Make sure servers always request certificates from clients during
31320       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
31321     - Do not enter a CPU-eating loop when a connection is closed in
31322       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
31323       diagnosed by lodger; bugfix on 0.2.0.20-rc.
31324     - Fix assertion failure that could occur when a blocked circuit
31325       became unblocked, and it had pending client DNS requests. Bugfix
31326       on 0.2.0.1-alpha. Fixes bug 632.
31328   o Minor bugfixes (on 0.1.2.x):
31329     - Generate "STATUS_SERVER" events rather than misspelled
31330       "STATUS_SEVER" events. Caught by mwenge.
31331     - When counting the number of bytes written on a TLS connection,
31332       look at the BIO actually used for writing to the network, not
31333       at the BIO used (sometimes) to buffer data for the network.
31334       Looking at different BIOs could result in write counts on the
31335       order of ULONG_MAX. Fixes bug 614.
31336     - On Windows, correctly detect errors when listing the contents of
31337       a directory. Fix from lodger.
31339   o Minor bugfixes (on 0.2.0.x):
31340     - Downgrade "sslv3 alert handshake failure" message to INFO.
31341     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
31342       left BandwidthRate and BandwidthBurst at the default, we would be
31343       silently limited by those defaults. Now raise them to match the
31344       RelayBandwidth* values.
31345     - Fix the SVK version detection logic to work correctly on a branch.
31346     - Make --enable-openbsd-malloc work correctly on Linux with alpha
31347       CPUs. Fixes bug 625.
31348     - Logging functions now check that the passed severity is sane.
31349     - Use proper log levels in the testsuite call of
31350       get_interface_address6().
31351     - When using a nonstandard malloc, do not use the platform values for
31352       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
31353     - Make the openbsd malloc code use 8k pages on alpha CPUs and
31354       16k pages on ia64.
31355     - Detect mismatched page sizes when using --enable-openbsd-malloc.
31356     - Avoid double-marked-for-close warning when certain kinds of invalid
31357       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
31358       for bug 617. Bugfix on 0.2.0.1-alpha.
31359     - Make sure that the "NULL-means-reject *:*" convention is followed by
31360       all the policy manipulation functions, avoiding some possible crash
31361       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
31362     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
31363       actually works, and doesn't warn about every single reverse lookup.
31364       Fixes the other part of bug 617. Bugfix on 0.2.0.1-alpha.
31366   o Minor features:
31367     - Only log guard node status when guard node status has changed.
31368     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
31369       make "INFO" 75% less verbose.
31372 Changes in version 0.2.0.21-rc - 2008-03-02
31373   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
31374   makes Tor work well with Vidalia again, fixes a rare assert bug,
31375   and fixes a pair of more minor bugs. The bundles also include Vidalia
31376   0.1.0 and Torbutton 1.1.16.
31378   o Major bugfixes:
31379     - The control port should declare that it requires password auth
31380       when HashedControlSessionPassword is set too. Patch from Matt Edman;
31381       bugfix on 0.2.0.20-rc. Fixes bug 615.
31382     - Downgrade assert in connection_buckets_decrement() to a log message.
31383       This may help us solve bug 614, and in any case will make its
31384       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
31385     - We were sometimes miscounting the number of bytes read from the
31386       network, causing our rate limiting to not be followed exactly.
31387       Bugfix on 0.2.0.16-alpha. Reported by lodger.
31389   o Minor bugfixes:
31390     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
31391       OpenSSL versions should have been working fine. Diagnosis and patch
31392       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
31393       Bugfix on 0.2.0.20-rc.
31396 Changes in version 0.2.0.20-rc - 2008-02-24
31397   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
31398   makes more progress towards normalizing Tor's TLS handshake, makes
31399   hidden services work better again, helps relays bootstrap if they don't
31400   know their IP address, adds optional support for linking in openbsd's
31401   allocator or tcmalloc, allows really fast relays to scale past 15000
31402   sockets, and fixes a bunch of minor bugs reported by Veracode.
31404   o Major features:
31405     - Enable the revised TLS handshake based on the one designed by
31406       Steven Murdoch in proposal 124, as revised in proposal 130. It
31407       includes version negotiation for OR connections as described in
31408       proposal 105. The new handshake is meant to be harder for censors
31409       to fingerprint, and it adds the ability to detect certain kinds of
31410       man-in-the-middle traffic analysis attacks. The version negotiation
31411       feature will allow us to improve Tor's link protocol more safely
31412       in the future.
31413     - Choose which bridge to use proportional to its advertised bandwidth,
31414       rather than uniformly at random. This should speed up Tor for
31415       bridge users. Also do this for people who set StrictEntryNodes.
31416     - When a TrackHostExits-chosen exit fails too many times in a row,
31417       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
31419   o Major bugfixes:
31420     - Resolved problems with (re-)fetching hidden service descriptors.
31421       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
31422       and 0.2.0.19-alpha.
31423     - If we only ever used Tor for hidden service lookups or posts, we
31424       would stop building circuits and start refusing connections after
31425       24 hours, since we falsely believed that Tor was dormant. Reported
31426       by nwf; bugfix on 0.1.2.x.
31427     - Servers that don't know their own IP address should go to the
31428       authorities for their first directory fetch, even if their DirPort
31429       is off or if they don't know they're reachable yet. This will help
31430       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
31431     - When counting the number of open sockets, count not only the number
31432       of sockets we have received from the socket() call, but also
31433       the number we've gotten from accept() and socketpair(). This bug
31434       made us fail to count all sockets that we were using for incoming
31435       connections. Bugfix on 0.2.0.x.
31436     - Fix code used to find strings within buffers, when those strings
31437       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
31438     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
31439     - Add a new __HashedControlSessionPassword option for controllers
31440       to use for one-off session password hashes that shouldn't get
31441       saved to disk by SAVECONF --- Vidalia users were accumulating a
31442       pile of HashedControlPassword lines in their torrc files, one for
31443       each time they had restarted Tor and then clicked Save. Make Tor
31444       automatically convert "HashedControlPassword" to this new option but
31445       only when it's given on the command line. Partial fix for bug 586.
31447   o Minor features (performance):
31448     - Tune parameters for cell pool allocation to minimize amount of
31449       RAM overhead used.
31450     - Add OpenBSD malloc code from phk as an optional malloc
31451       replacement on Linux: some glibc libraries do very poorly
31452       with Tor's memory allocation patterns. Pass
31453       --enable-openbsd-malloc to get the replacement malloc code.
31454     - Add a --with-tcmalloc option to the configure script to link
31455       against tcmalloc (if present). Does not yet search for
31456       non-system include paths.
31457     - Stop imposing an arbitrary maximum on the number of file descriptors
31458       used for busy servers. Bug reported by Olaf Selke; patch from
31459       Sebastian Hahn.
31461   o Minor features (other):
31462     - When SafeLogging is disabled, log addresses along with all TLS
31463       errors.
31464     - When building with --enable-gcc-warnings, check for whether Apple's
31465       warning "-Wshorten-64-to-32" is available.
31466     - Add a --passphrase-fd argument to the tor-gencert command for
31467       scriptability.
31469   o Minor bugfixes (memory leaks and code problems):
31470     - We were leaking a file descriptor if Tor started with a zero-length
31471       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
31472     - Detect size overflow in zlib code. Reported by Justin Ferguson and
31473       Dan Kaminsky.
31474     - We were comparing the raw BridgePassword entry with a base64'ed
31475       version of it, when handling a "/tor/networkstatus-bridges"
31476       directory request. Now compare correctly. Noticed by Veracode.
31477     - Recover from bad tracked-since value in MTBF-history file.
31478       Should fix bug 537.
31479     - Alter the code that tries to recover from unhandled write
31480       errors, to not try to flush onto a socket that's given us
31481       unhandled errors. Bugfix on 0.1.2.x.
31482     - Make Unix controlsockets work correctly on OpenBSD. Patch from
31483       tup. Bugfix on 0.2.0.3-alpha.
31485   o Minor bugfixes (other):
31486     - If we have an extra-info document for our server, always make
31487       it available on the control port, even if we haven't gotten
31488       a copy of it from an authority yet. Patch from mwenge.
31489     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
31490     - Directory mirrors no longer include a guess at the client's IP
31491       address if the connection appears to be coming from the same /24
31492       network; it was producing too many wrong guesses.
31493     - Make the new hidden service code respect the SafeLogging setting.
31494       Bugfix on 0.2.0.x. Patch from Karsten.
31495     - When starting as an authority, do not overwrite all certificates
31496       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
31497     - If we're trying to flush the last bytes on a connection (for
31498       example, when answering a directory request), reset the
31499       time-to-give-up timeout every time we manage to write something
31500       on the socket. Bugfix on 0.1.2.x.
31501     - Change the behavior of "getinfo status/good-server-descriptor"
31502       so it doesn't return failure when any authority disappears.
31503     - Even though the man page said that "TrackHostExits ." should
31504       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
31505     - Report TLS "zero return" case as a "clean close" and "IO error"
31506       as a "close". Stop calling closes "unexpected closes": existing
31507       Tors don't use SSL_close(), so having a connection close without
31508       the TLS shutdown handshake is hardly unexpected.
31509     - Send NAMESERVER_STATUS messages for a single failed nameserver
31510       correctly.
31512   o Code simplifications and refactoring:
31513     - Remove the tor_strpartition function: its logic was confused,
31514       and it was only used for one thing that could be implemented far
31515       more easily.
31518 Changes in version 0.2.0.19-alpha - 2008-02-09
31519   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
31520   handshake, makes path selection for relays more secure and IP address
31521   guessing more robust, and generally fixes a lot of bugs in preparation
31522   for calling the 0.2.0 branch stable.
31524   o Major features:
31525     - Do not include recognizeable strings in the commonname part of
31526       Tor's x509 certificates.
31528   o Major bugfixes:
31529     - If we're a relay, avoid picking ourselves as an introduction point,
31530       a rendezvous point, or as the final hop for internal circuits. Bug
31531       reported by taranis and lodger. Bugfix on 0.1.2.x.
31532     - Patch from "Andrew S. Lists" to catch when we contact a directory
31533       mirror at IP address X and he says we look like we're coming from
31534       IP address X. Bugfix on 0.1.2.x.
31536   o Minor features (security):
31537     - Be more paranoid about overwriting sensitive memory on free(),
31538       as a defensive programming tactic to ensure forward secrecy.
31540   o Minor features (directory authority):
31541     - Actually validate the options passed to AuthDirReject,
31542       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
31543     - Reject router descriptors with out-of-range bandwidthcapacity or
31544       bandwidthburst values.
31546   o Minor features (controller):
31547     - Reject controller commands over 1MB in length. This keeps rogue
31548       processes from running us out of memory.
31550   o Minor features (misc):
31551     - Give more descriptive well-formedness errors for out-of-range
31552       hidden service descriptor/protocol versions.
31553     - Make memory debugging information describe more about history
31554       of cell allocation, so we can help reduce our memory use.
31556   o Deprecated features (controller):
31557     - The status/version/num-versioning and status/version/num-concurring
31558       GETINFO options are no longer useful in the v3 directory protocol:
31559       treat them as deprecated, and warn when they're used.
31561   o Minor bugfixes:
31562     - When our consensus networkstatus has been expired for a while, stop
31563       being willing to build circuits using it. Fixes bug 401. Bugfix
31564       on 0.1.2.x.
31565     - Directory caches now fetch certificates from all authorities
31566       listed in a networkstatus consensus, even when they do not
31567       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
31568     - When connecting to a bridge without specifying its key, insert
31569       the connection into the identity-to-connection map as soon as
31570       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
31571     - Detect versions of OS X where malloc_good_size() is present in the
31572       library but never actually declared. Resolves bug 587. Bugfix
31573       on 0.2.0.x.
31574     - Stop incorrectly truncating zlib responses to directory authority
31575       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
31576     - Stop recommending that every server operator send mail to tor-ops.
31577       Resolves bug 597. Bugfix on 0.1.2.x.
31578     - Don't trigger an assert if we start a directory authority with a
31579       private IP address (like 127.0.0.1).
31580     - Avoid possible failures when generating a directory with routers
31581       with over-long versions strings, or too many flags set. Bugfix
31582       on 0.1.2.x.
31583     - If an attempt to launch a DNS resolve request over the control
31584       port fails because we have overrun the limit on the number of
31585       connections, tell the controller that the request has failed.
31586     - Avoid using too little bandwidth when our clock skips a few
31587       seconds. Bugfix on 0.1.2.x.
31588     - Fix shell error when warning about missing packages in configure
31589       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
31590     - Do not become confused when receiving a spurious VERSIONS-like
31591       cell from a confused v1 client. Bugfix on 0.2.0.x.
31592     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
31593       introduction points for a hidden service have failed. Patch from
31594       Karsten Loesing. Bugfix on 0.2.0.x.
31596   o Code simplifications and refactoring:
31597     - Remove some needless generality from cpuworker code, for improved
31598       type-safety.
31599     - Stop overloading the circuit_t.onionskin field for both "onionskin
31600       from a CREATE cell that we are waiting for a cpuworker to be
31601       assigned" and "onionskin from an EXTEND cell that we are going to
31602       send to an OR as soon as we are connected". Might help with bug 600.
31603     - Add an in-place version of aes_crypt() so that we can avoid doing a
31604       needless memcpy() call on each cell payload.
31607 Changes in version 0.2.0.18-alpha - 2008-01-25
31608   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
31609   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
31610   that can warn or reject connections to ports generally associated with
31611   vulnerable-plaintext protocols.
31613   o New directory authorities:
31614     - Set up dannenberg (run by CCC) as the sixth v3 directory
31615       authority.
31617   o Major bugfixes:
31618     - Fix a major memory leak when attempting to use the v2 TLS
31619       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
31620     - We accidentally enabled the under-development v2 TLS handshake
31621       code, which was causing log entries like "TLS error while
31622       renegotiating handshake". Disable it again. Resolves bug 590.
31623     - We were computing the wrong Content-Length: header for directory
31624       responses that need to be compressed on the fly, causing clients
31625       asking for those items to always fail. Bugfix on 0.2.0.x; partially
31626       fixes bug 593.
31628   o Major features:
31629     - Avoid going directly to the directory authorities even if you're a
31630       relay, if you haven't found yourself reachable yet or if you've
31631       decided not to advertise your dirport yet. Addresses bug 556.
31632     - If we've gone 12 hours since our last bandwidth check, and we
31633       estimate we have less than 50KB bandwidth capacity but we could
31634       handle more, do another bandwidth test.
31635     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
31636       Tor can warn and/or refuse connections to ports commonly used with
31637       vulnerable-plaintext protocols. Currently we warn on ports 23,
31638       109, 110, and 143, but we don't reject any.
31640   o Minor bugfixes:
31641     - When we setconf ClientOnly to 1, close any current OR and Dir
31642       listeners. Reported by mwenge.
31643     - When we get a consensus that's been signed by more people than
31644       we expect, don't log about it; it's not a big deal. Reported
31645       by Kyle Williams.
31647   o Minor features:
31648     - Don't answer "/tor/networkstatus-bridges" directory requests if
31649       the request isn't encrypted.
31650     - Make "ClientOnly 1" config option disable directory ports too.
31651     - Patches from Karsten Loesing to make v2 hidden services more
31652       robust: work even when there aren't enough HSDir relays available;
31653       retry when a v2 rend desc fetch fails; but don't retry if we
31654       already have a usable v0 rend desc.
31657 Changes in version 0.2.0.17-alpha - 2008-01-17
31658   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
31660   o Compile fixes:
31661     - Make the tor-gencert man page get included correctly in the tarball.
31664 Changes in version 0.2.0.16-alpha - 2008-01-17
31665   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
31666   Loesing, and generally cleans up a lot of features and minor bugs.
31668   o New directory authorities:
31669     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
31670       authority.
31672   o Major performance improvements:
31673     - Switch our old ring buffer implementation for one more like that
31674       used by free Unix kernels. The wasted space in a buffer with 1mb
31675       of data will now be more like 8k than 1mb. The new implementation
31676       also avoids realloc();realloc(); patterns that can contribute to
31677       memory fragmentation.
31679   o Minor features:
31680     - Configuration files now accept C-style strings as values. This
31681       helps encode characters not allowed in the current configuration
31682       file format, such as newline or #. Addresses bug 557.
31683     - Although we fixed bug 539 (where servers would send HTTP status 503
31684       responses _and_ send a body too), there are still servers out
31685       there that haven't upgraded. Therefore, make clients parse such
31686       bodies when they receive them.
31687     - When we're not serving v2 directory information, there is no reason
31688       to actually keep any around. Remove the obsolete files and directory
31689       on startup if they are very old and we aren't going to serve them.
31691   o Minor performance improvements:
31692     - Reference-count and share copies of address policy entries; only 5%
31693       of them were actually distinct.
31694     - Never walk through the list of logs if we know that no log is
31695       interested in a given message.
31697   o Minor bugfixes:
31698     - When an authority has not signed a consensus, do not try to
31699       download a nonexistent "certificate with key 00000000". Bugfix
31700       on 0.2.0.x. Fixes bug 569.
31701     - Fix a rare assert error when we're closing one of our threads:
31702       use a mutex to protect the list of logs, so we never write to the
31703       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
31704       bug 575, which is kind of the revenge of bug 222.
31705     - Patch from Karsten Loesing to complain less at both the client
31706       and the relay when a relay used to have the HSDir flag but doesn't
31707       anymore, and we try to upload a hidden service descriptor.
31708     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
31709       0.2.0.15-alpha.
31710     - Do not try to download missing certificates until we have tried
31711       to check our fallback consensus. Fixes bug 583.
31712     - Make bridges round reported GeoIP stats info up to the nearest
31713       estimate, not down. Now we can distinguish between "0 people from
31714       this country" and "1 person from this country".
31715     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
31716     - Avoid possible segfault if key generation fails in
31717       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
31718     - Avoid segfault in the case where a badly behaved v2 versioning
31719       directory sends a signed networkstatus with missing client-versions.
31720       Bugfix on 0.1.2.
31721     - Avoid segfaults on certain complex invocations of
31722       router_get_by_hexdigest(). Bugfix on 0.1.2.
31723     - Correct bad index on array access in parse_http_time(). Bugfix
31724       on 0.2.0.
31725     - Fix possible bug in vote generation when server versions are present
31726       but client versions are not.
31727     - Fix rare bug on REDIRECTSTREAM control command when called with no
31728       port set: it could erroneously report an error when none had
31729       happened.
31730     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
31731       compressing large objects and find ourselves with more than 4k
31732       left over. Bugfix on 0.2.0.
31733     - Fix a small memory leak when setting up a hidden service.
31734     - Fix a few memory leaks that could in theory happen under bizarre
31735       error conditions.
31736     - Fix an assert if we post a general-purpose descriptor via the
31737       control port but that descriptor isn't mentioned in our current
31738       network consensus. Bug reported by Jon McLachlan; bugfix on
31739       0.2.0.9-alpha.
31741   o Minor features (controller):
31742     - Get NS events working again. Patch from tup.
31743     - The GETCONF command now escapes and quotes configuration values
31744       that don't otherwise fit into the torrc file.
31745     - The SETCONF command now handles quoted values correctly.
31747   o Minor features (directory authorities):
31748     - New configuration options to override default maximum number of
31749       servers allowed on a single IP address. This is important for
31750       running a test network on a single host.
31751     - Actually implement the -s option to tor-gencert.
31752     - Add a manual page for tor-gencert.
31754   o Minor features (bridges):
31755     - Bridge authorities no longer serve bridge descriptors over
31756       unencrypted connections.
31758   o Minor features (other):
31759     - Add hidden services and DNSPorts to the list of things that make
31760       Tor accept that it has running ports. Change starting Tor with no
31761       ports from a fatal error to a warning; we might change it back if
31762       this turns out to confuse anybody. Fixes bug 579.
31765 Changes in version 0.1.2.19 - 2008-01-17
31766   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
31767   exit policy a little bit more conservative so it's safer to run an
31768   exit relay on a home system, and fixes a variety of smaller issues.
31770   o Security fixes:
31771     - Exit policies now reject connections that are addressed to a
31772       relay's public (external) IP address too, unless
31773       ExitPolicyRejectPrivate is turned off. We do this because too
31774       many relays are running nearby to services that trust them based
31775       on network address.
31777   o Major bugfixes:
31778     - When the clock jumps forward a lot, do not allow the bandwidth
31779       buckets to become negative. Fixes bug 544.
31780     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
31781       on every successful resolve. Reported by Mike Perry.
31782     - Purge old entries from the "rephist" database and the hidden
31783       service descriptor database even when DirPort is zero.
31784     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
31785       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
31786       crashing or mis-answering these requests.
31787     - When we decide to send a 503 response to a request for servers, do
31788       not then also send the server descriptors: this defeats the whole
31789       purpose. Fixes bug 539.
31791   o Minor bugfixes:
31792     - Changing the ExitPolicyRejectPrivate setting should cause us to
31793       rebuild our server descriptor.
31794     - Fix handling of hex nicknames when answering controller requests for
31795       networkstatus by name, or when deciding whether to warn about
31796       unknown routers in a config option. (Patch from mwenge.)
31797     - Fix a couple of hard-to-trigger autoconf problems that could result
31798       in really weird results on platforms whose sys/types.h files define
31799       nonstandard integer types.
31800     - Don't try to create the datadir when running --verify-config or
31801       --hash-password. Resolves bug 540.
31802     - If we were having problems getting a particular descriptor from the
31803       directory caches, and then we learned about a new descriptor for
31804       that router, we weren't resetting our failure count. Reported
31805       by lodger.
31806     - Although we fixed bug 539 (where servers would send HTTP status 503
31807       responses _and_ send a body too), there are still servers out there
31808       that haven't upgraded. Therefore, make clients parse such bodies
31809       when they receive them.
31810     - Run correctly on systems where rlim_t is larger than unsigned long.
31811       This includes some 64-bit systems.
31812     - Run correctly on platforms (like some versions of OS X 10.5) where
31813       the real limit for number of open files is OPEN_FILES, not rlim_max
31814       from getrlimit(RLIMIT_NOFILES).
31815     - Avoid a spurious free on base64 failure.
31816     - Avoid segfaults on certain complex invocations of
31817       router_get_by_hexdigest().
31818     - Fix rare bug on REDIRECTSTREAM control command when called with no
31819       port set: it could erroneously report an error when none had
31820       happened.
31823 Changes in version 0.2.0.15-alpha - 2007-12-25
31824   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
31825   features added in 0.2.0.13-alpha.
31827   o Major bugfixes:
31828     - Fix several remotely triggerable asserts based on DirPort requests
31829       for a v2 or v3 networkstatus object before we were prepared. This
31830       was particularly bad for 0.2.0.13 and later bridge relays, who
31831       would never have a v2 networkstatus and would thus always crash
31832       when used. Bugfixes on 0.2.0.x.
31833     - Estimate the v3 networkstatus size more accurately, rather than
31834       estimating it at zero bytes and giving it artificially high priority
31835       compared to other directory requests. Bugfix on 0.2.0.x.
31837   o Minor bugfixes:
31838     - Fix configure.in logic for cross-compilation.
31839     - When we load a bridge descriptor from the cache, and it was
31840       previously unreachable, mark it as retriable so we won't just
31841       ignore it. Also, try fetching a new copy immediately. Bugfixes
31842       on 0.2.0.13-alpha.
31843     - The bridge GeoIP stats were counting other relays, for example
31844       self-reachability and authority-reachability tests.
31846   o Minor features:
31847     - Support compilation to target iPhone; patch from cjacker huang.
31848       To build for iPhone, pass the --enable-iphone option to configure.
31851 Changes in version 0.2.0.14-alpha - 2007-12-23
31852   o Major bugfixes:
31853     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
31854       without a datadirectory from a previous Tor install. Reported
31855       by Zax.
31856     - Fix a crash when we fetch a descriptor that turns out to be
31857       unexpected (it used to be in our networkstatus when we started
31858       fetching it, but it isn't in our current networkstatus), and we
31859       aren't using bridges. Bugfix on 0.2.0.x.
31860     - Fix a crash when accessing hidden services: it would work the first
31861       time you use a given introduction point for your service, but
31862       on subsequent requests we'd be using garbage memory. Fixed by
31863       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
31864     - Fix a crash when we load a bridge descriptor from disk but we don't
31865       currently have a Bridge line for it in our torrc. Bugfix on
31866       0.2.0.13-alpha.
31868   o Major features:
31869     - If bridge authorities set BridgePassword, they will serve a
31870       snapshot of known bridge routerstatuses from their DirPort to
31871       anybody who knows that password. Unset by default.
31873   o Minor bugfixes:
31874     - Make the unit tests build again.
31875     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
31876     - Make PublishServerDescriptor default to 1, so the default doesn't
31877       have to change as we invent new directory protocol versions.
31878     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
31879       be included unless sys/time.h is already included. Fixes
31880       bug 553. Bugfix on 0.2.0.x.
31881     - If we receive a general-purpose descriptor and then receive an
31882       identical bridge-purpose descriptor soon after, don't discard
31883       the next one as a duplicate.
31885   o Minor features:
31886     - If BridgeRelay is set to 1, then the default for
31887       PublishServerDescriptor is now "bridge" rather than "v2,v3".
31888     - If the user sets RelayBandwidthRate but doesn't set
31889       RelayBandwidthBurst, then make them equal rather than erroring out.
31892 Changes in version 0.2.0.13-alpha - 2007-12-21
31893   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
31894   Goodell, fixes many more bugs, and adds a lot of infrastructure for
31895   upcoming features.
31897   o New directory authorities:
31898     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
31899       authority.
31901   o Major bugfixes:
31902     - Only update guard status (usable / not usable) once we have
31903       enough directory information. This was causing us to always pick
31904       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
31905       causing us to discard all our guards on startup if we hadn't been
31906       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
31907     - Purge old entries from the "rephist" database and the hidden
31908       service descriptor databases even when DirPort is zero. Bugfix
31909       on 0.1.2.x.
31910     - We were ignoring our RelayBandwidthRate for the first 30 seconds
31911       after opening a circuit -- even a relayed circuit. Bugfix on
31912       0.2.0.3-alpha.
31913     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
31914       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
31915       crashing or mis-answering these types of requests.
31916     - Relays were publishing their server descriptor to v1 and v2
31917       directory authorities, but they didn't try publishing to v3-only
31918       authorities. Fix this; and also stop publishing to v1 authorities.
31919       Bugfix on 0.2.0.x.
31920     - When we were reading router descriptors from cache, we were ignoring
31921       the annotations -- so for example we were reading in bridge-purpose
31922       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
31923     - When we decided to send a 503 response to a request for servers, we
31924       were then also sending the server descriptors: this defeats the
31925       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
31927   o Major features:
31928     - Bridge relays now behave like clients with respect to time
31929       intervals for downloading new consensus documents -- otherwise they
31930       stand out. Bridge users now wait until the end of the interval,
31931       so their bridge relay will be sure to have a new consensus document.
31932     - Three new config options (AlternateDirAuthority,
31933       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
31934       user selectively replace the default directory authorities by type,
31935       rather than the all-or-nothing replacement that DirServer offers.
31936     - Tor can now be configured to read a GeoIP file from disk in one
31937       of two formats. This can be used by controllers to map IP addresses
31938       to countries. Eventually, it may support exit-by-country.
31939     - When possible, bridge relays remember which countries users
31940       are coming from, and report aggregate information in their
31941       extra-info documents, so that the bridge authorities can learn
31942       where Tor is blocked.
31943     - Bridge directory authorities now do reachability testing on the
31944       bridges they know. They provide router status summaries to the
31945       controller via "getinfo ns/purpose/bridge", and also dump summaries
31946       to a file periodically.
31947     - Stop fetching directory info so aggressively if your DirPort is
31948       on but your ORPort is off; stop fetching v2 dir info entirely.
31949       You can override these choices with the new FetchDirInfoEarly
31950       config option.
31952   o Minor bugfixes:
31953     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
31954       consensus documents when there are too many relays at a single
31955       IP address. Now clear it in v2 network status documents too, and
31956       also clear it in routerinfo_t when the relay is no longer listed
31957       in the relevant networkstatus document.
31958     - Don't crash if we get an unexpected value for the
31959       PublishServerDescriptor config option. Reported by Matt Edman;
31960       bugfix on 0.2.0.9-alpha.
31961     - Our new v2 hidden service descriptor format allows descriptors
31962       that have no introduction points. But Tor crashed when we tried
31963       to build a descriptor with no intro points (and it would have
31964       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
31965       by Karsten Loesing.
31966     - Fix building with dmalloc 5.5.2 with glibc.
31967     - Reject uploaded descriptors and extrainfo documents if they're
31968       huge. Otherwise we'll cache them all over the network and it'll
31969       clog everything up. Reported by Aljosha Judmayer.
31970     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
31971       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
31972     - When the DANGEROUS_VERSION controller status event told us we're
31973       running an obsolete version, it used the string "OLD" to describe
31974       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
31975       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
31976     - If we can't expand our list of entry guards (e.g. because we're
31977       using bridges or we have StrictEntryNodes set), don't mark relays
31978       down when they fail a directory request. Otherwise we're too quick
31979       to mark all our entry points down. Bugfix on 0.1.2.x.
31980     - Fix handling of hex nicknames when answering controller requests for
31981       networkstatus by name, or when deciding whether to warn about unknown
31982       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
31983     - Fix a couple of hard-to-trigger autoconf problems that could result
31984       in really weird results on platforms whose sys/types.h files define
31985       nonstandard integer types. Bugfix on 0.1.2.x.
31986     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
31987     - Don't crash on name lookup when we have no current consensus. Fixes
31988       bug 538; bugfix on 0.2.0.x.
31989     - Only Tors that want to mirror the v2 directory info should
31990       create the "cached-status" directory in their datadir. (All Tors
31991       used to create it.) Bugfix on 0.2.0.9-alpha.
31992     - Directory authorities should only automatically download Extra Info
31993       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
31995   o Minor features:
31996     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
31997       consumers. (We already do this on HUP.)
31998     - Authorities and caches fetch the v2 networkstatus documents
31999       less often, now that v3 is encouraged.
32000     - Add a new config option BridgeRelay that specifies you want to
32001       be a bridge relay. Right now the only difference is that it makes
32002       you answer begin_dir requests, and it makes you cache dir info,
32003       even if your DirPort isn't on.
32004     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
32005       ask about source, timestamp of arrival, purpose, etc. We need
32006       something like this to help Vidalia not do GeoIP lookups on bridge
32007       addresses.
32008     - Allow multiple HashedControlPassword config lines, to support
32009       multiple controller passwords.
32010     - Authorities now decide whether they're authoritative for a given
32011       router based on the router's purpose.
32012     - New config options AuthDirBadDir and AuthDirListBadDirs for
32013       authorities to mark certain relays as "bad directories" in the
32014       networkstatus documents. Also supports the "!baddir" directive in
32015       the approved-routers file.
32018 Changes in version 0.2.0.12-alpha - 2007-11-16
32019   This twelfth development snapshot fixes some more build problems as
32020   well as a few minor bugs.
32022   o Compile fixes:
32023     - Make it build on OpenBSD again. Patch from tup.
32024     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
32025       package-building for Red Hat, OS X, etc.
32027   o Minor bugfixes (on 0.1.2.x):
32028     - Changing the ExitPolicyRejectPrivate setting should cause us to
32029       rebuild our server descriptor.
32031   o Minor bugfixes (on 0.2.0.x):
32032     - When we're lacking a consensus, don't try to perform rendezvous
32033       operations. Reported by Karsten Loesing.
32034     - Fix a small memory leak whenever we decide against using a
32035       newly picked entry guard. Reported by Mike Perry.
32036     - When authorities detected more than two relays running on the same
32037       IP address, they were clearing all the status flags but forgetting
32038       to clear the "hsdir" flag. So clients were being told that a
32039       given relay was the right choice for a v2 hsdir lookup, yet they
32040       never had its descriptor because it was marked as 'not running'
32041       in the consensus.
32042     - If we're trying to fetch a bridge descriptor and there's no way
32043       the bridge authority could help us (for example, we don't know
32044       a digest, or there is no bridge authority), don't be so eager to
32045       fall back to asking the bridge authority.
32046     - If we're using bridges or have strictentrynodes set, and our
32047       chosen exit is in the same family as all our bridges/entry guards,
32048       then be flexible about families.
32050   o Minor features:
32051     - When we negotiate a v2 link-layer connection (not yet implemented),
32052       accept RELAY_EARLY cells and turn them into RELAY cells if we've
32053       negotiated a v1 connection for their next step. Initial code for
32054       proposal 110.
32057 Changes in version 0.2.0.11-alpha - 2007-11-12
32058   This eleventh development snapshot fixes some build problems with
32059   the previous snapshot. It also includes a more secure-by-default exit
32060   policy for relays, fixes an enormous memory leak for exit relays, and
32061   fixes another bug where servers were falling out of the directory list.
32063   o Security fixes:
32064     - Exit policies now reject connections that are addressed to a
32065       relay's public (external) IP address too, unless
32066       ExitPolicyRejectPrivate is turned off. We do this because too
32067       many relays are running nearby to services that trust them based
32068       on network address. Bugfix on 0.1.2.x.
32070   o Major bugfixes:
32071     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
32072       on every successful resolve. Reported by Mike Perry; bugfix
32073       on 0.1.2.x.
32074     - On authorities, never downgrade to old router descriptors simply
32075       because they're listed in the consensus. This created a catch-22
32076       where we wouldn't list a new descriptor because there was an
32077       old one in the consensus, and we couldn't get the new one in the
32078       consensus because we wouldn't list it. Possible fix for bug 548.
32079       Also, this might cause bug 543 to appear on authorities; if so,
32080       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
32082   o Packaging fixes on 0.2.0.10-alpha:
32083     - We were including instructions about what to do with the
32084       src/config/fallback-consensus file, but we weren't actually
32085       including it in the tarball. Disable all of that for now.
32087   o Minor features:
32088     - Allow people to say PreferTunnelledDirConns rather than
32089       PreferTunneledDirConns, for those alternate-spellers out there.
32091   o Minor bugfixes:
32092     - Don't reevaluate all the information from our consensus document
32093       just because we've downloaded a v2 networkstatus that we intend
32094       to cache. Fixes bug 545; bugfix on 0.2.0.x.
32097 Changes in version 0.2.0.10-alpha - 2007-11-10
32098   This tenth development snapshot adds a third v3 directory authority
32099   run by Mike Perry, adds most of Karsten Loesing's new hidden service
32100   descriptor format, fixes a bad crash bug and new bridge bugs introduced
32101   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
32102   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
32103   addresses many more minor issues.
32105   o New directory authorities:
32106     - Set up ides (run by Mike Perry) as the third v3 directory authority.
32108   o Major features:
32109     - Allow tunnelled directory connections to ask for an encrypted
32110       "begin_dir" connection or an anonymized "uses a full Tor circuit"
32111       connection independently. Now we can make anonymized begin_dir
32112       connections for (e.g.) more secure hidden service posting and
32113       fetching.
32114     - More progress on proposal 114: code from Karsten Loesing to
32115       implement new hidden service descriptor format.
32116     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
32117       accommodate the growing number of servers that use the default
32118       and are reaching it.
32119     - Directory authorities use a new formula for selecting which nodes
32120       to advertise as Guards: they must be in the top 7/8 in terms of
32121       how long we have known about them, and above the median of those
32122       nodes in terms of weighted fractional uptime.
32123     - Make "not enough dir info yet" warnings describe *why* Tor feels
32124       it doesn't have enough directory info yet.
32126   o Major bugfixes:
32127     - Stop servers from crashing if they set a Family option (or
32128       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
32129       by Fabian Keil.
32130     - Make bridge users work again -- the move to v3 directories in
32131       0.2.0.9-alpha had introduced a number of bugs that made bridges
32132       no longer work for clients.
32133     - When the clock jumps forward a lot, do not allow the bandwidth
32134       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
32136   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
32137     - When the consensus lists a router descriptor that we previously were
32138       mirroring, but that we considered non-canonical, reload the
32139       descriptor as canonical. This fixes bug 543 where Tor servers
32140       would start complaining after a few days that they don't have
32141       enough directory information to build a circuit.
32142     - Consider replacing the current consensus when certificates arrive
32143       that make the pending consensus valid. Previously, we were only
32144       considering replacement when the new certs _didn't_ help.
32145     - Fix an assert error on startup if we didn't already have the
32146       consensus and certs cached in our datadirectory: we were caching
32147       the consensus in consensus_waiting_for_certs but then free'ing it
32148       right after.
32149     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
32150       Request) if we need more v3 certs but we've already got pending
32151       requests for all of them.
32152     - Correctly back off from failing certificate downloads. Fixes
32153       bug 546.
32154     - Authorities don't vote on the Running flag if they have been running
32155       for less than 30 minutes themselves. Fixes bug 547, where a newly
32156       started authority would vote that everyone was down.
32158   o New requirements:
32159     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
32160       it, it had no AES, and it hasn't seen any security patches since
32161       2004.
32163   o Minor features:
32164     - Clients now hold circuitless TLS connections open for 1.5 times
32165       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
32166       rebuild a new circuit over them within that timeframe. Previously,
32167       they held them open only for KeepalivePeriod (5 minutes).
32168     - Use "If-Modified-Since" to avoid retrieving consensus
32169       networkstatuses that we already have.
32170     - When we have no consensus, check FallbackNetworkstatusFile (defaults
32171       to $PREFIX/share/tor/fallback-consensus) for a consensus. This way
32172       we start knowing some directory caches.
32173     - When we receive a consensus from the future, warn about skew.
32174     - Improve skew reporting: try to give the user a better log message
32175       about how skewed they are, and how much this matters.
32176     - When we have a certificate for an authority, believe that
32177       certificate's claims about the authority's IP address.
32178     - New --quiet command-line option to suppress the default console log.
32179       Good in combination with --hash-password.
32180     - Authorities send back an X-Descriptor-Not-New header in response to
32181       an accepted-but-discarded descriptor upload. Partially implements
32182       fix for bug 535.
32183     - Make the log message for "tls error. breaking." more useful.
32184     - Better log messages about certificate downloads, to attempt to
32185       track down the second incarnation of bug 546.
32187   o Minor features (bridges):
32188     - If bridge users set UpdateBridgesFromAuthority, but the digest
32189       they ask for is a 404 from the bridge authority, they now fall
32190       back to trying the bridge directly.
32191     - Bridges now use begin_dir to publish their server descriptor to
32192       the bridge authority, even when they haven't set TunnelDirConns.
32194   o Minor features (controller):
32195     - When reporting clock skew, and we know that the clock is _at least
32196       as skewed_ as some value, but we don't know the actual value,
32197       report the value as a "minimum skew."
32199   o Utilities:
32200     - Update linux-tor-prio.sh script to allow QoS based on the uid of
32201       the Tor process. Patch from Marco Bonetti with tweaks from Mike
32202       Perry.
32204   o Minor bugfixes:
32205     - Refuse to start if both ORPort and UseBridges are set. Bugfix
32206       on 0.2.0.x, suggested by Matt Edman.
32207     - Don't stop fetching descriptors when FetchUselessDescriptors is
32208       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
32209       reported by tup and ioerror.
32210     - Better log message on vote from unknown authority.
32211     - Don't log "Launching 0 request for 0 router" message.
32213   o Minor bugfixes (memory leaks):
32214     - Stop leaking memory every time we parse a v3 certificate. Bugfix
32215       on 0.2.0.1-alpha.
32216     - Stop leaking memory every time we load a v3 certificate. Bugfix
32217       on 0.2.0.1-alpha. Fixes bug 536.
32218     - Stop leaking a cached networkstatus on exit. Bugfix on
32219       0.2.0.3-alpha.
32220     - Stop leaking voter information every time we free a consensus.
32221       Bugfix on 0.2.0.3-alpha.
32222     - Stop leaking signed data every time we check a voter signature.
32223       Bugfix on 0.2.0.3-alpha.
32224     - Stop leaking a signature every time we fail to parse a consensus or
32225       a vote. Bugfix on 0.2.0.3-alpha.
32226     - Stop leaking v2_download_status_map on shutdown. Bugfix on
32227       0.2.0.9-alpha.
32228     - Stop leaking conn->nickname every time we make a connection to a
32229       Tor relay without knowing its expected identity digest (e.g. when
32230       using bridges). Bugfix on 0.2.0.3-alpha.
32232   - Minor bugfixes (portability):
32233     - Run correctly on platforms where rlim_t is larger than unsigned
32234       long, and/or where the real limit for number of open files is
32235       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
32236       particular, these may be needed for OS X 10.5.
32239 Changes in version 0.1.2.18 - 2007-10-28
32240   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
32241   hidden service introduction that were causing huge delays, and a big
32242   bug that was causing some servers to disappear from the network status
32243   lists for a few hours each day.
32245   o Major bugfixes (crashes):
32246     - If a connection is shut down abruptly because of something that
32247       happened inside connection_flushed_some(), do not call
32248       connection_finished_flushing(). Should fix bug 451:
32249       "connection_stop_writing: Assertion conn->write_event failed"
32250       Bugfix on 0.1.2.7-alpha.
32251     - Fix possible segfaults in functions called from
32252       rend_process_relay_cell().
32254   o Major bugfixes (hidden services):
32255     - Hidden services were choosing introduction points uniquely by
32256       hexdigest, but when constructing the hidden service descriptor
32257       they merely wrote the (potentially ambiguous) nickname.
32258     - Clients now use the v2 intro format for hidden service
32259       connections: they specify their chosen rendezvous point by identity
32260       digest rather than by (potentially ambiguous) nickname. These
32261       changes could speed up hidden service connections dramatically.
32263   o Major bugfixes (other):
32264     - Stop publishing a new server descriptor just because we get a
32265       HUP signal. This led (in a roundabout way) to some servers getting
32266       dropped from the networkstatus lists for a few hours each day.
32267     - When looking for a circuit to cannibalize, consider family as well
32268       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
32269       circuit cannibalization).
32270     - When a router wasn't listed in a new networkstatus, we were leaving
32271       the flags for that router alone -- meaning it remained Named,
32272       Running, etc -- even though absence from the networkstatus means
32273       that it shouldn't be considered to exist at all anymore. Now we
32274       clear all the flags for routers that fall out of the networkstatus
32275       consensus. Fixes bug 529.
32277   o Minor bugfixes:
32278     - Don't try to access (or alter) the state file when running
32279       --list-fingerprint or --verify-config or --hash-password. Resolves
32280       bug 499.
32281     - When generating information telling us how to extend to a given
32282       router, do not try to include the nickname if it is
32283       absent. Resolves bug 467.
32284     - Fix a user-triggerable segfault in expand_filename(). (There isn't
32285       a way to trigger this remotely.)
32286     - When sending a status event to the controller telling it that an
32287       OR address is reachable, set the port correctly. (Previously we
32288       were reporting the dir port.)
32289     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
32290       command. Bugfix on 0.1.2.17.
32291     - When loading bandwidth history, do not believe any information in
32292       the future. Fixes bug 434.
32293     - When loading entry guard information, do not believe any information
32294       in the future.
32295     - When we have our clock set far in the future and generate an
32296       onion key, then re-set our clock to be correct, we should not stop
32297       the onion key from getting rotated.
32298     - On some platforms, accept() can return a broken address. Detect
32299       this more quietly, and deal accordingly. Fixes bug 483.
32300     - It's not actually an error to find a non-pending entry in the DNS
32301       cache when canceling a pending resolve. Don't log unless stuff
32302       is fishy. Resolves bug 463.
32303     - Don't reset trusted dir server list when we set a configuration
32304       option. Patch from Robert Hogan.
32305     - Don't try to create the datadir when running --verify-config or
32306       --hash-password. Resolves bug 540.
32309 Changes in version 0.2.0.9-alpha - 2007-10-24
32310   This ninth development snapshot switches clients to the new v3 directory
32311   system; allows servers to be listed in the network status even when they
32312   have the same nickname as a registered server; and fixes many other
32313   bugs including a big one that was causing some servers to disappear
32314   from the network status lists for a few hours each day.
32316   o Major features (directory system):
32317     - Clients now download v3 consensus networkstatus documents instead
32318       of v2 networkstatus documents. Clients and caches now base their
32319       opinions about routers on these consensus documents. Clients only
32320       download router descriptors listed in the consensus.
32321     - Authorities now list servers who have the same nickname as
32322       a different named server, but list them with a new flag,
32323       "Unnamed". Now we can list servers that happen to pick the same
32324       nickname as a server that registered two years ago and then
32325       disappeared. Partially implements proposal 122.
32326     - If the consensus lists a router as "Unnamed", the name is assigned
32327       to a different router: do not identify the router by that name.
32328       Partially implements proposal 122.
32329     - Authorities can now come to a consensus on which method to use to
32330       compute the consensus. This gives us forward compatibility.
32332   o Major bugfixes:
32333     - Stop publishing a new server descriptor just because we HUP or
32334       when we find our DirPort to be reachable but won't actually publish
32335       it. New descriptors without any real changes are dropped by the
32336       authorities, and can screw up our "publish every 18 hours" schedule.
32337       Bugfix on 0.1.2.x.
32338     - When a router wasn't listed in a new networkstatus, we were leaving
32339       the flags for that router alone -- meaning it remained Named,
32340       Running, etc -- even though absence from the networkstatus means
32341       that it shouldn't be considered to exist at all anymore. Now we
32342       clear all the flags for routers that fall out of the networkstatus
32343       consensus. Fixes bug 529; bugfix on 0.1.2.x.
32344     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
32345       extrainfo documents and then discard them immediately for not
32346       matching the latest router. Bugfix on 0.2.0.1-alpha.
32348   o Minor features (v3 directory protocol):
32349     - Allow tor-gencert to generate a new certificate without replacing
32350       the signing key.
32351     - Allow certificates to include an address.
32352     - When we change our directory-cache settings, reschedule all voting
32353       and download operations.
32354     - Reattempt certificate downloads immediately on failure, as long as
32355       we haven't failed a threshold number of times yet.
32356     - Delay retrying consensus downloads while we're downloading
32357       certificates to verify the one we just got. Also, count getting a
32358       consensus that we already have (or one that isn't valid) as a failure,
32359       and count failing to get the certificates after 20 minutes as a
32360       failure.
32361     - Build circuits and download descriptors even if our consensus is a
32362       little expired. (This feature will go away once authorities are
32363       more reliable.)
32365   o Minor features (router descriptor cache):
32366     - If we find a cached-routers file that's been sitting around for more
32367       than 28 days unmodified, then most likely it's a leftover from
32368       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
32369       routers anyway.
32370     - When we (as a cache) download a descriptor because it was listed
32371       in a consensus, remember when the consensus was supposed to expire,
32372       and don't expire the descriptor until then.
32374   o Minor features (performance):
32375     - Call routerlist_remove_old_routers() much less often. This should
32376       speed startup, especially on directory caches.
32377     - Don't try to launch new descriptor downloads quite so often when we
32378       already have enough directory information to build circuits.
32379     - Base64 decoding was actually showing up on our profile when parsing
32380       the initial descriptor file; switch to an in-process all-at-once
32381       implementation that's about 3.5x times faster than calling out to
32382       OpenSSL.
32384   o Minor features (compilation):
32385     - Detect non-ASCII platforms (if any still exist) and refuse to
32386       build there: some of our code assumes that 'A' is 65 and so on.
32388   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
32389     - Make the "next period" votes into "current period" votes immediately
32390       after publishing the consensus; avoid a heisenbug that made them
32391       stick around indefinitely.
32392     - When we discard a vote as a duplicate, do not report this as
32393       an error.
32394     - Treat missing v3 keys or certificates as an error when running as a
32395       v3 directory authority.
32396     - When we're configured to be a v3 authority, but we're only listed
32397       as a non-v3 authority in our DirServer line for ourself, correct
32398       the listing.
32399     - If an authority doesn't have a qualified hostname, just put
32400       its address in the vote. This fixes the problem where we referred to
32401       "moria on moria:9031."
32402     - Distinguish between detached signatures for the wrong period, and
32403       detached signatures for a divergent vote.
32404     - Fix a small memory leak when computing a consensus.
32405     - When there's no consensus, we were forming a vote every 30
32406       minutes, but writing the "valid-after" line in our vote based
32407       on our configured V3AuthVotingInterval: so unless the intervals
32408       matched up, we immediately rejected our own vote because it didn't
32409       start at the voting interval that caused us to construct a vote.
32411   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
32412     - Delete unverified-consensus when the real consensus is set.
32413     - Consider retrying a consensus networkstatus fetch immediately
32414       after one fails: don't wait 60 seconds to notice.
32415     - When fetching a consensus as a cache, wait until a newer consensus
32416       should exist before trying to replace the current one.
32417     - Use a more forgiving schedule for retrying failed consensus
32418       downloads than for other types.
32420   o Minor bugfixes (other directory issues):
32421     - Correct the implementation of "download votes by digest." Bugfix on
32422       0.2.0.8-alpha.
32423     - Authorities no longer send back "400 you're unreachable please fix
32424       it" errors to Tor servers that aren't online all the time. We're
32425       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
32427   o Minor bugfixes (controller):
32428     - Don't reset trusted dir server list when we set a configuration
32429       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
32430     - Respond to INT and TERM SIGNAL commands before we execute the
32431       signal, in case the signal shuts us down. We had a patch in
32432       0.1.2.1-alpha that tried to do this by queueing the response on
32433       the connection's buffer before shutting down, but that really
32434       isn't the same thing at all. Bug located by Matt Edman.
32436   o Minor bugfixes (misc):
32437     - Correctly check for bad options to the "PublishServerDescriptor"
32438       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
32439     - Stop leaking memory on failing case of base32_decode, and make
32440       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
32441     - Don't try to download extrainfo documents when we're trying to
32442       fetch enough directory info to build a circuit: having enough
32443       info should get priority. Bugfix on 0.2.0.x.
32444     - Don't complain that "your server has not managed to confirm that its
32445       ports are reachable" if we haven't been able to build any circuits
32446       yet. Bug found by spending four hours without a v3 consensus. Bugfix
32447       on 0.1.2.x.
32448     - Detect the reason for failing to mmap a descriptor file we just
32449       wrote, and give a more useful log message. Fixes bug 533. Bugfix
32450       on 0.1.2.x.
32452   o Code simplifications and refactoring:
32453     - Remove support for the old bw_accounting file: we've been storing
32454       bandwidth accounting information in the state file since
32455       0.1.2.5-alpha. This may result in bandwidth accounting errors
32456       if you try to upgrade from 0.1.1.x or earlier, or if you try to
32457       downgrade to 0.1.1.x or earlier.
32458     - New convenience code to locate a file within the DataDirectory.
32459     - Move non-authority functionality out of dirvote.c.
32460     - Refactor the arguments for router_pick_{directory_|trusteddir}server
32461       so that they all take the same named flags.
32463   o Utilities
32464     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
32465       Unix users an easy way to script their Tor process (e.g. by
32466       adjusting bandwidth based on the time of the day).
32469 Changes in version 0.2.0.8-alpha - 2007-10-12
32470   This eighth development snapshot fixes a crash bug that's been bothering
32471   us since February 2007, lets bridge authorities store a list of bridge
32472   descriptors they've seen, gets v3 directory voting closer to working,
32473   starts caching v3 directory consensus documents on directory mirrors,
32474   and fixes a variety of smaller issues including some minor memory leaks.
32476   o Major features (router descriptor cache):
32477     - Store routers in a file called cached-descriptors instead of in
32478       cached-routers. Initialize cached-descriptors from cached-routers
32479       if the old format is around. The new format allows us to store
32480       annotations along with descriptors.
32481     - Use annotations to record the time we received each descriptor, its
32482       source, and its purpose.
32483     - Disable the SETROUTERPURPOSE controller command: it is now
32484       obsolete.
32485     - Controllers should now specify cache=no or cache=yes when using
32486       the +POSTDESCRIPTOR command.
32487     - Bridge authorities now write bridge descriptors to disk, meaning
32488       we can export them to other programs and begin distributing them
32489       to blocked users.
32491   o Major features (directory authorities):
32492     - When a v3 authority is missing votes or signatures, it now tries
32493       to fetch them.
32494     - Directory authorities track weighted fractional uptime as well as
32495       weighted mean-time-between failures. WFU is suitable for deciding
32496       whether a node is "usually up", while MTBF is suitable for deciding
32497       whether a node is "likely to stay up." We need both, because
32498       "usually up" is a good requirement for guards, while "likely to
32499       stay up" is a good requirement for long-lived connections.
32501   o Major features (v3 directory system):
32502     - Caches now download v3 network status documents as needed,
32503       and download the descriptors listed in them.
32504     - All hosts now attempt to download and keep fresh v3 authority
32505       certificates, and re-attempt after failures.
32506     - More internal-consistency checks for vote parsing.
32508   o Major bugfixes (crashes):
32509     - If a connection is shut down abruptly because of something that
32510       happened inside connection_flushed_some(), do not call
32511       connection_finished_flushing(). Should fix bug 451. Bugfix on
32512       0.1.2.7-alpha.
32514   o Major bugfixes (performance):
32515     - Fix really bad O(n^2) performance when parsing a long list of
32516       routers: Instead of searching the entire list for an "extra-info "
32517       string which usually wasn't there, once for every routerinfo
32518       we read, just scan lines forward until we find one we like.
32519       Bugfix on 0.2.0.1.
32520     - When we add data to a write buffer in response to the data on that
32521       write buffer getting low because of a flush, do not consider the
32522       newly added data as a candidate for immediate flushing, but rather
32523       make it wait until the next round of writing. Otherwise, we flush
32524       and refill recursively, and a single greedy TLS connection can
32525       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
32527   o Minor features (v3 authority system):
32528     - Add more ways for tools to download the votes that lead to the
32529       current consensus.
32530     - Send a 503 when low on bandwidth and a vote, consensus, or
32531       certificate is requested.
32532     - If-modified-since is now implemented properly for all kinds of
32533       certificate requests.
32535   o Minor bugfixes (network statuses):
32536     - Tweak the implementation of proposal 109 slightly: allow at most
32537       two Tor servers on the same IP address, except if it's the location
32538       of a directory authority, in which case allow five. Bugfix on
32539       0.2.0.3-alpha.
32541   o Minor bugfixes (controller):
32542     - When sending a status event to the controller telling it that an
32543       OR address is reachable, set the port correctly. (Previously we
32544       were reporting the dir port.) Bugfix on 0.1.2.x.
32546   o Minor bugfixes (v3 directory system):
32547     - Fix logic to look up a cert by its signing key digest. Bugfix on
32548       0.2.0.7-alpha.
32549     - Only change the reply to a vote to "OK" if it's not already
32550       set. This gets rid of annoying "400 OK" log messages, which may
32551       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
32552     - When we get a valid consensus, recompute the voting schedule.
32553     - Base the valid-after time of a vote on the consensus voting
32554       schedule, not on our preferred schedule.
32555     - Make the return values and messages from signature uploads and
32556       downloads more sensible.
32557     - Fix a memory leak when serving votes and consensus documents, and
32558       another when serving certificates.
32560   o Minor bugfixes (performance):
32561     - Use a slightly simpler string hashing algorithm (copying Python's
32562       instead of Java's) and optimize our digest hashing algorithm to take
32563       advantage of 64-bit platforms and to remove some possibly-costly
32564       voodoo.
32565     - Fix a minor memory leak whenever we parse guards from our state
32566       file. Bugfix on 0.2.0.7-alpha.
32567     - Fix a minor memory leak whenever we write out a file. Bugfix on
32568       0.2.0.7-alpha.
32569     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
32570       command. Bugfix on 0.2.0.5-alpha.
32572   o Minor bugfixes (portability):
32573     - On some platforms, accept() can return a broken address. Detect
32574       this more quietly, and deal accordingly. Fixes bug 483.
32575     - Stop calling tor_strlower() on uninitialized memory in some cases.
32576       Bugfix in 0.2.0.7-alpha.
32578   o Minor bugfixes (usability):
32579     - Treat some 403 responses from directory servers as INFO rather than
32580       WARN-severity events.
32581     - It's not actually an error to find a non-pending entry in the DNS
32582       cache when canceling a pending resolve. Don't log unless stuff is
32583       fishy. Resolves bug 463.
32585   o Minor bugfixes (anonymity):
32586     - Never report that we've used more bandwidth than we're willing to
32587       relay: it leaks how much non-relay traffic we're using. Resolves
32588       bug 516.
32589     - When looking for a circuit to cannibalize, consider family as well
32590       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
32591       circuit cannibalization).
32593   o Code simplifications and refactoring:
32594     - Make a bunch of functions static. Remove some dead code.
32595     - Pull out about a third of the really big routerlist.c; put it in a
32596       new module, networkstatus.c.
32597     - Merge the extra fields in local_routerstatus_t back into
32598       routerstatus_t: we used to need one routerstatus_t for each
32599       authority's opinion, plus a local_routerstatus_t for the locally
32600       computed consensus opinion. To save space, we put the locally
32601       modified fields into local_routerstatus_t, and only the common
32602       stuff into routerstatus_t. But once v3 directories are in use,
32603       clients and caches will no longer need to hold authority opinions;
32604       thus, the rationale for keeping the types separate is now gone.
32605     - Make the code used to reschedule and reattempt downloads more
32606       uniform.
32607     - Turn all 'Are we a directory server/mirror?' logic into a call to
32608       dirserver_mode().
32609     - Remove the code to generate the oldest (v1) directory format.
32610       The code has been disabled since 0.2.0.5-alpha.
32613 Changes in version 0.2.0.7-alpha - 2007-09-21
32614   This seventh development snapshot makes bridges work again, makes bridge
32615   authorities work for the first time, fixes two huge performance flaws
32616   in hidden services, and fixes a variety of minor issues.
32618   o New directory authorities:
32619     - Set up moria1 and tor26 as the first v3 directory authorities. See
32620       doc/spec/dir-spec.txt for details on the new directory design.
32622   o Major bugfixes (crashes):
32623     - Fix possible segfaults in functions called from
32624       rend_process_relay_cell(). Bugfix on 0.1.2.x.
32626   o Major bugfixes (bridges):
32627     - Fix a bug that made servers send a "404 Not found" in response to
32628       attempts to fetch their server descriptor. This caused Tor servers
32629       to take many minutes to establish reachability for their DirPort,
32630       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
32631     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
32632       users configure that and specify a bridge with an identity
32633       fingerprint, now they will lookup the bridge descriptor at the
32634       default bridge authority via a one-hop tunnel, but once circuits
32635       are established they will switch to a three-hop tunnel for later
32636       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
32638   o Major bugfixes (hidden services):
32639     - Hidden services were choosing introduction points uniquely by
32640       hexdigest, but when constructing the hidden service descriptor
32641       they merely wrote the (potentially ambiguous) nickname.
32642     - Clients now use the v2 intro format for hidden service
32643       connections: they specify their chosen rendezvous point by identity
32644       digest rather than by (potentially ambiguous) nickname. Both
32645       are bugfixes on 0.1.2.x, and they could speed up hidden service
32646       connections dramatically. Thanks to Karsten Loesing.
32648   o Minor features (security):
32649     - As a client, do not believe any server that tells us that an
32650       address maps to an internal address space.
32651     - Make it possible to enable HashedControlPassword and
32652       CookieAuthentication at the same time.
32654   o Minor features (guard nodes):
32655     - Tag every guard node in our state file with the version that
32656       we believe added it, or with our own version if we add it. This way,
32657       if a user temporarily runs an old version of Tor and then switches
32658       back to a new one, she doesn't automatically lose her guards.
32660   o Minor features (speed):
32661     - When implementing AES counter mode, update only the portions of the
32662       counter buffer that need to change, and don't keep separate
32663       network-order and host-order counters when they are the same (i.e.,
32664       on big-endian hosts.)
32666   o Minor features (controller):
32667     - Accept LF instead of CRLF on controller, since some software has a
32668       hard time generating real Internet newlines.
32669     - Add GETINFO values for the server status events
32670       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
32671       Robert Hogan.
32673   o Removed features:
32674      - Routers no longer include bandwidth-history lines in their
32675        descriptors; this information is already available in extra-info
32676        documents, and including it in router descriptors took up 60%
32677        (!) of compressed router descriptor downloads. Completes
32678        implementation of proposal 104.
32679      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
32680        and TorControl.py, as they use the old v0 controller protocol,
32681        and are obsoleted by TorFlow anyway.
32682      - Drop support for v1 rendezvous descriptors, since we never used
32683        them anyway, and the code has probably rotted by now. Based on
32684        patch from Karsten Loesing.
32685      - On OSX, stop warning the user that kqueue support in libevent is
32686       "experimental", since it seems to have worked fine for ages.
32688   o Minor bugfixes:
32689     - When generating information telling us how to extend to a given
32690       router, do not try to include the nickname if it is absent. Fixes
32691       bug 467. Bugfix on 0.2.0.3-alpha.
32692     - Fix a user-triggerable (but not remotely-triggerable) segfault
32693       in expand_filename(). Bugfix on 0.1.2.x.
32694     - Fix a memory leak when freeing incomplete requests from DNSPort.
32695       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
32696     - Don't try to access (or alter) the state file when running
32697       --list-fingerprint or --verify-config or --hash-password. (Resolves
32698       bug 499.) Bugfix on 0.1.2.x.
32699     - Servers used to decline to publish their DirPort if their
32700       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
32701       were below a threshold. Now they only look at BandwidthRate and
32702       RelayBandwidthRate. Bugfix on 0.1.2.x.
32703     - Remove an optimization in the AES counter-mode code that assumed
32704       that the counter never exceeded 2^68. When the counter can be set
32705       arbitrarily as an IV (as it is by Karsten's new hidden services
32706       code), this assumption no longer holds. Bugfix on 0.1.2.x.
32707     - Resume listing "AUTHORITY" flag for authorities in network status.
32708       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
32710   o Code simplifications and refactoring:
32711     - Revamp file-writing logic so we don't need to have the entire
32712       contents of a file in memory at once before we write to disk. Tor,
32713       meet stdio.
32714     - Turn "descriptor store" into a full-fledged type.
32715     - Move all NT services code into a separate source file.
32716     - Unify all code that computes medians, percentile elements, etc.
32717     - Get rid of a needless malloc when parsing address policies.
32720 Changes in version 0.1.2.17 - 2007-08-30
32721   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
32722   X bundles. Vidalia 0.0.14 makes authentication required for the
32723   ControlPort in the default configuration, which addresses important
32724   security risks. Everybody who uses Vidalia (or another controller)
32725   should upgrade.
32727   In addition, this Tor update fixes major load balancing problems with
32728   path selection, which should speed things up a lot once many people
32729   have upgraded.
32731   o Major bugfixes (security):
32732     - We removed support for the old (v0) control protocol. It has been
32733       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
32734       become more of a headache than it's worth.
32736   o Major bugfixes (load balancing):
32737     - When choosing nodes for non-guard positions, weight guards
32738       proportionally less, since they already have enough load. Patch
32739       from Mike Perry.
32740     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
32741       will allow fast Tor servers to get more attention.
32742     - When we're upgrading from an old Tor version, forget our current
32743       guards and pick new ones according to the new weightings. These
32744       three load balancing patches could raise effective network capacity
32745       by a factor of four. Thanks to Mike Perry for measurements.
32747   o Major bugfixes (stream expiration):
32748     - Expire not-yet-successful application streams in all cases if
32749       they've been around longer than SocksTimeout. Right now there are
32750       some cases where the stream will live forever, demanding a new
32751       circuit every 15 seconds. Fixes bug 454; reported by lodger.
32753   o Minor features (controller):
32754     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
32755       is valid before any authentication has been received. It tells
32756       a controller what kind of authentication is expected, and what
32757       protocol is spoken. Implements proposal 119.
32759   o Minor bugfixes (performance):
32760     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
32761       greatly speeding up loading cached-routers from disk on startup.
32762     - Disable sentinel-based debugging for buffer code: we squashed all
32763       the bugs that this was supposed to detect a long time ago, and now
32764       its only effect is to change our buffer sizes from nice powers of
32765       two (which platform mallocs tend to like) to values slightly over
32766       powers of two (which make some platform mallocs sad).
32768   o Minor bugfixes (misc):
32769     - If exit bandwidth ever exceeds one third of total bandwidth, then
32770       use the correct formula to weight exit nodes when choosing paths.
32771       Based on patch from Mike Perry.
32772     - Choose perfectly fairly among routers when choosing by bandwidth and
32773       weighting by fraction of bandwidth provided by exits. Previously, we
32774       would choose with only approximate fairness, and correct ourselves
32775       if we ran off the end of the list.
32776     - If we require CookieAuthentication but we fail to write the
32777       cookie file, we would warn but not exit, and end up in a state
32778       where no controller could authenticate. Now we exit.
32779     - If we require CookieAuthentication, stop generating a new cookie
32780       every time we change any piece of our config.
32781     - Refuse to start with certain directory authority keys, and
32782       encourage people using them to stop.
32783     - Terminate multi-line control events properly. Original patch
32784       from tup.
32785     - Fix a minor memory leak when we fail to find enough suitable
32786       servers to choose a circuit.
32787     - Stop leaking part of the descriptor when we run into a particularly
32788       unparseable piece of it.
32791 Changes in version 0.2.0.6-alpha - 2007-08-26
32792   This sixth development snapshot features a new Vidalia version in the
32793   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
32794   the ControlPort in the default configuration, which addresses important
32795   security risks.
32797   In addition, this snapshot fixes major load balancing problems
32798   with path selection, which should speed things up a lot once many
32799   people have upgraded. The directory authorities also use a new
32800   mean-time-between-failure approach to tracking which servers are stable,
32801   rather than just looking at the most recent uptime.
32803   o New directory authorities:
32804     - Set up Tonga as the default bridge directory authority.
32806   o Major features:
32807     - Directory authorities now track servers by weighted
32808       mean-times-between-failures. When we have 4 or more days of data,
32809       use measured MTBF rather than declared uptime to decide whether
32810       to call a router Stable. Implements proposal 108.
32812   o Major bugfixes (load balancing):
32813     - When choosing nodes for non-guard positions, weight guards
32814       proportionally less, since they already have enough load. Patch
32815       from Mike Perry.
32816     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
32817       will allow fast Tor servers to get more attention.
32818     - When we're upgrading from an old Tor version, forget our current
32819       guards and pick new ones according to the new weightings. These
32820       three load balancing patches could raise effective network capacity
32821       by a factor of four. Thanks to Mike Perry for measurements.
32823   o Major bugfixes (descriptor parsing):
32824     - Handle unexpected whitespace better in malformed descriptors. Bug
32825       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
32827   o Minor features:
32828     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
32829       GETINFO for Torstat to use until it can switch to using extrainfos.
32830     - Optionally (if built with -DEXPORTMALLINFO) export the output
32831       of mallinfo via http, as tor/mallinfo.txt. Only accessible
32832       from localhost.
32834   o Minor bugfixes:
32835     - Do not intermix bridge routers with controller-added
32836       routers. (Bugfix on 0.2.0.x)
32837     - Do not fail with an assert when accept() returns an unexpected
32838       address family. Addresses but does not wholly fix bug 483. (Bugfix
32839       on 0.2.0.x)
32840     - Let directory authorities startup even when they can't generate
32841       a descriptor immediately, e.g. because they don't know their
32842       address.
32843     - Stop putting the authentication cookie in a file called "0"
32844       in your working directory if you don't specify anything for the
32845       new CookieAuthFile option. Reported by Matt Edman.
32846     - Make it possible to read the PROTOCOLINFO response in a way that
32847       conforms to our control-spec. Reported by Matt Edman.
32848     - Fix a minor memory leak when we fail to find enough suitable
32849       servers to choose a circuit. Bugfix on 0.1.2.x.
32850     - Stop leaking part of the descriptor when we run into a particularly
32851       unparseable piece of it. Bugfix on 0.1.2.x.
32852     - Unmap the extrainfo cache file on exit.
32855 Changes in version 0.2.0.5-alpha - 2007-08-19
32856   This fifth development snapshot fixes compilation on Windows again;
32857   fixes an obnoxious client-side bug that slowed things down and put
32858   extra load on the network; gets us closer to using the v3 directory
32859   voting scheme; makes it easier for Tor controllers to use cookie-based
32860   authentication; and fixes a variety of other bugs.
32862   o Removed features:
32863     - Version 1 directories are no longer generated in full. Instead,
32864       authorities generate and serve "stub" v1 directories that list
32865       no servers. This will stop Tor versions 0.1.0.x and earlier from
32866       working, but (for security reasons) nobody should be running those
32867       versions anyway.
32869   o Major bugfixes (compilation, 0.2.0.x):
32870     - Try to fix Win32 compilation again: improve checking for IPv6 types.
32871     - Try to fix MSVC compilation: build correctly on platforms that do
32872       not define s6_addr16 or s6_addr32.
32873     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
32874       Zhou.
32876   o Major bugfixes (stream expiration):
32877     - Expire not-yet-successful application streams in all cases if
32878       they've been around longer than SocksTimeout. Right now there are
32879       some cases where the stream will live forever, demanding a new
32880       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
32881       reported by lodger.
32883   o Minor features (directory servers):
32884     - When somebody requests a list of statuses or servers, and we have
32885       none of those, return a 404 rather than an empty 200.
32887   o Minor features (directory voting):
32888     - Store v3 consensus status consensuses on disk, and reload them
32889       on startup.
32891   o Minor features (security):
32892     - Warn about unsafe ControlPort configurations.
32893     - Refuse to start with certain directory authority keys, and
32894       encourage people using them to stop.
32896   o Minor features (controller):
32897     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
32898       is valid before any authentication has been received. It tells
32899       a controller what kind of authentication is expected, and what
32900       protocol is spoken. Implements proposal 119.
32901     - New config option CookieAuthFile to choose a new location for the
32902       cookie authentication file, and config option
32903       CookieAuthFileGroupReadable to make it group-readable.
32905   o Minor features (unit testing):
32906     - Add command-line arguments to unit-test executable so that we can
32907       invoke any chosen test from the command line rather than having
32908       to run the whole test suite at once; and so that we can turn on
32909       logging for the unit tests.
32911   o Minor bugfixes (on 0.1.2.x):
32912     - If we require CookieAuthentication but we fail to write the
32913       cookie file, we would warn but not exit, and end up in a state
32914       where no controller could authenticate. Now we exit.
32915     - If we require CookieAuthentication, stop generating a new cookie
32916       every time we change any piece of our config.
32917     - When loading bandwidth history, do not believe any information in
32918       the future. Fixes bug 434.
32919     - When loading entry guard information, do not believe any information
32920       in the future.
32921     - When we have our clock set far in the future and generate an
32922       onion key, then re-set our clock to be correct, we should not stop
32923       the onion key from getting rotated.
32924     - Clean up torrc sample config file.
32925     - Do not automatically run configure from autogen.sh. This
32926       non-standard behavior tended to annoy people who have built other
32927       programs.
32929   o Minor bugfixes (on 0.2.0.x):
32930     - Fix a bug with AutomapHostsOnResolve that would always cause
32931       the second request to fail. Bug reported by Kate. Bugfix on
32932       0.2.0.3-alpha.
32933     - Fix a bug in ADDRMAP controller replies that would sometimes
32934       try to print a NULL. Patch from tup.
32935     - Read v3 directory authority keys from the right location.
32936     - Numerous bugfixes to directory voting code.
32939 Changes in version 0.1.2.16 - 2007-08-01
32940   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
32941   remote attacker in certain situations to rewrite the user's torrc
32942   configuration file. This can completely compromise anonymity of users
32943   in most configurations, including those running the Vidalia bundles,
32944   TorK, etc. Or worse.
32946   o Major security fixes:
32947     - Close immediately after missing authentication on control port;
32948       do not allow multiple authentication attempts.
32951 Changes in version 0.2.0.4-alpha - 2007-08-01
32952   This fourth development snapshot fixes a critical security vulnerability
32953   for most users, specifically those running Vidalia, TorK, etc. Everybody
32954   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
32956   o Major security fixes:
32957     - Close immediately after missing authentication on control port;
32958       do not allow multiple authentication attempts.
32960   o Major bugfixes (compilation):
32961     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
32962       defined there.
32964   o Minor features (performance):
32965     - Be even more aggressive about releasing RAM from small
32966       empty buffers. Thanks to our free-list code, this shouldn't be too
32967       performance-intensive.
32968     - Disable sentinel-based debugging for buffer code: we squashed all
32969       the bugs that this was supposed to detect a long time ago, and
32970       now its only effect is to change our buffer sizes from nice
32971       powers of two (which platform mallocs tend to like) to values
32972       slightly over powers of two (which make some platform mallocs sad).
32973     - Log malloc statistics from mallinfo() on platforms where it
32974       exists.
32977 Changes in version 0.2.0.3-alpha - 2007-07-29
32978   This third development snapshot introduces new experimental
32979   blocking-resistance features and a preliminary version of the v3
32980   directory voting design, and includes many other smaller features
32981   and bugfixes.
32983   o Major features:
32984     - The first pieces of our "bridge" design for blocking-resistance
32985       are implemented. People can run bridge directory authorities;
32986       people can run bridges; and people can configure their Tor clients
32987       with a set of bridges to use as the first hop into the Tor network.
32988       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
32989       details.
32990     - Create listener connections before we setuid to the configured
32991       User and Group. Now non-Windows users can choose port values
32992       under 1024, start Tor as root, and have Tor bind those ports
32993       before it changes to another UID. (Windows users could already
32994       pick these ports.)
32995     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
32996       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
32997       on "vserver" accounts. (Patch from coderman.)
32998     - Be even more aggressive about separating local traffic from relayed
32999       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
33001   o Major features (experimental):
33002     - First cut of code for "v3 dir voting": directory authorities will
33003       vote on a common network status document rather than each publishing
33004       their own opinion. This code needs more testing and more corner-case
33005       handling before it's ready for use.
33007   o Security fixes:
33008     - Directory authorities now call routers Fast if their bandwidth is
33009       at least 100KB/s, and consider their bandwidth adequate to be a
33010       Guard if it is at least 250KB/s, no matter the medians. This fix
33011       complements proposal 107. [Bugfix on 0.1.2.x]
33012     - Directory authorities now never mark more than 3 servers per IP as
33013       Valid and Running. (Implements proposal 109, by Kevin Bauer and
33014       Damon McCoy.)
33015     - Minor change to organizationName and commonName generation
33016       procedures in TLS certificates during Tor handshakes, to invalidate
33017       some earlier censorware approaches. This is not a long-term
33018       solution, but applying it will give us a bit of time to look into
33019       the epidemiology of countermeasures as they spread.
33021   o Major bugfixes (directory):
33022     - Rewrite directory tokenization code to never run off the end of
33023       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
33025   o Minor features (controller):
33026     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
33027       match requests to applications. (Patch from Robert Hogan.)
33028     - Report address and port correctly on connections to DNSPort. (Patch
33029       from Robert Hogan.)
33030     - Add a RESOLVE command to launch hostname lookups. (Original patch
33031       from Robert Hogan.)
33032     - Add GETINFO status/enough-dir-info to let controllers tell whether
33033       Tor has downloaded sufficient directory information. (Patch
33034       from Tup.)
33035     - You can now use the ControlSocket option to tell Tor to listen for
33036       controller connections on Unix domain sockets on systems that
33037       support them. (Patch from Peter Palfrader.)
33038     - STREAM NEW events are generated for DNSPort requests and for
33039       tunneled directory connections. (Patch from Robert Hogan.)
33040     - New "GETINFO address-mappings/*" command to get address mappings
33041       with expiry information. "addr-mappings/*" is now deprecated.
33042       (Patch from Tup.)
33044   o Minor features (misc):
33045     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
33046       from croup.)
33047     - The tor-gencert tool for v3 directory authorities now creates all
33048       files as readable to the file creator only, and write-protects
33049       the authority identity key.
33050     - When dumping memory usage, list bytes used in buffer memory
33051       free-lists.
33052     - When running with dmalloc, dump more stats on hup and on exit.
33053     - Directory authorities now fail quickly and (relatively) harmlessly
33054       if they generate a network status document that is somehow
33055       malformed.
33057   o Traffic load balancing improvements:
33058     - If exit bandwidth ever exceeds one third of total bandwidth, then
33059       use the correct formula to weight exit nodes when choosing paths.
33060       (Based on patch from Mike Perry.)
33061     - Choose perfectly fairly among routers when choosing by bandwidth and
33062       weighting by fraction of bandwidth provided by exits. Previously, we
33063       would choose with only approximate fairness, and correct ourselves
33064       if we ran off the end of the list. [Bugfix on 0.1.2.x]
33066   o Performance improvements:
33067     - Be more aggressive with freeing buffer RAM or putting it on the
33068       memory free lists.
33069     - Use Critical Sections rather than Mutexes for synchronizing threads
33070       on win32; Mutexes are heavier-weight, and designed for synchronizing
33071       between processes.
33073   o Deprecated and removed features:
33074     - RedirectExits is now deprecated.
33075     - Stop allowing address masks that do not correspond to bit prefixes.
33076       We have warned about these for a really long time; now it's time
33077       to reject them. (Patch from croup.)
33079   o Minor bugfixes (directory):
33080     - Fix another crash bug related to extra-info caching. (Bug found by
33081       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
33082     - Directories no longer return a "304 not modified" when they don't
33083       have the networkstatus the client asked for. Also fix a memory
33084       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
33085     - We had accidentally labelled 0.1.2.x directory servers as not
33086       suitable for begin_dir requests, and had labelled no directory
33087       servers as suitable for uploading extra-info documents. [Bugfix
33088       on 0.2.0.1-alpha]
33090   o Minor bugfixes (dns):
33091     - Fix a crash when DNSPort is set more than once. (Patch from Robert
33092       Hogan.) [Bugfix on 0.2.0.2-alpha]
33093     - Add DNSPort connections to the global connection list, so that we
33094       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
33095       on 0.2.0.2-alpha]
33096     - Fix a dangling reference that could lead to a crash when DNSPort is
33097       changed or closed (Patch from Robert Hogan.) [Bugfix on
33098       0.2.0.2-alpha]
33100   o Minor bugfixes (controller):
33101     - Provide DNS expiry times in GMT, not in local time. For backward
33102       compatibility, ADDRMAP events only provide GMT expiry in an extended
33103       field. "GETINFO address-mappings" always does the right thing.
33104     - Use CRLF line endings properly in NS events.
33105     - Terminate multi-line control events properly. (Original patch
33106       from tup.) [Bugfix on 0.1.2.x-alpha]
33107     - Do not include spaces in SOURCE_ADDR fields in STREAM
33108       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
33111 Changes in version 0.1.2.15 - 2007-07-17
33112   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
33113   problems, fixes compilation on BSD, and fixes a variety of other
33114   bugs. Everybody should upgrade.
33116   o Major bugfixes (compilation):
33117     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
33119   o Major bugfixes (crashes):
33120     - Try even harder not to dereference the first character after
33121       an mmap(). Reported by lodger.
33122     - Fix a crash bug in directory authorities when we re-number the
33123       routerlist while inserting a new router.
33124     - When the cached-routers file is an even multiple of the page size,
33125       don't run off the end and crash. (Fixes bug 455; based on idea
33126       from croup.)
33127     - Fix eventdns.c behavior on Solaris: It is critical to include
33128       orconfig.h _before_ sys/types.h, so that we can get the expected
33129       definition of _FILE_OFFSET_BITS.
33131   o Major bugfixes (security):
33132     - Fix a possible buffer overrun when using BSD natd support. Bug
33133       found by croup.
33134     - When sending destroy cells from a circuit's origin, don't include
33135       the reason for tearing down the circuit. The spec says we didn't,
33136       and now we actually don't. Reported by lodger.
33137     - Keep streamids from different exits on a circuit separate. This
33138       bug may have allowed other routers on a given circuit to inject
33139       cells into streams. Reported by lodger; fixes bug 446.
33140     - If there's a never-before-connected-to guard node in our list,
33141       never choose any guards past it. This way we don't expand our
33142       guard list unless we need to.
33144   o Minor bugfixes (guard nodes):
33145     - Weight guard selection by bandwidth, so that low-bandwidth nodes
33146       don't get overused as guards.
33148   o Minor bugfixes (directory):
33149     - Correctly count the number of authorities that recommend each
33150       version. Previously, we were under-counting by 1.
33151     - Fix a potential crash bug when we load many server descriptors at
33152       once and some of them make others of them obsolete. Fixes bug 458.
33154   o Minor bugfixes (hidden services):
33155     - Stop tearing down the whole circuit when the user asks for a
33156       connection to a port that the hidden service didn't configure.
33157       Resolves bug 444.
33159   o Minor bugfixes (misc):
33160     - On Windows, we were preventing other processes from reading
33161       cached-routers while Tor was running. Reported by janbar.
33162     - Fix a possible (but very unlikely) bug in picking routers by
33163       bandwidth. Add a log message to confirm that it is in fact
33164       unlikely. Patch from lodger.
33165     - Backport a couple of memory leak fixes.
33166     - Backport miscellaneous cosmetic bugfixes.
33169 Changes in version 0.2.0.2-alpha - 2007-06-02
33170   o Major bugfixes on 0.2.0.1-alpha:
33171     - Fix an assertion failure related to servers without extra-info digests.
33172       Resolves bugs 441 and 442.
33174   o Minor features (directory):
33175     - Support "If-Modified-Since" when answering HTTP requests for
33176       directories, running-routers documents, and network-status documents.
33177       (There's no need to support it for router descriptors, since those
33178       are downloaded by descriptor digest.)
33180   o Minor build issues:
33181     - Clear up some MIPSPro compiler warnings.
33182     - When building from a tarball on a machine that happens to have SVK
33183       installed, report the micro-revision as whatever version existed
33184       in the tarball, not as "x".
33187 Changes in version 0.2.0.1-alpha - 2007-06-01
33188   This early development snapshot provides new features for people running
33189   Tor as both a client and a server (check out the new RelayBandwidth
33190   config options); lets Tor run as a DNS proxy; and generally moves us
33191   forward on a lot of fronts.
33193   o Major features, server usability:
33194     - New config options RelayBandwidthRate and RelayBandwidthBurst:
33195       a separate set of token buckets for relayed traffic. Right now
33196       relayed traffic is defined as answers to directory requests, and
33197       OR connections that don't have any local circuits on them.
33199   o Major features, client usability:
33200     - A client-side DNS proxy feature to replace the need for
33201       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
33202       for DNS requests on port 9999, use the Tor network to resolve them
33203       anonymously, and send the reply back like a regular DNS server.
33204       The code still only implements a subset of DNS.
33205     - Make PreferTunneledDirConns and TunnelDirConns work even when
33206       we have no cached directory info. This means Tor clients can now
33207       do all of their connections protected by TLS.
33209   o Major features, performance and efficiency:
33210     - Directory authorities accept and serve "extra info" documents for
33211       routers. These documents contain fields from router descriptors
33212       that aren't usually needed, and that use a lot of excess
33213       bandwidth. Once these fields are removed from router descriptors,
33214       the bandwidth savings should be about 60%. [Partially implements
33215       proposal 104.]
33216     - Servers upload extra-info documents to any authority that accepts
33217       them. Authorities (and caches that have been configured to download
33218       extra-info documents) download them as needed. [Partially implements
33219       proposal 104.]
33220     - Change the way that Tor buffers data that it is waiting to write.
33221       Instead of queueing data cells in an enormous ring buffer for each
33222       client->OR or OR->OR connection, we now queue cells on a separate
33223       queue for each circuit. This lets us use less slack memory, and
33224       will eventually let us be smarter about prioritizing different kinds
33225       of traffic.
33226     - Use memory pools to allocate cells with better speed and memory
33227       efficiency, especially on platforms where malloc() is inefficient.
33228     - Stop reading on edge connections when their corresponding circuit
33229       buffers are full; start again as the circuits empty out.
33231   o Major features, other:
33232     - Add an HSAuthorityRecordStats option that hidden service authorities
33233       can use to track statistics of overall hidden service usage without
33234       logging information that would be very useful to an attacker.
33235     - Start work implementing multi-level keys for directory authorities:
33236       Add a standalone tool to generate key certificates. (Proposal 103.)
33238   o Security fixes:
33239     - Directory authorities now call routers Stable if they have an
33240       uptime of at least 30 days, even if that's not the median uptime
33241       in the network. Implements proposal 107, suggested by Kevin Bauer
33242       and Damon McCoy.
33244   o Minor fixes (resource management):
33245     - Count the number of open sockets separately from the number
33246       of active connection_t objects. This will let us avoid underusing
33247       our allocated connection limit.
33248     - We no longer use socket pairs to link an edge connection to an
33249       anonymous directory connection or a DirPort test connection.
33250       Instead, we track the link internally and transfer the data
33251       in-process. This saves two sockets per "linked" connection (at the
33252       client and at the server), and avoids the nasty Windows socketpair()
33253       workaround.
33254     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
33255       for every single inactive connection_t. Free items from the
33256       4k/16k-buffer free lists when they haven't been used for a while.
33258   o Minor features (build):
33259     - Make autoconf search for libevent, openssl, and zlib consistently.
33260     - Update deprecated macros in configure.in.
33261     - When warning about missing headers, tell the user to let us
33262       know if the compile succeeds anyway, so we can downgrade the
33263       warning.
33264     - Include the current subversion revision as part of the version
33265       string: either fetch it directly if we're in an SVN checkout, do
33266       some magic to guess it if we're in an SVK checkout, or use
33267       the last-detected version if we're building from a .tar.gz.
33268       Use this version consistently in log messages.
33270   o Minor features (logging):
33271     - Always prepend "Bug: " to any log message about a bug.
33272     - Put a platform string (e.g. "Linux i686") in the startup log
33273       message, so when people paste just their logs, we know if it's
33274       OpenBSD or Windows or what.
33275     - When logging memory usage, break down memory used in buffers by
33276       buffer type.
33278   o Minor features (directory system):
33279     - New config option V2AuthoritativeDirectory that all directory
33280       authorities should set. This will let future authorities choose
33281       not to serve V2 directory information.
33282     - Directory authorities allow multiple router descriptors and/or extra
33283       info documents to be uploaded in a single go. This will make
33284       implementing proposal 104 simpler.
33286   o Minor features (controller):
33287     - Add a new config option __DisablePredictedCircuits designed for
33288       use by the controller, when we don't want Tor to build any circuits
33289       preemptively.
33290     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
33291       so we can exit from the middle of the circuit.
33292     - Implement "getinfo status/circuit-established".
33293     - Implement "getinfo status/version/..." so a controller can tell
33294       whether the current version is recommended, and whether any versions
33295       are good, and how many authorities agree. (Patch from shibz.)
33297   o Minor features (hidden services):
33298     - Allow multiple HiddenServicePort directives with the same virtual
33299       port; when they occur, the user is sent round-robin to one
33300       of the target ports chosen at random. Partially fixes bug 393 by
33301       adding limited ad-hoc round-robining.
33303   o Minor features (other):
33304     - More unit tests.
33305     - Add a new AutomapHostsOnResolve option: when it is enabled, any
33306       resolve request for hosts matching a given pattern causes Tor to
33307       generate an internal virtual address mapping for that host. This
33308       allows DNSPort to work sensibly with hidden service users. By
33309       default, .exit and .onion addresses are remapped; the list of
33310       patterns can be reconfigured with AutomapHostsSuffixes.
33311     - Add an "-F" option to tor-resolve to force a resolve for a .onion
33312       address. Thanks to the AutomapHostsOnResolve option, this is no
33313       longer a completely silly thing to do.
33314     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
33315       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
33316     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
33317       minus 1 byte: the actual maximum declared bandwidth.
33319   o Removed features:
33320     - Removed support for the old binary "version 0" controller protocol.
33321       This has been deprecated since 0.1.1, and warnings have been issued
33322       since 0.1.2. When we encounter a v0 control message, we now send
33323       back an error and close the connection.
33324     - Remove the old "dns worker" server DNS code: it hasn't been default
33325       since 0.1.2.2-alpha, and all the servers seem to be using the new
33326       eventdns code.
33328   o Minor bugfixes (portability):
33329     - Even though Windows is equally happy with / and \ as path separators,
33330       try to use \ consistently on Windows and / consistently on Unix: it
33331       makes the log messages nicer.
33332     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
33333     - Read resolv.conf files correctly on platforms where read() returns
33334       partial results on small file reads.
33336   o Minor bugfixes (directory):
33337     - Correctly enforce that elements of directory objects do not appear
33338       more often than they are allowed to appear.
33339     - When we are reporting the DirServer line we just parsed, we were
33340       logging the second stanza of the key fingerprint, not the first.
33342   o Minor bugfixes (logging):
33343     - When we hit an EOF on a log (probably because we're shutting down),
33344       don't try to remove the log from the list: just mark it as
33345       unusable. (Bulletproofs against bug 222.)
33347   o Minor bugfixes (other):
33348     - In the exitlist script, only consider the most recently published
33349       server descriptor for each server. Also, when the user requests
33350       a list of servers that _reject_ connections to a given address,
33351       explicitly exclude the IPs that also have servers that accept
33352       connections to that address. (Resolves bug 405.)
33353     - Stop allowing hibernating servers to be "stable" or "fast".
33354     - On Windows, we were preventing other processes from reading
33355       cached-routers while Tor was running. (Reported by janbar)
33356     - Make the NodeFamilies config option work. (Reported by
33357       lodger -- it has never actually worked, even though we added it
33358       in Oct 2004.)
33359     - Check return values from pthread_mutex functions.
33360     - Don't save non-general-purpose router descriptors to the disk cache,
33361       because we have no way of remembering what their purpose was when
33362       we restart.
33363     - Add even more asserts to hunt down bug 417.
33364     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
33365     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
33366       Add a log message to confirm that it is in fact unlikely.
33368   o Minor bugfixes (controller):
33369     - Make 'getinfo fingerprint' return a 551 error if we're not a
33370       server, so we match what the control spec claims we do. Reported
33371       by daejees.
33372     - Fix a typo in an error message when extendcircuit fails that
33373       caused us to not follow the \r\n-based delimiter protocol. Reported
33374       by daejees.
33376   o Code simplifications and refactoring:
33377     - Stop passing around circuit_t and crypt_path_t pointers that are
33378       implicit in other procedure arguments.
33379     - Drop the old code to choke directory connections when the
33380       corresponding OR connections got full: thanks to the cell queue
33381       feature, OR conns don't get full any more.
33382     - Make dns_resolve() handle attaching connections to circuits
33383       properly, so the caller doesn't have to.
33384     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
33385     - Keep the connection array as a dynamic smartlist_t, rather than as
33386       a fixed-sized array. This is important, as the number of connections
33387       is becoming increasingly decoupled from the number of sockets.
33390 Changes in version 0.1.2.14 - 2007-05-25
33391   Tor 0.1.2.14 changes the addresses of two directory authorities (this
33392   change especially affects those who serve or use hidden services),
33393   and fixes several other crash- and security-related bugs.
33395   o Directory authority changes:
33396     - Two directory authorities (moria1 and moria2) just moved to new
33397       IP addresses. This change will particularly affect those who serve
33398       or use hidden services.
33400   o Major bugfixes (crashes):
33401     - If a directory server runs out of space in the connection table
33402       as it's processing a begin_dir request, it will free the exit stream
33403       but leave it attached to the circuit, leading to unpredictable
33404       behavior. (Reported by seeess, fixes bug 425.)
33405     - Fix a bug in dirserv_remove_invalid() that would cause authorities
33406       to corrupt memory under some really unlikely scenarios.
33407     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
33408     - Avoid segfaults when reading from mmaped descriptor file. (Reported
33409       by lodger.)
33411   o Major bugfixes (security):
33412     - When choosing an entry guard for a circuit, avoid using guards
33413       that are in the same family as the chosen exit -- not just guards
33414       that are exactly the chosen exit. (Reported by lodger.)
33416   o Major bugfixes (resource management):
33417     - If a directory authority is down, skip it when deciding where to get
33418       networkstatus objects or descriptors. Otherwise we keep asking
33419       every 10 seconds forever. Fixes bug 384.
33420     - Count it as a failure if we fetch a valid network-status but we
33421       don't want to keep it. Otherwise we'll keep fetching it and keep
33422       not wanting to keep it. Fixes part of bug 422.
33423     - If all of our dirservers have given us bad or no networkstatuses
33424       lately, then stop hammering them once per minute even when we
33425       think they're failed. Fixes another part of bug 422.
33427   o Minor bugfixes:
33428     - Actually set the purpose correctly for descriptors inserted with
33429       purpose=controller.
33430     - When we have k non-v2 authorities in our DirServer config,
33431       we ignored the last k authorities in the list when updating our
33432       network-statuses.
33433     - Correctly back-off from requesting router descriptors that we are
33434       having a hard time downloading.
33435     - Read resolv.conf files correctly on platforms where read() returns
33436       partial results on small file reads.
33437     - Don't rebuild the entire router store every time we get 32K of
33438       routers: rebuild it when the journal gets very large, or when
33439       the gaps in the store get very large.
33441   o Minor features:
33442     - When routers publish SVN revisions in their router descriptors,
33443       authorities now include those versions correctly in networkstatus
33444       documents.
33445     - Warn when using a version of libevent before 1.3b to run a server on
33446       OSX or BSD: these versions interact badly with userspace threads.
33449 Changes in version 0.1.2.13 - 2007-04-24
33450   This release features some major anonymity fixes, such as safer path
33451   selection; better client performance; faster bootstrapping, better
33452   address detection, and better DNS support for servers; write limiting as
33453   well as read limiting to make servers easier to run; and a huge pile of
33454   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
33456   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
33457   of the Freenode IRC network, remembering his patience and vision for
33458   free speech on the Internet.
33460   o Minor fixes:
33461     - Fix a memory leak when we ask for "all" networkstatuses and we
33462       get one we don't recognize.
33463     - Add more asserts to hunt down bug 417.
33464     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
33467 Changes in version 0.1.2.12-rc - 2007-03-16
33468   o Major bugfixes:
33469     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
33470       directory information requested inside Tor connections (i.e. via
33471       begin_dir cells). It only triggered when the same connection was
33472       serving other data at the same time. Reported by seeess.
33474   o Minor bugfixes:
33475     - When creating a circuit via the controller, send a 'launched'
33476       event when we're done, so we follow the spec better.
33479 Changes in version 0.1.2.11-rc - 2007-03-15
33480   o Minor bugfixes (controller), reported by daejees:
33481     - Correct the control spec to match how the code actually responds
33482       to 'getinfo addr-mappings/*'.
33483     - The control spec described a GUARDS event, but the code
33484       implemented a GUARD event. Standardize on GUARD, but let people
33485       ask for GUARDS too.
33488 Changes in version 0.1.2.10-rc - 2007-03-07
33489   o Major bugfixes (Windows):
33490     - Do not load the NT services library functions (which may not exist)
33491       just to detect if we're a service trying to shut down. Now we run
33492       on Win98 and friends again.
33494   o Minor bugfixes (other):
33495     - Clarify a couple of log messages.
33496     - Fix a misleading socks5 error number.
33499 Changes in version 0.1.2.9-rc - 2007-03-02
33500   o Major bugfixes (Windows):
33501     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
33502       of the usual GCC "%llu". This prevents a bug when saving 64-bit
33503       int configuration values: the high-order 32 bits would get
33504       truncated. In particular, we were being bitten by the default
33505       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
33506       and maybe also bug 397.)
33508   o Minor bugfixes (performance):
33509     - Use OpenSSL's AES implementation on platforms where it's faster.
33510       This could save us as much as 10% CPU usage.
33512   o Minor bugfixes (server):
33513     - Do not rotate onion key immediately after setting it for the first
33514       time.
33516   o Minor bugfixes (directory authorities):
33517     - Stop calling servers that have been hibernating for a long time
33518       "stable". Also, stop letting hibernating or obsolete servers affect
33519       uptime and bandwidth cutoffs.
33520     - Stop listing hibernating servers in the v1 directory.
33522   o Minor bugfixes (hidden services):
33523     - Upload hidden service descriptors slightly less often, to reduce
33524       load on authorities.
33526   o Minor bugfixes (other):
33527     - Fix an assert that could trigger if a controller quickly set then
33528       cleared EntryNodes. Bug found by Udo van den Heuvel.
33529     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
33530       to INT32_MAX.
33531     - Fix a potential race condition in the rpm installer. Found by
33532       Stefan Nordhausen.
33533     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
33534       of 2 as indicating that the server is completely bad; it sometimes
33535       means that the server is just bad for the request in question. (may fix
33536       the last of bug 326.)
33537     - Disable encrypted directory connections when we don't have a server
33538       descriptor for the destination. We'll get this working again in
33539       the 0.2.0 branch.
33542 Changes in version 0.1.2.8-beta - 2007-02-26
33543   o Major bugfixes (crashes):
33544     - Stop crashing when the controller asks us to resetconf more than
33545       one config option at once. (Vidalia 0.0.11 does this.)
33546     - Fix a crash that happened on Win98 when we're given command-line
33547       arguments: don't try to load NT service functions from advapi32.dll
33548       except when we need them. (Bug introduced in 0.1.2.7-alpha;
33549       resolves bug 389.)
33550     - Fix a longstanding obscure crash bug that could occur when
33551       we run out of DNS worker processes. (Resolves bug 390.)
33553   o Major bugfixes (hidden services):
33554     - Correctly detect whether hidden service descriptor downloads are
33555       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
33557   o Major bugfixes (accounting):
33558     - When we start during an accounting interval before it's time to wake
33559       up, remember to wake up at the correct time. (May fix bug 342.)
33561   o Minor bugfixes (controller):
33562     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
33563       clear the corresponding on_circuit variable, and remember later
33564       that we don't need to send a redundant CLOSED event. Resolves part
33565       3 of bug 367.
33566     - Report events where a resolve succeeded or where we got a socks
33567       protocol error correctly, rather than calling both of them
33568       "INTERNAL".
33569     - Change reported stream target addresses to IP consistently when
33570       we finally get the IP from an exit node.
33571     - Send log messages to the controller even if they happen to be very
33572       long.
33574   o Minor bugfixes (other):
33575     - Display correct results when reporting which versions are
33576       recommended, and how recommended they are. (Resolves bug 383.)
33577     - Improve our estimates for directory bandwidth to be less random:
33578       guess that an unrecognized directory will have the average bandwidth
33579       from all known directories, not that it will have the average
33580       bandwidth from those directories earlier than it on the list.
33581     - If we start a server with ClientOnly 1, then set ClientOnly to 0
33582       and hup, stop triggering an assert based on an empty onion_key.
33583     - On platforms with no working mmap() equivalent, don't warn the
33584       user when cached-routers doesn't exist.
33585     - Warn the user when mmap() [or its equivalent] fails for some reason
33586       other than file-not-found.
33587     - Don't warn the user when cached-routers.new doesn't exist: that's
33588       perfectly fine when starting up for the first time.
33589     - When EntryNodes are configured, rebuild the guard list to contain,
33590       in order: the EntryNodes that were guards before; the rest of the
33591       EntryNodes; the nodes that were guards before.
33592     - Mask out all signals in sub-threads; only the libevent signal
33593       handler should be processing them. This should prevent some crashes
33594       on some machines using pthreads. (Patch from coderman.)
33595     - Fix switched arguments on memset in the implementation of
33596       tor_munmap() for systems with no mmap() call.
33597     - When Tor receives a router descriptor that it asked for, but
33598       no longer wants (because it has received fresh networkstatuses
33599       in the meantime), do not warn the user. Cache the descriptor if
33600       we're a cache; drop it if we aren't.
33601     - Make earlier entry guards _really_ get retried when the network
33602       comes back online.
33603     - On a malformed DNS reply, always give an error to the corresponding
33604       DNS request.
33605     - Build with recent libevents on platforms that do not define the
33606       nonstandard types "u_int8_t" and friends.
33608   o Minor features (controller):
33609     - Warn the user when an application uses the obsolete binary v0
33610       control protocol. We're planning to remove support for it during
33611       the next development series, so it's good to give people some
33612       advance warning.
33613     - Add STREAM_BW events to report per-entry-stream bandwidth
33614       use. (Patch from Robert Hogan.)
33615     - Rate-limit SIGNEWNYM signals in response to controllers that
33616       impolitely generate them for every single stream. (Patch from
33617       mwenge; closes bug 394.)
33618     - Make REMAP stream events have a SOURCE (cache or exit), and
33619       make them generated in every case where we get a successful
33620       connected or resolved cell.
33622   o Minor bugfixes (performance):
33623     - Call router_have_min_dir_info half as often. (This is showing up in
33624       some profiles, but not others.)
33625     - When using GCC, make log_debug never get called at all, and its
33626       arguments never get evaluated, when no debug logs are configured.
33627       (This is showing up in some profiles, but not others.)
33629   o Minor features:
33630     - Remove some never-implemented options. Mark PathlenCoinWeight as
33631       obsolete.
33632     - Implement proposal 106: Stop requiring clients to have well-formed
33633       certificates; stop checking nicknames in certificates. (Clients
33634       have certificates so that they can look like Tor servers, but in
33635       the future we might want to allow them to look like regular TLS
33636       clients instead. Nicknames in certificates serve no purpose other
33637       than making our protocol easier to recognize on the wire.)
33638     - Revise messages on handshake failure again to be even more clear about
33639       which are incoming connections and which are outgoing.
33640     - Discard any v1 directory info that's over 1 month old (for
33641       directories) or over 1 week old (for running-routers lists).
33642     - Do not warn when individual nodes in the configuration's EntryNodes,
33643       ExitNodes, etc are down: warn only when all possible nodes
33644       are down. (Fixes bug 348.)
33645     - Always remove expired routers and networkstatus docs before checking
33646       whether we have enough information to build circuits. (Fixes
33647       bug 373.)
33648     - Put a lower-bound on MaxAdvertisedBandwidth.
33651 Changes in version 0.1.2.7-alpha - 2007-02-06
33652   o Major bugfixes (rate limiting):
33653     - Servers decline directory requests much more aggressively when
33654       they're low on bandwidth. Otherwise they end up queueing more and
33655       more directory responses, which can't be good for latency.
33656     - But never refuse directory requests from local addresses.
33657     - Fix a memory leak when sending a 503 response for a networkstatus
33658       request.
33659     - Be willing to read or write on local connections (e.g. controller
33660       connections) even when the global rate limiting buckets are empty.
33661     - If our system clock jumps back in time, don't publish a negative
33662       uptime in the descriptor. Also, don't let the global rate limiting
33663       buckets go absurdly negative.
33664     - Flush local controller connection buffers periodically as we're
33665       writing to them, so we avoid queueing 4+ megabytes of data before
33666       trying to flush.
33668   o Major bugfixes (NT services):
33669     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
33670       command-line flag so that admins can override the default by saying
33671       "tor --service install --user "SomeUser"". This will not affect
33672       existing installed services. Also, warn the user that the service
33673       will look for its configuration file in the service user's
33674       %appdata% directory. (We can't do the 'hardwire the user's appdata
33675       directory' trick any more, since we may not have read access to that
33676       directory.)
33678   o Major bugfixes (other):
33679     - Previously, we would cache up to 16 old networkstatus documents
33680       indefinitely, if they came from nontrusted authorities. Now we
33681       discard them if they are more than 10 days old.
33682     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
33683       Del Vecchio).
33684     - Detect and reject malformed DNS responses containing circular
33685       pointer loops.
33686     - If exits are rare enough that we're not marking exits as guards,
33687       ignore exit bandwidth when we're deciding the required bandwidth
33688       to become a guard.
33689     - When we're handling a directory connection tunneled over Tor,
33690       don't fill up internal memory buffers with all the data we want
33691       to tunnel; instead, only add it if the OR connection that will
33692       eventually receive it has some room for it. (This can lead to
33693       slowdowns in tunneled dir connections; a better solution will have
33694       to wait for 0.2.0.)
33696   o Minor bugfixes (dns):
33697     - Add some defensive programming to eventdns.c in an attempt to catch
33698       possible memory-stomping bugs.
33699     - Detect and reject DNS replies containing IPv4 or IPv6 records with
33700       an incorrect number of bytes. (Previously, we would ignore the
33701       extra bytes.)
33702     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
33703       in the correct order, and doesn't crash.
33704     - Free memory held in recently-completed DNS lookup attempts on exit.
33705       This was not a memory leak, but may have been hiding memory leaks.
33706     - Handle TTL values correctly on reverse DNS lookups.
33707     - Treat failure to parse resolv.conf as an error.
33709   o Minor bugfixes (other):
33710     - Fix crash with "tor --list-fingerprint" (reported by seeess).
33711     - When computing clock skew from directory HTTP headers, consider what
33712       time it was when we finished asking for the directory, not what
33713       time it is now.
33714     - Expire socks connections if they spend too long waiting for the
33715       handshake to finish. Previously we would let them sit around for
33716       days, if the connecting application didn't close them either.
33717     - And if the socks handshake hasn't started, don't send a
33718       "DNS resolve socks failed" handshake reply; just close it.
33719     - Stop using C functions that OpenBSD's linker doesn't like.
33720     - Don't launch requests for descriptors unless we have networkstatuses
33721       from at least half of the authorities. This delays the first
33722       download slightly under pathological circumstances, but can prevent
33723       us from downloading a bunch of descriptors we don't need.
33724     - Do not log IPs with TLS failures for incoming TLS
33725       connections. (Fixes bug 382.)
33726     - If the user asks to use invalid exit nodes, be willing to use
33727       unstable ones.
33728     - Stop using the reserved ac_cv namespace in our configure script.
33729     - Call stat() slightly less often; use fstat() when possible.
33730     - Refactor the way we handle pending circuits when an OR connection
33731       completes or fails, in an attempt to fix a rare crash bug.
33732     - Only rewrite a conn's address based on X-Forwarded-For: headers
33733       if it's a parseable public IP address; and stop adding extra quotes
33734       to the resulting address.
33736   o Major features:
33737     - Weight directory requests by advertised bandwidth. Now we can
33738       let servers enable write limiting but still allow most clients to
33739       succeed at their directory requests. (We still ignore weights when
33740       choosing a directory authority; I hope this is a feature.)
33742   o Minor features:
33743     - Create a new file ReleaseNotes which was the old ChangeLog. The
33744       new ChangeLog file now includes the summaries for all development
33745       versions too.
33746     - Check for addresses with invalid characters at the exit as well
33747       as at the client, and warn less verbosely when they fail. You can
33748       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
33749     - Adapt a patch from goodell to let the contrib/exitlist script
33750       take arguments rather than require direct editing.
33751     - Inform the server operator when we decide not to advertise a
33752       DirPort due to AccountingMax enabled or a low BandwidthRate. It
33753       was confusing Zax, so now we're hopefully more helpful.
33754     - Bring us one step closer to being able to establish an encrypted
33755       directory tunnel without knowing a descriptor first. Still not
33756       ready yet. As part of the change, now assume we can use a
33757       create_fast cell if we don't know anything about a router.
33758     - Allow exit nodes to use nameservers running on ports other than 53.
33759     - Servers now cache reverse DNS replies.
33760     - Add an --ignore-missing-torrc command-line option so that we can
33761       get the "use sensible defaults if the configuration file doesn't
33762       exist" behavior even when specifying a torrc location on the command
33763       line.
33765   o Minor features (controller):
33766     - Track reasons for OR connection failure; make these reasons
33767       available via the controller interface. (Patch from Mike Perry.)
33768     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
33769       can learn when clients are sending malformed hostnames to Tor.
33770     - Clean up documentation for controller status events.
33771     - Add a REMAP status to stream events to note that a stream's
33772       address has changed because of a cached address or a MapAddress
33773       directive.
33776 Changes in version 0.1.2.6-alpha - 2007-01-09
33777   o Major bugfixes:
33778     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
33779       connection handles more than 4 gigs in either direction, we crash.
33780     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
33781       advertised exit node, somebody might try to exit from us when
33782       we're bootstrapping and before we've built our descriptor yet.
33783       Refuse the connection rather than crashing.
33785   o Minor bugfixes:
33786     - Warn if we (as a server) find that we've resolved an address that we
33787       weren't planning to resolve.
33788     - Warn that using select() on any libevent version before 1.1 will be
33789       unnecessarily slow (even for select()).
33790     - Flush ERR-level controller status events just like we currently
33791       flush ERR-level log events, so that a Tor shutdown doesn't prevent
33792       the controller from learning about current events.
33794   o Minor features (more controller status events):
33795     - Implement EXTERNAL_ADDRESS server status event so controllers can
33796       learn when our address changes.
33797     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
33798       can learn when directories reject our descriptor.
33799     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
33800       can learn when a client application is speaking a non-socks protocol
33801       to our SocksPort.
33802     - Implement DANGEROUS_SOCKS client status event so controllers
33803       can learn when a client application is leaking DNS addresses.
33804     - Implement BUG general status event so controllers can learn when
33805       Tor is unhappy about its internal invariants.
33806     - Implement CLOCK_SKEW general status event so controllers can learn
33807       when Tor thinks the system clock is set incorrectly.
33808     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
33809       server status events so controllers can learn when their descriptors
33810       are accepted by a directory.
33811     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
33812       server status events so controllers can learn about Tor's progress in
33813       deciding whether it's reachable from the outside.
33814     - Implement BAD_LIBEVENT general status event so controllers can learn
33815       when we have a version/method combination in libevent that needs to
33816       be changed.
33817     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
33818       and DNS_USELESS server status events so controllers can learn
33819       about changes to DNS server status.
33821   o Minor features (directory):
33822     - Authorities no longer recommend exits as guards if this would shift
33823       too much load to the exit nodes.
33826 Changes in version 0.1.2.5-alpha - 2007-01-06
33827   o Major features:
33828     - Enable write limiting as well as read limiting. Now we sacrifice
33829       capacity if we're pushing out lots of directory traffic, rather
33830       than overrunning the user's intended bandwidth limits.
33831     - Include TLS overhead when counting bandwidth usage; previously, we
33832       would count only the bytes sent over TLS, but not the bytes used
33833       to send them.
33834     - Support running the Tor service with a torrc not in the same
33835       directory as tor.exe and default to using the torrc located in
33836       the %appdata%\Tor\ of the user who installed the service. Patch
33837       from Matt Edman.
33838     - Servers now check for the case when common DNS requests are going to
33839       wildcarded addresses (i.e. all getting the same answer), and change
33840       their exit policy to reject *:* if it's happening.
33841     - Implement BEGIN_DIR cells, so we can connect to the directory
33842       server via TLS to do encrypted directory requests rather than
33843       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
33844       config options if you like.
33846   o Minor features (config and docs):
33847     - Start using the state file to store bandwidth accounting data:
33848       the bw_accounting file is now obsolete. We'll keep generating it
33849       for a while for people who are still using 0.1.2.4-alpha.
33850     - Try to batch changes to the state file so that we do as few
33851       disk writes as possible while still storing important things in
33852       a timely fashion.
33853     - The state file and the bw_accounting file get saved less often when
33854       the AvoidDiskWrites config option is set.
33855     - Make PIDFile work on Windows (untested).
33856     - Add internal descriptions for a bunch of configuration options:
33857       accessible via controller interface and in comments in saved
33858       options files.
33859     - Reject *:563 (NNTPS) in the default exit policy. We already reject
33860       NNTP by default, so this seems like a sensible addition.
33861     - Clients now reject hostnames with invalid characters. This should
33862       avoid some inadvertent info leaks. Add an option
33863       AllowNonRFC953Hostnames to disable this behavior, in case somebody
33864       is running a private network with hosts called @, !, and #.
33865     - Add a maintainer script to tell us which options are missing
33866       documentation: "make check-docs".
33867     - Add a new address-spec.txt document to describe our special-case
33868       addresses: .exit, .onion, and .noconnnect.
33870   o Minor features (DNS):
33871     - Ongoing work on eventdns infrastructure: now it has dns server
33872       and ipv6 support. One day Tor will make use of it.
33873     - Add client-side caching for reverse DNS lookups.
33874     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
33875     - When we change nameservers or IP addresses, reset and re-launch
33876       our tests for DNS hijacking.
33878   o Minor features (directory):
33879     - Authorities now specify server versions in networkstatus. This adds
33880       about 2% to the size of compressed networkstatus docs, and allows
33881       clients to tell which servers support BEGIN_DIR and which don't.
33882       The implementation is forward-compatible with a proposed future
33883       protocol version scheme not tied to Tor versions.
33884     - DirServer configuration lines now have an orport= option so
33885       clients can open encrypted tunnels to the authorities without
33886       having downloaded their descriptors yet. Enabled for moria1,
33887       moria2, tor26, and lefkada now in the default configuration.
33888     - Directory servers are more willing to send a 503 "busy" if they
33889       are near their write limit, especially for v1 directory requests.
33890       Now they can use their limited bandwidth for actual Tor traffic.
33891     - Clients track responses with status 503 from dirservers. After a
33892       dirserver has given us a 503, we try not to use it until an hour has
33893       gone by, or until we have no dirservers that haven't given us a 503.
33894     - When we get a 503 from a directory, and we're not a server, we don't
33895       count the failure against the total number of failures allowed
33896       for the thing we're trying to download.
33897     - Report X-Your-Address-Is correctly from tunneled directory
33898       connections; don't report X-Your-Address-Is when it's an internal
33899       address; and never believe reported remote addresses when they're
33900       internal.
33901     - Protect against an unlikely DoS attack on directory servers.
33902     - Add a BadDirectory flag to network status docs so that authorities
33903       can (eventually) tell clients about caches they believe to be
33904       broken.
33906   o Minor features (controller):
33907     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
33908     - Reimplement GETINFO so that info/names stays in sync with the
33909       actual keys.
33910     - Implement "GETINFO fingerprint".
33911     - Implement "SETEVENTS GUARD" so controllers can get updates on
33912       entry guard status as it changes.
33914   o Minor features (clean up obsolete pieces):
33915     - Remove some options that have been deprecated since at least
33916       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
33917       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
33918       to set log options.
33919     - We no longer look for identity and onion keys in "identity.key" and
33920       "onion.key" -- these were replaced by secret_id_key and
33921       secret_onion_key in 0.0.8pre1.
33922     - We no longer require unrecognized directory entries to be
33923       preceded by "opt".
33925   o Major bugfixes (security):
33926     - Stop sending the HttpProxyAuthenticator string to directory
33927       servers when directory connections are tunnelled through Tor.
33928     - Clients no longer store bandwidth history in the state file.
33929     - Do not log introduction points for hidden services if SafeLogging
33930       is set.
33931     - When generating bandwidth history, round down to the nearest
33932       1k. When storing accounting data, round up to the nearest 1k.
33933     - When we're running as a server, remember when we last rotated onion
33934       keys, so that we will rotate keys once they're a week old even if
33935       we never stay up for a week ourselves.
33937   o Major bugfixes (other):
33938     - Fix a longstanding bug in eventdns that prevented the count of
33939       timed-out resolves from ever being reset. This bug caused us to
33940       give up on a nameserver the third time it timed out, and try it
33941       10 seconds later... and to give up on it every time it timed out
33942       after that.
33943     - Take out the '5 second' timeout from the connection retry
33944       schedule. Now the first connect attempt will wait a full 10
33945       seconds before switching to a new circuit. Perhaps this will help
33946       a lot. Based on observations from Mike Perry.
33947     - Fix a bug on the Windows implementation of tor_mmap_file() that
33948       would prevent the cached-routers file from ever loading. Reported
33949       by John Kimble.
33951   o Minor bugfixes:
33952     - Fix an assert failure when a directory authority sets
33953       AuthDirRejectUnlisted and then receives a descriptor from an
33954       unlisted router. Reported by seeess.
33955     - Avoid a double-free when parsing malformed DirServer lines.
33956     - Fix a bug when a BSD-style PF socket is first used. Patch from
33957       Fabian Keil.
33958     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
33959       to resolve an address at a given exit node even when they ask for
33960       it by name.
33961     - Servers no longer ever list themselves in their "family" line,
33962       even if configured to do so. This makes it easier to configure
33963       family lists conveniently.
33964     - When running as a server, don't fall back to 127.0.0.1 when no
33965       nameservers are configured in /etc/resolv.conf; instead, make the
33966       user fix resolv.conf or specify nameservers explicitly. (Resolves
33967       bug 363.)
33968     - Stop accepting certain malformed ports in configured exit policies.
33969     - Don't re-write the fingerprint file every restart, unless it has
33970       changed.
33971     - Stop warning when a single nameserver fails: only warn when _all_ of
33972       our nameservers have failed. Also, when we only have one nameserver,
33973       raise the threshold for deciding that the nameserver is dead.
33974     - Directory authorities now only decide that routers are reachable
33975       if their identity keys are as expected.
33976     - When the user uses bad syntax in the Log config line, stop
33977       suggesting other bad syntax as a replacement.
33978     - Correctly detect ipv6 DNS capability on OpenBSD.
33980   o Minor bugfixes (controller):
33981     - Report the circuit number correctly in STREAM CLOSED events. Bug
33982       reported by Mike Perry.
33983     - Do not report bizarre values for results of accounting GETINFOs
33984       when the last second's write or read exceeds the allotted bandwidth.
33985     - Report "unrecognized key" rather than an empty string when the
33986       controller tries to fetch a networkstatus that doesn't exist.
33989 Changes in version 0.1.1.26 - 2006-12-14
33990   o Security bugfixes:
33991     - Stop sending the HttpProxyAuthenticator string to directory
33992       servers when directory connections are tunnelled through Tor.
33993     - Clients no longer store bandwidth history in the state file.
33994     - Do not log introduction points for hidden services if SafeLogging
33995       is set.
33997   o Minor bugfixes:
33998     - Fix an assert failure when a directory authority sets
33999       AuthDirRejectUnlisted and then receives a descriptor from an
34000       unlisted router (reported by seeess).
34003 Changes in version 0.1.2.4-alpha - 2006-12-03
34004   o Major features:
34005     - Add support for using natd; this allows FreeBSDs earlier than
34006       5.1.2 to have ipfw send connections through Tor without using
34007       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
34009   o Minor features:
34010     - Make all connections to addresses of the form ".noconnect"
34011       immediately get closed. This lets application/controller combos
34012       successfully test whether they're talking to the same Tor by
34013       watching for STREAM events.
34014     - Make cross.sh cross-compilation script work even when autogen.sh
34015       hasn't been run. (Patch from Michael Mohr.)
34016     - Statistics dumped by -USR2 now include a breakdown of public key
34017       operations, for profiling.
34019   o Major bugfixes:
34020     - Fix a major leak when directory authorities parse their
34021       approved-routers list, a minor memory leak when we fail to pick
34022       an exit node, and a few rare leaks on errors.
34023     - Handle TransPort connections even when the server sends data before
34024       the client sends data. Previously, the connection would just hang
34025       until the client sent data. (Patch from tup based on patch from
34026       Zajcev Evgeny.)
34027     - Avoid assert failure when our cached-routers file is empty on
34028       startup.
34030   o Minor bugfixes:
34031     - Don't log spurious warnings when we see a circuit close reason we
34032       don't recognize; it's probably just from a newer version of Tor.
34033     - Have directory authorities allow larger amounts of drift in uptime
34034       without replacing the server descriptor: previously, a server that
34035       restarted every 30 minutes could have 48 "interesting" descriptors
34036       per day.
34037     - Start linking to the Tor specification and Tor reference manual
34038       correctly in the Windows installer.
34039     - Add Vidalia to the OS X uninstaller script, so when we uninstall
34040       Tor/Privoxy we also uninstall Vidalia.
34041     - Resume building on Irix64, and fix a lot of warnings from its
34042       MIPSpro C compiler.
34043     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
34044       when we're running as a client.
34047 Changes in version 0.1.1.25 - 2006-11-04
34048   o Major bugfixes:
34049     - When a client asks us to resolve (rather than connect to)
34050       an address, and we have a cached answer, give them the cached
34051       answer. Previously, we would give them no answer at all.
34052     - We were building exactly the wrong circuits when we predict
34053       hidden service requirements, meaning Tor would have to build all
34054       its circuits on demand.
34055     - If none of our live entry guards have a high uptime, but we
34056       require a guard with a high uptime, try adding a new guard before
34057       we give up on the requirement. This patch should make long-lived
34058       connections more stable on average.
34059     - When testing reachability of our DirPort, don't launch new
34060       tests when there's already one in progress -- unreachable
34061       servers were stacking up dozens of testing streams.
34063   o Security bugfixes:
34064     - When the user sends a NEWNYM signal, clear the client-side DNS
34065       cache too. Otherwise we continue to act on previous information.
34067   o Minor bugfixes:
34068     - Avoid a memory corruption bug when creating a hash table for
34069       the first time.
34070     - Avoid possibility of controller-triggered crash when misusing
34071       certain commands from a v0 controller on platforms that do not
34072       handle printf("%s",NULL) gracefully.
34073     - Avoid infinite loop on unexpected controller input.
34074     - Don't log spurious warnings when we see a circuit close reason we
34075       don't recognize; it's probably just from a newer version of Tor.
34076     - Add Vidalia to the OS X uninstaller script, so when we uninstall
34077       Tor/Privoxy we also uninstall Vidalia.
34080 Changes in version 0.1.2.3-alpha - 2006-10-29
34081   o Minor features:
34082     - Prepare for servers to publish descriptors less often: never
34083       discard a descriptor simply for being too old until either it is
34084       recommended by no authorities, or until we get a better one for
34085       the same router. Make caches consider retaining old recommended
34086       routers for even longer.
34087     - If most authorities set a BadExit flag for a server, clients
34088       don't think of it as a general-purpose exit. Clients only consider
34089       authorities that advertise themselves as listing bad exits.
34090     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
34091       headers for content, so that we can work better in the presence of
34092       caching HTTP proxies.
34093     - Allow authorities to list nodes as bad exits by fingerprint or by
34094       address.
34096   o Minor features, controller:
34097     - Add a REASON field to CIRC events; for backward compatibility, this
34098       field is sent only to controllers that have enabled the extended
34099       event format. Also, add additional reason codes to explain why
34100       a given circuit has been destroyed or truncated. (Patches from
34101       Mike Perry)
34102     - Add a REMOTE_REASON field to extended CIRC events to tell the
34103       controller about why a remote OR told us to close a circuit.
34104     - Stream events also now have REASON and REMOTE_REASON fields,
34105       working much like those for circuit events.
34106     - There's now a GETINFO ns/... field so that controllers can ask Tor
34107       about the current status of a router.
34108     - A new event type "NS" to inform a controller when our opinion of
34109       a router's status has changed.
34110     - Add a GETINFO events/names and GETINFO features/names so controllers
34111       can tell which events and features are supported.
34112     - A new CLEARDNSCACHE signal to allow controllers to clear the
34113       client-side DNS cache without expiring circuits.
34115   o Security bugfixes:
34116     - When the user sends a NEWNYM signal, clear the client-side DNS
34117       cache too. Otherwise we continue to act on previous information.
34119   o Minor bugfixes:
34120     - Avoid sending junk to controllers or segfaulting when a controller
34121       uses EVENT_NEW_DESC with verbose nicknames.
34122     - Stop triggering asserts if the controller tries to extend hidden
34123       service circuits (reported by mwenge).
34124     - Avoid infinite loop on unexpected controller input.
34125     - When the controller does a "GETINFO network-status", tell it
34126       about even those routers whose descriptors are very old, and use
34127       long nicknames where appropriate.
34128     - Change NT service functions to be loaded on demand. This lets us
34129       build with MinGW without breaking Tor for Windows 98 users.
34130     - Do DirPort reachability tests less often, since a single test
34131       chews through many circuits before giving up.
34132     - In the hidden service example in torrc.sample, stop recommending
34133       esoteric and discouraged hidden service options.
34134     - When stopping an NT service, wait up to 10 sec for it to actually
34135       stop. Patch from Matt Edman; resolves bug 295.
34136     - Fix handling of verbose nicknames with ORCONN controller events:
34137       make them show up exactly when requested, rather than exactly when
34138       not requested.
34139     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
34140       printing a duplicate "$" in the keys we send (reported by mwenge).
34141     - Correctly set maximum connection limit on Cygwin. (This time
34142       for sure!)
34143     - Try to detect Windows correctly when cross-compiling.
34144     - Detect the size of the routers file correctly even if it is
34145       corrupted (on systems without mmap) or not page-aligned (on systems
34146       with mmap). This bug was harmless.
34147     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
34148       to open a stream fails; now we do in more cases. This should
34149       make clients able to find a good exit faster in some cases, since
34150       unhandleable requests will now get an error rather than timing out.
34151     - Resolve two memory leaks when rebuilding the on-disk router cache
34152       (reported by fookoowa).
34153     - Clean up minor code warnings suggested by the MIPSpro C compiler,
34154       and reported by some Centos users.
34155     - Controller signals now work on non-Unix platforms that don't define
34156       SIGUSR1 and SIGUSR2 the way we expect.
34157     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
34158       values before failing, and always enables eventdns.
34159     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
34160       Try to fix this in configure.in by checking for most functions
34161       before we check for libevent.
34164 Changes in version 0.1.2.2-alpha - 2006-10-07
34165   o Major features:
34166     - Make our async eventdns library on-by-default for Tor servers,
34167       and plan to deprecate the separate dnsworker threads.
34168     - Add server-side support for "reverse" DNS lookups (using PTR
34169       records so clients can determine the canonical hostname for a given
34170       IPv4 address). Only supported by servers using eventdns; servers
34171       now announce in their descriptors whether they support eventdns.
34172     - Specify and implement client-side SOCKS5 interface for reverse DNS
34173       lookups (see doc/socks-extensions.txt).
34174     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
34175       connect to directory servers through Tor. Previously, clients needed
34176       to find Tor exits to make private connections to directory servers.
34177     - Avoid choosing Exit nodes for entry or middle hops when the
34178       total bandwidth available from non-Exit nodes is much higher than
34179       the total bandwidth available from Exit nodes.
34180     - Workaround for name servers (like Earthlink's) that hijack failing
34181       DNS requests and replace the no-such-server answer with a "helpful"
34182       redirect to an advertising-driven search portal. Also work around
34183       DNS hijackers who "helpfully" decline to hijack known-invalid
34184       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
34185       lets you turn it off.
34186     - Send out a burst of long-range padding cells once we've established
34187       that we're reachable. Spread them over 4 circuits, so hopefully
34188       a few will be fast. This exercises our bandwidth and bootstraps
34189       us into the directory more quickly.
34191   o New/improved config options:
34192     - Add new config option "ResolvConf" to let the server operator
34193       choose an alternate resolve.conf file when using eventdns.
34194     - Add an "EnforceDistinctSubnets" option to control our "exclude
34195       servers on the same /16" behavior. It's still on by default; this
34196       is mostly for people who want to operate private test networks with
34197       all the machines on the same subnet.
34198     - If one of our entry guards is on the ExcludeNodes list, or the
34199       directory authorities don't think it's a good guard, treat it as
34200       if it were unlisted: stop using it as a guard, and throw it off
34201       the guards list if it stays that way for a long time.
34202     - Allow directory authorities to be marked separately as authorities
34203       for the v1 directory protocol, the v2 directory protocol, and
34204       as hidden service directories, to make it easier to retire old
34205       authorities. V1 authorities should set "HSAuthoritativeDir 1"
34206       to continue being hidden service authorities too.
34207     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
34209   o Minor features, controller:
34210     - Fix CIRC controller events so that controllers can learn the
34211       identity digests of non-Named servers used in circuit paths.
34212     - Let controllers ask for more useful identifiers for servers. Instead
34213       of learning identity digests for un-Named servers and nicknames
34214       for Named servers, the new identifiers include digest, nickname,
34215       and indication of Named status. Off by default; see control-spec.txt
34216       for more information.
34217     - Add a "getinfo address" controller command so it can display Tor's
34218       best guess to the user.
34219     - New controller event to alert the controller when our server
34220       descriptor has changed.
34221     - Give more meaningful errors on controller authentication failure.
34223   o Minor features, other:
34224     - When asked to resolve a hostname, don't use non-exit servers unless
34225       requested to do so. This allows servers with broken DNS to be
34226       useful to the network.
34227     - Divide eventdns log messages into warn and info messages.
34228     - Reserve the nickname "Unnamed" for routers that can't pick
34229       a hostname: any router can call itself Unnamed; directory
34230       authorities will never allocate Unnamed to any particular router;
34231       clients won't believe that any router is the canonical Unnamed.
34232     - Only include function names in log messages for info/debug messages.
34233       For notice/warn/err, the content of the message should be clear on
34234       its own, and printing the function name only confuses users.
34235     - Avoid some false positives during reachability testing: don't try
34236       to test via a server that's on the same /24 as us.
34237     - If we fail to build a circuit to an intended enclave, and it's
34238       not mandatory that we use that enclave, stop wanting it.
34239     - When eventdns is enabled, allow multithreaded builds on NetBSD and
34240       OpenBSD. (We had previously disabled threads on these platforms
34241       because they didn't have working thread-safe resolver functions.)
34243   o Major bugfixes, anonymity/security:
34244     - If a client asked for a server by name, and there's a named server
34245       in our network-status but we don't have its descriptor yet, we
34246       could return an unnamed server instead.
34247     - Fix NetBSD bug that could allow someone to force uninitialized RAM
34248       to be sent to a server's DNS resolver. This only affects NetBSD
34249       and other platforms that do not bounds-check tolower().
34250     - Reject (most) attempts to use Tor circuits with length one. (If
34251       many people start using Tor as a one-hop proxy, exit nodes become
34252       a more attractive target for compromise.)
34253     - Just because your DirPort is open doesn't mean people should be
34254       able to remotely teach you about hidden service descriptors. Now
34255       only accept rendezvous posts if you've got HSAuthoritativeDir set.
34257   o Major bugfixes, other:
34258     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
34259     - When a client asks the server to resolve (not connect to)
34260       an address, and it has a cached answer, give them the cached answer.
34261       Previously, the server would give them no answer at all.
34262     - Allow really slow clients to not hang up five minutes into their
34263       directory downloads (suggested by Adam J. Richter).
34264     - We were building exactly the wrong circuits when we anticipated
34265       hidden service requirements, meaning Tor would have to build all
34266       its circuits on demand.
34267     - Avoid crashing when we mmap a router cache file of size 0.
34268     - When testing reachability of our DirPort, don't launch new
34269       tests when there's already one in progress -- unreachable
34270       servers were stacking up dozens of testing streams.
34272   o Minor bugfixes, correctness:
34273     - If we're a directory mirror and we ask for "all" network status
34274       documents, we would discard status documents from authorities
34275       we don't recognize.
34276     - Avoid a memory corruption bug when creating a hash table for
34277       the first time.
34278     - Avoid controller-triggered crash when misusing certain commands
34279       from a v0 controller on platforms that do not handle
34280       printf("%s",NULL) gracefully.
34281     - Don't crash when a controller sends a third argument to an
34282       "extendcircuit" request.
34283     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
34284       response; fix error code when "getinfo dir/status/" fails.
34285     - Avoid crash when telling controller stream-status and a stream
34286       is detached.
34287     - Patch from Adam Langley to fix assert() in eventdns.c.
34288     - Fix a debug log message in eventdns to say "X resolved to Y"
34289       instead of "X resolved to X".
34290     - Make eventdns give strings for DNS errors, not just error numbers.
34291     - Track unreachable entry guards correctly: don't conflate
34292       'unreachable by us right now' with 'listed as down by the directory
34293       authorities'. With the old code, if a guard was unreachable by
34294       us but listed as running, it would clog our guard list forever.
34295     - Behave correctly in case we ever have a network with more than
34296       2GB/s total advertised capacity.
34297     - Make TrackExitHosts case-insensitive, and fix the behavior of
34298       ".suffix" TrackExitHosts items to avoid matching in the middle of
34299       an address.
34300     - Finally fix the openssl warnings from newer gccs that believe that
34301       ignoring a return value is okay, but casting a return value and
34302       then ignoring it is a sign of madness.
34303     - Prevent the contrib/exitlist script from printing the same
34304       result more than once.
34305     - Patch from Steve Hildrey: Generate network status correctly on
34306       non-versioning dirservers.
34307     - Don't listen to the X-Your-Address-Is hint if you did the lookup
34308       via Tor; otherwise you'll think you're the exit node's IP address.
34310   o Minor bugfixes, performance:
34311     - Two small performance improvements on parsing descriptors.
34312     - Major performance improvement on inserting descriptors: change
34313       algorithm from O(n^2) to O(n).
34314     - Make the common memory allocation path faster on machines where
34315       malloc(0) returns a pointer.
34316     - Start remembering X-Your-Address-Is directory hints even if you're
34317       a client, so you can become a server more smoothly.
34318     - Avoid duplicate entries on MyFamily line in server descriptor.
34320   o Packaging, features:
34321     - Remove architecture from OS X builds. The official builds are
34322       now universal binaries.
34323     - The Debian package now uses --verify-config when (re)starting,
34324       to distinguish configuration errors from other errors.
34325     - Update RPMs to require libevent 1.1b.
34327   o Packaging, bugfixes:
34328     - Patches so Tor builds with MinGW on Windows.
34329     - Patches so Tor might run on Cygwin again.
34330     - Resume building on non-gcc compilers and ancient gcc. Resume
34331       building with the -O0 compile flag. Resume building cleanly on
34332       Debian woody.
34333     - Run correctly on OS X platforms with case-sensitive filesystems.
34334     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
34335     - Add autoconf checks so Tor can build on Solaris x86 again.
34337   o Documentation
34338     - Documented (and renamed) ServerDNSSearchDomains and
34339       ServerDNSResolvConfFile options.
34340     - Be clearer that the *ListenAddress directives can be repeated
34341       multiple times.
34344 Changes in version 0.1.1.24 - 2006-09-29
34345   o Major bugfixes:
34346     - Allow really slow clients to not hang up five minutes into their
34347       directory downloads (suggested by Adam J. Richter).
34348     - Fix major performance regression from 0.1.0.x: instead of checking
34349       whether we have enough directory information every time we want to
34350       do something, only check when the directory information has changed.
34351       This should improve client CPU usage by 25-50%.
34352     - Don't crash if, after a server has been running for a while,
34353       it can't resolve its hostname.
34355   o Minor bugfixes:
34356     - Allow Tor to start when RunAsDaemon is set but no logs are set.
34357     - Don't crash when the controller receives a third argument to an
34358       "extendcircuit" request.
34359     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
34360       response; fix error code when "getinfo dir/status/" fails.
34361     - Fix configure.in to not produce broken configure files with
34362       more recent versions of autoconf. Thanks to Clint for his auto*
34363       voodoo.
34364     - Fix security bug on NetBSD that could allow someone to force
34365       uninitialized RAM to be sent to a server's DNS resolver. This
34366       only affects NetBSD and other platforms that do not bounds-check
34367       tolower().
34368     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
34369       methods: these are known to be buggy.
34370     - If we're a directory mirror and we ask for "all" network status
34371       documents, we would discard status documents from authorities
34372       we don't recognize.
34375 Changes in version 0.1.2.1-alpha - 2006-08-27
34376   o Major features:
34377     - Add "eventdns" async dns library from Adam Langley, tweaked to
34378       build on OSX and Windows. Only enabled if you pass the
34379       --enable-eventdns argument to configure.
34380     - Allow servers with no hostname or IP address to learn their
34381       IP address by asking the directory authorities. This code only
34382       kicks in when you would normally have exited with a "no address"
34383       error. Nothing's authenticated, so use with care.
34384     - Rather than waiting a fixed amount of time between retrying
34385       application connections, we wait only 5 seconds for the first,
34386       10 seconds for the second, and 15 seconds for each retry after
34387       that. Hopefully this will improve the expected user experience.
34388     - Patch from Tup to add support for transparent AP connections:
34389       this basically bundles the functionality of trans-proxy-tor
34390       into the Tor mainline. Now hosts with compliant pf/netfilter
34391       implementations can redirect TCP connections straight to Tor
34392       without diverting through SOCKS. Needs docs.
34393     - Busy directory servers save lots of memory by spooling server
34394       descriptors, v1 directories, and v2 networkstatus docs to buffers
34395       as needed rather than en masse. Also mmap the cached-routers
34396       files, so we don't need to keep the whole thing in memory too.
34397     - Automatically avoid picking more than one node from the same
34398       /16 network when constructing a circuit.
34399     - Revise and clean up the torrc.sample that we ship with; add
34400       a section for BandwidthRate and BandwidthBurst.
34402   o Minor features:
34403     - Split circuit_t into origin_circuit_t and or_circuit_t, and
34404       split connection_t into edge, or, dir, control, and base structs.
34405       These will save quite a bit of memory on busy servers, and they'll
34406       also help us track down bugs in the code and bugs in the spec.
34407     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
34408       or later. Log when we are doing this, so we can diagnose it when
34409       it fails. (Also, recommend libevent 1.1b for kqueue and
34410       win32 methods; deprecate libevent 1.0b harder; make libevent
34411       recommendation system saner.)
34412     - Start being able to build universal binaries on OS X (thanks
34413       to Phobos).
34414     - Export the default exit policy via the control port, so controllers
34415       don't need to guess what it is / will be later.
34416     - Add a man page entry for ProtocolWarnings.
34417     - Add TestVia config option to the man page.
34418     - Remove even more protocol-related warnings from Tor server logs,
34419       such as bad TLS handshakes and malformed begin cells.
34420     - Stop fetching descriptors if you're not a dir mirror and you
34421       haven't tried to establish any circuits lately. [This currently
34422       causes some dangerous behavior, because when you start up again
34423       you'll use your ancient server descriptors.]
34424     - New DirPort behavior: if you have your dirport set, you download
34425       descriptors aggressively like a directory mirror, whether or not
34426       your ORPort is set.
34427     - Get rid of the router_retry_connections notion. Now routers
34428       no longer try to rebuild long-term connections to directory
34429       authorities, and directory authorities no longer try to rebuild
34430       long-term connections to all servers. We still don't hang up
34431       connections in these two cases though -- we need to look at it
34432       more carefully to avoid flapping, and we likely need to wait til
34433       0.1.1.x is obsolete.
34434     - Drop compatibility with obsolete Tors that permit create cells
34435       to have the wrong circ_id_type.
34436     - Re-enable per-connection rate limiting. Get rid of the "OP
34437       bandwidth" concept. Lay groundwork for "bandwidth classes" --
34438       separate global buckets that apply depending on what sort of conn
34439       it is.
34440     - Start publishing one minute or so after we find our ORPort
34441       to be reachable. This will help reduce the number of descriptors
34442       we have for ourselves floating around, since it's quite likely
34443       other things (e.g. DirPort) will change during that minute too.
34444     - Fork the v1 directory protocol into its own spec document,
34445       and mark dir-spec.txt as the currently correct (v2) spec.
34447   o Major bugfixes:
34448     - When we find our DirPort to be reachable, publish a new descriptor
34449       so we'll tell the world (reported by pnx).
34450     - Publish a new descriptor after we hup/reload. This is important
34451       if our config has changed such that we'll want to start advertising
34452       our DirPort now, etc.
34453     - Allow Tor to start when RunAsDaemon is set but no logs are set.
34454     - When we have a state file we cannot parse, tell the user and
34455       move it aside. Now we avoid situations where the user starts
34456       Tor in 1904, Tor writes a state file with that timestamp in it,
34457       the user fixes her clock, and Tor refuses to start.
34458     - Fix configure.in to not produce broken configure files with
34459       more recent versions of autoconf. Thanks to Clint for his auto*
34460       voodoo.
34461     - "tor --verify-config" now exits with -1(255) or 0 depending on
34462       whether the config options are bad or good.
34463     - Resolve bug 321 when using dnsworkers: append a period to every
34464       address we resolve at the exit node, so that we do not accidentally
34465       pick up local addresses, and so that failing searches are retried
34466       in the resolver search domains. (This is already solved for
34467       eventdns.) (This breaks Blossom servers for now.)
34468     - If we are using an exit enclave and we can't connect, e.g. because
34469       its webserver is misconfigured to not listen on localhost, then
34470       back off and try connecting from somewhere else before we fail.
34472   o Minor bugfixes:
34473     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
34474     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
34475     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
34476       when the IP address is mapped through MapAddress to a hostname.
34477     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
34478       useless IPv6 DNS resolves.
34479     - Patch suggested by Karsten Loesing: respond to SIGNAL command
34480       before we execute the signal, in case the signal shuts us down.
34481     - Clean up AllowInvalidNodes man page entry.
34482     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
34483     - Add more asserts to track down an assert error on a windows Tor
34484       server with connection_add being called with socket == -1.
34485     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
34486     - Fix misleading log messages: an entry guard that is "unlisted",
34487       as well as not known to be "down" (because we've never heard
34488       of it), is not therefore "up".
34489     - Remove code to special-case "-cvs" ending, since it has not
34490       actually mattered since 0.0.9.
34491     - Make our socks5 handling more robust to broken socks clients:
34492       throw out everything waiting on the buffer in between socks
34493       handshake phases, since they can't possibly (so the theory
34494       goes) have predicted what we plan to respond to them.
34497 Changes in version 0.1.1.23 - 2006-07-30
34498   o Major bugfixes:
34499     - Fast Tor servers, especially exit nodes, were triggering asserts
34500       due to a bug in handling the list of pending DNS resolves. Some
34501       bugs still remain here; we're hunting them.
34502     - Entry guards could crash clients by sending unexpected input.
34503     - More fixes on reachability testing: if you find yourself reachable,
34504       then don't ever make any client requests (so you stop predicting
34505       circuits), then hup or have your clock jump, then later your IP
34506       changes, you won't think circuits are working, so you won't try to
34507       test reachability, so you won't publish.
34509   o Minor bugfixes:
34510     - Avoid a crash if the controller does a resetconf firewallports
34511       and then a setconf fascistfirewall=1.
34512     - Avoid an integer underflow when the dir authority decides whether
34513       a router is stable: we might wrongly label it stable, and compute
34514       a slightly wrong median stability, when a descriptor is published
34515       later than now.
34516     - Fix a place where we might trigger an assert if we can't build our
34517       own server descriptor yet.
34520 Changes in version 0.1.1.22 - 2006-07-05
34521   o Major bugfixes:
34522     - Fix a big bug that was causing servers to not find themselves
34523       reachable if they changed IP addresses. Since only 0.1.1.22+
34524       servers can do reachability testing correctly, now we automatically
34525       make sure to test via one of these.
34526     - Fix to allow clients and mirrors to learn directory info from
34527       descriptor downloads that get cut off partway through.
34528     - Directory authorities had a bug in deciding if a newly published
34529       descriptor was novel enough to make everybody want a copy -- a few
34530       servers seem to be publishing new descriptors many times a minute.
34531   o Minor bugfixes:
34532     - Fix a rare bug that was causing some servers to complain about
34533       "closing wedged cpuworkers" and skip some circuit create requests.
34534     - Make the Exit flag in directory status documents actually work.
34537 Changes in version 0.1.1.21 - 2006-06-10
34538   o Crash and assert fixes from 0.1.1.20:
34539     - Fix a rare crash on Tor servers that have enabled hibernation.
34540     - Fix a seg fault on startup for Tor networks that use only one
34541       directory authority.
34542     - Fix an assert from a race condition that occurs on Tor servers
34543       while exiting, where various threads are trying to log that they're
34544       exiting, and delete the logs, at the same time.
34545     - Make our unit tests pass again on certain obscure platforms.
34547   o Other fixes:
34548     - Add support for building SUSE RPM packages.
34549     - Speed up initial bootstrapping for clients: if we are making our
34550       first ever connection to any entry guard, then don't mark it down
34551       right after that.
34552     - When only one Tor server in the network is labelled as a guard,
34553       and we've already picked him, we would cycle endlessly picking him
34554       again, being unhappy about it, etc. Now we specifically exclude
34555       current guards when picking a new guard.
34556     - Servers send create cells more reliably after the TLS connection
34557       is established: we were sometimes forgetting to send half of them
34558       when we had more than one pending.
34559     - If we get a create cell that asks us to extend somewhere, but the
34560       Tor server there doesn't match the expected digest, we now send
34561       a destroy cell back, rather than silently doing nothing.
34562     - Make options->RedirectExit work again.
34563     - Make cookie authentication for the controller work again.
34564     - Stop being picky about unusual characters in the arguments to
34565       mapaddress. It's none of our business.
34566     - Add a new config option "TestVia" that lets you specify preferred
34567       middle hops to use for test circuits. Perhaps this will let me
34568       debug the reachability problems better.
34570   o Log / documentation fixes:
34571     - If we're a server and some peer has a broken TLS certificate, don't
34572       log about it unless ProtocolWarnings is set, i.e., we want to hear
34573       about protocol violations by others.
34574     - Fix spelling of VirtualAddrNetwork in man page.
34575     - Add a better explanation at the top of the autogenerated torrc file
34576       about what happened to our old torrc.
34579 Changes in version 0.1.1.20 - 2006-05-23
34580   o Bugfixes:
34581     - Downgrade a log severity where servers complain that they're
34582       invalid.
34583     - Avoid a compile warning on FreeBSD.
34584     - Remove string size limit on NEWDESC messages; solve bug 291.
34585     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
34586       more thoroughly when we're running on windows.
34589 Changes in version 0.1.1.19-rc - 2006-05-03
34590   o Minor bugs:
34591     - Regenerate our local descriptor if it's dirty and we try to use
34592       it locally (e.g. if it changes during reachability detection).
34593     - If we setconf our ORPort to 0, we continued to listen on the
34594       old ORPort and receive connections.
34595     - Avoid a second warning about machine/limits.h on Debian
34596       GNU/kFreeBSD.
34597     - Be willing to add our own routerinfo into the routerlist.
34598       Now authorities will include themselves in their directories
34599       and network-statuses.
34600     - Stop trying to upload rendezvous descriptors to every
34601       directory authority: only try the v1 authorities.
34602     - Servers no longer complain when they think they're not
34603       registered with the directory authorities. There were too many
34604       false positives.
34605     - Backport dist-rpm changes so rpms can be built without errors.
34607   o Features:
34608     - Implement an option, VirtualAddrMask, to set which addresses
34609       get handed out in response to mapaddress requests. This works
34610       around a bug in tsocks where 127.0.0.0/8 is never socksified.
34613 Changes in version 0.1.1.18-rc - 2006-04-10
34614   o Major fixes:
34615     - Work harder to download live network-statuses from all the
34616       directory authorities we know about. Improve the threshold
34617       decision logic so we're more robust to edge cases.
34618     - When fetching rendezvous descriptors, we were willing to ask
34619       v2 authorities too, which would always return 404.
34621   o Minor fixes:
34622     - Stop listing down or invalid nodes in the v1 directory. This will
34623       reduce its bulk by about 1/3, and reduce load on directory
34624       mirrors.
34625     - When deciding whether a router is Fast or Guard-worthy, consider
34626       his advertised BandwidthRate and not just the BandwidthCapacity.
34627     - No longer ship INSTALL and README files -- they are useless now.
34628     - Force rpmbuild to behave and honor target_cpu.
34629     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
34630     - Start to include translated versions of the tor-doc-*.html
34631       files, along with the screenshots. Still needs more work.
34632     - Start sending back 512 and 451 errors if mapaddress fails,
34633       rather than not sending anything back at all.
34634     - When we fail to bind or listen on an incoming or outgoing
34635       socket, we should close it before failing. otherwise we just
34636       leak it. (thanks to weasel for finding.)
34637     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
34638       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
34639     - Make NoPublish (even though deprecated) work again.
34640     - Fix a minor security flaw where a versioning auth dirserver
34641       could list a recommended version many times in a row to make
34642       clients more convinced that it's recommended.
34643     - Fix crash bug if there are two unregistered servers running
34644       with the same nickname, one of them is down, and you ask for
34645       them by nickname in your EntryNodes or ExitNodes. Also, try
34646       to pick the one that's running rather than an arbitrary one.
34647     - Fix an infinite loop we could hit if we go offline for too long.
34648     - Complain when we hit WSAENOBUFS on recv() or write() too.
34649       Perhaps this will help us hunt the bug.
34650     - If you're not a versioning dirserver, don't put the string
34651       "client-versions \nserver-versions \n" in your network-status.
34652     - Lower the minimum required number of file descriptors to 1000,
34653       so we can have some overhead for Valgrind on Linux, where the
34654       default ulimit -n is 1024.
34656   o New features:
34657     - Add tor.dizum.com as the fifth authoritative directory server.
34658     - Add a new config option FetchUselessDescriptors, off by default,
34659       for when you plan to run "exitlist" on your client and you want
34660       to know about even the non-running descriptors.
34663 Changes in version 0.1.1.17-rc - 2006-03-28
34664   o Major fixes:
34665     - Clients and servers since 0.1.1.10-alpha have been expiring
34666       connections whenever they are idle for 5 minutes and they *do*
34667       have circuits on them. Oops. With this new version, clients will
34668       discard their previous entry guard choices and avoid choosing
34669       entry guards running these flawed versions.
34670     - Fix memory leak when uncompressing concatenated zlib streams. This
34671       was causing substantial leaks over time on Tor servers.
34672     - The v1 directory was including servers as much as 48 hours old,
34673       because that's how the new routerlist->routers works. Now only
34674       include them if they're 20 hours old or less.
34676   o Minor fixes:
34677     - Resume building on irix64, netbsd 2.0, etc.
34678     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
34679       "-Wall -g -O2".
34680     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
34681       and it is confusing some users.
34682     - Mirrors stop caching the v1 directory so often.
34683     - Make the max number of old descriptors that a cache will hold
34684       rise with the number of directory authorities, so we can scale.
34685     - Change our win32 uname() hack to be more forgiving about what
34686       win32 versions it thinks it's found.
34688   o New features:
34689     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
34690       server.
34691     - When the controller's *setconf commands fail, collect an error
34692       message in a string and hand it back to the controller.
34693     - Make the v2 dir's "Fast" flag based on relative capacity, just
34694       like "Stable" is based on median uptime. Name everything in the
34695       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
34696     - Log server fingerprint on startup, so new server operators don't
34697       have to go hunting around their filesystem for it.
34698     - Return a robots.txt on our dirport to discourage google indexing.
34699     - Let the controller ask for GETINFO dir/status/foo so it can ask
34700       directly rather than connecting to the dir port. Only works when
34701       dirport is set for now.
34703   o New config options rather than constants in the code:
34704     - SocksTimeout: How long do we let a socks connection wait
34705       unattached before we fail it?
34706     - CircuitBuildTimeout: Cull non-open circuits that were born
34707       at least this many seconds ago.
34708     - CircuitIdleTimeout: Cull open clean circuits that were born
34709       at least this many seconds ago.
34712 Changes in version 0.1.1.16-rc - 2006-03-18
34713   o Bugfixes on 0.1.1.15-rc:
34714     - Fix assert when the controller asks to attachstream a connect-wait
34715       or resolve-wait stream.
34716     - Now do address rewriting when the controller asks us to attach
34717       to a particular circuit too. This will let Blossom specify
34718       "moria2.exit" without having to learn what moria2's IP address is.
34719     - Make the "tor --verify-config" command-line work again, so people
34720       can automatically check if their torrc will parse.
34721     - Authoritative dirservers no longer require an open connection from
34722       a server to consider him "reachable". We need this change because
34723       when we add new auth dirservers, old servers won't know not to
34724       hang up on them.
34725     - Let Tor build on Sun CC again.
34726     - Fix an off-by-one buffer size in dirserv.c that magically never
34727       hit our three authorities but broke sjmurdoch's own tor network.
34728     - If we as a directory mirror don't know of any v1 directory
34729       authorities, then don't try to cache any v1 directories.
34730     - Stop warning about unknown servers in our family when they are
34731       given as hex digests.
34732     - Stop complaining as quickly to the server operator that he
34733       hasn't registered his nickname/key binding.
34734     - Various cleanups so we can add new V2 Auth Dirservers.
34735     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
34736       reflect the updated flags in our v2 dir protocol.
34737     - Resume allowing non-printable characters for exit streams (both
34738       for connecting and for resolving). Now we tolerate applications
34739       that don't follow the RFCs. But continue to block malformed names
34740       at the socks side.
34742   o Bugfixes on 0.1.0.x:
34743     - Fix assert bug in close_logs(): when we close and delete logs,
34744       remove them all from the global "logfiles" list.
34745     - Fix minor integer overflow in calculating when we expect to use up
34746       our bandwidth allocation before hibernating.
34747     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
34748       there are multiple SSLs installed with different versions.
34749     - When we try to be a server and Address is not explicitly set and
34750       our hostname resolves to a private IP address, try to use an
34751       interface address if it has a public address. Now Windows machines
34752       that think of themselves as localhost can work by default.
34754   o New features:
34755     - Let the controller ask for GETINFO dir/server/foo so it can ask
34756       directly rather than connecting to the dir port.
34757     - Let the controller tell us about certain router descriptors
34758       that it doesn't want Tor to use in circuits. Implement
34759       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
34760     - New config option SafeSocks to reject all application connections
34761       using unsafe socks protocols. Defaults to off.
34764 Changes in version 0.1.1.15-rc - 2006-03-11
34765   o Bugfixes and cleanups:
34766     - When we're printing strings from the network, don't try to print
34767       non-printable characters. This protects us against shell escape
34768       sequence exploits, and also against attacks to fool humans into
34769       misreading their logs.
34770     - Fix a bug where Tor would fail to establish any connections if you
34771       left it off for 24 hours and then started it: we were happy with
34772       the obsolete network statuses, but they all referred to router
34773       descriptors that were too old to fetch, so we ended up with no
34774       valid router descriptors.
34775     - Fix a seg fault in the controller's "getinfo orconn-status"
34776       command while listing status on incoming handshaking connections.
34777       Introduce a status name "NEW" for these connections.
34778     - If we get a linelist or linelist_s config option from the torrc
34779       (e.g. ExitPolicy) and it has no value, warn and skip rather than
34780       silently resetting it to its default.
34781     - Don't abandon entry guards until they've been down or gone for
34782       a whole month.
34783     - Cleaner and quieter log messages.
34785   o New features:
34786     - New controller signal NEWNYM that makes new application requests
34787       use clean circuits.
34788     - Add a new circuit purpose 'controller' to let the controller ask
34789       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
34790       controller command to let you specify the purpose if you're
34791       starting a new circuit. Add a new SETCIRCUITPURPOSE controller
34792       command to let you change a circuit's purpose after it's been
34793       created.
34794     - Accept "private:*" in routerdesc exit policies; not generated yet
34795       because older Tors do not understand it.
34796     - Add BSD-style contributed startup script "rc.subr" from Peter
34797       Thoenen.
34800 Changes in version 0.1.1.14-alpha - 2006-02-20
34801   o Bugfixes on 0.1.1.x:
34802     - Don't die if we ask for a stdout or stderr log (even implicitly)
34803       and we're set to RunAsDaemon -- just warn.
34804     - We still had a few bugs in the OR connection rotation code that
34805       caused directory servers to slowly aggregate connections to other
34806       fast Tor servers. This time for sure!
34807     - Make log entries on Win32 include the name of the function again.
34808     - We were treating a pair of exit policies if they were equal even
34809       if one said accept and the other said reject -- causing us to
34810       not always publish a new descriptor since we thought nothing
34811       had changed.
34812     - Retry pending server downloads as well as pending networkstatus
34813       downloads when we unexpectedly get a socks request.
34814     - We were ignoring the IS_FAST flag in the directory status,
34815       meaning we were willing to pick trivial-bandwidth nodes for "fast"
34816       connections.
34817     - If the controller's SAVECONF command fails (e.g. due to file
34818       permissions), let the controller know that it failed.
34820   o Features:
34821     - If we're trying to be a Tor server and running Windows 95/98/ME
34822       as a server, explain that we'll likely crash.
34823     - When we're a server, a client asks for an old-style directory,
34824       and our write bucket is empty, don't give it to him. This way
34825       small servers can continue to serve the directory *sometimes*,
34826       without getting overloaded.
34827     - Compress exit policies even more -- look for duplicate lines
34828       and remove them.
34829     - Clients now honor the "guard" flag in the router status when
34830       picking entry guards, rather than looking at is_fast or is_stable.
34831     - Retain unrecognized lines in $DATADIR/state file, so that we can
34832       be forward-compatible.
34833     - Generate 18.0.0.0/8 address policy format in descs when we can;
34834       warn when the mask is not reducible to a bit-prefix.
34835     - Let the user set ControlListenAddress in the torrc. This can be
34836       dangerous, but there are some cases (like a secured LAN) where it
34837       makes sense.
34838     - Split ReachableAddresses into ReachableDirAddresses and
34839       ReachableORAddresses, so we can restrict Dir conns to port 80
34840       and OR conns to port 443.
34841     - Now we can target arch and OS in rpm builds (contributed by
34842       Phobos). Also make the resulting dist-rpm filename match the
34843       target arch.
34844     - New config options to help controllers: FetchServerDescriptors
34845       and FetchHidServDescriptors for whether to fetch server
34846       info and hidserv info or let the controller do it, and
34847       PublishServerDescriptor and PublishHidServDescriptors.
34848     - Also let the controller set the __AllDirActionsPrivate config
34849       option if you want all directory fetches/publishes to happen via
34850       Tor (it assumes your controller bootstraps your circuits).
34853 Changes in version 0.1.0.17 - 2006-02-17
34854   o Crash bugfixes on 0.1.0.x:
34855     - When servers with a non-zero DirPort came out of hibernation,
34856       sometimes they would trigger an assert.
34858   o Other important bugfixes:
34859     - On platforms that don't have getrlimit (like Windows), we were
34860       artificially constraining ourselves to a max of 1024
34861       connections. Now just assume that we can handle as many as 15000
34862       connections. Hopefully this won't cause other problems.
34864   o Backported features:
34865     - When we're a server, a client asks for an old-style directory,
34866       and our write bucket is empty, don't give it to him. This way
34867       small servers can continue to serve the directory *sometimes*,
34868       without getting overloaded.
34869     - Whenever you get a 503 in response to a directory fetch, try
34870       once more. This will become important once servers start sending
34871       503's whenever they feel busy.
34872     - Fetch a new directory every 120 minutes, not every 40 minutes.
34873       Now that we have hundreds of thousands of users running the old
34874       directory algorithm, it's starting to hurt a lot.
34875     - Bump up the period for forcing a hidden service descriptor upload
34876       from 20 minutes to 1 hour.
34879 Changes in version 0.1.1.13-alpha - 2006-02-09
34880   o Crashes in 0.1.1.x:
34881     - When you tried to setconf ORPort via the controller, Tor would
34882       crash. So people using TorCP to become a server were sad.
34883     - Solve (I hope) the stack-smashing bug that we were seeing on fast
34884       servers. The problem appears to be something do with OpenSSL's
34885       random number generation, or how we call it, or something. Let me
34886       know if the crashes continue.
34887     - Turn crypto hardware acceleration off by default, until we find
34888       somebody smart who can test it for us. (It appears to produce
34889       seg faults in at least some cases.)
34890     - Fix a rare assert error when we've tried all intro points for
34891       a hidden service and we try fetching the service descriptor again:
34892       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
34894   o Major fixes:
34895     - Fix a major load balance bug: we were round-robining in 16 KB
34896       chunks, and servers with bandwidthrate of 20 KB, while downloading
34897       a 600 KB directory, would starve their other connections. Now we
34898       try to be a bit more fair.
34899     - Dir authorities and mirrors were never expiring the newest
34900       descriptor for each server, causing memory and directory bloat.
34901     - Fix memory-bloating and connection-bloating bug on servers: We
34902       were never closing any connection that had ever had a circuit on
34903       it, because we were checking conn->n_circuits == 0, yet we had a
34904       bug that let it go negative.
34905     - Make Tor work using squid as your http proxy again -- squid
34906       returns an error if you ask for a URL that's too long, and it uses
34907       a really generic error message. Plus, many people are behind a
34908       transparent squid so they don't even realize it.
34909     - On platforms that don't have getrlimit (like Windows), we were
34910       artificially constraining ourselves to a max of 1024
34911       connections. Now just assume that we can handle as many as 15000
34912       connections. Hopefully this won't cause other problems.
34913     - Add a new config option ExitPolicyRejectPrivate which defaults to
34914       1. This means all exit policies will begin with rejecting private
34915       addresses, unless the server operator explicitly turns it off.
34917   o Major features:
34918     - Clients no longer download descriptors for non-running
34919       descriptors.
34920     - Before we add new directory authorities, we should make it
34921       clear that only v1 authorities should receive/publish hidden
34922       service descriptors.
34924   o Minor features:
34925     - As soon as we've fetched some more directory info, immediately
34926       try to download more server descriptors. This way we don't have
34927       a 10 second pause during initial bootstrapping.
34928     - Remove even more loud log messages that the server operator can't
34929       do anything about.
34930     - When we're running an obsolete or un-recommended version, make
34931       the log message more clear about what the problem is and what
34932       versions *are* still recommended.
34933     - Provide a more useful warn message when our onion queue gets full:
34934       the CPU is too slow or the exit policy is too liberal.
34935     - Don't warn when we receive a 503 from a dirserver/cache -- this
34936       will pave the way for them being able to refuse if they're busy.
34937     - When we fail to bind a listener, try to provide a more useful
34938       log message: e.g., "Is Tor already running?"
34939     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
34940       Goldberg can prove things about our handshake protocol more
34941       easily.
34942     - MaxConn has been obsolete for a while now. Document the ConnLimit
34943       config option, which is a *minimum* number of file descriptors
34944       that must be available else Tor refuses to start.
34945     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
34946       if you log to syslog and want something other than LOG_DAEMON.
34947     - Make dirservers generate a separate "guard" flag to mean,
34948       "would make a good entry guard". Make clients parse it and vote
34949       on it. Not used by clients yet.
34950     - Implement --with-libevent-dir option to ./configure. Also, improve
34951       search techniques to find libevent, and use those for openssl too.
34952     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
34953     - Only start testing reachability once we've established a
34954       circuit. This will make startup on dirservers less noisy.
34955     - Don't try to upload hidden service descriptors until we have
34956       established a circuit.
34957     - Fix the controller's "attachstream 0" command to treat conn like
34958       it just connected, doing address remapping, handling .exit and
34959       .onion idioms, and so on. Now we're more uniform in making sure
34960       that the controller hears about new and closing connections.
34963 Changes in version 0.1.1.12-alpha - 2006-01-11
34964   o Bugfixes on 0.1.1.x:
34965     - The fix to close duplicate server connections was closing all
34966       Tor client connections if they didn't establish a circuit
34967       quickly enough. Oops.
34968     - Fix minor memory issue (double-free) that happened on exit.
34970   o Bugfixes on 0.1.0.x:
34971     - Tor didn't warn when it failed to open a log file.
34974 Changes in version 0.1.1.11-alpha - 2006-01-10
34975   o Crashes in 0.1.1.x:
34976     - Include all the assert/crash fixes from 0.1.0.16.
34977     - If you start Tor and then quit very quickly, there were some
34978       races that tried to free things that weren't allocated yet.
34979     - Fix a rare memory stomp if you're running hidden services.
34980     - Fix segfault when specifying DirServer in config without nickname.
34981     - Fix a seg fault when you finish connecting to a server but at
34982       that moment you dump his server descriptor.
34983     - Extendcircuit and Attachstream controller commands would
34984       assert/crash if you don't give them enough arguments.
34985     - Fix an assert error when we're out of space in the connection_list
34986       and we try to post a hidden service descriptor (reported by weasel).
34987     - If you specify a relative torrc path and you set RunAsDaemon in
34988       your torrc, then it chdir()'s to the new directory. If you HUP,
34989       it tries to load the new torrc location, fails, and exits.
34990       The fix: no longer allow a relative path to torrc using -f.
34992   o Major features:
34993     - Implement "entry guards": automatically choose a handful of entry
34994       nodes and stick with them for all circuits. Only pick new guards
34995       when the ones you have are unsuitable, and if the old guards
34996       become suitable again, switch back. This will increase security
34997       dramatically against certain end-point attacks. The EntryNodes
34998       config option now provides some hints about which entry guards you
34999       want to use most; and StrictEntryNodes means to only use those.
35000     - New directory logic: download by descriptor digest, not by
35001       fingerprint. Caches try to download all listed digests from
35002       authorities; clients try to download "best" digests from caches.
35003       This avoids partitioning and isolating attacks better.
35004     - Make the "stable" router flag in network-status be the median of
35005       the uptimes of running valid servers, and make clients pay
35006       attention to the network-status flags. Thus the cutoff adapts
35007       to the stability of the network as a whole, making IRC, IM, etc
35008       connections more reliable.
35010   o Major fixes:
35011     - Tor servers with dynamic IP addresses were needing to wait 18
35012       hours before they could start doing reachability testing using
35013       the new IP address and ports. This is because they were using
35014       the internal descriptor to learn what to test, yet they were only
35015       rebuilding the descriptor once they decided they were reachable.
35016     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
35017       to download certain server descriptors, throw them away, and then
35018       fetch them again after 30 minutes. Now mirrors throw away these
35019       server descriptors so clients can't get them.
35020     - We were leaving duplicate connections to other ORs open for a week,
35021       rather than closing them once we detect a duplicate. This only
35022       really affected authdirservers, but it affected them a lot.
35023     - Spread the authdirservers' reachability testing over the entire
35024       testing interval, so we don't try to do 500 TLS's at once every
35025       20 minutes.
35027   o Minor fixes:
35028     - If the network is down, and we try to connect to a conn because
35029       we have a circuit in mind, and we timeout (30 seconds) because the
35030       network never answers, we were expiring the circuit, but we weren't
35031       obsoleting the connection or telling the entry_guards functions.
35032     - Some Tor servers process billions of cells per day. These statistics
35033       need to be uint64_t's.
35034     - Check for integer overflows in more places, when adding elements
35035       to smartlists. This could possibly prevent a buffer overflow
35036       on malicious huge inputs. I don't see any, but I haven't looked
35037       carefully.
35038     - ReachableAddresses kept growing new "reject *:*" lines on every
35039       setconf/reload.
35040     - When you "setconf log" via the controller, it should remove all
35041       logs. We were automatically adding back in a "log notice stdout".
35042     - Newly bootstrapped Tor networks couldn't establish hidden service
35043       circuits until they had nodes with high uptime. Be more tolerant.
35044     - We were marking servers down when they could not answer every piece
35045       of the directory request we sent them. This was far too harsh.
35046     - Fix the torify (tsocks) config file to not use Tor for localhost
35047       connections.
35048     - Directory authorities now go to the proper authority when asking for
35049       a networkstatus, even when they want a compressed one.
35050     - Fix a harmless bug that was causing Tor servers to log
35051       "Got an end because of misc error, but we're not an AP. Closing."
35052     - Authorities were treating their own descriptor changes as cosmetic,
35053       meaning the descriptor available in the network-status and the
35054       descriptor that clients downloaded were different.
35055     - The OS X installer was adding a symlink for tor_resolve but
35056       the binary was called tor-resolve (reported by Thomas Hardly).
35057     - Workaround a problem with some http proxies where they refuse GET
35058       requests that specify "Content-Length: 0" (reported by Adrian).
35059     - Fix wrong log message when you add a "HiddenServiceNodes" config
35060       line without any HiddenServiceDir line (reported by Chris Thomas).
35062   o Minor features:
35063     - Write the TorVersion into the state file so we have a prayer of
35064       keeping forward and backward compatibility.
35065     - Revive the FascistFirewall config option rather than eliminating it:
35066       now it's a synonym for ReachableAddresses *:80,*:443.
35067     - Clients choose directory servers from the network status lists,
35068       not from their internal list of router descriptors. Now they can
35069       go to caches directly rather than needing to go to authorities
35070       to bootstrap.
35071     - Directory authorities ignore router descriptors that have only
35072       cosmetic differences: do this for 0.1.0.x servers now too.
35073     - Add a new flag to network-status indicating whether the server
35074       can answer v2 directory requests too.
35075     - Authdirs now stop whining so loudly about bad descriptors that
35076       they fetch from other dirservers. So when there's a log complaint,
35077       it's for sure from a freshly uploaded descriptor.
35078     - Reduce memory requirements in our structs by changing the order
35079       of fields.
35080     - There used to be two ways to specify your listening ports in a
35081       server descriptor: on the "router" line and with a separate "ports"
35082       line. Remove support for the "ports" line.
35083     - New config option "AuthDirRejectUnlisted" for auth dirservers as
35084       a panic button: if we get flooded with unusable servers we can
35085       revert to only listing servers in the approved-routers file.
35086     - Auth dir servers can now mark a fingerprint as "!reject" or
35087       "!invalid" in the approved-routers file (as its nickname), to
35088       refuse descriptors outright or include them but marked as invalid.
35089     - Servers store bandwidth history across restarts/crashes.
35090     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
35091       get a better idea of why their circuits failed. Not used yet.
35092     - Directory mirrors now cache up to 16 unrecognized network-status
35093       docs. Now we can add new authdirservers and they'll be cached too.
35094     - When picking a random directory, prefer non-authorities if any
35095       are known.
35096     - New controller option "getinfo desc/all-recent" to fetch the
35097       latest server descriptor for every router that Tor knows about.
35100 Changes in version 0.1.0.16 - 2006-01-02
35101   o Crash bugfixes on 0.1.0.x:
35102     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
35103       corrupting the heap, losing FDs, or crashing when we need to resize
35104       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
35105     - It turns out sparc64 platforms crash on unaligned memory access
35106       too -- so detect and avoid this.
35107     - Handle truncated compressed data correctly (by detecting it and
35108       giving an error).
35109     - Fix possible-but-unlikely free(NULL) in control.c.
35110     - When we were closing connections, there was a rare case that
35111       stomped on memory, triggering seg faults and asserts.
35112     - Avoid potential infinite recursion when building a descriptor. (We
35113       don't know that it ever happened, but better to fix it anyway.)
35114     - We were neglecting to unlink marked circuits from soon-to-close OR
35115       connections, which caused some rare scribbling on freed memory.
35116     - Fix a memory stomping race bug when closing the joining point of two
35117       rendezvous circuits.
35118     - Fix an assert in time parsing found by Steven Murdoch.
35120   o Other bugfixes on 0.1.0.x:
35121     - When we're doing reachability testing, provide more useful log
35122       messages so the operator knows what to expect.
35123     - Do not check whether DirPort is reachable when we are suppressing
35124       advertising it because of hibernation.
35125     - When building with -static or on Solaris, we sometimes needed -ldl.
35126     - When we're deciding whether a stream has enough circuits around
35127       that can handle it, count the freshly dirty ones and not the ones
35128       that are so dirty they won't be able to handle it.
35129     - When we're expiring old circuits, we had a logic error that caused
35130       us to close new rendezvous circuits rather than old ones.
35131     - Give a more helpful log message when you try to change ORPort via
35132       the controller: you should upgrade Tor if you want that to work.
35133     - We were failing to parse Tor versions that start with "Tor ".
35134     - Tolerate faulty streams better: when a stream fails for reason
35135       exitpolicy, stop assuming that the router is lying about his exit
35136       policy. When a stream fails for reason misc, allow it to retry just
35137       as if it was resolvefailed. When a stream has failed three times,
35138       reset its failure count so we can try again and get all three tries.
35141 Changes in version 0.1.1.10-alpha - 2005-12-11
35142   o Correctness bugfixes on 0.1.0.x:
35143     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
35144       corrupting the heap, losing FDs, or crashing when we need to resize
35145       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
35146     - Stop doing the complex voodoo overkill checking for insecure
35147       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
35148     - When we were closing connections, there was a rare case that
35149       stomped on memory, triggering seg faults and asserts.
35150     - We were neglecting to unlink marked circuits from soon-to-close OR
35151       connections, which caused some rare scribbling on freed memory.
35152     - When we're deciding whether a stream has enough circuits around
35153       that can handle it, count the freshly dirty ones and not the ones
35154       that are so dirty they won't be able to handle it.
35155     - Recover better from TCP connections to Tor servers that are
35156       broken but don't tell you (it happens!); and rotate TLS
35157       connections once a week.
35158     - When we're expiring old circuits, we had a logic error that caused
35159       us to close new rendezvous circuits rather than old ones.
35160     - Fix a scary-looking but apparently harmless bug where circuits
35161       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
35162       servers, and never switch to state CIRCUIT_STATE_OPEN.
35163     - When building with -static or on Solaris, we sometimes needed to
35164       build with -ldl.
35165     - Give a useful message when people run Tor as the wrong user,
35166       rather than telling them to start chowning random directories.
35167     - We were failing to inform the controller about new .onion streams.
35169   o Security bugfixes on 0.1.0.x:
35170     - Refuse server descriptors if the fingerprint line doesn't match
35171       the included identity key. Tor doesn't care, but other apps (and
35172       humans) might actually be trusting the fingerprint line.
35173     - We used to kill the circuit when we receive a relay command we
35174       don't recognize. Now we just drop it.
35175     - Start obeying our firewall options more rigorously:
35176       . If we can't get to a dirserver directly, try going via Tor.
35177       . Don't ever try to connect (as a client) to a place our
35178         firewall options forbid.
35179       . If we specify a proxy and also firewall options, obey the
35180         firewall options even when we're using the proxy: some proxies
35181         can only proxy to certain destinations.
35182     - Fix a bug found by Lasse Overlier: when we were making internal
35183       circuits (intended to be cannibalized later for rendezvous and
35184       introduction circuits), we were picking them so that they had
35185       useful exit nodes. There was no need for this, and it actually
35186       aids some statistical attacks.
35187     - Start treating internal circuits and exit circuits separately.
35188       It's important to keep them separate because internal circuits
35189       have their last hops picked like middle hops, rather than like
35190       exit hops. So exiting on them will break the user's expectations.
35192   o Bugfixes on 0.1.1.x:
35193     - Take out the mis-feature where we tried to detect IP address
35194       flapping for people with DynDNS, and chose not to upload a new
35195       server descriptor sometimes.
35196     - Try to be compatible with OpenSSL 0.9.6 again.
35197     - Log fix: when the controller is logging about .onion addresses,
35198       sometimes it didn't include the ".onion" part of the address.
35199     - Don't try to modify options->DirServers internally -- if the
35200       user didn't specify any, just add the default ones directly to
35201       the trusted dirserver list. This fixes a bug where people running
35202       controllers would use SETCONF on some totally unrelated config
35203       option, and Tor would start yelling at them about changing their
35204       DirServer lines.
35205     - Let the controller's redirectstream command specify a port, in
35206       case the controller wants to change that too.
35207     - When we requested a pile of server descriptors, we sometimes
35208       accidentally launched a duplicate request for the first one.
35209     - Bugfix for trackhostexits: write down the fingerprint of the
35210       chosen exit, not its nickname, because the chosen exit might not
35211       be verified.
35212     - When parsing foo.exit, if foo is unknown, and we are leaving
35213       circuits unattached, set the chosen_exit field and leave the
35214       address empty. This matters because controllers got confused
35215       otherwise.
35216     - Directory authorities no longer try to download server
35217       descriptors that they know they will reject.
35219   o Features and updates:
35220     - Replace balanced trees with hash tables: this should make stuff
35221       significantly faster.
35222     - Resume using the AES counter-mode implementation that we ship,
35223       rather than OpenSSL's. Ours is significantly faster.
35224     - Many other CPU and memory improvements.
35225     - Add a new config option FastFirstHopPK (on by default) so clients
35226       do a trivial crypto handshake for their first hop, since TLS has
35227       already taken care of confidentiality and authentication.
35228     - Add a new config option TestSocks so people can see if their
35229       applications are using socks4, socks4a, socks5-with-ip, or
35230       socks5-with-hostname. This way they don't have to keep mucking
35231       with tcpdump and wondering if something got cached somewhere.
35232     - Warn when listening on a public address for socks. I suspect a
35233       lot of people are setting themselves up as open socks proxies,
35234       and they have no idea that jerks on the Internet are using them,
35235       since they simply proxy the traffic into the Tor network.
35236     - Add "private:*" as an alias in configuration for policies. Now
35237       you can simplify your exit policy rather than needing to list
35238       every single internal or nonroutable network space.
35239     - Add a new controller event type that allows controllers to get
35240       all server descriptors that were uploaded to a router in its role
35241       as authoritative dirserver.
35242     - Start shipping socks-extensions.txt, tor-doc-unix.html,
35243       tor-doc-server.html, and stylesheet.css in the tarball.
35244     - Stop shipping tor-doc.html in the tarball.
35247 Changes in version 0.1.1.9-alpha - 2005-11-15
35248   o Usability improvements:
35249     - Start calling it FooListenAddress rather than FooBindAddress,
35250       since few of our users know what it means to bind an address
35251       or port.
35252     - Reduce clutter in server logs. We're going to try to make
35253       them actually usable now. New config option ProtocolWarnings that
35254       lets you hear about how _other Tors_ are breaking the protocol. Off
35255       by default.
35256     - Divide log messages into logging domains. Once we put some sort
35257       of interface on this, it will let people looking at more verbose
35258       log levels specify the topics they want to hear more about.
35259     - Make directory servers return better http 404 error messages
35260       instead of a generic "Servers unavailable".
35261     - Check for even more Windows version flags when writing the platform
35262       string in server descriptors, and note any we don't recognize.
35263     - Clean up more of the OpenSSL memory when exiting, so we can detect
35264       memory leaks better.
35265     - Make directory authorities be non-versioning, non-naming by
35266       default. Now we can add new directory servers without requiring
35267       their operators to pay close attention.
35268     - When logging via syslog, include the pid whenever we provide
35269       a log entry. Suggested by Todd Fries.
35271   o Performance improvements:
35272     - Directory servers now silently throw away new descriptors that
35273       haven't changed much if the timestamps are similar. We do this to
35274       tolerate older Tor servers that upload a new descriptor every 15
35275       minutes. (It seemed like a good idea at the time.)
35276     - Inline bottleneck smartlist functions; use fast versions by default.
35277     - Add a "Map from digest to void*" abstraction digestmap_t so we
35278       can do less hex encoding/decoding. Use it in router_get_by_digest()
35279       to resolve a performance bottleneck.
35280     - Allow tor_gzip_uncompress to extract as much as possible from
35281       truncated compressed data. Try to extract as many
35282       descriptors as possible from truncated http responses (when
35283       DIR_PURPOSE_FETCH_ROUTERDESC).
35284     - Make circ->onionskin a pointer, not a static array. moria2 was using
35285       125000 circuit_t's after it had been up for a few weeks, which
35286       translates to 20+ megs of wasted space.
35287     - The private half of our EDH handshake keys are now chosen out
35288       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
35290   o Security improvements:
35291     - Start making directory caches retain old routerinfos, so soon
35292       clients can start asking by digest of descriptor rather than by
35293       fingerprint of server.
35294     - Add half our entropy from RAND_poll in OpenSSL. This knows how
35295       to use egd (if present), openbsd weirdness (if present), vms/os2
35296       weirdness (if we ever port there), and more in the future.
35298   o Bugfixes on 0.1.0.x:
35299     - Do round-robin writes of at most 16 kB per write. This might be
35300       more fair on loaded Tor servers, and it might resolve our Windows
35301       crash bug. It might also slow things down.
35302     - Our TLS handshakes were generating a single public/private
35303       keypair for the TLS context, rather than making a new one for
35304       each new connections. Oops. (But we were still rotating them
35305       periodically, so it's not so bad.)
35306     - When we were cannibalizing a circuit with a particular exit
35307       node in mind, we weren't checking to see if that exit node was
35308       already present earlier in the circuit. Oops.
35309     - When a Tor server's IP changes (e.g. from a dyndns address),
35310       upload a new descriptor so clients will learn too.
35311     - Really busy servers were keeping enough circuits open on stable
35312       connections that they were wrapping around the circuit_id
35313       space. (It's only two bytes.) This exposed a bug where we would
35314       feel free to reuse a circuit_id even if it still exists but has
35315       been marked for close. Try to fix this bug. Some bug remains.
35316     - If we would close a stream early (e.g. it asks for a .exit that
35317       we know would refuse it) but the LeaveStreamsUnattached config
35318       option is set by the controller, then don't close it.
35320   o Bugfixes on 0.1.1.8-alpha:
35321     - Fix a big pile of memory leaks, some of them serious.
35322     - Do not try to download a routerdesc if we would immediately reject
35323       it as obsolete.
35324     - Resume inserting a newline between all router descriptors when
35325       generating (old style) signed directories, since our spec says
35326       we do.
35327     - When providing content-type application/octet-stream for
35328       server descriptors using .z, we were leaving out the
35329       content-encoding header. Oops. (Everything tolerated this just
35330       fine, but that doesn't mean we need to be part of the problem.)
35331     - Fix a potential seg fault in getconf and getinfo using version 1
35332       of the controller protocol.
35333     - Avoid crash: do not check whether DirPort is reachable when we
35334       are suppressing it because of hibernation.
35335     - Make --hash-password not crash on exit.
35338 Changes in version 0.1.1.8-alpha - 2005-10-07
35339   o New features (major):
35340     - Clients don't download or use the directory anymore. Now they
35341       download and use network-statuses from the trusted dirservers,
35342       and fetch individual server descriptors as needed from mirrors.
35343       See dir-spec.txt for all the gory details.
35344     - Be more conservative about whether to advertise our DirPort.
35345       The main change is to not advertise if we're running at capacity
35346       and either a) we could hibernate or b) our capacity is low and
35347       we're using a default DirPort.
35348     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
35350   o New features (minor):
35351     - Try to be smart about when to retry network-status and
35352       server-descriptor fetches. Still needs some tuning.
35353     - Stop parsing, storing, or using running-routers output (but
35354       mirrors still cache and serve it).
35355     - Consider a threshold of versioning dirservers (dirservers who have
35356       an opinion about which Tor versions are still recommended) before
35357       deciding whether to warn the user that he's obsolete.
35358     - Dirservers can now reject/invalidate by key and IP, with the
35359       config options "AuthDirInvalid" and "AuthDirReject". This is
35360       useful since currently we automatically list servers as running
35361       and usable even if we know they're jerks.
35362     - Provide dire warnings to any users who set DirServer; move it out
35363       of torrc.sample and into torrc.complete.
35364     - Add MyFamily to torrc.sample in the server section.
35365     - Add nicknames to the DirServer line, so we can refer to them
35366       without requiring all our users to memorize their IP addresses.
35367     - When we get an EOF or a timeout on a directory connection, note
35368       how many bytes of serverdesc we are dropping. This will help
35369       us determine whether it is smart to parse incomplete serverdesc
35370       responses.
35371     - Add a new function to "change pseudonyms" -- that is, to stop
35372       using any currently-dirty circuits for new streams, so we don't
35373       link new actions to old actions. Currently it's only called on
35374       HUP (or SIGNAL RELOAD).
35375     - On sighup, if UseHelperNodes changed to 1, use new circuits.
35376     - Start using RAND_bytes rather than RAND_pseudo_bytes from
35377       OpenSSL. Also, reseed our entropy every hour, not just at
35378       startup. And entropy in 512-bit chunks, not 160-bit chunks.
35380   o Fixes on 0.1.1.7-alpha:
35381     - Nobody ever implemented EVENT_ADDRMAP for control protocol
35382       version 0, so don't let version 0 controllers ask for it.
35383     - If you requested something with too many newlines via the
35384       v1 controller protocol, you could crash tor.
35385     - Fix a number of memory leaks, including some pretty serious ones.
35386     - Re-enable DirPort testing again, so Tor servers will be willing
35387       to advertise their DirPort if it's reachable.
35388     - On TLS handshake, only check the other router's nickname against
35389       its expected nickname if is_named is set.
35391   o Fixes forward-ported from 0.1.0.15:
35392     - Don't crash when we don't have any spare file descriptors and we
35393       try to spawn a dns or cpu worker.
35394     - Make the numbers in read-history and write-history into uint64s,
35395       so they don't overflow and publish negatives in the descriptor.
35397   o Fixes on 0.1.0.x:
35398     - For the OS X package's modified privoxy config file, comment
35399       out the "logfile" line so we don't log everything passed
35400       through privoxy.
35401     - We were whining about using socks4 or socks5-with-local-lookup
35402       even when it's an IP in the "virtual" range we designed exactly
35403       for this case.
35404     - We were leaking some memory every time the client changes IPs.
35405     - Never call free() on tor_malloc()d memory. This will help us
35406       use dmalloc to detect memory leaks.
35407     - Check for named servers when looking them up by nickname;
35408       warn when we'recalling a non-named server by its nickname;
35409       don't warn twice about the same name.
35410     - Try to list MyFamily elements by key, not by nickname, and warn
35411       if we've not heard of the server.
35412     - Make windows platform detection (uname equivalent) smarter.
35413     - It turns out sparc64 doesn't like unaligned access either.
35416 Changes in version 0.1.0.15 - 2005-09-23
35417   o Bugfixes on 0.1.0.x:
35418     - Reject ports 465 and 587 (spam targets) in default exit policy.
35419     - Don't crash when we don't have any spare file descriptors and we
35420       try to spawn a dns or cpu worker.
35421     - Get rid of IgnoreVersion undocumented config option, and make us
35422       only warn, never exit, when we're running an obsolete version.
35423     - Don't try to print a null string when your server finds itself to
35424       be unreachable and the Address config option is empty.
35425     - Make the numbers in read-history and write-history into uint64s,
35426       so they don't overflow and publish negatives in the descriptor.
35427     - Fix a minor memory leak in smartlist_string_remove().
35428     - We were only allowing ourselves to upload a server descriptor at
35429       most every 20 minutes, even if it changed earlier than that.
35430     - Clean up log entries that pointed to old URLs.
35433 Changes in version 0.1.1.7-alpha - 2005-09-14
35434   o Fixes on 0.1.1.6-alpha:
35435     - Exit servers were crashing when people asked them to make a
35436       connection to an address not in their exit policy.
35437     - Looking up a non-existent stream for a v1 control connection would
35438       cause a segfault.
35439     - Fix a seg fault if we ask a dirserver for a descriptor by
35440       fingerprint but he doesn't know about him.
35441     - SETCONF was appending items to linelists, not clearing them.
35442     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
35443       out and refuse the setconf if it would fail.
35444     - Downgrade the dirserver log messages when whining about
35445       unreachability.
35447   o New features:
35448     - Add Peter Palfrader's check-tor script to tor/contrib/
35449       It lets you easily check whether a given server (referenced by
35450       nickname) is reachable by you.
35451     - Numerous changes to move towards client-side v2 directories. Not
35452       enabled yet.
35454   o Fixes on 0.1.0.x:
35455     - If the user gave tor an odd number of command-line arguments,
35456       we were silently ignoring the last one. Now we complain and fail.
35457       [This wins the oldest-bug prize -- this bug has been present since
35458        November 2002, as released in Tor 0.0.0.]
35459     - Do not use unaligned memory access on alpha, mips, or mipsel.
35460       It *works*, but is very slow, so we treat them as if it doesn't.
35461     - Retry directory requests if we fail to get an answer we like
35462       from a given dirserver (we were retrying before, but only if
35463       we fail to connect).
35464     - When writing the RecommendedVersions line, sort them first.
35465     - When the client asked for a rendezvous port that the hidden
35466       service didn't want to provide, we were sending an IP address
35467       back along with the end cell. Fortunately, it was zero. But stop
35468       that anyway.
35469     - Correct "your server is reachable" log entries to indicate that
35470       it was self-testing that told us so.
35473 Changes in version 0.1.1.6-alpha - 2005-09-09
35474   o Fixes on 0.1.1.5-alpha:
35475     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
35476     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
35477     - Fix bug with tor_memmem finding a match at the end of the string.
35478     - Make unit tests run without segfaulting.
35479     - Resolve some solaris x86 compile warnings.
35480     - Handle duplicate lines in approved-routers files without warning.
35481     - Fix bug where as soon as a server refused any requests due to his
35482       exit policy (e.g. when we ask for localhost and he tells us that's
35483       127.0.0.1 and he won't do it), we decided he wasn't obeying his
35484       exit policy using him for any exits.
35485     - Only do openssl hardware accelerator stuff if openssl version is
35486       at least 0.9.7.
35488   o New controller features/fixes:
35489     - Add a "RESETCONF" command so you can set config options like
35490       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
35491       a config option in the torrc with no value, then it clears it
35492       entirely (rather than setting it to its default).
35493     - Add a "GETINFO config-file" to tell us where torrc is.
35494     - Avoid sending blank lines when GETINFO replies should be empty.
35495     - Add a QUIT command for the controller (for using it manually).
35496     - Fix a bug in SAVECONF that was adding default dirservers and
35497       other redundant entries to the torrc file.
35499   o Start on the new directory design:
35500     - Generate, publish, cache, serve new network-status format.
35501     - Publish individual descriptors (by fingerprint, by "all", and by
35502       "tell me yours").
35503     - Publish client and server recommended versions separately.
35504     - Allow tor_gzip_uncompress() to handle multiple concatenated
35505       compressed strings. Serve compressed groups of router
35506       descriptors. The compression logic here could be more
35507       memory-efficient.
35508     - Distinguish v1 authorities (all currently trusted directories)
35509       from v2 authorities (all trusted directories).
35510     - Change DirServers config line to note which dirs are v1 authorities.
35511     - Add configuration option "V1AuthoritativeDirectory 1" which
35512       moria1, moria2, and tor26 should set.
35513     - Remove option when getting directory cache to see whether they
35514       support running-routers; they all do now. Replace it with one
35515       to see whether caches support v2 stuff.
35517   o New features:
35518     - Dirservers now do their own external reachability testing of each
35519       Tor server, and only list them as running if they've been found to
35520       be reachable. We also send back warnings to the server's logs if
35521       it uploads a descriptor that we already believe is unreachable.
35522     - Implement exit enclaves: if we know an IP address for the
35523       destination, and there's a running Tor server at that address
35524       which allows exit to the destination, then extend the circuit to
35525       that exit first. This provides end-to-end encryption and end-to-end
35526       authentication. Also, if the user wants a .exit address or enclave,
35527       use 4 hops rather than 3, and cannibalize a general circ for it
35528       if you can.
35529     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
35530       controller. Also, rotate dns and cpu workers if the controller
35531       changes options that will affect them; and initialize the dns
35532       worker cache tree whether or not we start out as a server.
35533     - Only upload a new server descriptor when options change, 18
35534       hours have passed, uptime is reset, or bandwidth changes a lot.
35535     - Check [X-]Forwarded-For headers in HTTP requests when generating
35536       log messages. This lets people run dirservers (and caches) behind
35537       Apache but still know which IP addresses are causing warnings.
35539   o Config option changes:
35540     - Replace (Fascist)Firewall* config options with a new
35541       ReachableAddresses option that understands address policies.
35542       For example, "ReachableAddresses *:80,*:443"
35543     - Get rid of IgnoreVersion undocumented config option, and make us
35544       only warn, never exit, when we're running an obsolete version.
35545     - Make MonthlyAccountingStart config option truly obsolete now.
35547   o Fixes on 0.1.0.x:
35548     - Reject ports 465 and 587 in the default exit policy, since
35549       people have started using them for spam too.
35550     - It turns out we couldn't bootstrap a network since we added
35551       reachability detection in 0.1.0.1-rc. Good thing the Tor network
35552       has never gone down. Add an AssumeReachable config option to let
35553       servers and dirservers bootstrap. When we're trying to build a
35554       high-uptime or high-bandwidth circuit but there aren't enough
35555       suitable servers, try being less picky rather than simply failing.
35556     - Our logic to decide if the OR we connected to was the right guy
35557       was brittle and maybe open to a mitm for unverified routers.
35558     - We weren't cannibalizing circuits correctly for
35559       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
35560       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
35561       build those from scratch. This should make hidden services faster.
35562     - Predict required circuits better, with an eye toward making hidden
35563       services faster on the service end.
35564     - Retry streams if the exit node sends back a 'misc' failure. This
35565       should result in fewer random failures. Also, after failing
35566       from resolve failed or misc, reset the num failures, so we give
35567       it a fair shake next time we try.
35568     - Clean up the rendezvous warn log msgs, and downgrade some to info.
35569     - Reduce severity on logs about dns worker spawning and culling.
35570     - When we're shutting down and we do something like try to post a
35571       server descriptor or rendezvous descriptor, don't complain that
35572       we seem to be unreachable. Of course we are, we're shutting down.
35573     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
35574       We don't use them yet, but maybe one day our DNS resolver will be
35575       able to discover them.
35576     - Make ContactInfo mandatory for authoritative directory servers.
35577     - Require server descriptors to list IPv4 addresses -- hostnames
35578       are no longer allowed. This also fixes some potential security
35579       problems with people providing hostnames as their address and then
35580       preferentially resolving them to partition users.
35581     - Change log line for unreachability to explicitly suggest /etc/hosts
35582       as the culprit. Also make it clearer what IP address and ports we're
35583       testing for reachability.
35584     - Put quotes around user-supplied strings when logging so users are
35585       more likely to realize if they add bad characters (like quotes)
35586       to the torrc.
35587     - Let auth dir servers start without specifying an Address config
35588       option.
35589     - Make unit tests (and other invocations that aren't the real Tor)
35590       run without launching listeners, creating subdirectories, and so on.
35593 Changes in version 0.1.1.5-alpha - 2005-08-08
35594   o Bugfixes included in 0.1.0.14.
35596   o Bugfixes on 0.1.0.x:
35597     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
35598       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
35599       it would silently using ignore the 6668.
35602 Changes in version 0.1.0.14 - 2005-08-08
35603   o Bugfixes on 0.1.0.x:
35604       - Fix the other half of the bug with crypto handshakes
35605         (CVE-2005-2643).
35606       - Fix an assert trigger if you send a 'signal term' via the
35607         controller when it's listening for 'event info' messages.
35610 Changes in version 0.1.1.4-alpha - 2005-08-04
35611   o Bugfixes included in 0.1.0.13.
35613   o Features:
35614     - Improve tor_gettimeofday() granularity on windows.
35615     - Make clients regenerate their keys when their IP address changes.
35616     - Implement some more GETINFO goodness: expose helper nodes, config
35617       options, getinfo keys.
35620 Changes in version 0.1.0.13 - 2005-08-04
35621   o Bugfixes on 0.1.0.x:
35622     - Fix a critical bug in the security of our crypto handshakes.
35623     - Fix a size_t underflow in smartlist_join_strings2() that made
35624       it do bad things when you hand it an empty smartlist.
35625     - Fix Windows installer to ship Tor license (thanks to Aphex for
35626       pointing out this oversight) and put a link to the doc directory
35627       in the start menu.
35628     - Explicitly set no-unaligned-access for sparc: it turns out the
35629       new gcc's let you compile broken code, but that doesn't make it
35630       not-broken.
35633 Changes in version 0.1.1.3-alpha - 2005-07-23
35634   o Bugfixes on 0.1.1.2-alpha:
35635     - Fix a bug in handling the controller's "post descriptor"
35636       function.
35637     - Fix several bugs in handling the controller's "extend circuit"
35638       function.
35639     - Fix a bug in handling the controller's "stream status" event.
35640     - Fix an assert failure if we have a controller listening for
35641       circuit events and we go offline.
35642     - Re-allow hidden service descriptors to publish 0 intro points.
35643     - Fix a crash when generating your hidden service descriptor if
35644       you don't have enough intro points already.
35646   o New features on 0.1.1.2-alpha:
35647     - New controller function "getinfo accounting", to ask how
35648       many bytes we've used in this time period.
35649     - Experimental support for helper nodes: a lot of the risk from
35650       a small static adversary comes because users pick new random
35651       nodes every time they rebuild a circuit. Now users will try to
35652       stick to the same small set of entry nodes if they can. Not
35653       enabled by default yet.
35655   o Bugfixes on 0.1.0.12:
35656     - If you're an auth dir server, always publish your dirport,
35657       even if you haven't yet found yourself to be reachable.
35658     - Fix a size_t underflow in smartlist_join_strings2() that made
35659       it do bad things when you hand it an empty smartlist.
35662 Changes in version 0.1.0.12 - 2005-07-18
35663   o New directory servers:
35664       - tor26 has changed IP address.
35666   o Bugfixes on 0.1.0.x:
35667     - Fix a possible double-free in tor_gzip_uncompress().
35668     - When --disable-threads is set, do not search for or link against
35669       pthreads libraries.
35670     - Don't trigger an assert if an authoritative directory server
35671       claims its dirport is 0.
35672     - Fix bug with removing Tor as an NT service: some people were
35673       getting "The service did not return an error." Thanks to Matt
35674       Edman for the fix.
35677 Changes in version 0.1.1.2-alpha - 2005-07-15
35678   o New directory servers:
35679     - tor26 has changed IP address.
35681   o Bugfixes on 0.1.0.x, crashes/leaks:
35682     - Port the servers-not-obeying-their-exit-policies fix from
35683       0.1.0.11.
35684     - Fix an fd leak in start_daemon().
35685     - On Windows, you can't always reopen a port right after you've
35686       closed it. So change retry_listeners() to only close and re-open
35687       ports that have changed.
35688     - Fix a possible double-free in tor_gzip_uncompress().
35690   o Bugfixes on 0.1.0.x, usability:
35691     - When tor_socketpair() fails in Windows, give a reasonable
35692       Windows-style errno back.
35693     - Let people type "tor --install" as well as "tor -install" when
35694       they
35695       want to make it an NT service.
35696     - NT service patch from Matt Edman to improve error messages.
35697     - When the controller asks for a config option with an abbreviated
35698       name, give the full name in our response.
35699     - Correct the man page entry on TrackHostExitsExpire.
35700     - Looks like we were never delivering deflated (i.e. compressed)
35701       running-routers lists, even when asked. Oops.
35702     - When --disable-threads is set, do not search for or link against
35703       pthreads libraries.
35705   o Bugfixes on 0.1.1.x:
35706     - Fix a seg fault with autodetecting which controller version is
35707       being used.
35709   o Features:
35710     - New hidden service descriptor format: put a version in it, and
35711       let people specify introduction/rendezvous points that aren't
35712       in "the directory" (which is subjective anyway).
35713     - Allow the DEBUG controller event to work again. Mark certain log
35714       entries as "don't tell this to controllers", so we avoid cycles.
35717 Changes in version 0.1.0.11 - 2005-06-30
35718   o Bugfixes on 0.1.0.x:
35719     - Fix major security bug: servers were disregarding their
35720       exit policies if clients behaved unexpectedly.
35721     - Make OS X init script check for missing argument, so we don't
35722       confuse users who invoke it incorrectly.
35723     - Fix a seg fault in "tor --hash-password foo".
35724     - The MAPADDRESS control command was broken.
35727 Changes in version 0.1.1.1-alpha - 2005-06-29
35728   o Bugfixes:
35729     - Make OS X init script check for missing argument, so we don't
35730       confuse users who invoke it incorrectly.
35731     - Fix a seg fault in "tor --hash-password foo".
35732     - Fix a possible way to DoS dirservers.
35733     - When we complain that your exit policy implicitly allows local or
35734       private address spaces, name them explicitly so operators can
35735       fix it.
35736     - Make the log message less scary when all the dirservers are
35737       temporarily unreachable.
35738     - We were printing the number of idle dns workers incorrectly when
35739       culling them.
35741   o Features:
35742     - Revised controller protocol (version 1) that uses ascii rather
35743       than binary. Add supporting libraries in python and java so you
35744       can use the controller from your applications without caring how
35745       our protocol works.
35746     - Spiffy new support for crypto hardware accelerators. Can somebody
35747       test this?
35750 Changes in version 0.0.9.10 - 2005-06-16
35751   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
35752     - Refuse relay cells that claim to have a length larger than the
35753       maximum allowed. This prevents a potential attack that could read
35754       arbitrary memory (e.g. keys) from an exit server's process
35755       (CVE-2005-2050).
35758 Changes in version 0.1.0.10 - 2005-06-14
35759   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
35760     libevent before 1.1a.
35763 Changes in version 0.1.0.9-rc - 2005-06-09
35764   o Bugfixes:
35765     - Reset buf->highwater every time buf_shrink() is called, not just on
35766       a successful shrink. This was causing significant memory bloat.
35767     - Fix buffer overflow when checking hashed passwords.
35768     - Security fix: if seeding the RNG on Win32 fails, quit.
35769     - Allow seeding the RNG on Win32 even when you're not running as
35770       Administrator.
35771     - Disable threading on Solaris too. Something is wonky with it,
35772       cpuworkers, and reentrant libs.
35773     - Reenable the part of the code that tries to flush as soon as an
35774       OR outbuf has a full TLS record available. Perhaps this will make
35775       OR outbufs not grow as huge except in rare cases, thus saving lots
35776       of CPU time plus memory.
35777     - Reject malformed .onion addresses rather then passing them on as
35778       normal web requests.
35779     - Adapt patch from Adam Langley: fix possible memory leak in
35780       tor_lookup_hostname().
35781     - Initialize libevent later in the startup process, so the logs are
35782       already established by the time we start logging libevent warns.
35783     - Use correct errno on win32 if libevent fails.
35784     - Check and warn about known-bad/slow libevent versions.
35785     - Pay more attention to the ClientOnly config option.
35786     - Have torctl.in/tor.sh.in check for location of su binary (needed
35787       on FreeBSD)
35788     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
35789       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
35790       HttpProxyAuthenticator
35791     - Stop warning about sigpipes in the logs. We're going to
35792       pretend that getting these occasionally is normal and fine.
35793     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
35794       certain
35795       installer screens; and don't put stuff into StartupItems unless
35796       the user asks you to.
35797     - Require servers that use the default dirservers to have public IP
35798       addresses. We have too many servers that are configured with private
35799       IPs and their admins never notice the log entries complaining that
35800       their descriptors are being rejected.
35801     - Add OSX uninstall instructions. An actual uninstall script will
35802       come later.
35805 Changes in version 0.1.0.8-rc - 2005-05-23
35806   o Bugfixes:
35807     - It turns out that kqueue on OS X 10.3.9 was causing kernel
35808       panics. Disable kqueue on all OS X Tors.
35809     - Fix RPM: remove duplicate line accidentally added to the rpm
35810       spec file.
35811     - Disable threads on openbsd too, since its gethostaddr is not
35812       reentrant either.
35813     - Tolerate libevent 0.8 since it still works, even though it's
35814       ancient.
35815     - Enable building on Red Hat 9.0 again.
35816     - Allow the middle hop of the testing circuit to be running any
35817       version, now that most of them have the bugfix to let them connect
35818       to unknown servers. This will allow reachability testing to work
35819       even when 0.0.9.7-0.0.9.9 become obsolete.
35820     - Handle relay cells with rh.length too large. This prevents
35821       a potential attack that could read arbitrary memory (maybe even
35822       keys) from the exit server's process.
35823     - We screwed up the dirport reachability testing when we don't yet
35824       have a cached version of the directory. Hopefully now fixed.
35825     - Clean up router_load_single_router() (used by the controller),
35826       so it doesn't seg fault on error.
35827     - Fix a minor memory leak when somebody establishes an introduction
35828       point at your Tor server.
35829     - If a socks connection ends because read fails, don't warn that
35830       you're not sending a socks reply back.
35832   o Features:
35833     - Add HttpProxyAuthenticator config option too, that works like
35834       the HttpsProxyAuthenticator config option.
35835     - Encode hashed controller passwords in hex instead of base64,
35836       to make it easier to write controllers.
35839 Changes in version 0.1.0.7-rc - 2005-05-17
35840   o Bugfixes:
35841     - Fix a bug in the OS X package installer that prevented it from
35842       installing on Tiger.
35843     - Fix a script bug in the OS X package installer that made it
35844       complain during installation.
35845     - Find libevent even if it's hiding in /usr/local/ and your
35846       CFLAGS and LDFLAGS don't tell you to look there.
35847     - Be able to link with libevent as a shared library (the default
35848       after 1.0d), even if it's hiding in /usr/local/lib and even
35849       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
35850       assuming you're running gcc. Otherwise fail and give a useful
35851       error message.
35852     - Fix a bug in the RPM packager: set home directory for _tor to
35853       something more reasonable when first installing.
35854     - Free a minor amount of memory that is still reachable on exit.
35857 Changes in version 0.1.0.6-rc - 2005-05-14
35858   o Bugfixes:
35859     - Implement --disable-threads configure option. Disable threads on
35860       netbsd by default, because it appears to have no reentrant resolver
35861       functions.
35862     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
35863       release (1.1) detects and disables kqueue if it's broken.
35864     - Append default exit policy before checking for implicit internal
35865       addresses. Now we don't log a bunch of complaints on startup
35866       when using the default exit policy.
35867     - Some people were putting "Address  " in their torrc, and they had
35868       a buggy resolver that resolved " " to 0.0.0.0. Oops.
35869     - If DataDir is ~/.tor, and that expands to /.tor, then default to
35870       LOCALSTATEDIR/tor instead.
35871     - Fix fragmented-message bug in TorControl.py.
35872     - Resolve a minor bug which would prevent unreachable dirports
35873       from getting suppressed in the published descriptor.
35874     - When the controller gave us a new descriptor, we weren't resolving
35875       it immediately, so Tor would think its address was 0.0.0.0 until
35876       we fetched a new directory.
35877     - Fix an uppercase/lowercase case error in suppressing a bogus
35878       libevent warning on some Linuxes.
35880   o Features:
35881     - Begin scrubbing sensitive strings from logs by default. Turn off
35882       the config option SafeLogging if you need to do debugging.
35883     - Switch to a new buffer management algorithm, which tries to avoid
35884       reallocing and copying quite as much. In first tests it looks like
35885       it uses *more* memory on average, but less cpu.
35886     - First cut at support for "create-fast" cells. Clients can use
35887       these when extending to their first hop, since the TLS already
35888       provides forward secrecy and authentication. Not enabled on
35889       clients yet.
35890     - When dirservers refuse a router descriptor, we now log its
35891       contactinfo, platform, and the poster's IP address.
35892     - Call tor_free_all instead of connections_free_all after forking, to
35893       save memory on systems that need to fork.
35894     - Whine at you if you're a server and you don't set your contactinfo.
35895     - Implement --verify-config command-line option to check if your torrc
35896       is valid without actually launching Tor.
35897     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
35898       rather than just rejecting it.
35901 Changes in version 0.1.0.5-rc - 2005-04-27
35902   o Bugfixes:
35903     - Stop trying to print a null pointer if an OR conn fails because
35904       we didn't like its cert.
35905   o Features:
35906     - Switch our internal buffers implementation to use a ring buffer,
35907       to hopefully improve performance for fast servers a lot.
35908     - Add HttpsProxyAuthenticator support (basic auth only), based
35909       on patch from Adam Langley.
35910     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
35911       the fast servers that have been joining lately.
35912     - Give hidden service accesses extra time on the first attempt,
35913       since 60 seconds is often only barely enough. This might improve
35914       robustness more.
35915     - Improve performance for dirservers: stop re-parsing the whole
35916       directory every time you regenerate it.
35917     - Add more debugging info to help us find the weird dns freebsd
35918       pthreads bug; cleaner debug messages to help track future issues.
35921 Changes in version 0.0.9.9 - 2005-04-23
35922   o Bugfixes on 0.0.9.x:
35923     - If unofficial Tor clients connect and send weird TLS certs, our
35924       Tor server triggers an assert. This release contains a minimal
35925       backport from the broader fix that we put into 0.1.0.4-rc.
35928 Changes in version 0.1.0.4-rc - 2005-04-23
35929   o Bugfixes:
35930     - If unofficial Tor clients connect and send weird TLS certs, our
35931       Tor server triggers an assert. Stop asserting, and start handling
35932       TLS errors better in other situations too.
35933     - When the controller asks us to tell it about all the debug-level
35934       logs, it turns out we were generating debug-level logs while
35935       telling it about them, which turns into a bad loop. Now keep
35936       track of whether you're sending a debug log to the controller,
35937       and don't log when you are.
35938     - Fix the "postdescriptor" feature of the controller interface: on
35939       non-complete success, only say "done" once.
35940   o Features:
35941     - Clients are now willing to load balance over up to 2mB, not 1mB,
35942       of advertised bandwidth capacity.
35943     - Add a NoPublish config option, so you can be a server (e.g. for
35944       testing running Tor servers in other Tor networks) without
35945       publishing your descriptor to the primary dirservers.
35948 Changes in version 0.1.0.3-rc - 2005-04-08
35949   o Improvements on 0.1.0.2-rc:
35950     - Client now retries when streams end early for 'hibernating' or
35951       'resource limit' reasons, rather than failing them.
35952     - More automated handling for dirserver operators:
35953       - Automatically approve nodes running 0.1.0.2-rc or later,
35954         now that the the reachability detection stuff is working.
35955       - Now we allow two unverified servers with the same nickname
35956         but different keys. But if a nickname is verified, only that
35957         nickname+key are allowed.
35958       - If you're an authdirserver connecting to an address:port,
35959         and it's not the OR you were expecting, forget about that
35960         descriptor. If he *was* the one you were expecting, then forget
35961         about all other descriptors for that address:port.
35962       - Allow servers to publish descriptors from 12 hours in the future.
35963         Corollary: only whine about clock skew from the dirserver if
35964         he's a trusted dirserver (since now even verified servers could
35965         have quite wrong clocks).
35966     - Adjust maximum skew and age for rendezvous descriptors: let skew
35967       be 48 hours rather than 90 minutes.
35968     - Efficiency improvements:
35969       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
35970         it much faster to look up a circuit for each relay cell.
35971       - Remove most calls to assert_all_pending_dns_resolves_ok(),
35972         since they're eating our cpu on exit nodes.
35973       - Stop wasting time doing a case insensitive comparison for every
35974         dns name every time we do any lookup. Canonicalize the names to
35975         lowercase and be done with it.
35976     - Start sending 'truncated' cells back rather than destroy cells,
35977       if the circuit closes in front of you. This means we won't have
35978       to abandon partially built circuits.
35979     - Only warn once per nickname from add_nickname_list_to_smartlist
35980       per failure, so an entrynode or exitnode choice that's down won't
35981       yell so much.
35982     - Put a note in the torrc about abuse potential with the default
35983       exit policy.
35984     - Revise control spec and implementation to allow all log messages to
35985       be sent to controller with their severities intact (suggested by
35986       Matt Edman). Update TorControl to handle new log event types.
35987     - Provide better explanation messages when controller's POSTDESCRIPTOR
35988       fails.
35989     - Stop putting nodename in the Platform string in server descriptors.
35990       It doesn't actually help, and it is confusing/upsetting some people.
35992   o Bugfixes on 0.1.0.2-rc:
35993     - We were printing the host mask wrong in exit policies in server
35994       descriptors. This isn't a critical bug though, since we were still
35995       obeying the exit policy internally.
35996     - Fix Tor when compiled with libevent but without pthreads: move
35997       connection_unregister() from _connection_free() to
35998       connection_free().
35999     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
36000       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
36001       when we look through the connection array, we'll find any of the
36002       cpu/dnsworkers. This is no good.
36004   o Bugfixes on 0.0.9.8:
36005     - Fix possible bug on threading platforms (e.g. win32) which was
36006       leaking a file descriptor whenever a cpuworker or dnsworker died.
36007     - When using preferred entry or exit nodes, ignore whether the
36008       circuit wants uptime or capacity. They asked for the nodes, they
36009       get the nodes.
36010     - chdir() to your datadirectory at the *end* of the daemonize process,
36011       not the beginning. This was a problem because the first time you
36012       run tor, if your datadir isn't there, and you have runasdaemon set
36013       to 1, it will try to chdir to it before it tries to create it. Oops.
36014     - Handle changed router status correctly when dirserver reloads
36015       fingerprint file. We used to be dropping all unverified descriptors
36016       right then. The bug was hidden because we would immediately
36017       fetch a directory from another dirserver, which would include the
36018       descriptors we just dropped.
36019     - When we're connecting to an OR and he's got a different nickname/key
36020       than we were expecting, only complain loudly if we're an OP or a
36021       dirserver. Complaining loudly to the OR admins just confuses them.
36022     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
36023       artificially capped at 500kB.
36026 Changes in version 0.0.9.8 - 2005-04-07
36027   o Bugfixes on 0.0.9.x:
36028     - We have a bug that I haven't found yet. Sometimes, very rarely,
36029       cpuworkers get stuck in the 'busy' state, even though the cpuworker
36030       thinks of itself as idle. This meant that no new circuits ever got
36031       established. Here's a workaround to kill any cpuworker that's been
36032       busy for more than 100 seconds.
36035 Changes in version 0.1.0.2-rc - 2005-04-01
36036   o Bugfixes on 0.1.0.1-rc:
36037     - Fixes on reachability detection:
36038       - Don't check for reachability while hibernating.
36039       - If ORPort is reachable but DirPort isn't, still publish the
36040         descriptor, but zero out DirPort until it's found reachable.
36041       - When building testing circs for ORPort testing, use only
36042         high-bandwidth nodes, so fewer circuits fail.
36043       - Complain about unreachable ORPort separately from unreachable
36044         DirPort, so the user knows what's going on.
36045       - Make sure we only conclude ORPort reachability if we didn't
36046         initiate the conn. Otherwise we could falsely conclude that
36047         we're reachable just because we connected to the guy earlier
36048         and he used that same pipe to extend to us.
36049       - Authdirservers shouldn't do ORPort reachability detection,
36050         since they're in clique mode, so it will be rare to find a
36051         server not already connected to them.
36052       - When building testing circuits, always pick middle hops running
36053         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
36054         bug. (This is a kludge; it will go away when 0.0.9.x becomes
36055         obsolete.)
36056       - When we decide we're reachable, actually publish our descriptor
36057         right then.
36058     - Fix bug in redirectstream in the controller.
36059     - Fix the state descriptor strings so logs don't claim edge streams
36060       are in a different state than they actually are.
36061     - Use recent libevent features when possible (this only really affects
36062       win32 and osx right now, because the new libevent with these
36063       features hasn't been released yet). Add code to suppress spurious
36064       libevent log msgs.
36065     - Prevent possible segfault in connection_close_unattached_ap().
36066     - Fix newlines on torrc in win32.
36067     - Improve error msgs when tor-resolve fails.
36069   o Improvements on 0.0.9.x:
36070     - New experimental script tor/contrib/ExerciseServer.py (needs more
36071       work) that uses the controller interface to build circuits and
36072       fetch pages over them. This will help us bootstrap servers that
36073       have lots of capacity but haven't noticed it yet.
36074     - New experimental script tor/contrib/PathDemo.py (needs more work)
36075       that uses the controller interface to let you choose whole paths
36076       via addresses like
36077       "<hostname>.<path,separated by dots>.<length of path>.path"
36078     - When we've connected to an OR and handshaked but didn't like
36079       the result, we were closing the conn without sending destroy
36080       cells back for pending circuits. Now send those destroys.
36083 Changes in version 0.0.9.7 - 2005-04-01
36084   o Bugfixes on 0.0.9.x:
36085     - Fix another race crash bug (thanks to Glenn Fink for reporting).
36086     - Compare identity to identity, not to nickname, when extending to
36087       a router not already in the directory. This was preventing us from
36088       extending to unknown routers. Oops.
36089     - Make sure to create OS X Tor user in <500 range, so we aren't
36090       creating actual system users.
36091     - Note where connection-that-hasn't-sent-end was marked, and fix
36092       a few really loud instances of this harmless bug (it's fixed more
36093       in 0.1.0.x).
36096 Changes in version 0.1.0.1-rc - 2005-03-28
36097   o New features:
36098     - Add reachability testing. Your Tor server will automatically try
36099       to see if its ORPort and DirPort are reachable from the outside,
36100       and it won't upload its descriptor until it decides they are.
36101     - Handle unavailable hidden services better. Handle slow or busy
36102       hidden services better.
36103     - Add support for CONNECTing through https proxies, with "HttpsProxy"
36104       config option.
36105     - New exit policy: accept most low-numbered ports, rather than
36106       rejecting most low-numbered ports.
36107     - More Tor controller support (still experimental). See
36108       http://tor.eff.org/doc/control-spec.txt for all the new features,
36109       including signals to emulate unix signals from any platform;
36110       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
36111       closestream; closecircuit; etc.
36112     - Make nt services work and start on startup on win32 (based on
36113       patch by Matt Edman).
36114     - Add a new AddressMap config directive to rewrite incoming socks
36115       addresses. This lets you, for example, declare an implicit
36116       required exit node for certain sites.
36117     - Add a new TrackHostExits config directive to trigger addressmaps
36118       for certain incoming socks addresses -- for sites that break when
36119       your exit keeps changing (based on patch by Mike Perry).
36120     - Redo the client-side dns cache so it's just an addressmap too.
36121     - Notice when our IP changes, and reset stats/uptime/reachability.
36122     - When an application is using socks5, give him the whole variety of
36123       potential socks5 responses (connect refused, host unreachable, etc),
36124       rather than just "success" or "failure".
36125     - A more sane version numbering system. See
36126       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
36127     - New contributed script "exitlist": a simple python script to
36128       parse directories and find Tor nodes that exit to listed
36129       addresses/ports.
36130     - New contributed script "privoxy-tor-toggle" to toggle whether
36131       Privoxy uses Tor. Seems to be configured for Debian by default.
36132     - Report HTTP reasons to client when getting a response from directory
36133       servers -- so you can actually know what went wrong.
36134     - New config option MaxAdvertisedBandwidth which lets you advertise
36135       a low bandwidthrate (to not attract as many circuits) while still
36136       allowing a higher bandwidthrate in reality.
36138   o Robustness/stability fixes:
36139     - Make Tor use Niels Provos's libevent instead of its current
36140       poll-but-sometimes-select mess. This will let us use faster async
36141       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
36142       on Windows too.
36143     - pthread support now too. This was forced because when we forked,
36144       we ended up wasting a lot of duplicate ram over time. Also switch
36145       to foo_r versions of some library calls to allow reentry and
36146       threadsafeness.
36147     - Better handling for heterogeneous / unreliable nodes:
36148       - Annotate circuits w/ whether they aim to contain high uptime nodes
36149         and/or high capacity nodes. When building circuits, choose
36150         appropriate nodes.
36151       - This means that every single node in an intro rend circuit,
36152         not just the last one, will have a minimum uptime.
36153       - New config option LongLivedPorts to indicate application streams
36154         that will want high uptime circuits.
36155       - Servers reset uptime when a dir fetch entirely fails. This
36156         hopefully reflects stability of the server's network connectivity.
36157       - If somebody starts his tor server in Jan 2004 and then fixes his
36158         clock, don't make his published uptime be a year.
36159       - Reset published uptime when you wake up from hibernation.
36160     - Introduce a notion of 'internal' circs, which are chosen without
36161       regard to the exit policy of the last hop. Intro and rendezvous
36162       circs must be internal circs, to avoid leaking information. Resolve
36163       and connect streams can use internal circs if they want.
36164     - New circuit pooling algorithm: make sure to have enough circs around
36165       to satisfy any predicted ports, and also make sure to have 2 internal
36166       circs around if we've required internal circs lately (and with high
36167       uptime if we've seen that lately too).
36168     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
36169       which describes how often we retry making new circuits if current
36170       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
36171       how long we're willing to make use of an already-dirty circuit.
36172     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
36173       circ as necessary, if there are any completed ones lying around
36174       when we try to launch one.
36175     - Make hidden services try to establish a rendezvous for 30 seconds,
36176       rather than for n (where n=3) attempts to build a circuit.
36177     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
36178       "ShutdownWaitLength".
36179     - Try to be more zealous about calling connection_edge_end when
36180       things go bad with edge conns in connection.c.
36181     - Revise tor-spec to add more/better stream end reasons.
36182     - Revise all calls to connection_edge_end to avoid sending "misc",
36183       and to take errno into account where possible.
36185   o Bug fixes:
36186     - Fix a race condition that can trigger an assert, when we have a
36187       pending create cell and an OR connection fails right then.
36188     - Fix several double-mark-for-close bugs, e.g. where we were finding
36189       a conn for a cell even if that conn is already marked for close.
36190     - Make sequence of log messages when starting on win32 with no config
36191       file more reasonable.
36192     - When choosing an exit node for a new non-internal circ, don't take
36193       into account whether it'll be useful for any pending x.onion
36194       addresses -- it won't.
36195     - Turn addr_policy_compare from a tristate to a quadstate; this should
36196       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
36197       for google.com" problem.
36198     - Make "platform" string in descriptor more accurate for Win32 servers,
36199       so it's not just "unknown platform".
36200     - Fix an edge case in parsing config options (thanks weasel).
36201       If they say "--" on the commandline, it's not an option.
36202     - Reject odd-looking addresses at the client (e.g. addresses that
36203       contain a colon), rather than having the server drop them because
36204       they're malformed.
36205     - tor-resolve requests were ignoring .exit if there was a working circuit
36206       they could use instead.
36207     - REUSEADDR on normal platforms means you can rebind to the port
36208       right after somebody else has let it go. But REUSEADDR on win32
36209       means to let you bind to the port _even when somebody else
36210       already has it bound_! So, don't do that on Win32.
36211     - Change version parsing logic: a version is "obsolete" if it is not
36212       recommended and (1) there is a newer recommended version in the
36213       same series, or (2) there are no recommended versions in the same
36214       series, but there are some recommended versions in a newer series.
36215       A version is "new" if it is newer than any recommended version in
36216       the same series.
36217     - Stop most cases of hanging up on a socks connection without sending
36218       the socks reject.
36220   o Helpful fixes:
36221     - Require BandwidthRate to be at least 20kB/s for servers.
36222     - When a dirserver causes you to give a warn, mention which dirserver
36223       it was.
36224     - New config option DirAllowPrivateAddresses for authdirservers.
36225       Now by default they refuse router descriptors that have non-IP or
36226       private-IP addresses.
36227     - Stop publishing socksport in the directory, since it's not
36228       actually meant to be public. For compatibility, publish a 0 there
36229       for now.
36230     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
36231       smart" value, that is low for servers and high for clients.
36232     - If our clock jumps forward by 100 seconds or more, assume something
36233       has gone wrong with our network and abandon all not-yet-used circs.
36234     - Warn when exit policy implicitly allows local addresses.
36235     - If we get an incredibly skewed timestamp from a dirserver mirror
36236       that isn't a verified OR, don't warn -- it's probably him that's
36237       wrong.
36238     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
36239       cookies to disk and doesn't log each web request to disk. (Thanks
36240       to Brett Carrington for pointing this out.)
36241     - When a client asks us for a dir mirror and we don't have one,
36242       launch an attempt to get a fresh one.
36243     - If we're hibernating and we get a SIGINT, exit immediately.
36244     - Add --with-dmalloc ./configure option, to track memory leaks.
36245     - And try to free all memory on closing, so we can detect what
36246       we're leaking.
36247     - Cache local dns resolves correctly even when they're .exit
36248       addresses.
36249     - Give a better warning when some other server advertises an
36250       ORPort that is actually an apache running ssl.
36251     - Add "opt hibernating 1" to server descriptor to make it clearer
36252       whether the server is hibernating.
36255 Changes in version 0.0.9.6 - 2005-03-24
36256   o Bugfixes on 0.0.9.x (crashes and asserts):
36257     - Add new end stream reasons to maintenance branch. Fix bug where
36258       reason (8) could trigger an assert. Prevent bug from recurring.
36259     - Apparently win32 stat wants paths to not end with a slash.
36260     - Fix assert triggers in assert_cpath_layer_ok(), where we were
36261       blowing away the circuit that conn->cpath_layer points to, then
36262       checking to see if the circ is well-formed. Backport check to make
36263       sure we dont use the cpath on a closed connection.
36264     - Prevent circuit_resume_edge_reading_helper() from trying to package
36265       inbufs for marked-for-close streams.
36266     - Don't crash on hup if your options->address has become unresolvable.
36267     - Some systems (like OS X) sometimes accept() a connection and tell
36268       you the remote host is 0.0.0.0:0. If this happens, due to some
36269       other mis-features, we get confused; so refuse the conn for now.
36271   o Bugfixes on 0.0.9.x (other):
36272     - Fix harmless but scary "Unrecognized content encoding" warn message.
36273     - Add new stream error reason: TORPROTOCOL reason means "you are not
36274       speaking a version of Tor I understand; say bye-bye to your stream."
36275     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
36276       into the future, now that we are more tolerant of skew. This
36277       resolves a bug where a Tor server would refuse to cache a directory
36278       because all the directories it gets are too far in the future;
36279       yet the Tor server never logs any complaints about clock skew.
36280     - Mac packaging magic: make man pages useable, and do not overwrite
36281       existing torrc files.
36282     - Make OS X log happily to /var/log/tor/tor.log
36285 Changes in version 0.0.9.5 - 2005-02-22
36286   o Bugfixes on 0.0.9.x:
36287     - Fix an assert race at exit nodes when resolve requests fail.
36288     - Stop picking unverified dir mirrors--it only leads to misery.
36289     - Patch from Matt Edman to make NT services work better. Service
36290       support is still not compiled into the executable by default.
36291     - Patch from Dmitri Bely so the Tor service runs better under
36292       the win32 SYSTEM account.
36293     - Make tor-resolve actually work (?) on Win32.
36294     - Fix a sign bug when getrlimit claims to have 4+ billion
36295       file descriptors available.
36296     - Stop refusing to start when bandwidthburst == bandwidthrate.
36297     - When create cells have been on the onion queue more than five
36298       seconds, just send back a destroy and take them off the list.
36301 Changes in version 0.0.9.4 - 2005-02-03
36302   o Bugfixes on 0.0.9:
36303     - Fix an assert bug that took down most of our servers: when
36304       a server claims to have 1 GB of bandwidthburst, don't
36305       freak out.
36306     - Don't crash as badly if we have spawned the max allowed number
36307       of dnsworkers, or we're out of file descriptors.
36308     - Block more file-sharing ports in the default exit policy.
36309     - MaxConn is now automatically set to the hard limit of max
36310       file descriptors we're allowed (ulimit -n), minus a few for
36311       logs, etc.
36312     - Give a clearer message when servers need to raise their
36313       ulimit -n when they start running out of file descriptors.
36314     - SGI Compatibility patches from Jan Schaumann.
36315     - Tolerate a corrupt cached directory better.
36316     - When a dirserver hasn't approved your server, list which one.
36317     - Go into soft hibernation after 95% of the bandwidth is used,
36318       not 99%. This is especially important for daily hibernators who
36319       have a small accounting max. Hopefully it will result in fewer
36320       cut connections when the hard hibernation starts.
36321     - Load-balance better when using servers that claim more than
36322       800kB/s of capacity.
36323     - Make NT services work (experimental, only used if compiled in).
36326 Changes in version 0.0.9.3 - 2005-01-21
36327   o Bugfixes on 0.0.9:
36328     - Backport the cpu use fixes from main branch, so busy servers won't
36329       need as much processor time.
36330     - Work better when we go offline and then come back, or when we
36331       run Tor at boot before the network is up. We do this by
36332       optimistically trying to fetch a new directory whenever an
36333       application request comes in and we think we're offline -- the
36334       human is hopefully a good measure of when the network is back.
36335     - Backport some minimal hidserv bugfixes: keep rend circuits open as
36336       long as you keep using them; actually publish hidserv descriptors
36337       shortly after they change, rather than waiting 20-40 minutes.
36338     - Enable Mac startup script by default.
36339     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
36340     - When you update AllowUnverifiedNodes or FirewallPorts via the
36341       controller's setconf feature, we were always appending, never
36342       resetting.
36343     - When you update HiddenServiceDir via setconf, it was screwing up
36344       the order of reading the lines, making it fail.
36345     - Do not rewrite a cached directory back to the cache; otherwise we
36346       will think it is recent and not fetch a newer one on startup.
36347     - Workaround for webservers that lie about Content-Encoding: Tor
36348       now tries to autodetect compressed directories and compression
36349       itself. This lets us Proxypass dir fetches through apache.
36352 Changes in version 0.0.9.2 - 2005-01-04
36353   o Bugfixes on 0.0.9 (crashes and asserts):
36354     - Fix an assert on startup when the disk is full and you're logging
36355       to a file.
36356     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
36357       style address, then we'd crash.
36358     - Fix an assert trigger when the running-routers string we get from
36359       a dirserver is broken.
36360     - Make worker threads start and run on win32. Now win32 servers
36361       may work better.
36362     - Bandaid (not actually fix, but now it doesn't crash) an assert
36363       where the dns worker dies mysteriously and the main Tor process
36364       doesn't remember anything about the address it was resolving.
36366   o Bugfixes on 0.0.9 (Win32):
36367     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
36368       name out of the warning/assert messages.
36369     - Fix a superficial "unhandled error on read" bug on win32.
36370     - The win32 installer no longer requires a click-through for our
36371       license, since our Free Software license grants rights but does not
36372       take any away.
36373     - Win32: When connecting to a dirserver fails, try another one
36374       immediately. (This was already working for non-win32 Tors.)
36375     - Stop trying to parse $HOME on win32 when hunting for default
36376       DataDirectory.
36377     - Make tor-resolve.c work on win32 by calling network_init().
36379   o Bugfixes on 0.0.9 (other):
36380     - Make 0.0.9.x build on Solaris again.
36381     - Due to a fencepost error, we were blowing away the \n when reporting
36382       confvalue items in the controller. So asking for multiple config
36383       values at once couldn't work.
36384     - When listing circuits that are pending on an opening OR connection,
36385       if we're an OR we were listing circuits that *end* at us as
36386       being pending on every listener, dns/cpu worker, etc. Stop that.
36387     - Dirservers were failing to create 'running-routers' or 'directory'
36388       strings if we had more than some threshold of routers. Fix them so
36389       they can handle any number of routers.
36390     - Fix a superficial "Duplicate mark for close" bug.
36391     - Stop checking for clock skew for OR connections, even for servers.
36392     - Fix a fencepost error that was chopping off the last letter of any
36393       nickname that is the maximum allowed nickname length.
36394     - Update URLs in log messages so they point to the new website.
36395     - Fix a potential problem in mangling server private keys while
36396       writing to disk (not triggered yet, as far as we know).
36397     - Include the licenses for other free software we include in Tor,
36398       now that we're shipping binary distributions more regularly.
36401 Changes in version 0.0.9.1 - 2004-12-15
36402   o Bugfixes on 0.0.9:
36403     - Make hibernation actually work.
36404     - Make HashedControlPassword config option work.
36405     - When we're reporting event circuit status to a controller,
36406       don't use the stream status code.
36409 Changes in version 0.0.9 - 2004-12-12
36410   o Cleanups:
36411     - Clean up manpage and torrc.sample file.
36412     - Clean up severities and text of log warnings.
36413   o Mistakes:
36414     - Make servers trigger an assert when they enter hibernation.
36417 Changes in version 0.0.9rc7 - 2004-12-08
36418   o Bugfixes on 0.0.9rc:
36419     - Fix a stack-trashing crash when an exit node begins hibernating.
36420     - Avoid looking at unallocated memory while considering which
36421       ports we need to build circuits to cover.
36422     - Stop a sigpipe: when an 'end' cell races with eof from the app,
36423       we shouldn't hold-open-until-flush if the eof arrived first.
36424     - Fix a bug with init_cookie_authentication() in the controller.
36425     - When recommending new-format log lines, if the upper bound is
36426       LOG_ERR, leave it implicit.
36428   o Bugfixes on 0.0.8.1:
36429     - Fix a whole slew of memory leaks.
36430     - Fix isspace() and friends so they still make Solaris happy
36431       but also so they don't trigger asserts on win32.
36432     - Fix parse_iso_time on platforms without strptime (eg win32).
36433     - win32: tolerate extra "readable" events better.
36434     - win32: when being multithreaded, leave parent fdarray open.
36435     - Make unit tests work on win32.
36438 Changes in version 0.0.9rc6 - 2004-12-06
36439   o Bugfixes on 0.0.9pre:
36440     - Clean up some more integer underflow opportunities (not exploitable
36441       we think).
36442     - While hibernating, hup should not regrow our listeners.
36443     - Send an end to the streams we close when we hibernate, rather
36444       than just chopping them off.
36445     - React to eof immediately on non-open edge connections.
36447   o Bugfixes on 0.0.8.1:
36448     - Calculate timeout for waiting for a connected cell from the time
36449       we sent the begin cell, not from the time the stream started. If
36450       it took a long time to establish the circuit, we would time out
36451       right after sending the begin cell.
36452     - Fix router_compare_addr_to_addr_policy: it was not treating a port
36453       of * as always matching, so we were picking reject *:* nodes as
36454       exit nodes too. Oops.
36456   o Features:
36457     - New circuit building strategy: keep a list of ports that we've
36458       used in the past 6 hours, and always try to have 2 circuits open
36459       or on the way that will handle each such port. Seed us with port
36460       80 so web users won't complain that Tor is "slow to start up".
36461     - Make kill -USR1 dump more useful stats about circuits.
36462     - When warning about retrying or giving up, print the address, so
36463       the user knows which one it's talking about.
36464     - If you haven't used a clean circuit in an hour, throw it away,
36465       just to be on the safe side. (This means after 6 hours a totally
36466       unused Tor client will have no circuits open.)
36469 Changes in version 0.0.9rc5 - 2004-12-01
36470   o Bugfixes on 0.0.8.1:
36471     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
36472     - Let resolve conns retry/expire also, rather than sticking around
36473       forever.
36474     - If we are using select, make sure we stay within FD_SETSIZE.
36476   o Bugfixes on 0.0.9pre:
36477     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
36478       but doesn't seem to be currently; thanks to Ilja van Sprundel for
36479       finding it.
36480     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
36481       instead. Impose minima and maxima for all *Period options; impose
36482       even tighter maxima for fetching if we are a caching dirserver.
36483       Clip rather than rejecting.
36484     - Fetch cached running-routers from servers that serve it (that is,
36485       authdirservers and servers running 0.0.9rc5-cvs or later.)
36487   o Features:
36488     - Accept *:706 (silc) in default exit policy.
36489     - Implement new versioning format for post 0.1.
36490     - Support "foo.nickname.exit" addresses, to let Alice request the
36491       address "foo" as viewed by exit node "nickname". Based on a patch
36492       by Geoff Goodell.
36493     - Make tor --version --version dump the cvs Id of every file.
36496 Changes in version 0.0.9rc4 - 2004-11-28
36497   o Bugfixes on 0.0.8.1:
36498     - Make windows sockets actually non-blocking (oops), and handle
36499       win32 socket errors better.
36501   o Bugfixes on 0.0.9rc1:
36502     - Actually catch the -USR2 signal.
36505 Changes in version 0.0.9rc3 - 2004-11-25
36506   o Bugfixes on 0.0.8.1:
36507     - Flush the log file descriptor after we print "Tor opening log file",
36508       so we don't see those messages days later.
36510   o Bugfixes on 0.0.9rc1:
36511     - Make tor-resolve work again.
36512     - Avoid infinite loop in tor-resolve if tor hangs up on it.
36513     - Fix an assert trigger for clients/servers handling resolves.
36516 Changes in version 0.0.9rc2 - 2004-11-24
36517   o Bugfixes on 0.0.9rc1:
36518     - I broke socks5 support while fixing the eof bug.
36519     - Allow unitless bandwidths and intervals; they default to bytes
36520       and seconds.
36521     - New servers don't start out hibernating; they are active until
36522       they run out of bytes, so they have a better estimate of how
36523       long it takes, and so their operators can know they're working.
36526 Changes in version 0.0.9rc1 - 2004-11-23
36527   o Bugfixes on 0.0.8.1:
36528     - Finally fix a bug that's been plaguing us for a year:
36529       With high load, circuit package window was reaching 0. Whenever
36530       we got a circuit-level sendme, we were reading a lot on each
36531       socket, but only writing out a bit. So we would eventually reach
36532       eof. This would be noticed and acted on even when there were still
36533       bytes sitting in the inbuf.
36534     - When poll() is interrupted, we shouldn't believe the revents values.
36536   o Bugfixes on 0.0.9pre6:
36537     - Fix hibernate bug that caused pre6 to be broken.
36538     - Don't keep rephist info for routers that haven't had activity for
36539       24 hours. (This matters now that clients have keys, since we track
36540       them too.)
36541     - Never call close_temp_logs while validating log options.
36542     - Fix backslash-escaping on tor.sh.in and torctl.in.
36544   o Features:
36545     - Implement weekly/monthly/daily accounting: now you specify your
36546       hibernation properties by
36547       AccountingMax N bytes|KB|MB|GB|TB
36548       AccountingStart day|week|month [day] HH:MM
36549         Defaults to "month 1 0:00".
36550     - Let bandwidth and interval config options be specified as 5 bytes,
36551       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
36552     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
36553       get back to normal.)
36554     - If your requested entry or exit node has advertised bandwidth 0,
36555       pick it anyway.
36556     - Be more greedy about filling up relay cells -- we try reading again
36557       once we've processed the stuff we read, in case enough has arrived
36558       to fill the last cell completely.
36559     - Apply NT service patch from Osamu Fujino. Still needs more work.
36562 Changes in version 0.0.9pre6 - 2004-11-15
36563   o Bugfixes on 0.0.8.1:
36564     - Fix assert failure on malformed socks4a requests.
36565     - Use identity comparison, not nickname comparison, to choose which
36566       half of circuit-ID-space each side gets to use. This is needed
36567       because sometimes we think of a router as a nickname, and sometimes
36568       as a hex ID, and we can't predict what the other side will do.
36569     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
36570       write() call will fail and we handle it there.
36571     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
36572       and smartlist_len, which are two major profiling offenders.
36574   o Bugfixes on 0.0.9pre5:
36575     - Fix a bug in read_all that was corrupting config files on windows.
36576     - When we're raising the max number of open file descriptors to
36577       'unlimited', don't log that we just raised it to '-1'.
36578     - Include event code with events, as required by control-spec.txt.
36579     - Don't give a fingerprint when clients do --list-fingerprint:
36580       it's misleading, because it will never be the same again.
36581     - Stop using strlcpy in tor_strndup, since it was slowing us
36582       down a lot.
36583     - Remove warn on startup about missing cached-directory file.
36584     - Make kill -USR1 work again.
36585     - Hibernate if we start tor during the "wait for wakeup-time" phase
36586       of an accounting interval. Log our hibernation plans better.
36587     - Authoritative dirservers now also cache their directory, so they
36588       have it on start-up.
36590   o Features:
36591     - Fetch running-routers; cache running-routers; compress
36592       running-routers; serve compressed running-routers.z
36593     - Add NSI installer script contributed by J Doe.
36594     - Commit VC6 and VC7 workspace/project files.
36595     - Commit a tor.spec for making RPM files, with help from jbash.
36596     - Add contrib/torctl.in contributed by Glenn Fink.
36597     - Implement the control-spec's SAVECONF command, to write your
36598       configuration to torrc.
36599     - Get cookie authentication for the controller closer to working.
36600     - Include control-spec.txt in the tarball.
36601     - When set_conf changes our server descriptor, upload a new copy.
36602       But don't upload it too often if there are frequent changes.
36603     - Document authentication config in man page, and document signals
36604       we catch.
36605     - Clean up confusing parts of man page and torrc.sample.
36606     - Make expand_filename handle ~ and ~username.
36607     - Use autoconf to enable largefile support where necessary. Use
36608       ftello where available, since ftell can fail at 2GB.
36609     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
36610       log more informatively.
36611     - Give a slightly more useful output for "tor -h".
36612     - Refuse application socks connections to port 0.
36613     - Check clock skew for verified servers, but allow unverified
36614       servers and clients to have any clock skew.
36615     - Break DirFetchPostPeriod into:
36616       - DirFetchPeriod for fetching full directory,
36617       - StatusFetchPeriod for fetching running-routers,
36618       - DirPostPeriod for posting server descriptor,
36619       - RendPostPeriod for posting hidden service descriptors.
36620     - Make sure the hidden service descriptors are at a random offset
36621       from each other, to hinder linkability.
36624 Changes in version 0.0.9pre5 - 2004-11-09
36625   o Bugfixes on 0.0.9pre4:
36626     - Fix a seg fault in unit tests (doesn't affect main program).
36627     - Fix an assert bug where a hidden service provider would fail if
36628       the first hop of his rendezvous circuit was down.
36629     - Hidden service operators now correctly handle version 1 style
36630       INTRODUCE1 cells (nobody generates them still, so not a critical
36631       bug).
36632     - If do_hup fails, actually notice.
36633     - Handle more errnos from accept() without closing the listener.
36634       Some OpenBSD machines were closing their listeners because
36635       they ran out of file descriptors.
36636     - Send resolve cells to exit routers that are running a new
36637       enough version of the resolve code to work right.
36638     - Better handling of winsock includes on non-MSV win32 compilers.
36639     - Some people had wrapped their tor client/server in a script
36640       that would restart it whenever it died. This did not play well
36641       with our "shut down if your version is obsolete" code. Now people
36642       don't fetch a new directory if their local cached version is
36643       recent enough.
36644     - Make our autogen.sh work on ksh as well as bash.
36646   o Major Features:
36647     - Hibernation: New config option "AccountingMaxKB" lets you
36648       set how many KBytes per month you want to allow your server to
36649       consume. Rather than spreading those bytes out evenly over the
36650       month, we instead hibernate for some of the month and pop up
36651       at a deterministic time, work until the bytes are consumed, then
36652       hibernate again. Config option "MonthlyAccountingStart" lets you
36653       specify which day of the month your billing cycle starts on.
36654     - Control interface: a separate program can now talk to your
36655       client/server over a socket, and get/set config options, receive
36656       notifications of circuits and streams starting/finishing/dying,
36657       bandwidth used, etc. The next step is to get some GUIs working.
36658       Let us know if you want to help out. See doc/control-spec.txt .
36659     - Ship a contrib/tor-control.py as an example script to interact
36660       with the control port.
36661     - "tor --hash-password zzyxz" will output a salted password for
36662       use in authenticating to the control interface.
36663     - New log format in config:
36664       "Log minsev[-maxsev] stdout|stderr|syslog" or
36665       "Log minsev[-maxsev] file /var/foo"
36667   o Minor Features:
36668     - DirPolicy config option, to let people reject incoming addresses
36669       from their dirserver.
36670     - "tor --list-fingerprint" will list your identity key fingerprint
36671       and then exit.
36672     - Add "pass" target for RedirectExit, to make it easier to break
36673       out of a sequence of RedirectExit rules.
36674     - Clients now generate a TLS cert too, in preparation for having
36675       them act more like real nodes.
36676     - Ship src/win32/ in the tarball, so people can use it to build.
36677     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
36678       is broken.
36679     - New "router-status" line in directory, to better bind each verified
36680       nickname to its identity key.
36681     - Deprecate unofficial config option abbreviations, and abbreviations
36682       not on the command line.
36683     - Add a pure-C tor-resolve implementation.
36684     - Use getrlimit and friends to ensure we can reach MaxConn (currently
36685       1024) file descriptors.
36687   o Code security improvements, inspired by Ilja:
36688     - Replace sprintf with snprintf. (I think they were all safe, but
36689       hey.)
36690     - Replace strcpy/strncpy with strlcpy in more places.
36691     - Avoid strcat; use snprintf or strlcat instead.
36692     - snprintf wrapper with consistent (though not C99) overflow behavior.
36695 Changes in version 0.0.9pre4 - 2004-10-17
36696   o Bugfixes on 0.0.9pre3:
36697     - If the server doesn't specify an exit policy, use the real default
36698       exit policy, not reject *:*.
36699     - Ignore fascistfirewall when uploading/downloading hidden service
36700       descriptors, since we go through Tor for those; and when using
36701       an HttpProxy, since we assume it can reach them all.
36702     - When looking for an authoritative dirserver, use only the ones
36703       configured at boot. Don't bother looking in the directory.
36704     - The rest of the fix for get_default_conf_file() on older win32.
36705     - Make 'Routerfile' config option obsolete.
36707   o Features:
36708     - New 'MyFamily nick1,...' config option for a server to
36709       specify other servers that shouldn't be used in the same circuit
36710       with it. Only believed if nick1 also specifies us.
36711     - New 'NodeFamily nick1,nick2,...' config option for a client to
36712       specify nodes that it doesn't want to use in the same circuit.
36713     - New 'Redirectexit pattern address:port' config option for a
36714       server to redirect exit connections, e.g. to a local squid.
36717 Changes in version 0.0.9pre3 - 2004-10-13
36718   o Bugfixes on 0.0.8.1:
36719     - Better torrc example lines for dirbindaddress and orbindaddress.
36720     - Improved bounds checking on parsed ints (e.g. config options and
36721       the ones we find in directories.)
36722     - Better handling of size_t vs int, so we're more robust on 64
36723       bit platforms.
36724     - Fix the rest of the bug where a newly started OR would appear
36725       as unverified even after we've added his fingerprint and hupped
36726       the dirserver.
36727     - Fix a bug from 0.0.7: when read() failed on a stream, we would
36728       close it without sending back an end. So 'connection refused'
36729       would simply be ignored and the user would get no response.
36731   o Bugfixes on 0.0.9pre2:
36732     - Serving the cached-on-disk directory to people is bad. We now
36733       provide no directory until we've fetched a fresh one.
36734     - Workaround for bug on windows where cached-directories get crlf
36735       corruption.
36736     - Make get_default_conf_file() work on older windows too.
36737     - If we write a *:* exit policy line in the descriptor, don't write
36738       any more exit policy lines.
36740   o Features:
36741     - Use only 0.0.9pre1 and later servers for resolve cells.
36742     - Make the dirservers file obsolete.
36743       - Include a dir-signing-key token in directories to tell the
36744         parsing entity which key is being used to sign.
36745       - Remove the built-in bulky default dirservers string.
36746       - New config option "Dirserver %s:%d [fingerprint]", which can be
36747         repeated as many times as needed. If no dirservers specified,
36748         default to moria1,moria2,tor26.
36749     - Make moria2 advertise a dirport of 80, so people behind firewalls
36750       will be able to get a directory.
36751     - Http proxy support
36752       - Dirservers translate requests for http://%s:%d/x to /x
36753       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
36754         be routed through this host.
36755       - Clients ask for /tor/x rather than /x for new enough dirservers.
36756         This way we can one day coexist peacefully with apache.
36757       - Clients specify a "Host: %s%d" http header, to be compatible
36758         with more proxies, and so running squid on an exit node can work.
36761 Changes in version 0.0.8.1 - 2004-10-13
36762   o Bugfixes:
36763     - Fix a seg fault that can be triggered remotely for Tor
36764       clients/servers with an open dirport.
36765     - Fix a rare assert trigger, where routerinfos for entries in
36766       our cpath would expire while we're building the path.
36767     - Fix a bug in OutboundBindAddress so it (hopefully) works.
36768     - Fix a rare seg fault for people running hidden services on
36769       intermittent connections.
36770     - Fix a bug in parsing opt keywords with objects.
36771     - Fix a stale pointer assert bug when a stream detaches and
36772       reattaches.
36773     - Fix a string format vulnerability (probably not exploitable)
36774       in reporting stats locally.
36775     - Fix an assert trigger: sometimes launching circuits can fail
36776       immediately, e.g. because too many circuits have failed recently.
36777     - Fix a compile warning on 64 bit platforms.
36780 Changes in version 0.0.9pre2 - 2004-10-03
36781   o Bugfixes:
36782     - Make fetching a cached directory work for 64-bit platforms too.
36783     - Make zlib.h a required header, not an optional header.
36786 Changes in version 0.0.9pre1 - 2004-10-01
36787   o Bugfixes:
36788     - Stop using separate defaults for no-config-file and
36789       empty-config-file. Now you have to explicitly turn off SocksPort,
36790       if you don't want it open.
36791     - Fix a bug in OutboundBindAddress so it (hopefully) works.
36792     - Improve man page to mention more of the 0.0.8 features.
36793     - Fix a rare seg fault for people running hidden services on
36794       intermittent connections.
36795     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
36796       happier.
36797     - Fix more dns related bugs: send back resolve_failed and end cells
36798       more reliably when the resolve fails, rather than closing the
36799       circuit and then trying to send the cell. Also attach dummy resolve
36800       connections to a circuit *before* calling dns_resolve(), to fix
36801       a bug where cached answers would never be sent in RESOLVED cells.
36802     - When we run out of disk space, or other log writing error, don't
36803       crash. Just stop logging to that log and continue.
36804     - We were starting to daemonize before we opened our logs, so if
36805       there were any problems opening logs, we would complain to stderr,
36806       which wouldn't work, and then mysteriously exit.
36807     - Fix a rare bug where sometimes a verified OR would connect to us
36808       before he'd uploaded his descriptor, which would cause us to
36809       assign conn->nickname as though he's unverified. Now we look through
36810       the fingerprint list to see if he's there.
36811     - Fix a rare assert trigger, where routerinfos for entries in
36812       our cpath would expire while we're building the path.
36814   o Features:
36815     - Clients can ask dirservers for /dir.z to get a compressed version
36816       of the directory. Only works for servers running 0.0.9, of course.
36817     - Make clients cache directories and use them to seed their router
36818       lists at startup. This means clients have a datadir again.
36819     - Configuration infrastructure support for warning on obsolete
36820       options.
36821     - Respond to content-encoding headers by trying to uncompress as
36822       appropriate.
36823     - Reply with a deflated directory when a client asks for "dir.z".
36824       We could use allow-encodings instead, but allow-encodings isn't
36825       specified in HTTP 1.0.
36826     - Raise the max dns workers from 50 to 100.
36827     - Discourage people from setting their dirfetchpostperiod more often
36828       than once per minute.
36829     - Protect dirservers from overzealous descriptor uploading -- wait
36830       10 seconds after directory gets dirty, before regenerating.
36833 Changes in version 0.0.8 - 2004-08-25
36834   o Port it to SunOS 5.9 / Athena
36837 Changes in version 0.0.8rc2 - 2004-08-20
36838   o Make it compile on cygwin again.
36839   o When picking unverified routers, skip those with low uptime and/or
36840     low bandwidth, depending on what properties you care about.
36843 Changes in version 0.0.8rc1 - 2004-08-18
36844   o Changes from 0.0.7.3:
36845     - Bugfixes:
36846       - Fix assert triggers: if the other side returns an address 0.0.0.0,
36847         don't put it into the client dns cache.
36848       - If a begin failed due to exit policy, but we believe the IP address
36849         should have been allowed, switch that router to exitpolicy reject *:*
36850         until we get our next directory.
36851     - Features:
36852       - Clients choose nodes proportional to advertised bandwidth.
36853       - Avoid using nodes with low uptime as introduction points.
36854       - Handle servers with dynamic IP addresses: don't replace
36855         options->Address with the resolved one at startup, and
36856         detect our address right before we make a routerinfo each time.
36857       - 'FascistFirewall' option to pick dirservers and ORs on specific
36858         ports; plus 'FirewallPorts' config option to tell FascistFirewall
36859         which ports are open. (Defaults to 80,443)
36860       - Be more aggressive about trying to make circuits when the network
36861         has changed (e.g. when you unsuspend your laptop).
36862       - Check for time skew on http headers; report date in response to
36863         "GET /".
36864       - If the entrynode config line has only one node, don't pick it as
36865         an exitnode.
36866       - Add strict{entry|exit}nodes config options. If set to 1, then
36867         we refuse to build circuits that don't include the specified entry
36868         or exit nodes.
36869       - OutboundBindAddress config option, to bind to a specific
36870         IP address for outgoing connect()s.
36871       - End truncated log entries (e.g. directories) with "[truncated]".
36873   o Patches to 0.0.8preX:
36874     - Bugfixes:
36875       - Patches to compile and run on win32 again (maybe)?
36876       - Fix crash when looking for ~/.torrc with no $HOME set.
36877       - Fix a race bug in the unit tests.
36878       - Handle verified/unverified name collisions better when new
36879         routerinfo's arrive in a directory.
36880       - Sometimes routers were getting entered into the stats before
36881         we'd assigned their identity_digest. Oops.
36882       - Only pick and establish intro points after we've gotten a
36883         directory.
36884     - Features:
36885       - AllowUnverifiedNodes config option to let circuits choose no-name
36886         routers in entry,middle,exit,introduction,rendezvous positions.
36887         Allow middle and rendezvous positions by default.
36888       - Add a man page for tor-resolve.
36891 Changes in version 0.0.7.3 - 2004-08-12
36892   o Stop dnsworkers from triggering an assert failure when you
36893     ask them to resolve the host "".
36896 Changes in version 0.0.8pre3 - 2004-08-09
36897   o Changes from 0.0.7.2:
36898     - Allow multiple ORs with same nickname in routerlist -- now when
36899       people give us one identity key for a nickname, then later
36900       another, we don't constantly complain until the first expires.
36901     - Remember used bandwidth (both in and out), and publish 15-minute
36902       snapshots for the past day into our descriptor.
36903     - You can now fetch $DIRURL/running-routers to get just the
36904       running-routers line, not the whole descriptor list. (But
36905       clients don't use this yet.)
36906     - When people mistakenly use Tor as an http proxy, point them
36907       at the tor-doc.html rather than the INSTALL.
36908     - Remove our mostly unused -- and broken -- hex_encode()
36909       function. Use base16_encode() instead. (Thanks to Timo Lindfors
36910       for pointing out this bug.)
36911     - Rotate onion keys every 12 hours, not every 2 hours, so we have
36912       fewer problems with people using the wrong key.
36913     - Change the default exit policy to reject the default edonkey,
36914       kazaa, gnutella ports.
36915     - Add replace_file() to util.[ch] to handle win32's rename().
36917   o Changes from 0.0.8preX:
36918     - Fix two bugs in saving onion keys to disk when rotating, so
36919       hopefully we'll get fewer people using old onion keys.
36920     - Fix an assert error that was making SocksPolicy not work.
36921     - Be willing to expire routers that have an open dirport -- it's
36922       just the authoritative dirservers we want to not forget.
36923     - Reject tor-resolve requests for .onion addresses early, so we
36924       don't build a whole rendezvous circuit and then fail.
36925     - When you're warning a server that he's unverified, don't cry
36926       wolf unpredictably.
36927     - Fix a race condition: don't try to extend onto a connection
36928       that's still handshaking.
36929     - For servers in clique mode, require the conn to be open before
36930       you'll choose it for your path.
36931     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
36932       end relay cell, etc.
36933     - Measure bandwidth capacity over the last 24 hours, not just 12
36934     - Bugfix: authoritative dirservers were making and signing a new
36935       directory for each client, rather than reusing the cached one.
36938 Changes in version 0.0.8pre2 - 2004-08-04
36939   o Changes from 0.0.7.2:
36940     - Security fixes:
36941       - Check directory signature _before_ you decide whether you're
36942         you're running an obsolete version and should exit.
36943       - Check directory signature _before_ you parse the running-routers
36944         list to decide who's running or verified.
36945     - Bugfixes and features:
36946       - Check return value of fclose while writing to disk, so we don't
36947         end up with broken files when servers run out of disk space.
36948       - Log a warning if the user uses an unsafe socks variant, so people
36949         are more likely to learn about privoxy or socat.
36950       - Dirservers now include RFC1123-style dates in the HTTP headers,
36951         which one day we will use to better detect clock skew.
36953   o Changes from 0.0.8pre1:
36954     - Make it compile without warnings again on win32.
36955     - Log a warning if you're running an unverified server, to let you
36956       know you might want to get it verified.
36957     - Only pick a default nickname if you plan to be a server.
36960 Changes in version 0.0.8pre1 - 2004-07-23
36961   o Bugfixes:
36962     - Made our unit tests compile again on OpenBSD 3.5, and tor
36963       itself compile again on OpenBSD on a sparc64.
36964     - We were neglecting milliseconds when logging on win32, so
36965       everything appeared to happen at the beginning of each second.
36967   o Protocol changes:
36968     - 'Extend' relay cell payloads now include the digest of the
36969       intended next hop's identity key. Now we can verify that we're
36970       extending to the right router, and also extend to routers we
36971       hadn't heard of before.
36973   o Features:
36974     - Tor nodes can now act as relays (with an advertised ORPort)
36975       without being manually verified by the dirserver operators.
36976       - Uploaded descriptors of unverified routers are now accepted
36977         by the dirservers, and included in the directory.
36978       - Verified routers are listed by nickname in the running-routers
36979         list; unverified routers are listed as "$<fingerprint>".
36980       - We now use hash-of-identity-key in most places rather than
36981         nickname or addr:port, for improved security/flexibility.
36982       - To avoid Sybil attacks, paths still use only verified servers.
36983         But now we have a chance to play around with hybrid approaches.
36984       - Nodes track bandwidth usage to estimate capacity (not used yet).
36985       - ClientOnly option for nodes that never want to become servers.
36986     - Directory caching.
36987       - "AuthoritativeDir 1" option for the official dirservers.
36988       - Now other nodes (clients and servers) will cache the latest
36989         directory they've pulled down.
36990       - They can enable their DirPort to serve it to others.
36991       - Clients will pull down a directory from any node with an open
36992         DirPort, and check the signature/timestamp correctly.
36993       - Authoritative dirservers now fetch directories from other
36994         authdirservers, to stay better synced.
36995       - Running-routers list tells who's down also, along with noting
36996         if they're verified (listed by nickname) or unverified (listed
36997         by hash-of-key).
36998       - Allow dirservers to serve running-router list separately.
36999         This isn't used yet.
37000     - ORs connect-on-demand to other ORs
37001       - If you get an extend cell to an OR you're not connected to,
37002         connect, handshake, and forward the create cell.
37003       - The authoritative dirservers stay connected to everybody,
37004         and everybody stays connected to 0.0.7 servers, but otherwise
37005         clients/servers expire unused connections after 5 minutes.
37006     - When servers get a sigint, they delay 30 seconds (refusing new
37007       connections) then exit. A second sigint causes immediate exit.
37008     - File and name management:
37009       - Look for .torrc if no CONFDIR "torrc" is found.
37010       - If no datadir is defined, then choose, make, and secure ~/.tor
37011         as datadir.
37012       - If torrc not found, exitpolicy reject *:*.
37013       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
37014       - If no nickname is defined, derive default from hostname.
37015       - Rename secret key files, e.g. identity.key -> secret_id_key,
37016         to discourage people from mailing their identity key to tor-ops.
37017     - Refuse to build a circuit before the directory has arrived --
37018       it won't work anyway, since you won't know the right onion keys
37019       to use.
37020     - Try other dirservers immediately if the one you try is down. This
37021       should tolerate down dirservers better now.
37022     - Parse tor version numbers so we can do an is-newer-than check
37023       rather than an is-in-the-list check.
37024     - New socks command 'resolve', to let us shim gethostbyname()
37025       locally.
37026       - A 'tor_resolve' script to access the socks resolve functionality.
37027       - A new socks-extensions.txt doc file to describe our
37028         interpretation and extensions to the socks protocols.
37029     - Add a ContactInfo option, which gets published in descriptor.
37030     - Publish OR uptime in descriptor (and thus in directory) too.
37031     - Write tor version at the top of each log file
37032     - New docs in the tarball:
37033       - tor-doc.html.
37034       - Document that you should proxy your SSL traffic too.
37037 Changes in version 0.0.7.2 - 2004-07-07
37038   o A better fix for the 0.0.0.0 problem, that will hopefully
37039     eliminate the remaining related assertion failures.
37042 Changes in version 0.0.7.1 - 2004-07-04
37043   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
37044     since internally we use 0.0.0.0 to signify "not yet resolved".
37047 Changes in version 0.0.7 - 2004-06-07
37048   o Updated the man page to reflect the new features.
37051 Changes in version 0.0.7rc2 - 2004-06-06
37052   o Changes from 0.0.7rc1:
37053     - Make it build on Win32 again.
37054   o Changes from 0.0.6.2:
37055     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
37056       settings too.
37059 Changes in version 0.0.7rc1 - 2004-06-02
37060   o Bugfixes:
37061     - On sighup, we were adding another log without removing the first
37062       one. So log messages would get duplicated n times for n sighups.
37063     - Several cases of using a connection after we'd freed it. The
37064       problem was that connections that are pending resolve are in both
37065       the pending_resolve tree, and also the circuit's resolving_streams
37066       list. When you want to remove one, you must remove it from both.
37067     - Fix a double-mark-for-close where an end cell arrived for a
37068       resolving stream, and then the resolve failed.
37069     - Check directory signatures based on name of signer, not on whom
37070       we got the directory from. This will let us cache directories more
37071       easily.
37072   o Features:
37073     - Crank up some of our constants to handle more users.
37076 Changes in version 0.0.7pre1 - 2004-06-02
37077   o Fixes for crashes and other obnoxious bugs:
37078     - Fix an epipe bug: sometimes when directory connections failed
37079       to connect, we would give them a chance to flush before closing
37080       them.
37081     - When we detached from a circuit because of resolvefailed, we
37082       would immediately try the same circuit twice more, and then
37083       give up on the resolve thinking we'd tried three different
37084       exit nodes.
37085     - Limit the number of intro circuits we'll attempt to build for a
37086       hidden service per 15-minute period.
37087     - Check recommended-software string *early*, before actually parsing
37088       the directory. Thus we can detect an obsolete version and exit,
37089       even if the new directory format doesn't parse.
37090   o Fixes for security bugs:
37091     - Remember which nodes are dirservers when you startup, and if a
37092       random OR enables his dirport, don't automatically assume he's
37093       a trusted dirserver.
37094   o Other bugfixes:
37095     - Directory connections were asking the wrong poll socket to
37096       start writing, and not asking themselves to start writing.
37097     - When we detached from a circuit because we sent a begin but
37098       didn't get a connected, we would use it again the first time;
37099       but after that we would correctly switch to a different one.
37100     - Stop warning when the first onion decrypt attempt fails; they
37101       will sometimes legitimately fail now that we rotate keys.
37102     - Override unaligned-access-ok check when $host_cpu is ia64 or
37103       arm. Apparently they allow it but the kernel whines.
37104     - Dirservers try to reconnect periodically too, in case connections
37105       have failed.
37106     - Fix some memory leaks in directory servers.
37107     - Allow backslash in Win32 filenames.
37108     - Made Tor build complain-free on FreeBSD, hopefully without
37109       breaking other BSD builds. We'll see.
37110   o Features:
37111     - Doxygen markup on all functions and global variables.
37112     - Make directory functions update routerlist, not replace it. So
37113       now directory disagreements are not so critical a problem.
37114     - Remove the upper limit on number of descriptors in a dirserver's
37115       directory (not that we were anywhere close).
37116     - Allow multiple logfiles at different severity ranges.
37117     - Allow *BindAddress to specify ":port" rather than setting *Port
37118       separately. Allow multiple instances of each BindAddress config
37119       option, so you can bind to multiple interfaces if you want.
37120     - Allow multiple exit policy lines, which are processed in order.
37121       Now we don't need that huge line with all the commas in it.
37122     - Enable accept/reject policies on SOCKS connections, so you can bind
37123       to 0.0.0.0 but still control who can use your OP.
37126 Changes in version 0.0.6.2 - 2004-05-16
37127   o Our integrity-checking digest was checking only the most recent cell,
37128     not the previous cells like we'd thought.
37129     Thanks to Stefan Mark for finding the flaw!
37132 Changes in version 0.0.6.1 - 2004-05-06
37133   o Fix two bugs in our AES counter-mode implementation (this affected
37134     onion-level stream encryption, but not TLS-level). It turns
37135     out we were doing something much more akin to a 16-character
37136     polyalphabetic cipher. Oops.
37137     Thanks to Stefan Mark for finding the flaw!
37138   o Retire moria3 as a directory server, and add tor26 as a directory
37139     server.
37142 Changes in version 0.0.6 - 2004-05-02
37143   [version bump only]
37146 Changes in version 0.0.6rc4 - 2004-05-01
37147   o Update the built-in dirservers list to use the new directory format
37148   o Fix a rare seg fault: if a node offering a hidden service attempts
37149     to build a circuit to Alice's rendezvous point and fails before it
37150     reaches the last hop, it retries with a different circuit, but
37151     then dies.
37152   o Handle windows socket errors correctly.
37155 Changes in version 0.0.6rc3 - 2004-04-28
37156   o Don't expire non-general excess circuits (if we had enough
37157     circuits open, we were expiring rendezvous circuits -- even
37158     when they had a stream attached. oops.)
37159   o Fetch randomness from /dev/urandom better (not via fopen/fread)
37160   o Better debugging for tls errors
37161   o Some versions of openssl have an SSL_pending function that erroneously
37162     returns bytes when there is a non-application record pending.
37163   o Set Content-Type on the directory and hidserv descriptor.
37164   o Remove IVs from cipher code, since AES-ctr has none.
37165   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
37166     o We were using an array of length zero in a few places.
37167     o win32's gethostbyname can't resolve an IP to an IP.
37168     o win32's close can't close a socket.
37171 Changes in version 0.0.6rc2 - 2004-04-26
37172   o Fix a bug where we were closing tls connections intermittently.
37173     It turns out openssl keeps its errors around -- so if an error
37174     happens, and you don't ask about it, and then another openssl
37175     operation happens and succeeds, and you ask if there was an error,
37176     it tells you about the first error. Fun fun.
37177   o Fix a bug that's been lurking since 27 may 03 (!)
37178     When passing back a destroy cell, we would use the wrong circ id.
37179     'Mostly harmless', but still worth fixing.
37180   o Since we don't support truncateds much, don't bother sending them;
37181     just close the circ.
37182   o check for <machine/limits.h> so we build on NetBSD again (I hope).
37183   o don't crash if a conn that sent a begin has suddenly lost its circuit
37184     (this was quite rare).
37187 Changes in version 0.0.6rc1 - 2004-04-25
37188   o We now rotate link (tls context) keys and onion keys.
37189   o CREATE cells now include oaep padding, so you can tell
37190     if you decrypted them correctly.
37191   o Add bandwidthburst to server descriptor.
37192   o Directories now say which dirserver signed them.
37193   o Use a tor_assert macro that logs failed assertions too.
37196 Changes in version 0.0.6pre5 - 2004-04-18
37197   o changes from 0.0.6pre4:
37198     - make tor build on broken freebsd 5.2 installs
37199     - fix a failed assert when you try an intro point, get a nack, and try
37200       a second one and it works.
37201     - when alice uses a port that the hidden service doesn't accept,
37202       it now sends back an end cell (denied by exit policy). otherwise
37203       alice would just have to wait to time out.
37204     - fix another rare bug: when we had tried all the intro
37205       points for a hidden service, we fetched the descriptor
37206       again, but we left our introcirc thinking it had already
37207       sent an intro, so it kept waiting for a response...
37208     - bugfix: when you sleep your hidden-service laptop, as soon
37209       as it wakes up it tries to upload a service descriptor, but
37210       socketpair fails for some reason (localhost not up yet?).
37211       now we simply give up on that upload, and we'll try again later.
37212       i'd still like to find the bug though.
37213     - if an intro circ waiting for an ack dies before getting one, then
37214       count it as a nack
37215     - we were reusing stale service descriptors and refetching usable
37216       ones. oops.
37219 Changes in version 0.0.6pre4 - 2004-04-14
37220   o changes from 0.0.6pre3:
37221     - when bob fails to connect to the rendezvous point, and his
37222       circ didn't fail because of the rendezvous point itself, then
37223       he retries a couple of times
37224     - we expire introduction and rendezvous circs more thoroughly
37225       (sometimes they were hanging around forever)
37226     - we expire unattached rendezvous streams that have been around
37227       too long (they were sticking around forever).
37228     - fix a measly fencepost error that was crashing everybody with
37229       a strict glibc.
37232 Changes in version 0.0.6pre3 - 2004-04-14
37233   o changes from 0.0.6pre2:
37234     - make hup work again
37235     - fix some memory leaks for dirservers
37236     - allow more skew in rendezvous descriptor timestamps, to help
37237       handle people like blanu who don't know what time it is
37238     - normal circs are 3 hops, but some rend/intro circs are 4, if
37239       the initiator doesn't get to choose the last hop
37240     - send acks for introductions, so alice can know whether to try
37241       again
37242     - bob publishes intro points more correctly
37243   o changes from 0.0.5:
37244     - fix an assert trigger that's been plaguing us since the days
37245       of 0.0.2prexx (thanks weasel!)
37246     - retry stream correctly when we fail to connect because of
37247       exit-policy-reject (should try another) or can't-resolve-address
37248       (also should try another, because dns on random internet servers
37249       is flaky).
37250     - when we hup a dirserver and we've *removed* a server from the
37251       approved-routers list, now we remove that server from the
37252       in-memory directories too
37255 Changes in version 0.0.6pre2 - 2004-04-08
37256   o We fixed our base32 implementation. Now it works on all architectures.
37259 Changes in version 0.0.6pre1 - 2004-04-08
37260   o Features:
37261     - Hidden services and rendezvous points are implemented. Go to
37262       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
37263       hidden services. (This only works via a socks4a proxy such as
37264       Privoxy, and currently it's quite slow.)
37267 Changes in version 0.0.5 - 2004-03-30
37268   [version bump only]
37271 Changes in version 0.0.5rc3 - 2004-03-29
37272   o Install torrc as torrc.sample -- we no longer clobber your
37273     torrc. (Woo!)
37274   o Re-enable recommendedversion checking (we broke it in rc2, oops)
37275   o Add in a 'notice' log level for things the operator should hear
37276     but that aren't warnings
37279 Changes in version 0.0.5rc2 - 2004-03-29
37280   o Hold socks connection open until reply is flushed (if possible)
37281   o Make exit nodes resolve IPs to IPs immediately, rather than asking
37282     the dns farm to do it.
37283   o Fix c99 aliasing warnings in rephist.c
37284   o Don't include server descriptors that are older than 24 hours in the
37285     directory.
37286   o Give socks 'reject' replies their whole 15s to attempt to flush,
37287     rather than seeing the 60s timeout and assuming the flush had failed.
37288   o Clean automake droppings from the cvs repository
37291 Changes in version 0.0.5rc1 - 2004-03-28
37292   o Fix mangled-state bug in directory fetching (was causing sigpipes).
37293   o Only build circuits after we've fetched the directory: clients were
37294     using only the directory servers before they'd fetched a directory.
37295     This also means longer startup time; so it goes.
37296   o Fix an assert trigger where an OP would fail to handshake, and we'd
37297     expect it to have a nickname.
37298   o Work around a tsocks bug: do a socks reject when AP connection dies
37299     early, else tsocks goes into an infinite loop.
37302 Changes in version 0.0.4 - 2004-03-26
37303   o When connecting to a dirserver or OR and the network is down,
37304     we would crash.
37307 Changes in version 0.0.3 - 2004-03-26
37308   o Warn and fail if server chose a nickname with illegal characters
37309   o Port to Solaris and Sparc:
37310     - include missing header fcntl.h
37311     - have autoconf find -lsocket -lnsl automatically
37312     - deal with hardware word alignment
37313     - make uname() work (solaris has a different return convention)
37314     - switch from using signal() to sigaction()
37315   o Preliminary work on reputation system:
37316     - Keep statistics on success/fail of connect attempts; they're published
37317       by kill -USR1 currently.
37318     - Add a RunTesting option to try to learn link state by creating test
37319       circuits, even when SocksPort is off.
37320     - Remove unused open circuits when there are too many.
37323 Changes in version 0.0.2 - 2004-03-19
37324     - Include strlcpy and strlcat for safer string ops
37325     - define INADDR_NONE so we compile (but still not run) on solaris
37328 Changes in version 0.0.2pre27 - 2004-03-14
37329   o Bugfixes:
37330     - Allow internal tor networks (we were rejecting internal IPs,
37331       now we allow them if they're set explicitly).
37332     - And fix a few endian issues.
37335 Changes in version 0.0.2pre26 - 2004-03-14
37336   o New features:
37337     - If a stream times out after 15s without a connected cell, don't
37338       try that circuit again: try a new one.
37339     - Retry streams at most 4 times. Then give up.
37340     - When a dirserver gets a descriptor from an unknown router, it
37341       logs its fingerprint (so the dirserver operator can choose to
37342       accept it even without mail from the server operator).
37343     - Inform unapproved servers when we reject their descriptors.
37344     - Make tor build on Windows again. It works as a client, who knows
37345       about as a server.
37346     - Clearer instructions in the torrc for how to set up a server.
37347     - Be more efficient about reading fd's when our global token bucket
37348       (used for rate limiting) becomes empty.
37349   o Bugfixes:
37350     - Stop asserting that computers always go forward in time. It's
37351       simply not true.
37352     - When we sent a cell (e.g. destroy) and then marked an OR connection
37353       expired, we might close it before finishing a flush if the other
37354       side isn't reading right then.
37355     - Don't allow dirservers to start if they haven't defined
37356       RecommendedVersions
37357     - We were caching transient dns failures. Oops.
37358     - Prevent servers from publishing an internal IP as their address.
37359     - Address a strcat vulnerability in circuit.c
37362 Changes in version 0.0.2pre25 - 2004-03-04
37363   o New features:
37364     - Put the OR's IP in its router descriptor, not its fqdn. That way
37365       we'll stop being stalled by gethostbyname for nodes with flaky dns,
37366       e.g. poblano.
37367   o Bugfixes:
37368     - If the user typed in an address that didn't resolve, the server
37369       crashed.
37372 Changes in version 0.0.2pre24 - 2004-03-03
37373   o Bugfixes:
37374     - Fix an assertion failure in dns.c, where we were trying to dequeue
37375       a pending dns resolve even if it wasn't pending
37376     - Fix a spurious socks5 warning about still trying to write after the
37377       connection is finished.
37378     - Hold certain marked_for_close connections open until they're finished
37379       flushing, rather than losing bytes by closing them too early.
37380     - Correctly report the reason for ending a stream
37381     - Remove some duplicate calls to connection_mark_for_close
37382     - Put switch_id and start_daemon earlier in the boot sequence, so it
37383       will actually try to chdir() to options.DataDirectory
37384     - Make 'make test' exit(1) if a test fails; fix some unit tests
37385     - Make tor fail when you use a config option it doesn't know about,
37386       rather than warn and continue.
37387     - Make --version work
37388     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
37391 Changes in version 0.0.2pre23 - 2004-02-29
37392   o New features:
37393     - Print a statement when the first circ is finished, so the user
37394       knows it's working.
37395     - If a relay cell is unrecognized at the end of the circuit,
37396       send back a destroy. (So attacks to mutate cells are more
37397       clearly thwarted.)
37398     - New config option 'excludenodes' to avoid certain nodes for circuits.
37399     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
37400       so you can collect coredumps there.
37401  o Bugfixes:
37402     - Fix a bug in tls flushing where sometimes data got wedged and
37403       didn't flush until more data got sent. Hopefully this bug was
37404       a big factor in the random delays we were seeing.
37405     - Make 'connected' cells include the resolved IP, so the client
37406       dns cache actually gets populated.
37407     - Disallow changing from ORPort=0 to ORPort>0 on hup.
37408     - When we time-out on a stream and detach from the circuit, send an
37409       end cell down it first.
37410     - Only warn about an unknown router (in exitnodes, entrynodes,
37411       excludenodes) after we've fetched a directory.
37414 Changes in version 0.0.2pre22 - 2004-02-26
37415   o New features:
37416     - Servers publish less revealing uname information in descriptors.
37417     - More memory tracking and assertions, to crash more usefully when
37418       errors happen.
37419     - If the default torrc isn't there, just use some default defaults.
37420       Plus provide an internal dirservers file if they don't have one.
37421     - When the user tries to use Tor as an http proxy, give them an http
37422       501 failure explaining that we're a socks proxy.
37423     - Dump a new router.desc on hup, to help confused people who change
37424       their exit policies and then wonder why router.desc doesn't reflect
37425       it.
37426     - Clean up the generic tor.sh init script that we ship with.
37427   o Bugfixes:
37428     - If the exit stream is pending on the resolve, and a destroy arrives,
37429       then the stream wasn't getting removed from the pending list. I
37430       think this was the one causing recent server crashes.
37431     - Use a more robust poll on OSX 10.3, since their poll is flaky.
37432     - When it couldn't resolve any dirservers, it was useless from then on.
37433       Now it reloads the RouterFile (or default dirservers) if it has no
37434       dirservers.
37435     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
37436       many users don't even *have* a /usr/local/sbin/.
37439 Changes in version 0.0.2pre21 - 2004-02-18
37440   o New features:
37441     - There's a ChangeLog file that actually reflects the changelog.
37442     - There's a 'torify' wrapper script, with an accompanying
37443       tor-tsocks.conf, that simplifies the process of using tsocks for
37444       tor. It even has a man page.
37445     - The tor binary gets installed to sbin rather than bin now.
37446     - Retry streams where the connected cell hasn't arrived in 15 seconds
37447     - Clean up exit policy handling -- get the default out of the torrc,
37448       so we can update it without forcing each server operator to fix
37449       his/her torrc.
37450     - Allow imaps and pop3s in default exit policy
37451   o Bugfixes:
37452     - Prevent picking middleman nodes as the last node in the circuit
37455 Changes in version 0.0.2pre20 - 2004-01-30
37456   o New features:
37457     - We now have a deb package, and it's in debian unstable. Go to
37458       it, apt-getters. :)
37459     - I've split the TotalBandwidth option into BandwidthRate (how many
37460       bytes per second you want to allow, long-term) and
37461       BandwidthBurst (how many bytes you will allow at once before the cap
37462       kicks in). This better token bucket approach lets you, say, set
37463       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
37464       performance while not exceeding your monthly bandwidth quota.
37465     - Push out a tls record's worth of data once you've got it, rather
37466       than waiting until you've read everything waiting to be read. This
37467       may improve performance by pipelining better. We'll see.
37468     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
37469       from failed circuits (if they haven't been connected yet) and attach
37470       to new ones.
37471     - Expire old streams that haven't managed to connect. Some day we'll
37472       have them reattach to new circuits instead.
37474   o Bugfixes:
37475     - Fix several memory leaks that were causing servers to become bloated
37476       after a while.
37477     - Fix a few very rare assert triggers. A few more remain.
37478     - Setuid to User _before_ complaining about running as root.
37481 Changes in version 0.0.2pre19 - 2004-01-07
37482   o Bugfixes:
37483     - Fix deadlock condition in dns farm. We were telling a child to die by
37484       closing the parent's file descriptor to him. But newer children were
37485       inheriting the open file descriptor from the parent, and since they
37486       weren't closing it, the socket never closed, so the child never read
37487       eof, so he never knew to exit. Similarly, dns workers were holding
37488       open other sockets, leading to all sorts of chaos.
37489     - New cleaner daemon() code for forking and backgrounding.
37490     - If you log to a file, it now prints an entry at the top of the
37491       logfile so you know it's working.
37492     - The onionskin challenge length was 30 bytes longer than necessary.
37493     - Started to patch up the spec so it's not quite so out of date.
37496 Changes in version 0.0.2pre18 - 2004-01-02
37497   o Bugfixes:
37498     - Fix endian issues with the 'integrity' field in the relay header.
37499     - Fix a potential bug where connections in state
37500       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
37503 Changes in version 0.0.2pre17 - 2003-12-30
37504   o Bugfixes:
37505     - Made --debuglogfile (or any second log file, actually) work.
37506     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
37507       adversary could force us into an infinite loop.
37509   o Features:
37510     - Each onionskin handshake now includes a hash of the computed key,
37511       to prove the server's identity and help perfect forward secrecy.
37512     - Changed cell size from 256 to 512 bytes (working toward compatibility
37513       with MorphMix).
37514     - Changed cell length to 2 bytes, and moved it to the relay header.
37515     - Implemented end-to-end integrity checking for the payloads of
37516       relay cells.
37517     - Separated streamid from 'recognized' (otherwise circuits will get
37518       messed up when we try to have streams exit from the middle). We
37519       use the integrity-checking to confirm that a cell is addressed to
37520       this hop.
37521     - Randomize the initial circid and streamid values, so an adversary who
37522       breaks into a node can't learn how many circuits or streams have
37523       been made so far.
37526 Changes in version 0.0.2pre16 - 2003-12-14
37527   o Bugfixes:
37528     - Fixed a bug that made HUP trigger an assert
37529     - Fixed a bug where a circuit that immediately failed wasn't being
37530       counted as a failed circuit in counting retries.
37532   o Features:
37533     - Now we close the circuit when we get a truncated cell: otherwise we're
37534       open to an anonymity attack where a bad node in the path truncates
37535       the circuit and then we open streams at him.
37536     - Add port ranges to exit policies
37537     - Add a conservative default exit policy
37538     - Warn if you're running tor as root
37539     - on HUP, retry OR connections and close/rebind listeners
37540     - options.EntryNodes: try these nodes first when picking the first node
37541     - options.ExitNodes: if your best choices happen to include any of
37542       your preferred exit nodes, you choose among just those preferred
37543       exit nodes.
37544     - options.ExcludedNodes: nodes that are never picked in path building
37547 Changes in version 0.0.2pre15 - 2003-12-03
37548   o Robustness and bugfixes:
37549     - Sometimes clients would cache incorrect DNS resolves, which would
37550       really screw things up.
37551     - An OP that goes offline would slowly leak all its sockets and stop
37552       working.
37553     - A wide variety of bugfixes in exit node selection, exit policy
37554       handling, and processing pending streams when a new circuit is
37555       established.
37556     - Pick nodes for a path only from those the directory says are up
37557     - Choose randomly from all running dirservers, not always the first one
37558     - Increase allowed http header size for directory fetch.
37559     - Stop writing to stderr (if we're daemonized it will be closed).
37560     - Enable -g always, so cores will be more useful to me.
37561     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
37563   o Documentation:
37564     - Wrote a man page. It lists commonly used options.
37566   o Configuration:
37567     - Change default loglevel to warn.
37568     - Make PidFile default to null rather than littering in your CWD.
37569     - OnionRouter config option is now obsolete. Instead it just checks
37570       ORPort>0.
37571     - Moved to a single unified torrc file for both clients and servers.
37574 Changes in version 0.0.2pre14 - 2003-11-29
37575   o Robustness and bugfixes:
37576     - Force the admin to make the DataDirectory himself
37577       - to get ownership/permissions right
37578       - so clients no longer make a DataDirectory and then never use it
37579     - fix bug where a client who was offline for 45 minutes would never
37580       pull down a directory again
37581     - fix (or at least hide really well) the dns assert bug that was
37582       causing server crashes
37583     - warnings and improved robustness wrt clockskew for certs
37584     - use the native daemon(3) to daemonize, when available
37585     - exit if bind() fails
37586     - exit if neither socksport nor orport is defined
37587     - include our own tor_timegm (Win32 doesn't have its own)
37588     - bugfix for win32 with lots of connections
37589     - fix minor bias in PRNG
37590     - make dirserver more robust to corrupt cached directory
37592   o Documentation:
37593     - Wrote the design document (woo)
37595   o Circuit building and exit policies:
37596     - Circuits no longer try to use nodes that the directory has told them
37597       are down.
37598     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
37599       bitcounts (18.0.0.0/8).
37600     - Make AP connections standby for a circuit if no suitable circuit
37601       exists, rather than failing
37602     - Circuits choose exit node based on addr/port, exit policies, and
37603       which AP connections are standing by
37604     - Bump min pathlen from 2 to 3
37605     - Relay end cells have a payload to describe why the stream ended.
37606     - If the stream failed because of exit policy, try again with a new
37607       circuit.
37608     - Clients have a dns cache to remember resolved addresses.
37609     - Notice more quickly when we have no working circuits
37611   o Configuration:
37612     - APPort is now called SocksPort
37613     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
37614       where to bind
37615     - RecommendedVersions is now a config variable rather than
37616       hardcoded (for dirservers)
37617     - Reloads config on HUP
37618     - Usage info on -h or --help
37619     - If you set User and Group config vars, it'll setu/gid to them.
37622 Changes in version 0.0.2pre13 - 2003-10-19
37623   o General stability:
37624     - SSL_write no longer fails when it returns WANTWRITE and the number
37625       of bytes in the buf has changed by the next SSL_write call.
37626     - Fix segfault fetching directory when network is down
37627     - Fix a variety of minor memory leaks
37628     - Dirservers reload the fingerprints file on HUP, so I don't have
37629       to take down the network when I approve a new router
37630     - Default server config file has explicit Address line to specify fqdn
37632   o Buffers:
37633     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
37634     - Make listener connections not ever alloc bufs
37636   o Autoconf improvements:
37637     - don't clobber an external CFLAGS in ./configure
37638     - Make install now works
37639     - create var/lib/tor on make install
37640     - autocreate a tor.sh initscript to help distribs
37641     - autocreate the torrc and sample-server-torrc with correct paths
37643   o Log files and Daemonizing now work:
37644     - If --DebugLogFile is specified, log to it at -l debug
37645     - If --LogFile is specified, use it instead of commandline
37646     - If --RunAsDaemon is set, tor forks and backgrounds on startup