Merge branch 'maint-0.4.5' into release-0.4.5
[tor.git] / ChangeLog
blob4cec8341eba13c551ce8bff0c3d9ce9ec78a122c
1 Changes in version 0.4.5.11 - 2021-10-26
2   The major change in this version is that v2 onion services are now
3   disabled at the client, service, and relay: any Tor nodes running this
4   version and onward will stop supporting v2 onion services. This is the
5   last step in the long deprecation process of v2 onion services.
6   Everyone running an earlier version, whether as a client, a relay, or
7   an onion service, should upgrade to Tor 0.3.5.17, 0.4.5.11,
8   or 0.4.6.8.
10   o Major feature (onion service v2):
11     - See https://blog.torproject.org/v2-deprecation-timeline for
12       details on how to transition from v2 to v3.
13     - The control port commands HSFETCH and HSPOST no longer allow
14       version 2, and it is no longer possible to create a v2 service
15       with ADD_ONION.
16     - Tor no longer allows creating v2 services, or connecting as a
17       client to a v2 service. Relays will decline to be a v2 HSDir or
18       introduction point. This effectively disables onion service
19       version 2 Tor-wide. Closes ticket 40476.
21   o Minor features (bridge, backport from 0.4.6.8):
22     - We now announce the URL to Tor's new bridge status at
23       https://bridges.torproject.org/ when Tor is configured to run as a
24       bridge relay. Closes ticket 30477.
26   o Minor features (fallbackdir):
27     - Regenerate fallback directories for October 2021. Closes
28       ticket 40493.
30   o Minor features (logging, diagnostic, backport from 0.4.6.5):
31     - Log decompression failures at a higher severity level, since they
32       can help provide missing context for other warning messages. We
33       rate-limit these messages, to avoid flooding the logs if they
34       begin to occur frequently. Closes ticket 40175.
36   o Minor features (testing, backport from 0.4.6.8):
37     - On a testing network, relays can now use the
38       TestingMinTimeToReportBandwidth option to change the smallest
39       amount of time over which they're willing to report their observed
40       maximum bandwidth. Previously, this was fixed at 1 day. For
41       safety, values under 2 hours are only supported on testing
42       networks. Part of a fix for ticket 40337.
43     - Relays on testing networks no longer rate-limit how frequently
44       they are willing to report new bandwidth measurements. Part of a
45       fix for ticket 40337.
46     - Relays on testing networks now report their observed bandwidths
47       immediately from startup. Previously, they waited until they had
48       been running for a full day. Closes ticket 40337.
50   o Minor bugfix (CI, onion service):
51     - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500;
52       bugfix on 0.3.2.1-alpha.
54   o Minor bugfix (onion service, backport from 0.4.6.8):
55     - Do not flag an HSDir as non-running in case the descriptor upload
56       or fetch fails. An onion service closes pending directory
57       connections before uploading a new descriptor which can thus lead
58       to wrongly flagging many relays and thus affecting circuit building
59       path selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha.
61   o Minor bugfixes (compatibility, backport from 0.4.6.8):
62     - Fix compatibility with the most recent Libevent versions, which no
63       longer have an evdns_set_random_bytes() function. Because this
64       function has been a no-op since Libevent 2.0.4-alpha, it is safe
65       for us to just stop calling it. Fixes bug 40371; bugfix
66       on 0.2.1.7-alpha.
68   o Minor bugfixes (consensus handling, backport from 0.4.6.4-rc):
69     - Avoid a set of bugs that could be caused by inconsistently
70       preferring an out-of-date consensus stored in a stale directory
71       cache over a more recent one stored on disk as the latest
72       consensus. Fixes bug 40375; bugfix on 0.3.1.1-alpha.
74   o Minor bugfixes (onion service, TROVE-2021-008, backport from 0.4.6.8):
75     - Only log v2 access attempts once total, in order to not pollute
76       the logs with warnings and to avoid recording the times on disk
77       when v2 access was attempted. Note that the onion address was
78       _never_ logged. This counts as a Low-severity security issue.
79       Fixes bug 40474; bugfix on 0.4.5.8.
82 Changes in version 0.4.5.10 - 2021-08-16
83   This version fixes several bugs from earlier versions of Tor,
84   including one that could lead to a denial-of-service attack. Everyone
85   running an earlier version, whether as a client, a relay, or an onion
86   service, should upgrade to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7.
88   o Major bugfixes (cryptography, security):
89     - Resolve an assertion failure caused by a behavior mismatch between
90       our batch-signature verification code and our single-signature
91       verification code. This assertion failure could be triggered
92       remotely, leading to a denial of service attack. We fix this issue
93       by disabling batch verification. Fixes bug 40078; bugfix on
94       0.2.6.1-alpha. This issue is also tracked as TROVE-2021-007 and
95       CVE-2021-38385. Found by Henry de Valence.
97   o Minor feature (fallbackdir):
98     - Regenerate fallback directories list. Closes ticket 40447.
100   o Minor features (geoip data):
101     - Update the geoip files to match the IPFire Location Database, as
102       retrieved on 2021/08/12.
104   o Minor features (testing):
105     - Enable the deterministic RNG for unit tests that covers the
106       address set bloomfilter-based API's. Fixes bug 40419; bugfix
107       on 0.3.3.2-alpha.
109   o Minor bugfix (crypto, backport from 0.4.6.7):
110     - Disable the unused batch verification feature of ed25519-donna.
111       Fixes bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry
112       de Valence.
114   o Minor bugfixes (relay, backport from 0.4.6.7):
115     - Reduce the compression level for data streaming from HIGH to LOW.
116       Fixes bug 40301; bugfix on 0.3.5.1-alpha.
118   o Minor bugfixes (timekeeping, backport from 0.4.6.7):
119     - Calculate the time of day correctly on systems where the time_t
120       type includes leap seconds. (This is not the case on most
121       operating systems, but on those where it occurs, our tor_timegm
122       function did not correctly invert the system's gmtime function,
123       which could result in assertion failures when calculating voting
124       schedules.) Fixes bug 40383; bugfix on 0.2.0.3-alpha.
126   o Minor bugfixes (warnings, portability, backport from 0.4.6.6):
127     - Suppress a strict-prototype warning when building with some
128       versions of NSS. Fixes bug 40409; bugfix on 0.3.5.1-alpha.
131 Changes in version 0.4.5.9 - 2021-06-14
132   Tor 0.4.5.9 fixes several security issues, including a
133   denial-of-service attack against onion service clients, and another
134   denial-of-service attack against relays. Everybody should upgrade to
135   one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
137   o Major bugfixes (security, backport from 0.4.6.5):
138     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
139       half-closed streams. Previously, clients failed to validate which
140       hop sent these cells: this would allow a relay on a circuit to end
141       a stream that wasn't actually built with it. Fixes bug 40389;
142       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
143       003 and CVE-2021-34548.
145   o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5):
146     - Detect more failure conditions from the OpenSSL RNG code.
147       Previously, we would detect errors from a missing RNG
148       implementation, but not failures from the RNG code itself.
149       Fortunately, it appears those failures do not happen in practice
150       when Tor is using OpenSSL's default RNG implementation. Fixes bug
151       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
152       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
154   o Major bugfixes (security, denial of service, backport from 0.4.6.5):
155     - Resist a hashtable-based CPU denial-of-service attack against
156       relays. Previously we used a naive unkeyed hash function to look
157       up circuits in a circuitmux object. An attacker could exploit this
158       to construct circuits with chosen circuit IDs, to create
159       collisions and make the hash table inefficient. Now we use a
160       SipHash construction here instead. Fixes bug 40391; bugfix on
161       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
162       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
163     - Fix an out-of-bounds memory access in v3 onion service descriptor
164       parsing. An attacker could exploit this bug by crafting an onion
165       service descriptor that would crash any client that tried to visit
166       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
167       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
168       Glazunov from Google's Project Zero.
170   o Minor features (compatibility, backport from 0.4.6.4-rc):
171     - Remove an assertion function related to TLS renegotiation. It was
172       used nowhere outside the unit tests, and it was breaking
173       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
174       ticket 40399.
176   o Minor features (geoip data):
177     - Update the geoip files to match the IPFire Location Database, as
178       retrieved on 2021/06/10.
180   o Minor bugfixes (control, sandbox, backport from 0.4.6.4-rc):
181     - Allow the control command SAVECONF to succeed when the seccomp
182       sandbox is enabled, and make SAVECONF keep only one backup file to
183       simplify implementation. Previously SAVECONF allowed a large
184       number of backup files, which made it incompatible with the
185       sandbox. Fixes bug 40317; bugfix on 0.2.5.4-alpha. Patch by
186       Daniel Pinto.
188   o Minor bugfixes (metrics port, backport from 0.4.6.4-rc):
189     - Fix a bug that made tor try to re-bind() on an already open
190       MetricsPort every 60 seconds. Fixes bug 40370; bugfix
191       on 0.4.5.1-alpha.
194 Changes in version 0.4.5.8 - 2021-05-10
195   Tor 0.4.5.8 fixes several bugs in earlier version, backporting fixes
196   from the 0.4.6.x series.
198   o Minor features (compatibility, Linux seccomp sandbox, backport from 0.4.6.3-rc):
199     - Add a workaround to enable the Linux sandbox to work correctly
200       with Glibc 2.33. This version of Glibc has started using the
201       fstatat() system call, which previously our sandbox did not allow.
202       Closes ticket 40382; see the ticket for a discussion of trade-offs.
204   o Minor features (compilation, backport from 0.4.6.3-rc):
205     - Make the autoconf script build correctly with autoconf versions
206       2.70 and later. Closes part of ticket 40335.
208   o Minor features (fallback directory list, backport from 0.4.6.2-alpha):
209     - Regenerate the list of fallback directories to contain a new set
210       of 200 relays. Closes ticket 40265.
212   o Minor features (geoip data):
213     - Update the geoip files to match the IPFire Location Database, as
214       retrieved on 2021/05/07.
216   o Minor features (onion services):
217     - Add warning message when connecting to now deprecated v2 onion
218       services. As announced, Tor 0.4.5.x is the last series that will
219       support v2 onions. Closes ticket 40373.
221   o Minor bugfixes (bridge, pluggable transport, backport from 0.4.6.2-alpha):
222     - Fix a regression that made it impossible start Tor using a bridge
223       line with a transport name and no fingerprint. Fixes bug 40360;
224       bugfix on 0.4.5.4-rc.
226   o Minor bugfixes (build, cross-compilation, backport from 0.4.6.3-rc):
227     - Allow a custom "ar" for cross-compilation. Our previous build
228       script had used the $AR environment variable in most places, but
229       it missed one. Fixes bug 40369; bugfix on 0.4.5.1-alpha.
231   o Minor bugfixes (channel, DoS, backport from 0.4.6.2-alpha):
232     - Fix a non-fatal BUG() message due to a too-early free of a string,
233       when listing a client connection from the DoS defenses subsystem.
234       Fixes bug 40345; bugfix on 0.4.3.4-rc.
236   o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc):
237     - Fix an indentation problem that led to a warning from GCC 11.1.1.
238       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
240   o Minor bugfixes (controller, backport from 0.4.6.1-alpha):
241     - Fix a "BUG" warning that would appear when a controller chooses
242       the first hop for a circuit, and that circuit completes. Fixes bug
243       40285; bugfix on 0.3.2.1-alpha.
245   o Minor bugfixes (onion service, client, memory leak, backport from 0.4.6.3-rc):
246     - Fix a bug where an expired cached descriptor could get overwritten
247       with a new one without freeing it, leading to a memory leak. Fixes
248       bug 40356; bugfix on 0.3.5.1-alpha.
250   o Minor bugfixes (testing, BSD, backport from 0.4.6.2-alpha):
251     - Fix pattern-matching errors when patterns expand to invalid paths
252       on BSD systems. Fixes bug 40318; bugfix on 0.4.5.1-alpha. Patch by
253       Daniel Pinto.
256 Changes in version 0.4.5.7 - 2021-03-16
257   Tor 0.4.5.7 fixes two important denial-of-service bugs in earlier
258   versions of Tor.
260   One of these vulnerabilities (TROVE-2021-001) would allow an attacker
261   who can send directory data to a Tor instance to force that Tor
262   instance to consume huge amounts of CPU. This is easiest to exploit
263   against authorities, since anybody can upload to them, but directory
264   caches could also exploit this vulnerability against relays or clients
265   when they download. The other vulnerability (TROVE-2021-002) only
266   affects directory authorities, and would allow an attacker to remotely
267   crash the authority with an assertion failure. Patches have already
268   been provided to the authority operators, to help ensure
269   network stability.
271   We recommend that everybody upgrade to one of the releases that fixes
272   these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available
273   to you.
275   This release also updates our GeoIP data source, and fixes a few
276   smaller bugs in earlier releases.
278   o Major bugfixes (security, denial of service):
279     - Disable the dump_desc() function that we used to dump unparseable
280       information to disk. It was called incorrectly in several places,
281       in a way that could lead to excessive CPU usage. Fixes bug 40286;
282       bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021-
283       001 and CVE-2021-28089.
284     - Fix a bug in appending detached signatures to a pending consensus
285       document that could be used to crash a directory authority. Fixes
286       bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002
287       and CVE-2021-28090.
289   o Minor features (geoip data):
290     - We have switched geoip data sources. Previously we shipped IP-to-
291       country mappings from Maxmind's GeoLite2, but in 2019 they changed
292       their licensing terms, so we were unable to update them after that
293       point. We now ship geoip files based on the IPFire Location
294       Database instead. (See https://location.ipfire.org/ for more
295       information). This release updates our geoip files to match the
296       IPFire Location Database as retrieved on 2021/03/12. Closes
297       ticket 40224.
299   o Minor bugfixes (directory authority):
300     - Now that exit relays don't allow exit connections to directory
301       authority DirPorts (to prevent network reentry), disable
302       authorities' reachability self test on the DirPort. Fixes bug
303       40287; bugfix on 0.4.5.5-rc.
305   o Minor bugfixes (documentation):
306     - Fix a formatting error in the documentation for
307       VirtualAddrNetworkIPv6. Fixes bug 40256; bugfix on 0.2.9.4-alpha.
309   o Minor bugfixes (Linux, relay):
310     - Fix a bug in determining total available system memory that would
311       have been triggered if the format of Linux's /proc/meminfo file
312       had ever changed to include "MemTotal:" in the middle of a line.
313       Fixes bug 40315; bugfix on 0.2.5.4-alpha.
315   o Minor bugfixes (metrics port):
316     - Fix a BUG() warning on the MetricsPort for an internal missing
317       handler. Fixes bug 40295; bugfix on 0.4.5.1-alpha.
319   o Minor bugfixes (onion service):
320     - Remove a harmless BUG() warning when reloading tor configured with
321       onion services. Fixes bug 40334; bugfix on 0.4.5.1-alpha.
323   o Minor bugfixes (portability):
324     - Fix a non-portable usage of "==" with "test" in the configure
325       script. Fixes bug 40298; bugfix on 0.4.5.1-alpha.
327   o Minor bugfixes (relay):
328     - Remove a spammy log notice falsely claiming that the IPv4/v6
329       address was missing. Fixes bug 40300; bugfix on 0.4.5.1-alpha.
330     - Do not query the address cache early in the boot process when
331       deciding if a relay needs to fetch early directory information
332       from an authority. This bug resulted in a relay falsely believing
333       it didn't have an address and thus triggering an authority fetch
334       at each boot. Related to our fix for 40300.
336   o Removed features (mallinfo deprecated):
337     - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it.
338       Closes ticket 40309.
341 Changes in version 0.4.5.6 - 2021-02-15
342   The Tor 0.4.5.x release series is dedicated to the memory of Karsten
343   Loesing (1979-2020), Tor developer, cypherpunk, husband, and father.
344   Karsten is best known for creating the Tor metrics portal and leading
345   the metrics team, but he was involved in Tor from the early days. For
346   example, while he was still a student he invented and implemented the
347   v2 onion service directory design, and he also served as an ambassador
348   to the many German researchers working in the anonymity field. We
349   loved him and respected him for his patience, his consistency, and his
350   welcoming approach to growing our community.
352   This release series introduces significant improvements in relay IPv6
353   address discovery, a new "MetricsPort" mechanism for relay operators
354   to measure performance, LTTng support, build system improvements to
355   help when using Tor as a static library, and significant bugfixes
356   related to Windows relay performance. It also includes numerous
357   smaller features and bugfixes.
359   Below are the changes since 0.4.4.4-rc. For a complete list of changes
360   since 0.4.4.7, see the ReleaseNotes file.
362   o Major bugfixes (IPv6, relay):
363     - Fix a bug that prevented a relay from publishing its descriptor if
364       an auto-discovered IPv6 that was found unreachable. Fixes bug
365       40279; bugfix on 0.4.5.1-alpha.
367   o Minor features (protocol versions):
368     - Stop claiming to support the "DirCache=1" subprotocol version.
369       Technically, we stopped supporting this subprotocol back in
370       0.4.5.1-alpha, but we needed to wait for the authorities to stop
371       listing it as "required" before we could drop it from the list.
372       Closes ticket 40221.
374   o Minor bugfixes (logging):
375     - Avoid a spurious log message about missing subprotocol versions,
376       when the consensus that we're reading from is older than the
377       current release. Previously we had made this message nonfatal, but
378       in practice, it is never relevant when the consensus is older than
379       the current release. Fixes bug 40281; bugfix on 0.4.0.1-alpha.
381   o Minor bugfixes (metrics port):
382     - Fix a bug warning when a metrics port socket was unexpectedly
383       closed. Fixes bug 40257; bugfix on 0.4.5.1-alpha
385   o Minor bugfixes (relay):
386     - Allow relays to have a RFC1918 address if PublishServerDescriptor
387       is set to 0 and AssumeReachable is set to 1. This is to support
388       the use case of a bridge on a local network, exposed via a
389       pluggable transport. Fixes bug 40208; bugfix on 0.4.5.1-alpha.
391   o Minor bugfixes (relay, config):
392     - Fix a problem in the removal of duplicate ORPorts from the
393       internal port list when loading the config file. We were removing
394       the wrong ports, breaking valid torrc uses cases for multiple
395       ORPorts of the same address family. Fixes bug 40289; bugfix
396       on 0.4.5.1-alpha.
399 Changes in version 0.4.5.5-rc - 2021-02-01
400   Tor 0.4.5.5-rc is the third release candidate in its series. We're
401   coming closer and closer to a stable release series. This release
402   fixes an annoyance with address detection code, and somewhat mitigates
403   an ongoing denial-of-service attack.
405   We anticipate no more code changes between this and the stable
406   release, though of course that could change.
408   o Major feature (exit):
409     - Re-entry into the network is now denied at the Exit level to all
410       relays' ORPorts and authorities' ORPorts and DirPorts. This change
411       should help mitgate a set of denial-of-service attacks. Closes
412       ticket 2667.
414   o Minor bugfixes (relay, configuration):
415     - Don't attempt to discover our address (IPv4 or IPv6) if no ORPort
416       for it can be found in the configuration. Fixes bug 40254; bugfix
417       on 0.4.5.1-alpha.
420 Changes in version 0.4.5.4-rc - 2021-01-22
421   Tor 0.4.5.4-rc is the second release candidate in its series. It fixes
422   several bugs present in previous releases.
424   We expect that the stable release will be the same, or almost the
425   same, as this release candidate, unless serious bugs are found.
427   o Major bugfixes (authority, IPv6):
428     - Do not consider multiple relays in the same IPv6 /64 network to be
429       sybils. Fixes bug 40243; bugfix on 0.4.5.1-alpha.
431   o Major bugfixes (directory cache, performance, windows):
432     - Limit the number of items in the consensus diff cache to 64 on
433       Windows. We hope this will mitigate an issue where Windows relay
434       operators reported Tor using 100% CPU, while we investigate better
435       solutions. Fixes bug 24857; bugfix on 0.3.1.1-alpha.
437   o Minor feature (build system):
438     - New "make lsp" command to generate the compile_commands.json file
439       used by the ccls language server. The "bear" program is needed for
440       this. Closes ticket 40227.
442   o Minor features (authority, logging):
443     - Log more information for directory authority operators during the
444       consensus voting process, and while processing relay descriptors.
445       Closes ticket 40245.
446     - Reject obsolete router/extrainfo descriptors earlier and more
447       quietly, to avoid spamming the logs. Fixes bug 40238; bugfix
448       on 0.4.5.1-alpha.
450   o Minor bugfixes (compilation):
451     - Fix another warning about unreachable fallthrough annotations when
452       building with "--enable-all-bugs-are-fatal" on some compilers.
453       Fixes bug 40241; bugfix on 0.4.5.3-rc.
454     - Change the linker flag ordering in our library search code so that
455       it works for compilers that need the libraries to be listed in the
456       right order. Fixes bug 33624; bugfix on 0.1.1.0-alpha.
458   o Minor bugfixes (config, bridge):
459     - Don't initiate a connection to a bridge configured to use a
460       missing transport. This change reverts an earlier fix that would
461       try to avoid such situations during configuration chcecking, but
462       which doesn't work with DisableNetwork. Fixes bug 40106; bugfix
463       on 0.4.5.1-alpha.
465   o Minor bugfixes (onion services):
466     - Avoid a non-fatal assertion in certain edge-cases when
467       establishing a circuit to an onion service. Fixes bug 32666;
468       bugfix on 0.3.0.3-alpha.
470   o Minor bugfixes (relay):
471     - If we were unable to build our descriptor, don't mark it as having
472       been advertised. Also remove an harmless BUG(). Fixes bug 40231;
473       bugfix on 0.4.5.1-alpha.
476 Changes in version 0.4.5.3-rc - 2021-01-12
477   Tor 0.4.5.3-rc is the first release candidate in its series. It fixes
478   several bugs, including one that broke onion services on certain older
479   ARM CPUs.
481   Though we anticipate that we'll be doing a bit more clean-up between
482   now and the stable release, we expect that our remaining changes will
483   be fairly simple. There will be at least one more release candidate
484   before 0.4.5.x is stable.
486   o Major bugfixes (onion service v3):
487     - Stop requiring a live consensus for v3 clients and services, and
488       allow a "reasonably live" consensus instead. This allows v3 onion
489       services to work even if the authorities fail to generate a
490       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
491       on 0.3.5.1-alpha.
493   o Minor features (crypto):
494     - Fix undefined behavior on our Keccak library. The bug only
495       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
496       and would result in wrong digests. Fixes bug 40210; bugfix on
497       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
498       weasel for diagnosing this.
500   o Minor features (documentation):
501     - Mention the "!badexit" directive that can appear in an authority's
502       approved-routers file, and update the description of the
503       "!invalid" directive. Closes ticket 40188.
505   o Minor bugfixes (compilation):
506     - Fix a compilation warning about unreachable fallthrough
507       annotations when building with "--enable-all-bugs-are-fatal" on
508       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
509     - Fix the "--enable-static-tor" switch to properly set the "-static"
510       compile option onto the tor binary only. Fixes bug 40111; bugfix
511       on 0.2.3.1-alpha.
513   o Minor bugfixes (config, bridge):
514     - Really fix the case where torrc has a missing ClientTransportPlugin
515       but is configured with a Bridge line and UseBridges. Previously,
516       we didn't look at the managed proxy list and thus would fail for
517       the "exec" case. Fixes bug 40106; bugfix on 0.4.5.1-alpha.
519   o Minor bugfixes (logging, relay):
520     - Log our address as reported by the directory authorities, if none
521       was configured or detected before. Fixes bug 40201; bugfix
522       on 0.4.5.1-alpha.
523     - When a launching bandwidth testing circuit, don't incorrectly call
524       it a reachability test, or trigger a "CHECKING_REACHABILITY"
525       control event. Fixes bug 40205; bugfix on 0.4.5.1-alpha.
527   o Minor bugfixes (relay, statistics):
528     - Report the correct connection statistics in our extrainfo
529       documents. Previously there was a problem in the file loading
530       function which would wrongly truncate a state file, causing the
531       wrong information to be reported. Fixes bug 40226; bugfix
532       on 0.4.5.1-alpha.
534   o Minor bugfixes (SOCKS5):
535     - Handle partial SOCKS5 messages correctly. Previously, our code
536       would send an incorrect error message if it got a SOCKS5 request
537       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
540 Changes in version 0.4.5.2-alpha - 2020-11-23
541   Tor 0.4.5.2-alpha is the second alpha release in the 0.4.5.x series.
542   It fixes several bugs present in earlier releases, including one that
543   made it impractical to run relays on Windows. It also adds a few small
544   safety features to improve Tor's behavior in the presence of strange
545   compile-time options, misbehaving proxies, and future versions
546   of OpenSSL.
548   o Major bugfixes (relay, windows):
549     - Fix a bug in our implementation of condition variables on Windows.
550       Previously, a relay on Windows would use 100% CPU after running
551       for some time. Because of this change, Tor now require Windows
552       Vista or later to build and run. Fixes bug 30187; bugfix on
553       0.2.6.3-alpha. (This bug became more serious in 0.3.1.1-alpha with
554       the introduction of consensus diffs.) Patch by Daniel Pinto.
556   o Minor features (compilation):
557     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
558       later. There are a number of APIs newly deprecated in OpenSSL
559       3.0.0 that Tor still requires. (A later version of Tor will try to
560       stop depending on these APIs.) Closes ticket 40165.
562   o Minor features (protocol, proxy support, defense in depth):
563     - Respond more deliberately to misbehaving proxies that leave
564       leftover data on their connections, so as to make Tor even less
565       likely to allow the proxies to pass their data off as having come
566       from a relay. Closes ticket 40017.
568   o Minor features (safety):
569     - Log a warning at startup if Tor is built with compile-time options
570       that are likely to make it less stable or reliable. Closes
571       ticket 18888.
573   o Minor bugfixes (circuit, handshake):
574     - In the v3 handshaking code, use connection_or_change_state() to
575       change the state. Previously, we changed the state directly, but
576       this did not pass the state change to the pubsub or channel
577       objects, potentially leading to bugs. Fixes bug 32880; bugfix on
578       0.2.3.6-alpha. Patch by Neel Chauhan.
580   o Minor bugfixes (compilation):
581     - Use the correct 'ranlib' program when building libtor.a.
582       Previously we used the default ranlib, which broke some kinds of
583       cross-compilation. Fixes bug 40172; bugfix on 0.4.5.1-alpha.
584     - Remove a duplicate typedef in metrics_store.c. Fixes bug 40177;
585       bugfix on 0.4.5.1-alpha.
586     - When USDT tracing is enabled, and STAP_PROBEV() is missing, don't
587       attempt to build. Linux supports that macro but not the BSDs.
588       Fixes bug 40174; bugfix on 0.4.5.1-alpha.
590   o Minor bugfixes (configuration):
591     - Exit Tor on a misconfiguration when the Bridge line is configured
592       to use a transport but no corresponding ClientTransportPlugin can
593       be found. Prior to this fix, Tor would attempt to connect to the
594       bridge directly without using the transport, making it easier for
595       adversaries to notice the bridge. Fixes bug 25528; bugfix
596       on 0.2.6.1-alpha.
597     - Fix an issue where an ORPort was compared with other kinds of
598       ports, when it should have been only checked against other
599       ORPorts. This bug would lead to "DirPort auto" getting ignored.
600       Fixes bug 40195; bugfix on 0.4.5.1-alpha.
601     - Fix a bug where a second non-ORPort with a variant family (ex:
602       SocksPort [::1]:9050) would be ignored due to a configuration
603       parsing error. Fixes bug 40183; bugfix on 0.4.5.1-alpha.
605   o Minor bugfixes (crash, relay, signing key):
606     - Avoid assertion failures when we run Tor from the command line
607       with `--key-expiration sign`, but an ORPort is not set. Fixes bug
608       40015; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
610   o Minor bugfixes (logging):
611     - Remove trailing whitespace from control event log messages. Fixes
612       bug 32178; bugfix on 0.1.1.1-alpha. Based on a patch by
613       Amadeusz Pawlik.
614     - Turn warning-level log message about SENDME failure into a debug-
615       level message. (This event can happen naturally, and is no reason
616       for concern). Fixes bug 40142; bugfix on 0.4.1.1-alpha.
618   o Minor bugfixes (relay, address discovery):
619     - Don't trigger an IP change when no new valid IP can be found.
620       Fixes bug 40071; bugfix on 0.4.5.1-alpha.
621     - When attempting to discover our IP, use a simple test circuit,
622       rather than a descriptor fetch: the same address information is
623       present in NETINFO cells, and is better authenticated there. Fixes
624       bug 40071; bugfix on 0.4.5.1-alpha.
626   o Minor bugfixes (testing):
627     - Fix the `config/parse_tcp_proxy_line` test so that it works
628       correctly on systems where the DNS provider hijacks invalid
629       queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha.
630     - Fix unit tests that used newly generated list of routers so that
631       they check them with respect to the date when they were generated,
632       not with respect to the current time. Fixes bug 40187; bugfix
633       on 0.4.5.1-alpha.
634     - Fix our Python reference-implementation for the v3 onion service
635       handshake so that it works correctly with the version of hashlib
636       provided by Python 3.9. Fixes part of bug 40179; bugfix
637       on 0.3.1.6-rc.
638     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
639       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
641   o Removed features (controller):
642     - Remove the "GETINFO network-status" controller command. It has
643       been deprecated since 0.3.1.1-alpha. Closes ticket 22473.
646 Changes in version 0.4.4.6 - 2020-11-12
647   Tor 0.4.4.6 is the second stable release in the 0.4.4.x series. It
648   backports fixes from later releases, including a fix for TROVE-2020-
649   005, a security issue that could be used, under certain cases, by an
650   adversary to observe traffic patterns on a limited number of circuits
651   intended for a different relay.
653   o Major bugfixes (security, backport from 0.4.5.1-alpha):
654     - When completing a channel, relays now check more thoroughly to
655       make sure that it matches any pending circuits before attaching
656       those circuits. Previously, address correctness and Ed25519
657       identities were not checked in this case, but only when extending
658       circuits on an existing channel. Fixes bug 40080; bugfix on
659       0.2.7.2-alpha. Resolves TROVE-2020-005.
661   o Minor features (directory authorities, backport from 0.4.5.1-alpha):
662     - Authorities now list a different set of protocols as required and
663       recommended. These lists have been chosen so that only truly
664       recommended and/or required protocols are included, and so that
665       clients using 0.2.9 or later will continue to work (even though
666       they are not supported), whereas only relays running 0.3.5 or
667       later will meet the requirements. Closes ticket 40162.
668     - Make it possible to specify multiple ConsensusParams torrc lines.
669       Now directory authority operators can for example put the main
670       ConsensusParams config in one torrc file and then add to it from a
671       different torrc file. Closes ticket 40164.
673   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
674     - Tor no longer allows subprotocol versions larger than 63.
675       Previously version numbers up to UINT32_MAX were allowed, which
676       significantly complicated our code. Implements proposal 318;
677       closes ticket 40133.
679   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
680     - Fix a rendezvous cache unit test that was triggering an underflow
681       on the global rend cache allocation. Fixes bug 40125; bugfix
682       on 0.2.8.1-alpha.
683     - Fix another rendezvous cache unit test that was triggering an
684       underflow on the global rend cache allocation. Fixes bug 40126;
685       bugfix on 0.2.8.1-alpha.
687   o Minor bugfixes (compilation, backport from 0.4.5.1-alpha):
688     - Fix compiler warnings that would occur when building with
689       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
690       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
691     - Resolve a compilation warning that could occur in
692       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
694   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
695     - Remove a debug logging statement that uselessly spammed the logs.
696       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
698   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
699     - Avoid a fatal assert() when failing to create a listener
700       connection for an address that was in use. Fixes bug 40073; bugfix
701       on 0.3.5.1-alpha.
703   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
704     - For HSFETCH commands on v2 onion services addresses, check the
705       length of bytes decoded, not the base32 length. Fixes bug 34400;
706       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
709 Changes in version 0.4.3.7 - 2020-11-12
710   Tor 0.4.3.7 backports several bugfixes from later releases. It
711   includes a fix for TROVE-2020-005, a security issue that could be
712   used, under certain cases, by an adversary to observe traffic patterns
713   on a limited number of circuits intended for a different relay.
715   Please be aware that support for the 0.4.3.x series will end on 15
716   February 2021. Please upgrade to 0.4.4.x or 0.4.5.x before then, or
717   downgrade to 0.3.5.x, which will be supported until at least 1
718   February 2022.
720   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
721     - Replace the 148 fallback directories originally included in Tor
722       0.4.1.4-rc (of which around 105 are still functional) with a list
723       of 144 fallbacks generated in July 2020. Closes ticket 40061.
725   o Major bugfixes (security, backport from 0.4.5.1-alpha):
726     - When completing a channel, relays now check more thoroughly to
727       make sure that it matches any pending circuits before attaching
728       those circuits. Previously, address correctness and Ed25519
729       identities were not checked in this case, but only when extending
730       circuits on an existing channel. Fixes bug 40080; bugfix on
731       0.2.7.2-alpha. Resolves TROVE-2020-005.
733   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
734     - When running with NSS enabled, make sure that NSS knows to expect
735       nonblocking sockets. Previously, we set our TCP sockets as
736       nonblocking, but did not tell NSS, which in turn could lead to
737       unexpected blocking behavior. Fixes bug 40035; bugfix
738       on 0.3.5.1-alpha.
740   o Minor features (security, backport from 0.4.4.4-rc):
741     - Channels using obsolete versions of the Tor link protocol are no
742       longer allowed to circumvent address-canonicity checks. (This is
743       only a minor issue, since such channels have no way to set ed25519
744       keys, and therefore should always be rejected for circuits that
745       specify ed25519 identities.) Closes ticket 40081.
747   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
748     - Tor no longer allows subprotocol versions larger than 63.
749       Previously version numbers up to UINT32_MAX were allowed, which
750       significantly complicated our code. Implements proposal 318;
751       closes ticket 40133.
753   o Minor features (tests, backport from 0.4.4.5):
754     - Our "make check" target now runs the unit tests in 8 parallel
755       chunks. Doing this speeds up hardened CI builds by more than a
756       factor of two. Closes ticket 40098.
758   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
759     - Fix a rendezvous cache unit test that was triggering an underflow
760       on the global rend cache allocation. Fixes bug 40125; bugfix
761       on 0.2.8.1-alpha.
762     - Fix another rendezvous cache unit test that was triggering an
763       underflow on the global rend cache allocation. Fixes bug 40126;
764       bugfix on 0.2.8.1-alpha.
766   o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc):
767     - Fix a correctness bug that could cause an assertion failure if we
768       ever tried using the buf_move_all() function with an empty input
769       buffer. As far as we know, no released versions of Tor do this.
770       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
772   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
773     - Remove a debug logging statement that uselessly spammed the logs.
774       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
776   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
777     - On a bridge, treat all connections from an ExtORPort as remote by
778       default for the purposes of rate-limiting. Previously, bridges
779       would treat the connection as local unless they explicitly
780       received a "USERADDR" command. ExtORPort connections still count
781       as local if there is a USERADDR command with an explicit local
782       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
784   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
785     - Avoid a fatal assert() when failing to create a listener
786       connection for an address that was in use. Fixes bug 40073; bugfix
787       on 0.3.5.1-alpha.
789   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
790     - Adjust the rules for when to warn about having too many
791       connections to other relays. Previously we'd tolerate up to 1.5
792       connections per relay on average. Now we tolerate more connections
793       for directory authorities, and raise the number of total
794       connections we need to see before we warn. Fixes bug 33880; bugfix
795       on 0.3.1.1-alpha.
797   o Minor bugfixes (tests, 0.4.4.5):
798     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
799       on its own. Previously, it would exit with an error. Fixes bug
800       40099; bugfix on 0.2.8.1-alpha.
802   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
803     - For HSFETCH commands on v2 onion services addresses, check the
804       length of bytes decoded, not the base32 length. Fixes bug 34400;
805       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
807   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
808     - Fix a bug that prevented Tor from starting if its log file grew
809       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
811   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
812     - Add a deprecation warning for version 2 onion services. Closes
813       ticket 40003.
815   o Removed features (backport from 0.4.4.3-alpha):
816     - Our "check-local" test target no longer tries to use the
817       Coccinelle semantic patching tool parse all the C files. While it
818       is a good idea to try to make sure Coccinelle works on our C
819       before we run a Coccinelle patch, doing so on every test run has
820       proven to be disruptive. You can still run this tool manually with
821       "make check-cocci". Closes ticket 40030. ticket 40030.
824 Changes in version 0.3.5.12 - 2020-11-12
825   Tor 0.4.3.7 backports several bugfixes from later releases. It
826   includes a fix for TROVE-2020-005, a security issue that could be
827   used, under certain cases, by an adversary to observe traffic patterns
828   on a limited number of circuits intended for a different relay.
830   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
831     - Replace the 148 fallback directories originally included in Tor
832       0.4.1.4-rc (of which around 105 are still functional) with a list
833       of 144 fallbacks generated in July 2020. Closes ticket 40061.
835   o Major bugfixes (security, backport from 0.4.5.1-alpha):
836     - When completing a channel, relays now check more thoroughly to
837       make sure that it matches any pending circuits before attaching
838       those circuits. Previously, address correctness and Ed25519
839       identities were not checked in this case, but only when extending
840       circuits on an existing channel. Fixes bug 40080; bugfix on
841       0.2.7.2-alpha. Resolves TROVE-2020-005.
843   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
844     - When running with NSS enabled, make sure that NSS knows to expect
845       nonblocking sockets. Previously, we set our TCP sockets as
846       nonblocking, but did not tell NSS, which in turn could lead to
847       unexpected blocking behavior. Fixes bug 40035; bugfix
848       on 0.3.5.1-alpha.
850   o Minor features (security, backport from 0.4.4.4-rc):
851     - Channels using obsolete versions of the Tor link protocol are no
852       longer allowed to circumvent address-canonicity checks. (This is
853       only a minor issue, since such channels have no way to set ed25519
854       keys, and therefore should always be rejected for circuits that
855       specify ed25519 identities.) Closes ticket 40081.
857   o Minor features (debugging, directory system):
858     - Don't crash when we find a non-guard with a guard-fraction value
859       set. Instead, log a bug warning, in an attempt to figure out how
860       this happened. Diagnostic for ticket 32868.
862   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
863     - Tor no longer allows subprotocol versions larger than 63.
864       Previously version numbers up to UINT32_MAX were allowed, which
865       significantly complicated our code. Implements proposal 318;
866       closes ticket 40133.
868   o Minor features (tests, backport from 0.4.4.5):
869     - Our "make check" target now runs the unit tests in 8 parallel
870       chunks. Doing this speeds up hardened CI builds by more than a
871       factor of two. Closes ticket 40098.
873   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
874     - Fix a rendezvous cache unit test that was triggering an underflow
875       on the global rend cache allocation. Fixes bug 40125; bugfix
876       on 0.2.8.1-alpha.
877     - Fix another rendezvous cache unit test that was triggering an
878       underflow on the global rend cache allocation. Fixes bug 40126;
879       bugfix on 0.2.8.1-alpha.
881   o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc):
882     - Fix a correctness bug that could cause an assertion failure if we
883       ever tried using the buf_move_all() function with an empty input
884       buffer. As far as we know, no released versions of Tor do this.
885       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
887   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
888     - Remove a debug logging statement that uselessly spammed the logs.
889       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
891   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
892     - On a bridge, treat all connections from an ExtORPort as remote by
893       default for the purposes of rate-limiting. Previously, bridges
894       would treat the connection as local unless they explicitly
895       received a "USERADDR" command. ExtORPort connections still count
896       as local if there is a USERADDR command with an explicit local
897       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
899   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
900     - Avoid a fatal assert() when failing to create a listener
901       connection for an address that was in use. Fixes bug 40073; bugfix
902       on 0.3.5.1-alpha.
904   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
905     - Adjust the rules for when to warn about having too many
906       connections to other relays. Previously we'd tolerate up to 1.5
907       connections per relay on average. Now we tolerate more connections
908       for directory authorities, and raise the number of total
909       connections we need to see before we warn. Fixes bug 33880; bugfix
910       on 0.3.1.1-alpha.
912   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
913     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
914       descriptors, when the IPv6 port was configured as "auto". Fixes
915       bug 32588; bugfix on 0.2.3.9-alpha.
917   o Minor bugfixes (tests, 0.4.4.5):
918     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
919       on its own. Previously, it would exit with an error. Fixes bug
920       40099; bugfix on 0.2.8.1-alpha.
922   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
923     - Fix a bug that prevented Tor from starting if its log file grew
924       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
926   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
927     - Add a deprecation warning for version 2 onion services. Closes
928       ticket 40003.
931 Changes in version 0.4.5.1-alpha - 2020-11-01
932   Tor 0.4.5.1-alpha is the first alpha release in the 0.4.5.x series. It
933   improves support for IPv6, address discovery and self-testing, code
934   metrics and tracing.
936   This release also fixes TROVE-2020-005, a security issue that could be
937   used, under certain cases, by an adversary to observe traffic patterns
938   on a limited number of circuits intended for a different relay. To
939   mount this attack, the adversary would need to actively extend
940   circuits to an incorrect address, as well as compromise a relay's
941   legacy RSA-1024 key. We'll be backporting this fix to other release
942   series soon, after it has had some testing.
944   Here are the changes since 0.4.4.5.
946   o Major features (build):
947     - When building Tor, first link all object files into a single
948       static library. This may help with embedding Tor in other
949       programs. Note that most Tor functions do not constitute a part of
950       a stable or supported API: only those functions in tor_api.h
951       should be used if embedding Tor. Closes ticket 40127.
953   o Major features (metrics):
954     - Introduce a new MetricsPort which exposes, through an HTTP
955       interface, a series of metrics that tor collects at runtime. At
956       the moment, the only supported output format is Prometheus data
957       model. Closes ticket 40063. See the manual page for more
958       information and security considerations.
959   o Major features (relay, IPv6):
960     - The torrc option Address now supports IPv6. This unifies our
961       address discovery interface to support IPv4, IPv6, and hostnames.
962       Closes ticket 33233.
963     - Launch IPv4 and IPv6 ORPort self-test circuits on relays and
964       bridges. Closes ticket 33222.
965     - Relays now automatically bind on IPv6 for their ORPort, unless
966       specified otherwise with the IPv4Only flag. Closes ticket 33246.
967     - When a relay with IPv6 support is told to open a connection to
968       another relay, and the extend cell lists both IPv4 and IPv6
969       addresses, the first relay now picks randomly which address to
970       use. Closes ticket 33220.
971     - Relays now track their IPv6 ORPort reachability separately from
972       the reachability of their IPv4 ORPort. They will not publish a
973       descriptor unless _both_ ports appear to be externally reachable.
974       Closes ticket 34067.
976   o Major features (tracing):
977     - Add event-tracing library support for USDT and LTTng-UST, and a
978       few tracepoints in the circuit subsystem. More will come
979       incrementally. This feature is compiled out by default: it needs
980       to be enabled at configure time. See documentation in
981       doc/HACKING/Tracing.md. Closes ticket 32910.
983   o Major bugfixes (security):
984     - When completing a channel, relays now check more thoroughly to
985       make sure that it matches any pending circuits before attaching
986       those circuits. Previously, address correctness and Ed25519
987       identities were not checked in this case, but only when extending
988       circuits on an existing channel. Fixes bug 40080; bugfix on
989       0.2.7.2-alpha. Resolves TROVE-2020-005.
991   o Major bugfixes (TLS, buffer):
992     - When attempting to read N bytes on a TLS connection, really try to
993       read all N bytes. Previously, Tor would stop reading after the
994       first TLS record, which can be smaller than the N bytes requested,
995       and not check for more data until the next mainloop event. Fixes
996       bug 40006; bugfix on 0.1.0.5-rc.
998   o Minor features (address discovery):
999     - If no Address statements are found, relays now prioritize guessing
1000       their address by looking at the local interface instead of the
1001       local hostname. If the interface address can't be found, the local
1002       hostname is used. Closes ticket 33238.
1004   o Minor features (admin tools):
1005     - Add a new --format argument to -key-expiration option to allow
1006       specifying the time format of the expiration date. Adds Unix
1007       timestamp format support. Patch by Daniel Pinto. Closes
1008       ticket 30045.
1010   o Minor features (bootstrap reporting):
1011     - When reporting bootstrapping status on a relay, do not consider
1012       connections that have never been the target of an origin circuit.
1013       Previously, all connection failures were treated as potential
1014       bootstrapping failures, including connections that had been opened
1015       because of client requests. Closes ticket 25061.
1017   o Minor features (build):
1018     - When running the configure script, try to detect version
1019       mismatches between the OpenSSL headers and libraries, and suggest
1020       that the user should try "--with-openssl-dir". Closes 40138.
1021     - If the configure script has given any warnings, remind the user
1022       about them at the end of the script. Related to 40138.
1024   o Minor features (configuration):
1025     - Allow using wildcards (* and ?) with the %include option on
1026       configuration files. Closes ticket 25140. Patch by Daniel Pinto.
1027     - Allow the configuration options EntryNodes, ExcludeNodes,
1028       ExcludeExitNodes, ExitNodes, MiddleNodes, HSLayer2Nodes and
1029       HSLayer3Nodes to be specified multiple times. Closes ticket 28361.
1030       Patch by Daniel Pinto.
1032   o Minor features (control port):
1033     - Add a DROPTIMEOUTS command to drop circuit build timeout history
1034       and reset the current timeout. Closes ticket 40002.
1035     - When a stream enters the AP_CONN_STATE_CONTROLLER_WAIT status,
1036       send a control port event. Closes ticket 32190. Patch by
1037       Neel Chauhan.
1038     - Introduce GETINFO "stats/ntor/{assigned/requested}" and
1039       "stats/tap/{assigned/requested}" to get the NTor and TAP circuit
1040       onion handshake counts respectively. Closes ticket 28279. Patch by
1041       Neel Chauhan.
1043   o Minor features (control port, IPv6):
1044     - Tor relays now try to report to the controller when they are
1045       launching an IPv6 self-test. Closes ticket 34068.
1046     - Introduce "GETINFO address/v4" and "GETINFO address/v6" in the
1047       control port to fetch the Tor host's respective IPv4 or IPv6
1048       address. We keep "GETINFO address" for backwards-compatibility.
1049       Closes ticket 40039. Patch by Neel Chauhan.
1051   o Minor features (directory authorities):
1052     - Authorities now list a different set of protocols as required and
1053       recommended. These lists have been chosen so that only truly
1054       recommended and/or required protocols are included, and so that
1055       clients using 0.2.9 or later will continue to work (even though
1056       they are not supported), whereas only relays running 0.3.5 or
1057       later will meet the requirements. Closes ticket 40162.
1058     - Add a new consensus method 30 that removes the unnecessary "="
1059       padding from ntor-onion-key. Closes ticket 7869. Patch by
1060       Daniel Pinto.
1061     - Directory authorities now reject descriptors from relays running
1062       Tor versions from the obsolete 0.4.1 series. Resolves ticket
1063       34357. Patch by Neel Chauhan.
1064     - Make it possible to specify multiple ConsensusParams torrc lines.
1065       Now directory authority operators can for example put the main
1066       ConsensusParams config in one torrc file and then add to it from a
1067       different torrc file. Closes ticket 40164.
1068     - The AssumeReachable option no longer stops directory authorities
1069       from checking whether other relays are running. A new
1070       AuthDirTestReachability option can be used to disable these
1071       checks. Closes ticket 34445.
1072     - When looking for possible Sybil attacks, also consider IPv6
1073       addresses. Two routers are considered to have "the same" address
1074       by this metric if they are in the same /64 network. Patch from
1075       Maurice Pibouin. Closes ticket 7193.
1077   o Minor features (directory authorities, IPv6):
1078     - Make authorities add their IPv6 ORPort (if any) to the trusted
1079       servers list. Authorities previously added only their IPv4
1080       addresses. Closes ticket 32822.
1082   o Minor features (ed25519, relay):
1083     - Save a relay's base64-encoded ed25519 identity key to the data
1084       directory in a file named fingerprint-ed25519. Closes ticket
1085       30642. Patch by Neel Chauhan.
1087   o Minor features (heartbeat):
1088     - Include the total number of inbound and outbound IPv4 and IPv6
1089       connections in the heartbeat message. Closes ticket 29113.
1091   o Minor features (IPv6, ExcludeNodes):
1092     - Handle IPv6 addresses in ExcludeNodes; previously they were
1093       ignored. Closes ticket 34065. Patch by Neel Chauhan.
1095   o Minor features (logging):
1096     - Add the running glibc version to the log, and the compiled glibc
1097       version to the library list returned when using --library-versions.
1098       Patch from Daniel Pinto. Closes ticket 40047.
1099     - Consider an HTTP 301 response to be an error (like a 404) when
1100       processing a directory response. Closes ticket 40053.
1101     - Log directory fetch statistics as a single line. Closes
1102       ticket 40159.
1103     - Provide more complete descriptions of our connections when logging
1104       about them. Closes ticket 40041.
1105     - When describing a relay in the logs, we now include its ed25519
1106       identity. Closes ticket 22668.
1108   o Minor features (onion services):
1109     - Only overwrite an onion service's existing hostname file if its
1110       contents are wrong. This enables read-only onion-service
1111       directories. Resolves ticket 40062. Patch by Neel Chauhan.
1113   o Minor features (pluggable transports):
1114     - Add an OutboundBindAddressPT option to allow users to specify
1115       which IPv4 and IPv6 address pluggable transports should use for
1116       outgoing IP packets. Tor does not have a way to enforce that the
1117       pluggable transport honors this option, so each pluggable transport
1118       needs to implement support on its own. Closes ticket 5304.
1120   o Minor features (relay address tracking):
1121     - We now store relay addresses for OR connections in a more logical
1122       way. Previously we would sometimes overwrite the actual address of
1123       a connection with a "canonical address", and then store the "real
1124       address" elsewhere to remember it. We now track the "canonical
1125       address" elsewhere for the cases where we need it, and leave the
1126       connection's address alone. Closes ticket 33898.
1128   o Minor features (relay):
1129     - If a relay is unable to discover its address, attempt to learn it
1130       from the NETINFO cell. Closes ticket 40022.
1131     - Log immediately when launching a relay self-check. Previously we
1132       would try to log before launching checks, or approximately when we
1133       intended to launch checks, but this tended to be error-prone.
1134       Closes ticket 34137.
1136   o Minor features (relay, address discovery):
1137     - If Address option is not found in torrc, attempt to learn our
1138       address with the configured ORPort address if any. Closes
1139       ticket 33236.
1141   o Minor features (relay, IPv6):
1142     - Add an AssumeReachableIPv6 option to disable self-checking IPv6
1143       reachability. Closes part of ticket 33224.
1144     - Add new "assume-reachable" and "assume-reachable-ipv6" consensus
1145       parameters to be used in an emergency to tell relays that they
1146       should publish even if they cannot complete their ORPort self-
1147       checks. Closes ticket 34064 and part of 33224.
1148     - Allow relays to send IPv6-only extend cells. Closes ticket 33222.
1149     - Declare support for the Relay=3 subprotocol version. Closes
1150       ticket 33226.
1151     - When launching IPv6 ORPort self-test circuits, make sure that the
1152       second-last hop can initiate an IPv6 extend. Closes ticket 33222.
1154   o Minor features (specification update):
1155     - Several fields in microdescriptors, router descriptors, and
1156       consensus documents that were formerly optional are now required.
1157       Implements proposal 315; closes ticket 40132.
1159   o Minor features (state management):
1160     - When loading the state file, remove entries from the statefile
1161       that have been obsolete for a long time. Ordinarily Tor preserves
1162       unrecognized entries in order to keep forward-compatibility, but
1163       these entries have not actually been used in any release since
1164       before 0.3.5.x. Closes ticket 40137.
1166   o Minor features (statistics, ipv6):
1167     - Relays now publish IPv6-specific counts of single-direction versus
1168       bidirectional relay connections. Closes ticket 33264.
1169     - Relays now publish their IPv6 read and write statistics over time,
1170       if statistics are enabled. Closes ticket 33263.
1172   o Minor features (subprotocol versions):
1173     - Tor no longer allows subprotocol versions larger than 63.
1174       Previously version numbers up to UINT32_MAX were allowed, which
1175       significantly complicated our code. Implements proposal 318;
1176       closes ticket 40133.
1177     - Use the new limitations on subprotocol versions due to proposal
1178       318 to simplify our implementation. Part of ticket 40133.
1180   o Minor features (testing configuration):
1181     - The TestingTorNetwork option no longer implicitly sets
1182       AssumeReachable to 1. This change allows us to test relays' self-
1183       testing mechanisms, and to test authorities' relay-testing
1184       functionality. Closes ticket 34446.
1186   o Minor features (testing):
1187     - Added unit tests for channel_matches_target_addr_for_extend().
1188       Closes Ticket 33919. Patch by MrSquanchee.
1190   o Minor features (tests, v2 onion services):
1191     - Fix a rendezvous cache unit test that was triggering an underflow
1192       on the global rend cache allocation. Fixes bug 40125; bugfix
1193       on 0.2.8.1-alpha.
1194     - Fix another rendezvous cache unit test that was triggering an
1195       underflow on the global rend cache allocation. Fixes bug 40126;
1196       bugfix on 0.2.8.1-alpha.
1198   o Minor bugfixes (circuit padding):
1199     - When circpad_send_padding_cell_for_callback is called,
1200       `is_padding_timer_scheduled` flag was not reset. Now it is set to
1201       0 at the top of that function. Fixes bug 32671; bugfix
1202       on 0.4.0.1-alpha.
1203     - Add a per-circuit padding machine instance counter, so we can
1204       differentiate between shutdown requests for old machines on a
1205       circuit. Fixes bug 30992; bugfix on 0.4.1.1-alpha.
1206     - Add the ability to keep circuit padding machines if they match a
1207       set of circuit states or purposes. This allows us to have machines
1208       that start up under some conditions but don't shut down under
1209       others. We now use this mask to avoid starting up introduction
1210       circuit padding again after the machines have already completed.
1211       Fixes bug 32040; bugfix on 0.4.1.1-alpha.
1213   o Minor bugfixes (compatibility):
1214     - Strip '\r' characters when reading text files on Unix platforms.
1215       This should resolve an issue where a relay operator migrates a
1216       relay from Windows to Unix, but does not change the line ending of
1217       Tor's various state files to match the platform, and the CRLF line
1218       endings from Windows end up leaking into other files such as the
1219       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
1221   o Minor bugfixes (compilation):
1222     - Fix compiler warnings that would occur when building with
1223       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
1224       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
1225     - Resolve a compilation warning that could occur in
1226       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
1228   o Minor bugfixes (configuration):
1229     - Fix bug where %including a pattern ending with */ would include
1230       files and folders (instead of folders only) in versions of glibc <
1231       2.19. Fixes bug 40141; bugfix on 0.4.5.0-alpha-dev. Patch by
1232       Daniel Pinto.
1234   o Minor bugfixes (control port):
1235     - Make sure we send the SOCKS request address in relay begin cells
1236       when a stream is attached with the purpose
1237       CIRCUIT_PURPOSE_CONTROLLER. Fixes bug 33124; bugfix on 0.0.5.
1238       Patch by Neel Chauhan.
1240   o Minor bugfixes (logging):
1241     - Remove a debug logging statement that uselessly spammed the logs.
1242       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
1243     - When logging a rate-limited message about how many messages have
1244       been suppressed in the last N seconds, give an accurate value for
1245       N, rounded up to the nearest minute. Previously we would report
1246       the size of the rate-limiting interval, regardless of when the
1247       messages started to occur. Fixes bug 19431; bugfix
1248       on 0.2.2.16-alpha.
1250   o Minor bugfixes (relay configuration, crash):
1251     - Avoid a fatal assert() when failing to create a listener
1252       connection for an address that was in use. Fixes bug 40073; bugfix
1253       on 0.3.5.1-alpha.
1255   o Minor bugfixes (rust, protocol versions):
1256     - Declare support for the onion service introduction point denial of
1257       service extensions when building with Rust. Fixes bug 34248;
1258       bugfix on 0.4.2.1-alpha.
1259     - Make Rust protocol version support checks consistent with the
1260       undocumented error behavior of the corresponding C code. Fixes bug
1261       34251; bugfix on 0.3.3.5-rc.
1263   o Minor bugfixes (self-testing):
1264     - When receiving an incoming circuit, only accept it as evidence
1265       that we are reachable if the declared address of its channel is
1266       the same address we think that we have. Otherwise, it could be
1267       evidence that we're reachable on some other address. Fixes bug
1268       20165; bugfix on 0.1.0.1-rc.
1270   o Minor bugfixes (spec conformance):
1271     - Use the correct key type when generating signing->link
1272       certificates. Fixes bug 40124; bugfix on 0.2.7.2-alpha.
1274   o Minor bugfixes (subprotocol versions):
1275     - Consistently reject extra commas, instead of only rejecting
1276       leading commas. Fixes bug 27194; bugfix on 0.2.9.4-alpha.
1277     - In summarize_protover_flags(), treat empty strings the same as
1278       NULL. This prevents protocols_known from being set. Previously, we
1279       treated empty strings as normal strings, which led to
1280       protocols_known being set. Fixes bug 34232; bugfix on
1281       0.3.3.2-alpha. Patch by Neel Chauhan.
1283   o Minor bugfixes (v2 onion services):
1284     - For HSFETCH commands on v2 onion services addresses, check the
1285       length of bytes decoded, not the base32 length. Fixes bug 34400;
1286       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
1288   o Code simplification and refactoring:
1289     - Add and use a set of functions to perform down-casts on constant
1290       connection and channel pointers. Closes ticket 40046.
1291     - Refactor our code that logs descriptions of connections, channels,
1292       and the peers on them, to use a single call path. This change
1293       enables us to refactor the data types that they use, and eliminates
1294       many confusing usages of those types. Closes ticket 40041.
1295     - Refactor some common node selection code into a single function.
1296       Closes ticket 34200.
1297     - Remove the now-redundant 'outbuf_flushlen' field from our
1298       connection type. It was previously used for an older version of
1299       our rate-limiting logic. Closes ticket 33097.
1300     - Rename "fascist_firewall_*" identifiers to "reachable_addr_*"
1301       instead, for consistency with other code. Closes ticket 18106.
1302     - Rename functions about "advertised" ports which are not in fact
1303       guaranteed to return the ports that have been advertised. Closes
1304       ticket 40055.
1305     - Split implementation of several command line options from
1306       options_init_from_torrc into smaller isolated functions. Patch by
1307       Daniel Pinto. Closes ticket 40102.
1308     - When an extend cell is missing an IPv4 or IPv6 address, fill in
1309       the address from the extend info. This is similar to what was done
1310       in ticket 33633 for ed25519 keys. Closes ticket 33816. Patch by
1311       Neel Chauhan.
1313   o Deprecated features:
1314     - The "non-builtin" argument to the "--dump-config" command is now
1315       deprecated. When it works, it behaves the same as "short", which
1316       you should use instead. Closes ticket 33398.
1318   o Documentation:
1319     - Replace URLs from our old bugtracker so that they refer to the new
1320       bugtracker and wiki. Closes ticket 40101.
1322   o Removed features:
1323     - We no longer ship or build a "tor.service" file for use with
1324       systemd. No distribution included this script unmodified, and we
1325       don't have the expertise ourselves to maintain this in a way that
1326       all the various systemd-based distributions can use. Closes
1327       ticket 30797.
1328     - We no longer ship support for the Android logging API. Modern
1329       versions of Android can use the syslog API instead. Closes
1330       ticket 32181.
1331     - The "optimistic data" feature is now always on; there is no longer
1332       an option to disable it from the torrc file or from the consensus
1333       directory. Closes part of 40139.
1334     - The "usecreatefast" network parameter is now removed; there is no
1335       longer an option for authorities to turn it off. Closes part
1336       of 40139.
1338   o Testing:
1339     - Add unit tests for bandwidth statistics manipulation functions.
1340       Closes ticket 33812. Patch by MrSquanchee.
1342   o Code simplification and refactoring (autoconf):
1343     - Remove autoconf checks for unused funcs and headers. Closes ticket
1344       31699; Patch by @bduszel
1346   o Code simplification and refactoring (maintainer scripts):
1347     - Disable by default the pre-commit hook. Use the environment
1348       variable TOR_EXTRA_PRE_COMMIT_CHECKS in order to run it.
1349       Furthermore, stop running practracker in the pre-commit hook and
1350       make check-local. Closes ticket 40019.
1352   o Code simplification and refactoring (relay address):
1353     - Most of IPv4 representation was using "uint32_t". It has now been
1354       moved to use the internal "tor_addr_t" interface instead. This is
1355       so we can properly integrate IPv6 along IPv4 with common
1356       interfaces. Closes ticket 40043.
1358   o Documentation (manual page):
1359     - Move them from doc/ to doc/man/. Closes ticket 40044.
1360     - Describe the status of the "Sandbox" option more accurately. It is
1361       no longer "experimental", but it _is_ dependent on kernel and libc
1362       versions. Closes ticket 23378.
1364   o Documentation (tracing):
1365     - Document in depth the circuit subsystem trace events in the new
1366       doc/tracing/EventsCircuit.md. Closes ticket 40036.
1369 Changes in version 0.4.4.5 - 2020-09-15
1370   Tor 0.4.4.5 is the first stable release in the 0.4.4.x series. This
1371   series improves our guard selection algorithms, adds v3 onion balance
1372   support, improves the amount of code that can be disabled when running
1373   without relay support, and includes numerous small bugfixes and
1374   enhancements. It also lays the ground for some IPv6 features that
1375   we'll be developing more in the next (0.4.5) series.
1377   Per our support policy, we support each stable release series for nine
1378   months after its first stable release, or three months after the first
1379   stable release of the next series: whichever is longer. This means
1380   that 0.4.4.x will be supported until around June 2021--or later, if
1381   0.4.5.x is later than anticipated.
1383   Note also that support for 0.4.2.x has just ended; support for 0.4.3
1384   will continue until Feb 15, 2021. We still plan to continue supporting
1385   0.3.5.x, our long-term stable series, until Feb 2022.
1387   Below are the changes since 0.4.4.4-rc. For a complete list of changes
1388   since 0.4.3.6, see the ReleaseNotes file.
1390   o Major bugfixes (onion services, DoS):
1391     - Correct handling of parameters for the onion service DoS defense.
1392       Previously, the consensus parameters for the onion service DoS
1393       defenses were overwriting the parameters set by the service
1394       operator using HiddenServiceEnableIntroDoSDefense. Fixes bug
1395       40109; bugfix on 0.4.2.1-alpha.
1397   o Major bugfixes (stats, onion services):
1398     - Fix a bug where we were undercounting the Tor network's total
1399       onion service traffic, by ignoring any traffic originating from
1400       clients. Now we count traffic from both clients and services.
1401       Fixes bug 40117; bugfix on 0.2.6.2-alpha.
1403   o Minor features (control port):
1404     - If a ClientName was specified in ONION_CLIENT_AUTH_ADD for an
1405       onion service, display it when we use ONION_CLIENT_AUTH_VIEW.
1406       Closes ticket 40089. Patch by Neel Chauhan.
1408   o Minor features (denial-of-service memory limiter):
1409     - Allow the user to configure even lower values for the
1410       MaxMemInQueues parameter. Relays now enforce a minimum of 64 MB,
1411       when previously the minimum was 256 MB. On clients, there is no
1412       minimum. Relays and clients will both warn if the value is set so
1413       low that Tor is likely to stop working. Closes ticket 24308.
1415   o Minor features (tests):
1416     - Our "make check" target now runs the unit tests in 8 parallel
1417       chunks. Doing this speeds up hardened CI builds by more than a
1418       factor of two. Closes ticket 40098.
1420   o Minor bugfixes (guard selection algorithm):
1421     - Avoid needless guard-related warning when upgrading from 0.4.3 to
1422       0.4.4. Fixes bug 40105; bugfix on 0.4.4.1-alpha.
1424   o Minor bugfixes (tests):
1425     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
1426       on its own. Previously, it would exit with an error. Fixes bug
1427       40099; bugfix on 0.2.8.1-alpha.
1430 Changes in version 0.4.4.3-alpha - 2020-07-27
1431   Tor 0.4.4.3-alpha fixes several annoyances in previous versions,
1432   including one affecting NSS users, and several affecting the Linux
1433   seccomp2 sandbox.
1435   o Major features (fallback directory list):
1436     - Replace the 148 fallback directories originally included in Tor
1437       0.4.1.4-rc (of which around 105 are still functional) with a list
1438       of 144 fallbacks generated in July 2020. Closes ticket 40061.
1440   o Major bugfixes (NSS):
1441     - When running with NSS enabled, make sure that NSS knows to expect
1442       nonblocking sockets. Previously, we set our TCP sockets as
1443       nonblocking, but did not tell NSS, which in turn could lead to
1444       unexpected blocking behavior. Fixes bug 40035; bugfix
1445       on 0.3.5.1-alpha.
1447   o Minor bugfixes (linux seccomp2 sandbox):
1448     - Fix a regression on sandboxing rules for the openat() syscall. The
1449       fix for bug 25440 fixed the problem on systems with glibc >= 2.27
1450       but broke with versions of glibc. We now choose a rule based on
1451       the glibc version. Patch from Daniel Pinto. Fixes bug 27315;
1452       bugfix on 0.3.5.11.
1453     - Makes the seccomp sandbox allow the correct syscall for opendir
1454       according to the running glibc version. This fixes crashes when
1455       reloading torrc with sandbox enabled when running on glibc 2.15 to
1456       2.21 and 2.26. Patch from Daniel Pinto. Fixes bug 40020; bugfix
1457       on 0.3.5.11.
1459   o Minor bugfixes (relay, usability):
1460     - Adjust the rules for when to warn about having too many
1461       connections to other relays. Previously we'd tolerate up to 1.5
1462       connections per relay on average. Now we tolerate more connections
1463       for directory authorities, and raise the number of total
1464       connections we need to see before we warn. Fixes bug 33880; bugfix
1465       on 0.3.1.1-alpha.
1467   o Documentation:
1468     - Replace most http:// URLs in our code and documentation with
1469       https:// URLs. (We have left unchanged the code in src/ext/, and
1470       the text in LICENSE.) Closes ticket 31812. Patch from Jeremy Rand.
1472   o Removed features:
1473     - Our "check-local" test target no longer tries to use the
1474       Coccinelle semantic patching tool parse all the C files. While it
1475       is a good idea to try to make sure Coccinelle works on our C
1476       before we run a Coccinelle patch, doing so on every test run has
1477       proven to be disruptive. You can still run this tool manually with
1478       "make check-cocci". Closes ticket 40030.
1481 Changes in version 0.3.5.11 - 2020-07-09
1482   Tor 0.3.5.11 backports fixes from later tor releases, including several
1483   usability, portability, and reliability fixes.
1485   This release also fixes TROVE-2020-001, a medium-severity denial of
1486   service vulnerability affecting all versions of Tor when compiled with
1487   the NSS encryption library. (This is not the default configuration.)
1488   Using this vulnerability, an attacker could cause an affected Tor
1489   instance to crash remotely. This issue is also tracked as CVE-2020-
1490   15572. Anybody running a version of Tor built with the NSS library
1491   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1492   or later.
1494   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
1495     - Fix a crash due to an out-of-bound memory access when Tor is
1496       compiled with NSS support. Fixes bug 33119; bugfix on
1497       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1498       and CVE-2020-15572.
1500   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
1501     - Fix a bug that was preventing DoS defenses from running on bridges
1502       with a pluggable transport. Previously, the DoS subsystem was not
1503       given the transport name of the client connection, thus failed to
1504       find the GeoIP cache entry for that client address. Fixes bug
1505       33491; bugfix on 0.3.3.2-alpha.
1507   o Minor features (testing, backport from 0.4.3.4-rc):
1508     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
1509       variable to specify a list of space-separated test cases that
1510       should not be executed. We will use this to disable certain tests
1511       that are failing on Appveyor because of mismatched OpenSSL
1512       libraries. Part of ticket 33643.
1514   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
1515     - Use the correct 64-bit printf format when compiling with MINGW on
1516       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1518   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
1519     - Warn if the ContactInfo field is not set, and tell the relay
1520       operator that not having a ContactInfo field set might cause their
1521       relay to get rejected in the future. Fixes bug 33361; bugfix
1522       on 0.1.1.10-alpha.
1524   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
1525     - Resume use of preemptively-built circuits when UseEntryGuards is set
1526       to 0. We accidentally disabled this feature with that config
1527       setting, leading to slower load times. Fixes bug 34303; bugfix
1528       on 0.3.3.2-alpha.
1530   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
1531     - Avoid compiler warnings from Clang 10 related to the use of GCC-
1532       style "/* falls through */" comments. Both Clang and GCC allow
1533       __attribute__((fallthrough)) instead, so that's what we're using
1534       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
1536   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
1537     - Fix a compiler warning on platforms with 32-bit time_t values.
1538       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1540   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
1541     - When starting Tor any time after the first time in a process,
1542       register the thread in which it is running as the main thread.
1543       Previously, we only did this on Windows, which could lead to bugs
1544       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
1545       on 0.3.3.1-alpha.
1547   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
1548     - When reading PEM-encoded key data, tolerate CRLF line-endings even
1549       if we are not running on Windows. Previously, non-Windows hosts
1550       would reject these line-endings in certain positions, making
1551       certain key files hard to move from one host to another. Fixes bug
1552       33032; bugfix on 0.3.5.1-alpha.
1554   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
1555     - Downgrade a noisy log message that could occur naturally when
1556       receiving an extrainfo document that we no longer want. Fixes bug
1557       16016; bugfix on 0.2.6.3-alpha.
1559   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
1560     - Remove a BUG() warning that would cause a stack trace if an onion
1561       service descriptor was freed while we were waiting for a
1562       rendezvous circuit to complete. Fixes bug 28992; bugfix
1563       on 0.3.2.1-alpha.
1565   o Testing (CI, backport from 0.4.3.4-rc):
1566     - In our Appveyor Windows CI, copy required DLLs to test and app
1567       directories, before running tor's tests. This ensures that tor.exe
1568       and test*.exe use the correct version of each DLL. This fix is not
1569       required, but we hope it will avoid DLL search issues in future.
1570       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
1571     - On Appveyor, skip the crypto/openssl_version test, which is
1572       failing because of a mismatched library installation. Fix
1573       for 33643.
1576 Changes in version 0.4.2.8 - 2020-07-09
1577   Tor 0.4.2.8 backports various fixes from later releases, including
1578   several that affect usability and portability.
1580   This release also fixes TROVE-2020-001, a medium-severity denial of
1581   service vulnerability affecting all versions of Tor when compiled with
1582   the NSS encryption library. (This is not the default configuration.)
1583   Using this vulnerability, an attacker could cause an affected Tor
1584   instance to crash remotely. This issue is also tracked as CVE-2020-
1585   15572. Anybody running a version of Tor built with the NSS library
1586   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1587   or later.
1589   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
1590     - Fix a crash due to an out-of-bound memory access when Tor is
1591       compiled with NSS support. Fixes bug 33119; bugfix on
1592       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1593       and CVE-2020-15572.
1595   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
1596     - Fix a bug that was preventing DoS defenses from running on bridges
1597       with a pluggable transport. Previously, the DoS subsystem was not
1598       given the transport name of the client connection, thus failed to
1599       find the GeoIP cache entry for that client address. Fixes bug
1600       33491; bugfix on 0.3.3.2-alpha.
1602   o Minor feature (sendme, flow control, backport form 0.4.3.4-rc):
1603     - Default to sending SENDME version 1 cells. (Clients are already
1604       sending these, because of a consensus parameter telling them to do
1605       so: this change only affects what clients would do if the
1606       consensus didn't contain a recommendation.) Closes ticket 33623.
1608   o Minor features (diagnostic, backport from 0.4.3.3-alpha):
1609     - Improve assertions and add some memory-poisoning code to try to
1610       track down possible causes of a rare crash (32564) in the EWMA
1611       code. Closes ticket 33290.
1613   o Minor features (testing, backport from 0.4.3.4-rc):
1614     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
1615       variable to specify a list of space-separated test cases that
1616       should not be executed. We will use this to disable certain tests
1617       that are failing on Appveyor because of mismatched OpenSSL
1618       libraries. Part of ticket 33643.
1620   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
1621     - Use the correct 64-bit printf format when compiling with MINGW on
1622       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1624   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
1625     - Warn if the ContactInfo field is not set, and tell the relay
1626       operator that not having a ContactInfo field set might cause their
1627       relay to get rejected in the future. Fixes bug 33361; bugfix
1628       on 0.1.1.10-alpha.
1630   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
1631     - Resume use of preemptively-built circuits when UseEntryGuards is set
1632       to 0. We accidentally disabled this feature with that config
1633       setting, leading to slower load times. Fixes bug 34303; bugfix
1634       on 0.3.3.2-alpha.
1636   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
1637     - Avoid compiler warnings from Clang 10 related to the use of GCC-
1638       style "/* falls through */" comments. Both Clang and GCC allow
1639       __attribute__((fallthrough)) instead, so that's what we're using
1640       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
1641     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
1642       on 0.4.0.3-alpha.
1644   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
1645     - Fix a compiler warning on platforms with 32-bit time_t values.
1646       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1648   o Minor bugfixes (controller protocol, backport from 0.4.3.2-alpha):
1649     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
1650       report them as SIGNAL events. Previously we would log a bug
1651       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
1653   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
1654     - When starting Tor any time after the first time in a process,
1655       register the thread in which it is running as the main thread.
1656       Previously, we only did this on Windows, which could lead to bugs
1657       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
1658       on 0.3.3.1-alpha.
1660   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
1661     - When reading PEM-encoded key data, tolerate CRLF line-endings even
1662       if we are not running on Windows. Previously, non-Windows hosts
1663       would reject these line-endings in certain positions, making
1664       certain key files hard to move from one host to another. Fixes bug
1665       33032; bugfix on 0.3.5.1-alpha.
1667   o Minor bugfixes (logging, backport from 0.4.3.2-rc):
1668     - When logging a bug, do not say "Future instances of this warning
1669       will be silenced" unless we are actually going to silence them.
1670       Previously we would say this whenever a BUG() check failed in the
1671       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
1673   o Minor bugfixes (logging, backport from 0.4.3.4-rc):
1674     - Flush stderr, stdout, and file logs during shutdown, if supported
1675       by the OS. This change helps make sure that any final logs are
1676       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
1678   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
1679     - Downgrade a noisy log message that could occur naturally when
1680       receiving an extrainfo document that we no longer want. Fixes bug
1681       16016; bugfix on 0.2.6.3-alpha.
1683   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
1684     - Remove a BUG() warning that would cause a stack trace if an onion
1685       service descriptor was freed while we were waiting for a
1686       rendezvous circuit to complete. Fixes bug 28992; bugfix
1687       on 0.3.2.1-alpha.
1689   o Testing (CI, backport from 0.4.3.4-rc):
1690     - In our Appveyor Windows CI, copy required DLLs to test and app
1691       directories, before running tor's tests. This ensures that tor.exe
1692       and test*.exe use the correct version of each DLL. This fix is not
1693       required, but we hope it will avoid DLL search issues in future.
1694       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
1695     - On Appveyor, skip the crypto/openssl_version test, which is
1696       failing because of a mismatched library installation. Fix
1697       for 33643.
1700 Changes in version 0.4.3.6 - 2020-07-09
1701   Tor 0.4.3.6 backports several bugfixes from later releases, including
1702   some affecting usability.
1704   This release also fixes TROVE-2020-001, a medium-severity denial of
1705   service vulnerability affecting all versions of Tor when compiled with
1706   the NSS encryption library. (This is not the default configuration.)
1707   Using this vulnerability, an attacker could cause an affected Tor
1708   instance to crash remotely. This issue is also tracked as CVE-2020-
1709   15572. Anybody running a version of Tor built with the NSS library
1710   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1711   or later.
1713   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
1714     - Fix a crash due to an out-of-bound memory access when Tor is
1715       compiled with NSS support. Fixes bug 33119; bugfix on
1716       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1717       and CVE-2020-15572.
1719   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
1720     - Use the correct 64-bit printf format when compiling with MINGW on
1721       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1723   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
1724     - Resume use of preemptively-built circuits when UseEntryGuards is set
1725       to 0. We accidentally disabled this feature with that config
1726       setting, leading to slower load times. Fixes bug 34303; bugfix
1727       on 0.3.3.2-alpha.
1729   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
1730     - Fix a compiler warning on platforms with 32-bit time_t values.
1731       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1733   o Minor bugfixes (linux seccomp sandbox, nss, backport from 0.4.4.1-alpha):
1734     - Fix a startup crash when tor is compiled with --enable-nss and
1735       sandbox support is enabled. Fixes bug 34130; bugfix on
1736       0.3.5.1-alpha. Patch by Daniel Pinto.
1738   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
1739     - Downgrade a noisy log message that could occur naturally when
1740       receiving an extrainfo document that we no longer want. Fixes bug
1741       16016; bugfix on 0.2.6.3-alpha.
1743   o Minor bugfixes (manual page, backport from 0.4.4.1-alpha):
1744     - Update the man page to reflect that MinUptimeHidServDirectoryV2
1745       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
1747   o Minor bugfixes (onion service v3, backport from 0.4.4.1-alpha):
1748     - Prevent an assert() that would occur when cleaning the client
1749       descriptor cache, and attempting to close circuits for a non-
1750       decrypted descriptor (lacking client authorization). Fixes bug
1751       33458; bugfix on 0.4.2.1-alpha.
1753   o Minor bugfixes (portability, backport from 0.4.4.1-alpha):
1754     - Fix a portability error in the configure script, where we were
1755       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
1757   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
1758     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
1759       descriptors, when the IPv6 port was configured as "auto". Fixes
1760       bug 32588; bugfix on 0.2.3.9-alpha.
1762   o Documentation (backport from 0.4.4.1-alpha):
1763     - Fix several doxygen warnings related to imbalanced groups. Closes
1764       ticket 34255.
1767 Changes in version 0.4.4.2-alpha - 2020-07-09
1768   This is the second alpha release in the 0.4.4.x series. It fixes a few
1769   bugs in the previous release, and solves a few usability,
1770   compatibility, and portability issues.
1772   This release also fixes TROVE-2020-001, a medium-severity denial of
1773   service vulnerability affecting all versions of Tor when compiled with
1774   the NSS encryption library. (This is not the default configuration.)
1775   Using this vulnerability, an attacker could cause an affected Tor
1776   instance to crash remotely. This issue is also tracked as CVE-2020-
1777   15572. Anybody running a version of Tor built with the NSS library
1778   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
1779   or later.
1781   o Major bugfixes (NSS, security):
1782     - Fix a crash due to an out-of-bound memory access when Tor is
1783       compiled with NSS support. Fixes bug 33119; bugfix on
1784       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
1785       and CVE-2020-15572.
1787   o Minor features (bootstrap reporting):
1788     - Report more detailed reasons for bootstrap failure when the
1789       failure happens due to a TLS error. Previously we would just call
1790       these errors "MISC" when they happened during read, and "DONE"
1791       when they happened during any other TLS operation. Closes
1792       ticket 32622.
1794   o Minor features (directory authority):
1795     - Authorities now recommend the protocol versions that are supported
1796       by Tor 0.3.5 and later. (Earlier versions of Tor have been
1797       deprecated since January of this year.) This recommendation will
1798       cause older clients and relays to give a warning on startup, or
1799       when they download a consensus directory. Closes ticket 32696.
1801   o Minor features (entry guards):
1802     - Reinstate support for GUARD NEW/UP/DOWN control port events.
1803       Closes ticket 40001.
1805   o Minor features (linux seccomp2 sandbox, portability):
1806     - Allow Tor to build on platforms where it doesn't know how to
1807       report which syscall caused the linux seccomp2 sandbox to fail.
1808       This change should make the sandbox code more portable to less
1809       common Linux architectures. Closes ticket 34382.
1810     - Permit the unlinkat() syscall, which some Libc implementations use
1811       to implement unlink(). Closes ticket 33346.
1813   o Minor bugfix (CI, Windows):
1814     - Use the correct 64-bit printf format when compiling with MINGW on
1815       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
1817   o Minor bugfix (onion service v3 client):
1818     - Remove a BUG() warning that could occur naturally. Fixes bug
1819       34087; bugfix on 0.3.2.1-alpha.
1821   o Minor bugfix (SOCKS, onion service client):
1822     - Detect v3 onion service addresses of the wrong length when
1823       returning the F6 ExtendedErrors code. Fixes bug 33873; bugfix
1824       on 0.4.3.1-alpha.
1826   o Minor bugfixes (compiler warnings):
1827     - Fix a compiler warning on platforms with 32-bit time_t values.
1828       Fixes bug 40028; bugfix on 0.3.2.8-rc.
1830   o Minor bugfixes (control port, onion service):
1831     - Consistently use 'address' in "Invalid v3 address" response to
1832       ONION_CLIENT_AUTH commands. Previously, we would sometimes say
1833       'addr'. Fixes bug 40005; bugfix on 0.4.3.1-alpha.
1835   o Minor bugfixes (logging):
1836     - Downgrade a noisy log message that could occur naturally when
1837       receiving an extrainfo document that we no longer want. Fixes bug
1838       16016; bugfix on 0.2.6.3-alpha.
1840   o Minor bugfixes (onion services v3):
1841     - Avoid a non-fatal assertion failure in certain edge-cases when
1842       opening an intro circuit as a client. Fixes bug 34084; bugfix
1843       on 0.3.2.1-alpha.
1845   o Deprecated features (onion service v2):
1846     - Add a deprecation warning for version 2 onion services. Closes
1847       ticket 40003.
1849   o Removed features (IPv6, revert):
1850     - Revert the change in the default value of ClientPreferIPv6OrPort:
1851       it breaks the torsocks use case. The SOCKS resolve command has no
1852       mechanism to ask for a specific address family (v4 or v6), and so
1853       prioritizing IPv6 when an IPv4 address is requested on the SOCKS
1854       interface resulted in a failure. Tor Browser explicitly sets
1855       PreferIPv6, so this should not affect the majority of our users.
1856       Closes ticket 33796; bugfix on 0.4.4.1-alpha.
1859 Changes in version 0.4.4.1-alpha - 2020-06-16
1860   This is the first alpha release in the 0.4.4.x series.  It improves
1861   our guard selection algorithms, improves the amount of code that
1862   can be disabled when running without relay support, and includes numerous
1863   small bugfixes and enhancements.  It also lays the ground for some IPv6
1864   features that we'll be developing more in the next (0.4.5) series.
1866   Here are the changes since 0.4.3.5.
1868   o Major features (Proposal 310, performance + security):
1869     - Implements Proposal 310, "Bandaid on guard selection". Proposal
1870       310 solves load-balancing issues with older versions of the guard
1871       selection algorithm, and improves its security. Under this new
1872       algorithm, a newly selected guard never becomes Primary unless all
1873       previously sampled guards are unreachable. Implements
1874       recommendation from 32088. (Proposal 310 is linked to the CLAPS
1875       project researching optimal client location-aware path selections.
1876       This project is a collaboration between the UCLouvain Crypto Group,
1877       the U.S. Naval Research Laboratory, and Princeton University.)
1879   o Major features (IPv6, relay):
1880     - Consider IPv6-only EXTEND2 cells valid on relays. Log a protocol
1881       warning if the IPv4 or IPv6 address is an internal address, and
1882       internal addresses are not allowed. But continue to use the other
1883       address, if it is valid. Closes ticket 33817.
1884     - If a relay can extend over IPv4 and IPv6, and both addresses are
1885       provided, it chooses between them uniformly at random. Closes
1886       ticket 33817.
1887     - Re-use existing IPv6 connections for circuit extends. Closes
1888       ticket 33817.
1889     - Relays may extend circuits over IPv6, if the relay has an IPv6
1890       ORPort, and the client supplies the other relay's IPv6 ORPort in
1891       the EXTEND2 cell. IPv6 extends will be used by the relay IPv6
1892       ORPort self-tests in 33222. Closes ticket 33817.
1894   o Major features (v3 onion services):
1895     - Allow v3 onion services to act as OnionBalance backend instances,
1896       by using the HiddenServiceOnionBalanceInstance torrc option.
1897       Closes ticket 32709.
1899   o Minor feature (developer tools):
1900     - Add a script to help check the alphabetical ordering of option
1901       names in the manual page. Closes ticket 33339.
1903   o Minor feature (onion service client, SOCKS5):
1904     - Add 3 new SocksPort ExtendedErrors (F2, F3, F7) that reports back
1905       new type of onion service connection failures. The semantics of
1906       these error codes are documented in proposal 309. Closes
1907       ticket 32542.
1909   o Minor feature (onion service v3):
1910     - If a service cannot upload its descriptor(s), log why at INFO
1911       level. Closes ticket 33400; bugfix on 0.3.2.1-alpha.
1913   o Minor feature (python scripts):
1914     - Stop assuming that /usr/bin/python exists. Instead of using a
1915       hardcoded path in scripts that still use Python 2, use
1916       /usr/bin/env, similarly to the scripts that use Python 3. Fixes
1917       bug 33192; bugfix on 0.4.2.
1919   o Minor features (client-only compilation):
1920     - Disable more code related to the ext_orport protocol when
1921       compiling without support for relay mode. Closes ticket 33368.
1922     - Disable more of our self-testing code when support for relay mode
1923       is disabled. Closes ticket 33370.
1925   o Minor features (code safety):
1926     - Check for failures of tor_inet_ntop() and tor_inet_ntoa()
1927       functions in DNS and IP address processing code, and adjust
1928       codepaths to make them less likely to crash entire Tor instances.
1929       Resolves issue 33788.
1931   o Minor features (compilation size):
1932     - Most server-side DNS code is now disabled when building without
1933       support for relay mode. Closes ticket 33366.
1935   o Minor features (continuous integration):
1936     - Run unit-test and integration test (Stem, Chutney) jobs with
1937       ALL_BUGS_ARE_FATAL macro being enabled on Travis and Appveyor.
1938       Resolves ticket 32143.
1940   o Minor features (control port):
1941     - Return a descriptive error message from the 'GETINFO status/fresh-
1942       relay-descs' command on the control port. Previously, we returned
1943       a generic error of "Error generating descriptor". Closes ticket
1944       32873. Patch by Neel Chauhan.
1946   o Minor features (developer tooling):
1947     - Refrain from listing all .a files that are generated by the Tor
1948       build in .gitignore. Add a single wildcard *.a entry that covers
1949       all of them for present and future. Closes ticket 33642.
1950     - Add a script ("git-install-tools.sh") to install git hooks and
1951       helper scripts. Closes ticket 33451.
1953   o Minor features (directory authority, shared random):
1954     - Refactor more authority-only parts of the shared-random scheduling
1955       code to reside in the dirauth module, and to be disabled when
1956       compiling with --disable-module-dirauth. Closes ticket 33436.
1958   o Minor features (directory):
1959     - Remember the number of bytes we have downloaded for each directory
1960       purpose while bootstrapping, and while fully bootstrapped. Log
1961       this information as part of the heartbeat message. Closes
1962       ticket 32720.
1964   o Minor features (IPv6 support):
1965     - Adds IPv6 support to tor_addr_is_valid(). Adds tests for the above
1966       changes and tor_addr_is_null(). Closes ticket 33679. Patch
1967       by MrSquanchee.
1968     - Allow clients and relays to send dual-stack and IPv6-only EXTEND2
1969       cells. Parse dual-stack and IPv6-only EXTEND2 cells on relays.
1970       Closes ticket 33901.
1972   o Minor features (logging):
1973     - When trying to find our own address, add debug-level logging to
1974       report the sources of candidate addresses. Closes ticket 32888.
1976   o Minor features (testing, architecture):
1977     - Our test scripts now double-check that subsystem initialization
1978       order is consistent with the inter-module dependencies established
1979       by our .may_include files. Implements ticket 31634.
1980     - Initialize all subsystems at the beginning of our unit test
1981       harness, to avoid crashes due to uninitialized subsystems. Follow-
1982       up from ticket 33316.
1984   o Minor features (v3 onion services):
1985     - Add v3 onion service status to the dumpstats() call which is
1986       triggered by a SIGUSR1 signal. Previously, we only did v2 onion
1987       services. Closes ticket 24844. Patch by Neel Chauhan.
1989   o Minor features (windows):
1990     - Add support for console control signals like Ctrl+C in Windows.
1991       Closes ticket 34211. Patch from Damon Harris (TheDcoder).
1993   o Minor bugfix (onion service v3):
1994     - Prevent an assert() that would occur when cleaning the client
1995       descriptor cache, and attempting to close circuits for a non-
1996       decrypted descriptor (lacking client authorization). Fixes bug
1997       33458; bugfix on 0.4.2.1-alpha.
1999   o Minor bugfix (refactoring):
2000     - Lift circuit_build_times_disabled() out of the
2001       circuit_expire_building() loop, to save CPU time when there are
2002       many circuits open. Fixes bug 33977; bugfix on 0.3.5.9.
2004   o Minor bugfixes (client performance):
2005     - Resume use of preemptively-built circuits when UseEntryGuards is set
2006       to 0. We accidentally disabled this feature with that config
2007       setting, leading to slower load times. Fixes bug 34303; bugfix
2008       on 0.3.3.2-alpha.
2010   o Minor bugfixes (directory authorities):
2011     - Directory authorities now reject votes that arrive too late. In
2012       particular, once an authority has started fetching missing votes,
2013       it no longer accepts new votes posted by other authorities. This
2014       change helps prevent a consensus split, where only some authorities
2015       have the late vote. Fixes bug 4631; bugfix on 0.2.0.5-alpha.
2017   o Minor bugfixes (git scripts):
2018     - Stop executing the checked-out pre-commit hook from the pre-push
2019       hook. Instead, execute the copy in the user's git directory. Fixes
2020       bug 33284; bugfix on 0.4.1.1-alpha.
2022   o Minor bugfixes (initialization):
2023     - Initialize the subsystems in our code in an order more closely
2024       corresponding to their dependencies, so that every system is
2025       initialized before the ones that (theoretically) depend on it.
2026       Fixes bug 33316; bugfix on 0.4.0.1-alpha.
2028   o Minor bugfixes (IPv4, relay):
2029     - Check for invalid zero IPv4 addresses and ports when sending and
2030       receiving extend cells. Fixes bug 33900; bugfix on 0.2.4.8-alpha.
2032   o Minor bugfixes (IPv6, relay):
2033     - Consider IPv6 addresses when checking if a connection is
2034       canonical. In 17604, relays assumed that a remote relay could
2035       consider an IPv6 connection canonical, but did not set the
2036       canonical flag on their side of the connection. Fixes bug 33899;
2037       bugfix on 0.3.1.1-alpha.
2038     - Log IPv6 addresses on connections where this relay is the
2039       responder. Previously, responding relays would replace the remote
2040       IPv6 address with the IPv4 address from the consensus. Fixes bug
2041       33899; bugfix on 0.3.1.1-alpha.
2043   o Minor bugfixes (linux seccomp sandbox nss):
2044     - Fix a startup crash when tor is compiled with --enable-nss and
2045       sandbox support is enabled. Fixes bug 34130; bugfix on
2046       0.3.5.1-alpha. Patch by Daniel Pinto.
2048   o Minor bugfixes (logging, testing):
2049     - Make all of tor's assertion macros support the ALL_BUGS_ARE_FATAL
2050       and DISABLE_ASSERTS_IN_UNIT_TESTS debugging modes. (IF_BUG_ONCE()
2051       used to log a non-fatal warning, regardless of the debugging
2052       mode.) Fixes bug 33917; bugfix on 0.2.9.1-alpha.
2054   o Minor bugfixes (logs):
2055     - Remove surprising empty line in the INFO-level log about circuit
2056       build timeout. Fixes bug 33531; bugfix on 0.3.3.1-alpha.
2058   o Minor bugfixes (mainloop):
2059     - Better guard against growing a buffer past its maximum 2GB in
2060       size. Fixes bug 33131; bugfix on 0.3.0.4-rc.
2062   o Minor bugfixes (manual page):
2063     - Update the man page to reflect that MinUptimeHidServDirectoryV2
2064       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
2066   o Minor bugfixes (onion service v3, client):
2067     - Remove a BUG() that was causing a stacktrace when a descriptor
2068       changed at an unexpected time. Fixes bug 28992; bugfix
2069       on 0.3.2.1-alpha.
2071   o Minor bugfixes (onion service, logging):
2072     - Fix a typo in a log message PublishHidServDescriptors is set to 0.
2073       Fixes bug 33779; bugfix on 0.3.2.1-alpha.
2075   o Minor bugfixes (portability):
2076     - Fix a portability error in the configure script, where we were
2077       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
2079   o Minor bugfixes (protocol versions):
2080     - Sort tor's supported protocol version lists, as recommended by the
2081       tor directory specification. Fixes bug 33285; bugfix
2082       on 0.4.0.1-alpha.
2084   o Minor bugfixes (relays):
2085     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
2086       descriptors, when the IPv6 port was configured as "auto". Fixes
2087       bug 32588; bugfix on 0.2.3.9-alpha.
2089   o Code simplification and refactoring:
2090     - Define and use a new constant TOR_ADDRPORT_BUF_LEN which is like
2091       TOR_ADDR_BUF_LEN but includes enough space for an IP address,
2092       brackets, separating colon, and port number. Closes ticket 33956.
2093       Patch by Neel Chauhan.
2094     - Merge the orconn and ocirc events into the "core" subsystem, which
2095       manages or connections and origin circuits. Previously they were
2096       isolated in subsystems of their own.
2097     - Move LOG_PROTOCOL_WARN to app/config. Resolves a dependency
2098       inversion. Closes ticket 33633.
2099     - Move the circuit extend code to the relay module. Split the
2100       circuit extend function into smaller functions. Closes
2101       ticket 33633.
2102     - Rewrite port_parse_config() to use the default port flags from
2103       port_cfg_new(). Closes ticket 32994. Patch by MrSquanchee.
2104     - Updated comments in 'scheduler.c' to reflect old code changes, and
2105       simplified the scheduler channel state change code. Closes
2106       ticket 33349.
2108   o Documentation:
2109     - Document the limitations of using %include on config files with
2110       seccomp sandbox enabled. Fixes documentation bug 34133; bugfix on
2111       0.3.1.1-alpha. Patch by Daniel Pinto.
2112     - Fix several doxygen warnings related to imbalanced groups. Closes
2113       ticket 34255.
2115   o Removed features:
2116     - Remove the ClientAutoIPv6ORPort option. This option attempted to
2117       randomly choose between IPv4 and IPv6 for client connections, and
2118       wasn't a true implementation of Happy Eyeballs. Often, this option
2119       failed on IPv4-only or IPv6-only connections. Closes ticket 32905.
2120       Patch by Neel Chauhan.
2121     - Stop shipping contrib/dist/rc.subr file, as it is not being used
2122       on FreeBSD anymore. Closes issue 31576.
2124   o Testing:
2125     - Add a basic IPv6 test to "make test-network". This test only runs
2126       when the local machine has an IPv6 stack. Closes ticket 33300.
2127     - Add test-network-ipv4 and test-network-ipv6 jobs to the Makefile.
2128       These jobs run the IPv4-only and dual-stack chutney flavours from
2129       test-network-all. Closes ticket 33280.
2130     - Remove a redundant distcheck job. Closes ticket 33194.
2131     - Run the test-network-ipv6 Makefile target in the Travis CI IPv6
2132       chutney job. This job runs on macOS, so it's a bit slow. Closes
2133       ticket 33303.
2134     - Sort the Travis jobs in order of speed. Putting the slowest jobs
2135       first takes full advantage of Travis job concurrency. Closes
2136       ticket 33194.
2137     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2138       previously configured to fast_finish (which requires
2139       allow_failure), to speed up the build. Closes ticket 33195.
2140     - Test v3 onion services to tor's mixed IPv4 chutney network. And
2141       add a mixed IPv6 chutney network. These networks are used in the
2142       test-network-all, test-network-ipv4, and test-network-ipv6 make
2143       targets. Closes ticket 33334.
2144     - Use the "bridges+hs-v23" chutney network flavour in "make test-
2145       network". This test requires a recent version of chutney (mid-
2146       February 2020). Closes ticket 28208.
2147     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2148       tool to produce detailed diagnostic output. Closes ticket 32792.
2150   o Code simplification and refactoring (onion service):
2151     - Refactor configuration parsing to use the new config subsystem
2152       code. Closes ticket 33014.
2154   o Code simplification and refactoring (relay address):
2155     - Move a series of functions related to address resolving into their
2156       own files. Closes ticket 33789.
2158   o Documentation (manual page):
2159     - Add cross reference links and a table of contents to the HTML tor
2160       manual page. Closes ticket 33369. Work by Swati Thacker as part of
2161       Google Season of Docs.
2162     - Alphabetize the Denial of Service Mitigation Options, Directory
2163       Authority Server Options, Hidden Service Options, and Testing
2164       Network Options sections of the tor(1) manual page. Closes ticket
2165       33275. Work by Swati Thacker as part of Google Season of Docs.
2166     - Refrain from mentioning nicknames in manpage section for MyFamily
2167       torrc option. Resolves issue 33417.
2168     - Updated the options set by TestingTorNetwork in the manual page.
2169       Closes ticket 33778.
2172 Changes in version 0.4.3.5 - 2020-05-15
2173   Tor 0.4.3.5 is the first stable release in the 0.4.3.x series. This
2174   series adds support for building without relay code enabled, and
2175   implements functionality needed for OnionBalance with v3 onion
2176   services. It includes significant refactoring of our configuration and
2177   controller functionality, and fixes numerous smaller bugs and
2178   performance issues.
2180   Per our support policy, we support each stable release series for nine
2181   months after its first stable release, or three months after the first
2182   stable release of the next series: whichever is longer. This means
2183   that 0.4.3.x will be supported until around February 2021--later, if
2184   0.4.4.x is later than anticipated.
2186   Note also that support for 0.4.1.x is about to end on May 20 of this
2187   year; 0.4.2.x will be supported until September 15. We still plan to
2188   continue supporting 0.3.5.x, our long-term stable series, until
2189   Feb 2022.
2191   Below are the changes since 0.4.3.4-rc. For a complete list of changes
2192   since 0.4.2.6, see the ReleaseNotes file.
2194   o Minor bugfixes (compiler compatibility):
2195     - Avoid compiler warnings from Clang 10 related to the use of GCC-
2196       style "/* falls through */" comments. Both Clang and GCC allow
2197       __attribute__((fallthrough)) instead, so that's what we're using
2198       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
2199     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
2200       on 0.4.0.3-alpha.
2202   o Minor bugfixes (logging):
2203     - Stop truncating IPv6 addresses and ports in channel and connection
2204       logs. Fixes bug 33918; bugfix on 0.2.4.4-alpha.
2205     - Fix a logic error in a log message about whether an address was
2206       invalid. Previously, the code would never report that onion
2207       addresses were onion addresses. Fixes bug 34131; bugfix
2208       on 0.4.3.1-alpha.
2211 Changes in version 0.4.3.4-rc - 2020-04-13
2212   Tor 0.4.3.4-rc is the first release candidate in its series. It fixes
2213   several bugs from earlier versions, including one affecting DoS
2214   defenses on bridges using pluggable transports.
2216   o Major bugfixes (DoS defenses, bridges, pluggable transport):
2217     - Fix a bug that was preventing DoS defenses from running on bridges
2218       with a pluggable transport. Previously, the DoS subsystem was not
2219       given the transport name of the client connection, thus failed to
2220       find the GeoIP cache entry for that client address. Fixes bug
2221       33491; bugfix on 0.3.3.2-alpha.
2223   o Minor feature (sendme, flow control):
2224     - Default to sending SENDME version 1 cells. (Clients are already
2225       sending these, because of a consensus parameter telling them to do
2226       so: this change only affects what clients would do if the
2227       consensus didn't contain a recommendation.) Closes ticket 33623.
2229   o Minor features (testing):
2230     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
2231       variable to specify a list of space-separated test cases that
2232       should not be executed. We will use this to disable certain tests
2233       that are failing on Appveyor because of mismatched OpenSSL
2234       libraries. Part of ticket 33643.
2236   o Minor bugfixes (--disable-module-relay):
2237     - Fix an assertion failure when Tor is built without the relay
2238       module, and then invoked with the "User" option. Fixes bug 33668;
2239       bugfix on 0.4.3.1-alpha.
2241   o Minor bugfixes (--disable-module-relay,--disable-module-dirauth):
2242     - Set some output arguments in the relay and dirauth module stubs,
2243       to guard against future stub argument handling bugs like 33668.
2244       Fixes bug 33674; bugfix on 0.4.3.1-alpha.
2246   o Minor bugfixes (build system):
2247     - Correctly output the enabled module in the configure summary.
2248       Before that, the list shown was just plain wrong. Fixes bug 33646;
2249       bugfix on 0.4.3.2-alpha.
2251   o Minor bugfixes (client, IPv6):
2252     - Stop forcing all non-SocksPorts to prefer IPv6 exit connections.
2253       Instead, prefer IPv6 connections by default, but allow users to
2254       change their configs using the "NoPreferIPv6" port flag. Fixes bug
2255       33608; bugfix on 0.4.3.1-alpha.
2256     - Revert PreferIPv6 set by default on the SocksPort because it broke
2257       the torsocks use case. Tor doesn't have a way for an application
2258       to request the hostname to be resolved for a specific IP version,
2259       but torsocks requires that. Up until now, IPv4 was used by default
2260       so torsocks is expecting that, and can't handle a possible IPv6
2261       being returned. Fixes bug 33804; bugfix on 0.4.3.1-alpha.
2263   o Minor bugfixes (key portability):
2264     - When reading PEM-encoded key data, tolerate CRLF line-endings even
2265       if we are not running on Windows. Previously, non-Windows hosts
2266       would reject these line-endings in certain positions, making
2267       certain key files hard to move from one host to another. Fixes bug
2268       33032; bugfix on 0.3.5.1-alpha.
2270   o Minor bugfixes (logging):
2271     - Flush stderr, stdout, and file logs during shutdown, if supported
2272       by the OS. This change helps make sure that any final logs are
2273       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
2274     - Stop closing stderr and stdout during shutdown. Closing these file
2275       descriptors can hide sanitiser logs. Fixes bug 33087; bugfix
2276       on 0.4.1.6.
2278   o Minor bugfixes (onion services v3):
2279     - Relax severity of a log message that can appear naturally when
2280       decoding onion service descriptors as a relay. Also add some
2281       diagnostics to debug any future bugs in that area. Fixes bug
2282       31669; bugfix on 0.3.0.1-alpha.
2283     - Block a client-side assertion by disallowing the registration of
2284       an x25519 client auth key that's all zeroes. Fixes bug 33545;
2285       bugfix on 0.4.3.1-alpha. Based on patch from "cypherpunks".
2287   o Code simplification and refactoring:
2288     - Disable our coding standards best practices tracker in our git
2289       hooks. (0.4.3 branches only.) Closes ticket 33678.
2291   o Testing:
2292     - Avoid conflicts between the fake sockets in tor's unit tests, and
2293       real file descriptors. Resolves issues running unit tests with
2294       GitHub Actions, where the process that embeds or launches the
2295       tests has already opened a large number of file descriptors. Fixes
2296       bug 33782; bugfix on 0.2.8.1-alpha. Found and fixed by
2297       Putta Khunchalee.
2299   o Testing (CI):
2300     - In our Appveyor Windows CI, copy required DLLs to test and app
2301       directories, before running tor's tests. This ensures that tor.exe
2302       and test*.exe use the correct version of each DLL. This fix is not
2303       required, but we hope it will avoid DLL search issues in future.
2304       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
2305     - On Appveyor, skip the crypto/openssl_version test, which is
2306       failing because of a mismatched library installation. Fix
2307       for 33643.
2310 Changes in version 0.4.3.3-alpha - 2020-03-18
2311   Tor 0.4.3.3-alpha fixes several bugs in previous releases, including
2312   TROVE-2020-002, a major denial-of-service vulnerability that affected
2313   all released Tor instances since 0.2.1.5-alpha. Using this
2314   vulnerability, an attacker could cause Tor instances to consume a huge
2315   amount of CPU, disrupting their operations for several seconds or
2316   minutes. This attack could be launched by anybody against a relay, or
2317   by a directory cache against any client that had connected to it. The
2318   attacker could launch this attack as much as they wanted, thereby
2319   disrupting service or creating patterns that could aid in traffic
2320   analysis. This issue was found by OSS-Fuzz, and is also tracked
2321   as CVE-2020-10592.
2323   We do not have reason to believe that this attack is currently being
2324   exploited in the wild, but nonetheless we advise everyone to upgrade
2325   as soon as packages are available.
2327   o Major bugfixes (security, denial-of-service):
2328     - Fix a denial-of-service bug that could be used by anyone to
2329       consume a bunch of CPU on any Tor relay or authority, or by
2330       directories to consume a bunch of CPU on clients or hidden
2331       services. Because of the potential for CPU consumption to
2332       introduce observable timing patterns, we are treating this as a
2333       high-severity security issue. Fixes bug 33119; bugfix on
2334       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2335       as TROVE-2020-002 and CVE-2020-10592.
2337   o Major bugfixes (circuit padding, memory leak):
2338     - Avoid a remotely triggered memory leak in the case that a circuit
2339       padding machine is somehow negotiated twice on the same circuit.
2340       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
2341       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
2343   o Major bugfixes (directory authority):
2344     - Directory authorities will now send a 503 (not enough bandwidth)
2345       code to clients when under bandwidth pressure. Known relays and
2346       other authorities will always be answered regardless of the
2347       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
2349   o Minor features (diagnostic):
2350     - Improve assertions and add some memory-poisoning code to try to
2351       track down possible causes of a rare crash (32564) in the EWMA
2352       code. Closes ticket 33290.
2354   o Minor features (directory authorities):
2355     - Directory authorities now reject descriptors from relays running
2356       Tor versions from the 0.2.9 and 0.4.0 series. The 0.3.5 series is
2357       still allowed. Resolves ticket 32672. Patch by Neel Chauhan.
2359   o Minor features (usability):
2360     - Include more information when failing to parse a configuration
2361       value. This should make it easier to tell what's going wrong when
2362       a configuration file doesn't parse. Closes ticket 33460.
2364   o Minor bugfix (relay, configuration):
2365     - Warn if the ContactInfo field is not set, and tell the relay
2366       operator that not having a ContactInfo field set might cause their
2367       relay to get rejected in the future. Fixes bug 33361; bugfix
2368       on 0.1.1.10-alpha.
2370   o Minor bugfixes (coding best practices checks):
2371     - Allow the "practracker" script to read unicode files when using
2372       Python 2. We made the script use unicode literals in 0.4.3.1-alpha,
2373       but didn't change the codec for opening files. Fixes bug 33374;
2374       bugfix on 0.4.3.1-alpha.
2376   o Minor bugfixes (continuous integration):
2377     - Remove the buggy and unused mirroring job. Fixes bug 33213; bugfix
2378       on 0.3.2.2-alpha.
2380   o Minor bugfixes (onion service v3, client):
2381     - Remove a BUG() warning that would cause a stack trace if an onion
2382       service descriptor was freed while we were waiting for a
2383       rendezvous circuit to complete. Fixes bug 28992; bugfix
2384       on 0.3.2.1-alpha.
2386   o Minor bugfixes (onion services v3):
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 Documentation (manpage):
2393     - Alphabetize the Server and Directory server sections of the tor
2394       manpage. Also split Statistics options into their own section of
2395       the manpage. Closes ticket 33188. Work by Swati Thacker as part of
2396       Google Season of Docs.
2397     - Document the __OwningControllerProcess torrc option and specify
2398       its polling interval. Resolves issue 32971.
2400   o Testing (Travis CI):
2401     - Remove a redundant distcheck job. Closes ticket 33194.
2402     - Sort the Travis jobs in order of speed: putting the slowest jobs
2403       first takes full advantage of Travis job concurrency. Closes
2404       ticket 33194.
2405     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2406       previously configured to fast_finish (which requires
2407       allow_failure), to speed up the build. Closes ticket 33195.
2408     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2409       tool to produce detailed diagnostic output. Closes ticket 32792.
2412 Changes in version 0.4.2.7 - 2020-03-18
2413   This is the third stable release in the 0.4.2.x series. It backports
2414   numerous fixes from later releases, including a fix for TROVE-2020-
2415   002, a major denial-of-service vulnerability that affected all
2416   released Tor instances since 0.2.1.5-alpha. Using this vulnerability,
2417   an attacker could cause Tor instances to consume a huge amount of CPU,
2418   disrupting their operations for several seconds or minutes. This
2419   attack could be launched by anybody against a relay, or by a directory
2420   cache against any client that had connected to it. The attacker could
2421   launch this attack as much as they wanted, thereby disrupting service
2422   or creating patterns that could aid in traffic analysis. This issue
2423   was found by OSS-Fuzz, and is also tracked as CVE-2020-10592.
2425   We do not have reason to believe that this attack is currently being
2426   exploited in the wild, but nonetheless we advise everyone to upgrade
2427   as soon as packages are available.
2429   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
2430     - Fix a denial-of-service bug that could be used by anyone to
2431       consume a bunch of CPU on any Tor relay or authority, or by
2432       directories to consume a bunch of CPU on clients or hidden
2433       services. Because of the potential for CPU consumption to
2434       introduce observable timing patterns, we are treating this as a
2435       high-severity security issue. Fixes bug 33119; bugfix on
2436       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2437       as TROVE-2020-002 and CVE-2020-10592.
2439   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
2440     - Avoid a remotely triggered memory leak in the case that a circuit
2441       padding machine is somehow negotiated twice on the same circuit.
2442       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
2443       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
2445   o Major bugfixes (directory authority, backport from 0.4.3.3-alpha):
2446     - Directory authorities will now send a 503 (not enough bandwidth)
2447       code to clients when under bandwidth pressure. Known relays and
2448       other authorities will always be answered regardless of the
2449       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
2451   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
2452     - Stop allowing failures on the Travis CI stem tests job. It looks
2453       like all the stem hangs we were seeing before are now fixed.
2454       Closes ticket 33075.
2456   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
2457     - Lowercase the configured value of BridgeDistribution before adding
2458       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2460   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
2461     - If we encounter a bug when flushing a buffer to a TLS connection,
2462       only log the bug once per invocation of the Tor process.
2463       Previously we would log with every occurrence, which could cause
2464       us to run out of disk space. Fixes bug 33093; bugfix
2465       on 0.3.2.2-alpha.
2467   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
2468     - Fix an assertion failure that could result from a corrupted
2469       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2470       bugfix on 0.3.3.1-alpha. This issue is also tracked
2471       as TROVE-2020-003.
2473   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
2474     - Fix a syntax warning given by newer versions of Rust that was
2475       creating problems for our continuous integration. Fixes bug 33212;
2476       bugfix on 0.3.5.1-alpha.
2478   o Testing (Travis CI, backport from 0.4.3.3-alpha):
2479     - Remove a redundant distcheck job. Closes ticket 33194.
2480     - Sort the Travis jobs in order of speed: putting the slowest jobs
2481       first takes full advantage of Travis job concurrency. Closes
2482       ticket 33194.
2483     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2484       previously configured to fast_finish (which requires
2485       allow_failure), to speed up the build. Closes ticket 33195.
2486     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2487       tool to produce detailed diagnostic output. Closes ticket 32792.
2490 Changes in version 0.4.1.9 - 2020-03-18
2491   Tor 0.4.1.9 backports important fixes from later Tor releases,
2492   including a fix for TROVE-2020-002, a major denial-of-service
2493   vulnerability that affected all released Tor instances since
2494   0.2.1.5-alpha. Using this vulnerability, an attacker could cause Tor
2495   instances to consume a huge amount of CPU, disrupting their operations
2496   for several seconds or minutes. This attack could be launched by
2497   anybody against a relay, or by a directory cache against any client
2498   that had connected to it. The attacker could launch this attack as
2499   much as they wanted, thereby disrupting service or creating patterns
2500   that could aid in traffic analysis. This issue was found by OSS-Fuzz,
2501   and is also tracked as CVE-2020-10592.
2503   We do not have reason to believe that this attack is currently being
2504   exploited in the wild, but nonetheless we advise everyone to upgrade
2505   as soon as packages are available.
2507   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
2508     - Fix a denial-of-service bug that could be used by anyone to
2509       consume a bunch of CPU on any Tor relay or authority, or by
2510       directories to consume a bunch of CPU on clients or hidden
2511       services. Because of the potential for CPU consumption to
2512       introduce observable timing patterns, we are treating this as a
2513       high-severity security issue. Fixes bug 33119; bugfix on
2514       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2515       as TROVE-2020-002 and CVE-2020-10592.
2517   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
2518     - Avoid a remotely triggered memory leak in the case that a circuit
2519       padding machine is somehow negotiated twice on the same circuit.
2520       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
2521       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
2523   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
2524     - Lowercase the configured value of BridgeDistribution before adding
2525       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2527   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
2528     - If we encounter a bug when flushing a buffer to a TLS connection,
2529       only log the bug once per invocation of the Tor process.
2530       Previously we would log with every occurrence, which could cause
2531       us to run out of disk space. Fixes bug 33093; bugfix
2532       on 0.3.2.2-alpha.
2534   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
2535     - Fix an assertion failure that could result from a corrupted
2536       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2537       bugfix on 0.3.3.1-alpha. This issue is also tracked
2538       as TROVE-2020-003.
2540   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
2541     - Fix a syntax warning given by newer versions of Rust that was
2542       creating problems for our continuous integration. Fixes bug 33212;
2543       bugfix on 0.3.5.1-alpha.
2545   o Testing (Travis CI, backport from 0.4.3.3-alpha):
2546     - Remove a redundant distcheck job. Closes ticket 33194.
2547     - Sort the Travis jobs in order of speed: putting the slowest jobs
2548       first takes full advantage of Travis job concurrency. Closes
2549       ticket 33194.
2550     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2551       previously configured to fast_finish (which requires
2552       allow_failure), to speed up the build. Closes ticket 33195.
2553     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2554       tool to produce detailed diagnostic output. Closes ticket 32792.
2557 Changes in version 0.3.5.10 - 2020-03-18
2558   Tor 0.3.5.10 backports many fixes from later Tor releases, including a
2559   fix for TROVE-2020-002, a major denial-of-service vulnerability that
2560   affected all released Tor instances since 0.2.1.5-alpha. Using this
2561   vulnerability, an attacker could cause Tor instances to consume a huge
2562   amount of CPU, disrupting their operations for several seconds or
2563   minutes. This attack could be launched by anybody against a relay, or
2564   by a directory cache against any client that had connected to it. The
2565   attacker could launch this attack as much as they wanted, thereby
2566   disrupting service or creating patterns that could aid in traffic
2567   analysis. This issue was found by OSS-Fuzz, and is also tracked
2568   as CVE-2020-10592.
2570   We do not have reason to believe that this attack is currently being
2571   exploited in the wild, but nonetheless we advise everyone to upgrade
2572   as soon as packages are available.
2574   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
2575     - Fix a denial-of-service bug that could be used by anyone to
2576       consume a bunch of CPU on any Tor relay or authority, or by
2577       directories to consume a bunch of CPU on clients or hidden
2578       services. Because of the potential for CPU consumption to
2579       introduce observable timing patterns, we are treating this as a
2580       high-severity security issue. Fixes bug 33119; bugfix on
2581       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
2582       as TROVE-2020-002 and CVE-2020-10592.
2584   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
2585     - Correct how we use libseccomp. Particularly, stop assuming that
2586       rules are applied in a particular order or that more rules are
2587       processed after the first match. Neither is the case! In
2588       libseccomp <2.4.0 this lead to some rules having no effect.
2589       libseccomp 2.4.0 changed how rules are generated, leading to a
2590       different ordering, which in turn led to a fatal crash during
2591       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2592       Peter Gerber.
2594   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
2595     - Stop allowing failures on the Travis CI stem tests job. It looks
2596       like all the stem hangs we were seeing before are now fixed.
2597       Closes ticket 33075.
2599   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
2600     - Lowercase the configured value of BridgeDistribution before adding
2601       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
2603   o Minor bugfixes (crash, backport from 0.4.2.4-rc):
2604     - When running Tor with an option like --verify-config or
2605       --dump-config that does not start the event loop, avoid crashing
2606       if we try to exit early because of an error. Fixes bug 32407;
2607       bugfix on 0.3.3.1-alpha.
2609   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
2610     - If we encounter a bug when flushing a buffer to a TLS connection,
2611       only log the bug once per invocation of the Tor process.
2612       Previously we would log with every occurrence, which could cause
2613       us to run out of disk space. Fixes bug 33093; bugfix
2614       on 0.3.2.2-alpha.
2616   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
2617     - Fix an assertion failure that could result from a corrupted
2618       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
2619       bugfix on 0.3.3.1-alpha. This issue is also tracked
2620       as TROVE-2020-003.
2622   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
2623     - Fix a syntax warning given by newer versions of Rust that was
2624       creating problems for our continuous integration. Fixes bug 33212;
2625       bugfix on 0.3.5.1-alpha.
2627   o Testing (backport from 0.4.3.1-alpha):
2628     - Re-enable the Travis CI macOS Chutney build, but don't let it
2629       prevent the Travis job from finishing. (The Travis macOS jobs are
2630       slow, so we don't want to have it delay the whole CI process.)
2631       Closes ticket 32629.
2632     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2633       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2634       fix the sandbox errors in 32722. Closes ticket 32240.
2636   o Testing (continuous integration, backport from 0.4.3.1-alpha):
2637     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2639   o Testing (Travis CI, backport from 0.4.3.3-alpha):
2640     - Remove a redundant distcheck job. Closes ticket 33194.
2641     - Sort the Travis jobs in order of speed: putting the slowest jobs
2642       first takes full advantage of Travis job concurrency. Closes
2643       ticket 33194.
2644     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
2645       previously configured to fast_finish (which requires
2646     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
2647       tool to produce detailed diagnostic output. Closes ticket 32792.
2650 Changes in version 0.4.3.2-alpha - 2020-02-10
2651   This is the second stable alpha release in the Tor 0.4.3.x series. It
2652   fixes several bugs present in the previous alpha release. Anybody
2653   running the previous alpha should upgrade, and look for bugs in this
2654   one instead.
2656   o Major bugfixes (onion service client, authorization):
2657     - On a NEWNYM signal, purge entries from the ephemeral client
2658       authorization cache. The permanent ones are kept. Fixes bug 33139;
2659       bugfix on 0.4.3.1-alpha.
2661   o Minor features (best practices tracker):
2662     - Practracker now supports a --regen-overbroad option to regenerate
2663       the exceptions file, but only to revise exceptions to be _less_
2664       tolerant of best-practices violations. Closes ticket 32372.
2666   o Minor features (continuous integration):
2667     - Run Doxygen Makefile target on Travis, so we can learn about
2668       regressions in our internal documentation. Closes ticket 32455.
2669     - Stop allowing failures on the Travis CI stem tests job. It looks
2670       like all the stem hangs we were seeing before are now fixed.
2671       Closes ticket 33075.
2673   o Minor bugfixes (build system):
2674     - Revise configure options that were either missing or incorrect in
2675       the configure summary. Fixes bug 32230; bugfix on 0.4.3.1-alpha.
2677   o Minor bugfixes (controller protocol):
2678     - Fix a memory leak introduced by refactoring of control reply
2679       formatting code. Fixes bug 33039; bugfix on 0.4.3.1-alpha.
2680     - Fix a memory leak in GETINFO responses. Fixes bug 33103; bugfix
2681       on 0.4.3.1-alpha.
2682     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
2683       report them as SIGNAL events. Previously we would log a bug
2684       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
2686   o Minor bugfixes (logging):
2687     - If we encounter a bug when flushing a buffer to a TLS connection,
2688       only log the bug once per invocation of the Tor process.
2689       Previously we would log with every occurrence, which could cause
2690       us to run out of disk space. Fixes bug 33093; bugfix
2691       on 0.3.2.2-alpha.
2692     - When logging a bug, do not say "Future instances of this warning
2693       will be silenced" unless we are actually going to silence them.
2694       Previously we would say this whenever a BUG() check failed in the
2695       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
2697   o Minor bugfixes (onion service v2):
2698     - Move a series of v2 onion service warnings to protocol-warning
2699       level because they can all be triggered remotely by a malformed
2700       request. Fixes bug 32706; bugfix on 0.1.1.14-alpha.
2702   o Minor bugfixes (onion service v3, client authorization):
2703     - When removing client authorization credentials using the control
2704       port, also remove the associated descriptor, so the onion service
2705       can no longer be contacted. Fixes bug 33148; bugfix
2706       on 0.4.3.1-alpha.
2708   o Minor bugfixes (pluggable transports):
2709     - When receiving a message on standard error from a pluggable
2710       transport, log it at info level, rather than as a warning. Fixes
2711       bug 33005; bugfix on 0.4.0.1-alpha.
2713   o Minor bugfixes (rust, build):
2714     - Fix a syntax warning given by newer versions of Rust that was
2715       creating problems for our continuous integration. Fixes bug 33212;
2716       bugfix on 0.3.5.1-alpha.
2718   o Minor bugfixes (TLS bug handling):
2719     - When encountering a bug in buf_read_from_tls(), return a "MISC"
2720       error code rather than "WANTWRITE". This change might help avoid
2721       some CPU-wasting loops if the bug is ever triggered. Bug reported
2722       by opara. Fixes bug 32673; bugfix on 0.3.0.4-alpha.
2724   o Code simplification and refactoring (mainloop):
2725     - Simplify the ip_address_changed() function by removing redundant
2726       checks. Closes ticket 33091.
2728   o Documentation (manpage):
2729     - Split "Circuit Timeout" options and "Node Selection" options into
2730       their own sections of the tor manpage. Closes tickets 32928 and
2731       32929. Work by Swati Thacker as part of Google Season of Docs.
2734 Changes in version 0.4.2.6 - 2020-01-30
2735   This is the second stable release in the 0.4.2.x series. It backports
2736   several bugfixes from 0.4.3.1-alpha, including some that had affected
2737   the Linux seccomp2 sandbox or Windows services. If you're running with
2738   one of those configurations, you'll probably want to upgrade;
2739   otherwise, you should be fine with 0.4.2.5.
2741   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
2742     - Correct how we use libseccomp. Particularly, stop assuming that
2743       rules are applied in a particular order or that more rules are
2744       processed after the first match. Neither is the case! In
2745       libseccomp <2.4.0 this led to some rules having no effect.
2746       libseccomp 2.4.0 changed how rules are generated, leading to a
2747       different ordering, which in turn led to a fatal crash during
2748       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2749       Peter Gerber.
2750     - Fix crash when reloading logging configuration while the
2751       experimental sandbox is enabled. Fixes bug 32841; bugfix on
2752       0.4.1.7. Patch by Peter Gerber.
2754   o Minor bugfixes (correctness checks, backport from 0.4.3.1-alpha):
2755     - Use GCC/Clang's printf-checking feature to make sure that
2756       tor_assertf() arguments are correctly typed. Fixes bug 32765;
2757       bugfix on 0.4.1.1-alpha.
2759   o Minor bugfixes (logging, crash, backport from 0.4.3.1-alpha):
2760     - Avoid a possible crash when trying to log a (fatal) assertion
2761       failure about mismatched magic numbers in configuration objects.
2762       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
2764   o Minor bugfixes (testing, backport from 0.4.3.1-alpha):
2765     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
2766       test_practracker.sh script. Doing so caused a test failure. Fixes
2767       bug 32705; bugfix on 0.4.2.1-alpha.
2768     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
2769       skipping practracker checks. Fixes bug 32705; bugfix
2770       on 0.4.2.1-alpha.
2772   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
2773     - Initialize the publish/subscribe system when running as a windows
2774       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
2776   o Testing (backport from 0.4.3.1-alpha):
2777     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2778       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2779       fix the sandbox errors in 32722. Closes ticket 32240.
2780     - Re-enable the Travis CI macOS Chutney build, but don't let it
2781       prevent the Travis job from finishing. (The Travis macOS jobs are
2782       slow, so we don't want to have it delay the whole CI process.)
2783       Closes ticket 32629.
2785   o Testing (continuous integration, backport from 0.4.3.1-alpha):
2786     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2789 Changes in version 0.4.1.8 - 2020-01-30
2790   This release backports several bugfixes from later release series,
2791   including some that had affected the Linux seccomp2 sandbox or Windows
2792   services. If you're running with one of those configurations, you'll
2793   probably want to upgrade; otherwise, you should be fine with your
2794   current version of 0.4.1.x.
2796   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
2797     - Correct how we use libseccomp. Particularly, stop assuming that
2798       rules are applied in a particular order or that more rules are
2799       processed after the first match. Neither is the case! In
2800       libseccomp <2.4.0 this led to some rules having no effect.
2801       libseccomp 2.4.0 changed how rules are generated, leading to a
2802       different ordering, which in turn led to a fatal crash during
2803       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2804       Peter Gerber.
2805     - Fix crash when reloading logging configuration while the
2806       experimental sandbox is enabled. Fixes bug 32841; bugfix on
2807       0.4.1.7. Patch by Peter Gerber.
2809   o Minor bugfixes (crash, backport form 0.4.2.4-rc):
2810     - When running Tor with an option like --verify-config or
2811       --dump-config that does not start the event loop, avoid crashing
2812       if we try to exit early because of an error. Fixes bug 32407;
2813       bugfix on 0.3.3.1-alpha.
2815   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
2816     - Initialize the publish/subscribe system when running as a windows
2817       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
2819   o Testing (backport from 0.4.3.1-alpha):
2820     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
2821       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
2822       fix the sandbox errors in 32722. Closes ticket 32240.
2823     - Re-enable the Travis CI macOS Chutney build, but don't let it
2824       prevent the Travis job from finishing. (The Travis macOS jobs are
2825       slow, so we don't want to have it delay the whole CI process.)
2826       Closes ticket 32629.
2828   o Testing (continuous integration, backport from 0.4.3.1-alpha):
2829     - Use zstd in our Travis Linux builds. Closes ticket 32242.
2832 Changes in version 0.4.3.1-alpha - 2020-01-22
2833   This is the first alpha release in the 0.4.3.x series. It includes
2834   improved support for application integration of onion services, support
2835   for building in a client-only mode, and newly improved internal
2836   documentation (online at https://src-ref.docs.torproject.org/tor/). It
2837   also has numerous other small bugfixes and features, as well as
2838   improvements to our code's internal organization that should help us
2839   write better code in the future.
2841   o New system requirements:
2842     - When building Tor, you now need to have Python 3 in order to run
2843       the integration tests. (Python 2 is officially unsupported
2844       upstream, as of 1 Jan 2020.) Closes ticket 32608.
2846   o Major features (build system):
2847     - The relay code can now be disabled using the --disable-module-relay
2848       configure option. When this option is set, we also disable the
2849       dirauth module. Closes ticket 32123.
2850     - When Tor is compiled --disable-module-relay, we also omit the code
2851       used to act as a directory cache. Closes ticket 32487.
2853   o Major features (directory authority, ed25519):
2854     - Add support for banning a relay's ed25519 keys in the approved-
2855       routers file. This will help us migrate away from RSA keys in the
2856       future. Previously, only RSA keys could be banned in approved-
2857       routers. Resolves ticket 22029. Patch by Neel Chauhan.
2859   o Major features (onion service, controller):
2860     - New control port commands to manage client-side onion service
2861       authorization credentials. The ONION_CLIENT_AUTH_ADD command adds
2862       a credential, ONION_CLIENT_AUTH_REMOVE deletes a credential, and
2863       ONION_CLIENT_AUTH_VIEW lists the credentials. Closes ticket 30381.
2865   o Major features (onion service, SOCKS5):
2866     - Introduce a new SocksPort flag, ExtendedErrors, to support more
2867       detailed error codes in information for applications that support
2868       them. Closes ticket 30382; implements proposal 304.
2870   o Major features (proxy):
2871     - In addition to its current supported proxy types (HTTP CONNECT,
2872       SOCKS4, and SOCKS5), Tor can now make its OR connections through a
2873       HAProxy server. A new torrc option was added to specify the
2874       address/port of the server: TCPProxy <protocol> <host>:<port>.
2875       Currently the only supported protocol for the option is haproxy.
2876       Closes ticket 31518. Patch done by Suphanat Chunhapanya (haxxpop).
2878   o Major bugfixes (linux seccomp sandbox):
2879     - Correct how we use libseccomp. Particularly, stop assuming that
2880       rules are applied in a particular order or that more rules are
2881       processed after the first match. Neither is the case! In
2882       libseccomp <2.4.0 this led to some rules having no effect.
2883       libseccomp 2.4.0 changed how rules are generated, leading to a
2884       different ordering, which in turn led to a fatal crash during
2885       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
2886       Peter Gerber.
2887     - Fix crash when reloading logging configuration while the
2888       experimental sandbox is enabled. Fixes bug 32841; bugfix on
2889       0.4.1.7. Patch by Peter Gerber.
2891   o Major bugfixes (networking):
2892     - Correctly handle IPv6 addresses in SOCKS5 RESOLVE_PTR requests,
2893       and accept strings as well as binary addresses. Fixes bug 32315;
2894       bugfix on 0.3.5.1-alpha.
2896   o Major bugfixes (onion service):
2897     - Report HS circuit failure back into the HS subsystem so we take
2898       appropriate action with regards to the client introduction point
2899       failure cache. This improves reachability of onion services, since
2900       now clients notice failing introduction circuits properly. Fixes
2901       bug 32020; bugfix on 0.3.2.1-alpha.
2903   o Minor feature (configure, build system):
2904     - Output a list of enabled/disabled features at the end of the
2905       configure process in a pleasing way. Closes ticket 31373.
2907   o Minor feature (heartbeat, onion service):
2908     - Add the DoS INTRODUCE2 defenses counter to the heartbeat DoS
2909       message. Closes ticket 31371.
2911   o Minor features (configuration validation):
2912     - Configuration validation can now be done by per-module callbacks,
2913       rather than a global validation function. This will let us reduce
2914       the size of config.c and some of its more cumbersome functions.
2915       Closes ticket 31241.
2917   o Minor features (configuration):
2918     - If a configured hardware crypto accelerator in AccelName is
2919       prefixed with "!", Tor now exits when it cannot be found. Closes
2920       ticket 32406.
2921     - We now use flag-driven logic to warn about obsolete configuration
2922       fields, so that we can include their names. In 0.4.2, we used a
2923       special type, which prevented us from generating good warnings.
2924       Implements ticket 32404.
2926   o Minor features (controller):
2927     - Add stream isolation data to STREAM event. Closes ticket 19859.
2928     - Implement a new GETINFO command to fetch microdescriptor
2929       consensus. Closes ticket 31684.
2931   o Minor features (debugging, directory system):
2932     - Don't crash when we find a non-guard with a guard-fraction value
2933       set. Instead, log a bug warning, in an attempt to figure out how
2934       this happened. Diagnostic for ticket 32868.
2936   o Minor features (defense in depth):
2937     - Add additional checks around tor_vasprintf() usage, in case the
2938       function returns an error. Patch by Tobias Stoeckmann. Fixes
2939       ticket 31147.
2941   o Minor features (developer tooling):
2942     - Remove the 0.2.9.x series branches from git scripts (git-merge-
2943       forward.sh, git-pull-all.sh, git-push-all.sh, git-setup-dirs.sh).
2944       Closes ticket 32772.
2946   o Minor features (developer tools):
2947     - Add a check_cocci_parse.sh script that checks that new code is
2948       parseable by Coccinelle. Add an exceptions file for unparseable
2949       files, and run the script from travis CI. Closes ticket 31919.
2950     - Call the check_cocci_parse.sh script from a 'check-cocci' Makefile
2951       target. Closes ticket 31919.
2952     - Add a rename_c_identifiers.py tool to rename a bunch of C
2953       identifiers at once, and generate a well-formed commit message
2954       describing the change. This should help with refactoring. Closes
2955       ticket 32237.
2956     - Add some scripts in "scripts/coccinelle" to invoke the Coccinelle
2957       semantic patching tool with the correct flags. These flags are
2958       fairly easy to forget, and these scripts should help us use
2959       Coccinelle more effectively in the future. Closes ticket 31705.
2961   o Minor features (Doxygen):
2962     - Update Doxygen configuration file to a more recent template (from
2963       1.8.15). Closes ticket 32110.
2964     - "make doxygen" now works with out-of-tree builds. Closes
2965       ticket 32113.
2966     - Make sure that doxygen outputs documentation for all of our C
2967       files. Previously, some were missing @file declarations, causing
2968       them to be ignored. Closes ticket 32307.
2969     - Our "make doxygen" target now respects --enable-fatal-warnings by
2970       default, and does not warn about items that are missing
2971       documentation. To warn about missing documentation, run configure
2972       with the "--enable-missing-doc-warnings" flag: doing so suspends
2973       fatal warnings for doxygen. Closes ticket 32385.
2975   o Minor features (git scripts):
2976     - Add TOR_EXTRA_CLONE_ARGS to git-setup-dirs.sh for git clone
2977       customisation. Closes ticket 32347.
2978     - Add git-setup-dirs.sh, which sets up an upstream git repository
2979       and worktrees for tor maintainers. Closes ticket 29603.
2980     - Add TOR_EXTRA_REMOTE_* to git-setup-dirs.sh for a custom extra
2981       remote. Closes ticket 32347.
2982     - Call the check_cocci_parse.sh script from the git commit and push
2983       hooks. Closes ticket 31919.
2984     - Make git-push-all.sh skip unchanged branches when pushing to
2985       upstream. The script already skipped unchanged test branches.
2986       Closes ticket 32216.
2987     - Make git-setup-dirs.sh create a master symlink in the worktree
2988       directory. Closes ticket 32347.
2989     - Skip unmodified source files when doing some existing git hook
2990       checks. Related to ticket 31919.
2992   o Minor features (IPv6, client):
2993     - Make Tor clients tell dual-stack exits that they prefer IPv6
2994       connections. This change is equivalent to setting the PreferIPv6
2995       flag on SOCKSPorts (and most other listener ports). Tor Browser
2996       has been setting this flag for some time, and we want to remove a
2997       client distinguisher at exits. Closes ticket 32637.
2999   o Minor features (portability, android):
3000     - When building for Android, disable some tests that depend on $HOME
3001       and/or pwdb, which Android doesn't have. Closes ticket 32825.
3002       Patch from Hans-Christoph Steiner.
3004   o Minor features (relay modularity):
3005     - Split the relay and server pluggable transport config code into
3006       separate files in the relay module. Disable this code when the
3007       relay module is disabled. Closes part of ticket 32213.
3008     - When the relay module is disabled, reject attempts to set the
3009       ORPort, DirPort, DirCache, BridgeRelay, ExtORPort, or
3010       ServerTransport* options, rather than ignoring the values of these
3011       options. Closes part of ticket 32213.
3013   o Minor features (relay):
3014     - When the relay module is disabled, change the default config so
3015       that DirCache is 0, and ClientOnly is 1. Closes ticket 32410.
3017   o Minor features (release tools):
3018     - Port our ChangeLog formatting and sorting tools to Python 3.
3019       Closes ticket 32704.
3021   o Minor features (testing):
3022     - Detect some common failure cases for test_parseconf.sh in
3023       src/test/conf_failures. Closes ticket 32451.
3024     - Allow test_parseconf.sh to test expected log outputs for successful
3025       configs, as well as failed configs. Closes ticket 32451.
3026     - The test_parseconf.sh script now supports result variants for any
3027       combination of the optional libraries lzma, nss, and zstd. Closes
3028       ticket 32397.
3030   o Minor features (tests, Android):
3031     - When running the unit tests on Android, create temporary files in
3032       a subdirectory of /data/local/tmp. Closes ticket 32172. Based on a
3033       patch from Hans-Christoph Steiner.
3035   o Minor bugfixes (bridges):
3036     - Lowercase the configured value of BridgeDistribution before adding
3037       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
3039   o Minor bugfixes (build system):
3040     - Fix "make autostyle" for out-of-tree builds. Fixes bug 32370;
3041       bugfix on 0.4.1.2-alpha.
3043   o Minor bugfixes (configuration handling):
3044     - Make control_event_conf_changed() take in a config_line_t instead
3045       of a smartlist of alternating key/value entries. Fixes bug 31531;
3046       bugfix on 0.2.3.3-alpha. Patch by Neel Chauhan.
3048   o Minor bugfixes (configuration):
3049     - Check for multiplication overflow when parsing memory units inside
3050       configuration. Fixes bug 30920; bugfix on 0.0.9rc1.
3051     - When dumping the configuration, stop adding a trailing space after
3052       the option name when there is no option value. This issue only
3053       affects options that accept an empty value or list. (Most options
3054       reject empty values, or delete the entire line from the dumped
3055       options.) Fixes bug 32352; bugfix on 0.0.9pre6.
3056     - Avoid changing the user's value of HardwareAccel as stored by
3057       SAVECONF, when AccelName is set but HardwareAccel is not. Fixes
3058       bug 32382; bugfix on 0.2.2.1-alpha.
3059     - When creating a KeyDirectory with the same location as the
3060       DataDirectory (not recommended), respect the DataDirectory's
3061       group-readable setting if one has not been set for the
3062       KeyDirectory. Fixes bug 27992; bugfix on 0.3.3.1-alpha.
3064   o Minor bugfixes (controller):
3065     - In routerstatus_has_changed(), check all the fields that are
3066       output over the control port. Fixes bug 20218; bugfix
3067       on 0.1.1.11-alpha
3069   o Minor bugfixes (correctness checks):
3070     - Use GCC/Clang's printf-checking feature to make sure that
3071       tor_assertf() arguments are correctly typed. Fixes bug 32765;
3072       bugfix on 0.4.1.1-alpha.
3074   o Minor bugfixes (developer tools):
3075     - Allow paths starting with ./ in scripts/add_c_file.py. Fixes bug
3076       31336; bugfix on 0.4.1.2-alpha.
3078   o Minor bugfixes (dirauth module):
3079     - Split the dirauth config code into a separate file in the dirauth
3080       module. Disable this code when the dirauth module is disabled.
3081       Closes ticket 32213.
3082     - When the dirauth module is disabled, reject attempts to set the
3083       AuthoritativeDir option, rather than ignoring the value of the
3084       option. Fixes bug 32213; bugfix on 0.3.4.1-alpha.
3086   o Minor bugfixes (embedded Tor):
3087     - When starting Tor any time after the first time in a process,
3088       register the thread in which it is running as the main thread.
3089       Previously, we only did this on Windows, which could lead to bugs
3090       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
3091       on 0.3.3.1-alpha.
3093   o Minor bugfixes (git scripts):
3094     - Avoid sleeping before the last push in git-push-all.sh. Closes
3095       ticket 32216.
3096     - Forward all unrecognised arguments in git-push-all.sh to git push.
3097       Closes ticket 32216.
3099   o Minor bugfixes (hidden service v3):
3100     - Do not rely on a "circuit established" flag for intro circuits but
3101       instead always query the HS circuit map. This is to avoid sync
3102       issue with that flag and the map. Fixes bug 32094; bugfix
3103       on 0.3.2.1-alpha.
3105   o Minor bugfixes (logging, crash):
3106     - Avoid a possible crash when trying to log a (fatal) assertion
3107       failure about mismatched magic numbers in configuration objects.
3108       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
3110   o Minor bugfixes (onion service v2):
3111     - When sending the INTRO cell for a v2 Onion Service, look at the
3112       failure cache alongside timeout values to check if the intro point
3113       is marked as failed. Previously, we only looked at the relay
3114       timeout values. Fixes bug 25568; bugfix on 0.2.7.3-rc. Patch by
3115       Neel Chauhan.
3117   o Minor bugfixes (onion services v3, client):
3118     - Properly handle the client rendezvous circuit timeout. Previously
3119       Tor would sometimes timeout a rendezvous circuit awaiting the
3120       introduction ACK, and find itself unable to re-establish all
3121       circuits because the rendezvous circuit timed out too early. Fixes
3122       bug 32021; bugfix on 0.3.2.1-alpha.
3124   o Minor bugfixes (onion services):
3125     - In cancel_descriptor_fetches(), use
3126       connection_list_by_type_purpose() instead of
3127       connection_list_by_type_state(). Fixes bug 32639; bugfix on
3128       0.3.2.1-alpha. Patch by Neel Chauhan.
3130   o Minor bugfixes (scripts):
3131     - Fix update_versions.py for out-of-tree builds. Fixes bug 32371;
3132       bugfix on 0.4.0.1-alpha.
3134   o Minor bugfixes (test):
3135     - Use the same code to find the tor binary in all of our test
3136       scripts. This change makes sure we are always using the coverage
3137       binary when coverage is enabled. Fixes bug 32368; bugfix
3138       on 0.2.7.3-rc.
3140   o Minor bugfixes (testing):
3141     - Stop ignoring "tor --dump-config" errors in test_parseconf.sh.
3142       Fixes bug 32468; bugfix on 0.4.2.1-alpha.
3143     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
3144       test_practracker.sh script. Doing so caused a test failure. Fixes
3145       bug 32705; bugfix on 0.4.2.1-alpha.
3146     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
3147       skipping practracker checks. Fixes bug 32705; bugfix
3148       on 0.4.2.1-alpha.
3150   o Minor bugfixes (tests):
3151     - Our option-validation tests no longer depend on specially
3152       configured non-default, non-passing sets of options. Previously,
3153       the tests had been written to assume that options would _not_ be
3154       set to their defaults, which led to needless complexity and
3155       verbosity. Fixes bug 32175; bugfix on 0.2.8.1-alpha.
3157   o Minor bugfixes (windows service):
3158     - Initialize the publish/subscribe system when running as a windows
3159       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
3161   o Deprecated features:
3162     - Deprecate the ClientAutoIPv6ORPort option. This option was not
3163       true "Happy Eyeballs", and often failed on connections that
3164       weren't reliably dual-stack. Closes ticket 32942. Patch by
3165       Neel Chauhan.
3167   o Documentation:
3168     - Provide a quickstart guide for a Circuit Padding Framework, and
3169       documentation for researchers to implement and study circuit
3170       padding machines. Closes ticket 28804.
3171     - Add documentation in 'HelpfulTools.md' to describe how to build a
3172       tag file. Closes ticket 32779.
3173     - Create a high-level description of the long-term software
3174       architecture goals. Closes ticket 32206.
3175     - Describe the --dump-config command in the manual page. Closes
3176       ticket 32467.
3177     - Unite coding advice from this_not_that.md in torguts repo into our
3178       coding standards document. Resolves ticket 31853.
3180   o Removed features:
3181     - Our Doxygen configuration no longer generates LaTeX output. The
3182       reference manual produced by doing this was over 4000 pages long,
3183       and generally unusable. Closes ticket 32099.
3184     - The option "TestingEstimatedDescriptorPropagationTime" is now
3185       marked as obsolete. It has had no effect since 0.3.0.7, when
3186       clients stopped rejecting consensuses "from the future". Closes
3187       ticket 32807.
3188     - We no longer support consensus methods before method 28; these
3189       methods were only used by authorities running versions of Tor that
3190       are now at end-of-life. In effect, this means that clients,
3191       relays, and authorities now assume that authorities will be
3192       running version 0.3.5.x or later. Closes ticket 32695.
3194   o Testing:
3195     - Add more test cases for tor's UTF-8 validation function. Also,
3196       check the arguments passed to the function for consistency. Closes
3197       ticket 32845.
3198     - Improve test coverage for relay and dirauth config code, focusing
3199       on option validation and normalization. Closes ticket 32213.
3200     - Improve the consistency of test_parseconf.sh output, and run all
3201       the tests, even if one fails. Closes ticket 32213.
3202     - Re-enable the Travis CI macOS Chutney build, but don't let it
3203       prevent the Travis job from finishing. (The Travis macOS jobs are
3204       slow, so we don't want to have it delay the whole CI process.)
3205       Closes ticket 32629.
3206     - Run the practracker unit tests in the pre-commit git hook. Closes
3207       ticket 32609.
3208     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
3209       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
3210       fix the sandbox errors in 32722. Closes ticket 32240.
3212   o Code simplification and refactoring (channel):
3213     - Channel layer had a variable length cell handler that was not used
3214       and thus removed. Closes ticket 32892.
3216   o Code simplification and refactoring (configuration):
3217     - Immutability is now implemented as a flag on individual
3218       configuration options rather than as part of the option-transition
3219       checking code. Closes ticket 32344.
3220     - Instead of keeping a list of configuration options to check for
3221       relative paths, check all the options whose type is "FILENAME".
3222       Solves part of ticket 32339.
3223     - Our default log (which ordinarily sends NOTICE-level messages to
3224       standard output) is now handled in a more logical manner.
3225       Previously, we replaced the configured log options if they were
3226       empty. Now, we interpret an empty set of log options as meaning
3227       "use the default log". Closes ticket 31999.
3228     - Remove some unused arguments from the options_validate() function,
3229       to simplify our code and tests. Closes ticket 32187.
3230     - Simplify the options_validate() code so that it looks at the
3231       default options directly, rather than taking default options as an
3232       argument. This change lets us simplify its interface. Closes
3233       ticket 32185.
3234     - Use our new configuration architecture to move most authority-
3235       related options to the directory authority module. Closes
3236       ticket 32806.
3237     - When parsing the command line, handle options that determine our
3238       "quiet level" and our mode of operation (e.g., --dump-config and
3239       so on) all in one table. Closes ticket 32003.
3241   o Code simplification and refactoring (controller):
3242     - Create a new abstraction for formatting control protocol reply
3243       lines based on key-value pairs. Refactor some existing control
3244       protocol code to take advantage of this. Closes ticket 30984.
3245     - Create a helper function that can fetch network status or
3246       microdesc consensuses. Closes ticket 31684.
3248   o Code simplification and refactoring (dirauth modularization):
3249     - Remove the last remaining HAVE_MODULE_DIRAUTH inside a function.
3250       Closes ticket 32163.
3251     - Replace some confusing identifiers in process_descs.c. Closes
3252       ticket 29826.
3253     - Simplify some relay and dirauth config code. Closes ticket 32213.
3255   o Code simplification and refactoring (misc):
3256     - Make all the structs we declare follow the same naming convention
3257       of ending with "_t". Closes ticket 32415.
3258     - Move and rename some configuration-related code for clarity.
3259       Closes ticket 32304.
3260     - Our include.am files are now broken up by subdirectory.
3261       Previously, src/core/include.am covered all of the subdirectories
3262       in "core", "feature", and "app". Closes ticket 32137.
3263     - Remove underused NS*() macros from test code: they make our tests
3264       more confusing, especially for code-formatting tools. Closes
3265       ticket 32887.
3267   o Code simplification and refactoring (relay modularization):
3268     - Disable relay_periodic when the relay module is disabled. Closes
3269       ticket 32244.
3270     - Disable relay_sys when the relay module is disabled. Closes
3271       ticket 32245.
3273   o Code simplification and refactoring (tool support):
3274     - Add numerous missing dependencies to our include files, so that
3275       they can be included in different reasonable orders and still
3276       compile. Addresses part of ticket 32764.
3277     - Fix some parts of our code that were difficult for Coccinelle to
3278       parse. Related to ticket 31705.
3279     - Fix some small issues in our code that prevented automatic
3280       formatting tools from working. Addresses part of ticket 32764.
3282   o Documentation (manpage):
3283     - Alphabetize the Client Options section of the tor manpage. Closes
3284       ticket 32846.
3285     - Alphabetize the General Options section of the tor manpage. Closes
3286       ticket 32708.
3287     - In the tor(1) manpage, reword and improve formatting of the
3288       COMMAND-LINE OPTIONS and DESCRIPTION sections. Closes ticket
3289       32277. Based on work by Swati Thacker as part of Google Season
3290       of Docs.
3291     - In the tor(1) manpage, reword and improve formatting of the FILES,
3292       SEE ALSO, and BUGS sections. Closes ticket 32176. Based on work by
3293       Swati Thacker as part of Google Season of Docs.
3295   o Testing (circuit, EWMA):
3296     - Add unit tests for circuitmux and EWMA subsystems. Closes
3297       ticket 32196.
3299   o Testing (continuous integration):
3300     - Use zstd in our Travis Linux builds. Closes ticket 32242.
3303 Changes in version 0.4.2.5 - 2019-12-09
3304   This is the first stable release in the 0.4.2.x series. This series
3305   improves reliability and stability, and includes several stability and
3306   correctness improvements for onion services. It also fixes many smaller
3307   bugs present in previous series.
3309   Per our support policy, we will support the 0.4.2.x series for nine
3310   months, or until three months after the release of a stable 0.4.3.x:
3311   whichever is longer. If you need longer-term support, please stick
3312   with 0.3.5.x, which will we plan to support until Feb 2022.
3314   Per our support policy, we will support the 0.4.2.x series for nine
3315   months, or until three months after the release of a stable 0.4.3.x:
3316   whichever is longer. If you need longer-term support, please stick
3317   with 0.3.5.x, which will we plan to support until Feb 2022.
3319   Below are the changes since 0.4.1.4-rc. For a complete list of changes
3320   since 0.4.1.5, see the ReleaseNotes file.
3322   o Minor features (geoip):
3323     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3324       Country database. Closes ticket 32685.
3326   o Testing:
3327     - Require C99 standards-conforming code in Travis CI, but allow GNU
3328       gcc extensions. Also activates clang's -Wtypedef-redefinition
3329       warnings. Build some jobs with -std=gnu99, and some jobs without.
3330       Closes ticket 32500.
3333 Changes in version 0.4.1.7 - 2019-12-09
3334   This release backports several bugfixes to improve stability and
3335   correctness.  Anyone experiencing build problems or crashes with 0.4.1.6,
3336   including all relays relying on AccountingMax, should upgrade.
3338   o Major features (directory authorities, backport from 0.4.2.2-alpha):
3339     - Directory authorities now reject relays running all currently
3340       deprecated release series. The currently supported release series
3341       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
3343   o Major bugfixes (embedded Tor, backport from 0.4.2.2-alpha):
3344     - Avoid a possible crash when restarting Tor in embedded mode and
3345       enabling a different set of publish/subscribe messages. Fixes bug
3346       31898; bugfix on 0.4.1.1-alpha.
3348   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
3349     - Relays now respect their AccountingMax bandwidth again. When
3350       relays entered "soft" hibernation (which typically starts when
3351       we've hit 90% of our AccountingMax), we had stopped checking
3352       whether we should enter hard hibernation. Soft hibernation refuses
3353       new connections and new circuits, but the existing circuits can
3354       continue, meaning that relays could have exceeded their configured
3355       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
3357   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
3358     - Stop ignoring torrc options after an %include directive, when the
3359       included directory ends with a file that does not contain any
3360       config options (but does contain comments or whitespace). Fixes
3361       bug 31408; bugfix on 0.3.1.1-alpha.
3363   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
3364     - Onion services now always use the exact number of intro points
3365       configured with the HiddenServiceNumIntroductionPoints option (or
3366       fewer if nodes are excluded). Before, a service could sometimes
3367       pick more intro points than configured. Fixes bug 31548; bugfix
3368       on 0.3.2.1-alpha.
3370   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
3371     - When building on Appveyor and Travis, pass the "-k" flag to make,
3372       so that we are informed of all compilation failures, not just the
3373       first one or two. Closes ticket 31372.
3375   o Minor features (geoip, backport from 0.4.2.5):
3376     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3377       Country database. Closes ticket 32685.
3379   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
3380     - Avoid spurious errors when Appveyor CI fails before the install step.
3381       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
3383   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
3384     - Fix a BUG() assertion that occurs within a very small race window
3385       between when a client intro circuit opens and when its descriptor
3386       gets cleaned up from the cache. The circuit is now closed early,
3387       which will trigger a re-fetch of the descriptor and continue the
3388       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
3390   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
3391     - Avoid trying to read data from closed connections, which can cause
3392       needless loops in Libevent and infinite loops in Shadow. Fixes bug
3393       30344; bugfix on 0.1.1.1-alpha.
3395   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
3396     - On abort, try harder to flush the output buffers of log messages.
3397       On some platforms (macOS), log messages could be discarded when
3398       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3399     - Report the tor version whenever an assertion fails. Previously, we
3400       only reported the Tor version on some crashes, and some non-fatal
3401       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3402     - When tor aborts due to an error, close log file descriptors before
3403       aborting. Closing the logs makes some OSes flush log file buffers,
3404       rather than deleting buffered log lines. Fixes bug 31594; bugfix
3405       on 0.2.5.2-alpha.
3407   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
3408     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
3409       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
3410     - Disable backtrace signal handlers when shutting down tor. Fixes
3411       bug 31614; bugfix on 0.2.5.2-alpha.
3412     - Rate-limit our the logging message about the obsolete .exit
3413       notation. Previously, there was no limit on this warning, which
3414       could potentially be triggered many times by a hostile website.
3415       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
3417   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
3418     - Do not log a nonfatal assertion failure when receiving a VERSIONS
3419       cell on a connection using the obsolete v1 link protocol. Log a
3420       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
3422   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
3423     - Reset the periodic events' "enabled" flag when Tor is shut down
3424       cleanly. Previously, this flag was left on, which caused periodic
3425       events not to be re-enabled when Tor was relaunched in-process
3426       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
3427       on 0.3.3.1-alpha.
3429   o Minor bugfixes (multithreading, backport from 0.4.2.2-alpha):
3430     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
3431       31736; bugfix on 0.0.7.
3433   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
3434     - Remove overly strict assertions that triggered when a pluggable
3435       transport failed to launch. Fixes bug 31091; bugfix
3436       on 0.4.0.1-alpha.
3437     - Remove an assertion in the Unix process backend. This assertion
3438       would trigger when we failed to find the executable for a child
3439       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
3441   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
3442     - Avoid crashing when starting with a corrupt keys directory where
3443       the old ntor key and the new ntor key are identical. Fixes bug
3444       30916; bugfix on 0.2.4.8-alpha.
3446   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
3447     - When testing port rebinding, don't busy-wait for tor to log.
3448       Instead, actually sleep for a short time before polling again.
3449       Also improve the formatting of control commands and log messages.
3450       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
3452   o Minor bugfixes (tests, SunOS, backport from 0.4.2.2-alpha):
3453     - Avoid a map_anon_nofork test failure due to a signed/unsigned
3454       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
3456   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
3457     - Log bugs about the TLS read buffer's length only once, rather than
3458       filling the logs with similar warnings. Fixes bug 31939; bugfix
3459       on 0.3.0.4-rc.
3461   o Documentation (backport from 0.4.2.2-alpha):
3462     - Explain why we can't destroy the backtrace buffer mutex. Explain
3463       why we don't need to destroy the log mutex. Closes ticket 31736.
3465   o Testing (continuous integration, backport from 0.4.2.3-alpha):
3466     - Disable all but one Travis CI macOS build, to mitigate slow
3467       scheduling of Travis macOS jobs. Closes ticket 32177.
3468     - Run the chutney IPv6 networks as part of Travis CI. Closes
3469       ticket 30860.
3470     - Simplify the Travis CI build matrix, and optimise for build time.
3471       Closes ticket 31859.
3472     - Use Windows Server 2019 instead of Windows Server 2016 in our
3473       Appveyor builds. Closes ticket 32086.
3475   o Testing (continuous integration, backport from 0.4.2.4-rc):
3476     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
3477     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
3478       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
3479       until we can fix some Bionic permissions issues (see ticket
3480       32240). Related to ticket 31919.
3481     - Install the mingw OpenSSL package in Appveyor. This makes sure
3482       that the OpenSSL headers and libraries match in Tor's Appveyor
3483       builds. (This bug was triggered by an Appveyor image update.)
3484       Fixes bug 32449; bugfix on 0.3.5.6-rc.
3486   o Testing (continuous integration, backport from 0.4.2.5):
3487     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
3488       extensions. Also activates clang's -Wtypedef-redefinition warnings.
3489       Build some jobs with -std=gnu99, and some jobs without.
3490       Closes ticket 32500.
3493 Changes in version 0.4.0.6 - 2019-12-09
3494   This is the second stable release in the 0.4.0.x series. This release
3495   backports several bugfixes to improve stability and correctness.  Anyone
3496   experiencing build problems or crashes with 0.4.0.5, including all relays
3497   relying on AccountingMax, should upgrade.
3499   Note that, per our support policy, support for the 0.4.0.x series will end
3500   on 2 Feb 2020.  Anyone still running 0.4.0.x should plan to upgrade to the
3501   latest stable release, or downgrade to 0.3.5.x, which will get long-term
3502   support until 1 Feb 2022.
3504   o Directory authority changes (backport from 0.4.1.5):
3505     - The directory authority "dizum" has a new IP address. Closes
3506       ticket 31406.
3508   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
3509     - Consider our directory information to have changed when our list
3510       of bridges changes. Previously, Tor would not re-compute the
3511       status of its directory information when bridges changed, and
3512       therefore would not realize that it was no longer able to build
3513       circuits. Fixes part of bug 29875.
3514     - Do not count previously configured working bridges towards our
3515       total of working bridges. Previously, when Tor's list of bridges
3516       changed, it would think that the old bridges were still usable,
3517       and delay fetching router descriptors for the new ones. Fixes part
3518       of bug 29875; bugfix on 0.3.0.1-alpha.
3520   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
3521     - When considering upgrading circuits from "waiting for guard" to
3522       "open", always ignore circuits that are marked for close. Otherwise,
3523       we can end up in the situation where a subsystem is notified that
3524       a closing circuit has just opened, leading to undesirable
3525       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
3527   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
3528     - Properly clean up the introduction point map when circuits change
3529       purpose from onion service circuits to pathbias, measurement, or
3530       other circuit types. This should fix some service-side instances
3531       of introduction point failure. Fixes bug 29034; bugfix
3532       on 0.3.2.1-alpha.
3534   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
3535     - Fix an unreachable bug in which an introduction point could try to
3536       send an INTRODUCE_ACK with a status code that Trunnel would refuse
3537       to encode, leading the relay to assert(). We've consolidated the
3538       ABI values into Trunnel now. Fixes bug 30454; bugfix
3539       on 0.3.0.1-alpha.
3540     - Clients can now handle unknown status codes from INTRODUCE_ACK
3541       cells. (The NACK behavior will stay the same.) This will allow us
3542       to extend status codes in the future without breaking the normal
3543       client behavior. Fixes another part of bug 30454; bugfix
3544       on 0.3.0.1-alpha.
3546   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
3547     - Relays now respect their AccountingMax bandwidth again. When
3548       relays entered "soft" hibernation (which typically starts when
3549       we've hit 90% of our AccountingMax), we had stopped checking
3550       whether we should enter hard hibernation. Soft hibernation refuses
3551       new connections and new circuits, but the existing circuits can
3552       continue, meaning that relays could have exceeded their configured
3553       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
3555   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
3556     - Stop ignoring torrc options after an %include directive, when the
3557       included directory ends with a file that does not contain any
3558       config options (but does contain comments or whitespace). Fixes
3559       bug 31408; bugfix on 0.3.1.1-alpha.
3561   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
3562     - Onion services now always use the exact number of intro points
3563       configured with the HiddenServiceNumIntroductionPoints option (or
3564       fewer if nodes are excluded). Before, a service could sometimes
3565       pick more intro points than configured. Fixes bug 31548; bugfix
3566       on 0.3.2.1-alpha.
3568   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
3569     - Add a "--list-modules" command to print a list of which compile-
3570       time modules are enabled. Closes ticket 30452.
3572   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
3573     - Remove sudo configuration lines from .travis.yml as they are no
3574       longer needed with current Travis build environment. Resolves
3575       issue 30213.
3577   o Minor features (continuous integration, backport from 0.4.1.4-rc):
3578     - Our Travis configuration now uses Chutney to run some network
3579       integration tests automatically. Closes ticket 29280.
3581   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
3582     - When building on Appveyor and Travis, pass the "-k" flag to make,
3583       so that we are informed of all compilation failures, not just the
3584       first one or two. Closes ticket 31372.
3586   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
3587     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
3588       in December 2018 (of which ~122 were still functional), with a
3589       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
3590       in June 2019. Closes ticket 28795.
3592   o Minor features (geoip, backport from 0.4.2.5):
3593     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3594       Country database. Closes ticket 32685.
3596   o Minor features (stem tests, backport from 0.4.2.1-alpha):
3597     - Change "make test-stem" so it only runs the stem tests that use
3598       tor. This change makes test-stem faster and more reliable. Closes
3599       ticket 31554.
3601   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
3602     - Avoid spurious errors when Appveyor CI fails before the install step.
3603       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
3605   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
3606     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
3607       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
3609   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
3610     - Fix a logic error that prevented the SessionGroup sub-option from
3611       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
3613   o Minor bugfixes (circuit padding, backport from 0.4.1.4-rc):
3614     - On relays, properly check that a padding machine is absent before
3615       logging a warning about it being absent. Fixes bug 30649; bugfix
3616       on 0.4.0.1-alpha.
3618   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
3619     - Fix a BUG() assertion that occurs within a very small race window
3620       between when a client intro circuit opens and when its descriptor
3621       gets cleaned up from the cache. The circuit is now closed early,
3622       which will trigger a re-fetch of the descriptor and continue the
3623       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
3625   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
3626     - Don't believe clock skew results from NETINFO cells that appear to
3627       arrive before we sent the VERSIONS cells they are responding to.
3628       Previously, we would accept them up to 3 minutes "in the past".
3629       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3631   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
3632     - Fix a compilation warning on Windows about casting a function
3633       pointer for GetTickCount64(). Fixes bug 31374; bugfix
3634       on 0.2.9.1-alpha.
3636   o Minor bugfixes (compilation, backport from 0.4.1.5):
3637     - Avoid using labs() on time_t, which can cause compilation warnings
3638       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
3640   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
3641     - Suppress spurious float-conversion warnings from GCC when calling
3642       floating-point classifier functions on FreeBSD. Fixes part of bug
3643       31687; bugfix on 0.3.1.5-alpha.
3645   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
3646     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
3647       due to missing declarations of abort(), and prevent other such
3648       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
3650   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
3651     - Fix a bug that prevented us from supporting SOCKS5 proxies that
3652       want authentication along with configured (but unused!)
3653       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
3655   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
3656     - Avoid trying to read data from closed connections, which can cause
3657       needless loops in Libevent and infinite loops in Shadow. Fixes bug
3658       30344; bugfix on 0.1.1.1-alpha.
3660   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
3661     - Allow the test-stem job to fail in Travis, because it sometimes
3662       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
3663     - Skip test_rebind on macOS in Travis, because it is unreliable on
3664       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3665     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
3666       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
3668   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
3669     - Avoid a set of possible code paths that could try to use freed
3670       memory in routerlist_free() while Tor was exiting. Fixes bug
3671       31003; bugfix on 0.1.2.2-alpha.
3673   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
3674     - Stop crashing after parsing an unknown descriptor purpose
3675       annotation. We think this bug can only be triggered by modifying a
3676       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
3678   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
3679     - Move the "bandwidth-file-headers" line in directory authority
3680       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
3681       on 0.3.5.1-alpha.
3683   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
3684     - On abort, try harder to flush the output buffers of log messages.
3685       On some platforms (macOS), log messages could be discarded when
3686       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3687     - Report the tor version whenever an assertion fails. Previously, we
3688       only reported the Tor version on some crashes, and some non-fatal
3689       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
3691   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
3692     - When extracting an IPv6 address from a PF-based proxy, verify that
3693       we are actually configured to receive an IPv6 address, and log an
3694       internal error if not. Fixes part of bug 31687; bugfix
3695       on 0.2.3.4-alpha.
3697   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
3698     - When tor is missing descriptors for some primary entry guards,
3699       make the log message less alarming. It's normal for descriptors to
3700       expire, as long as tor fetches new ones soon after. Fixes bug
3701       31657; bugfix on 0.3.3.1-alpha.
3703   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
3704     - Do not log a warning when running with an OpenSSL version other
3705       than the one Tor was compiled with, if the two versions should be
3706       compatible. Previously, we would warn whenever the version was
3707       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
3709   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
3710     - Change log level of message "Hash of session info was not as
3711       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
3712       on 0.1.1.10-alpha.
3714   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
3715     - Rate-limit our the logging message about the obsolete .exit
3716       notation. Previously, there was no limit on this warning, which
3717       could potentially be triggered many times by a hostile website.
3718       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
3720   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
3721     - Do not log a nonfatal assertion failure when receiving a VERSIONS
3722       cell on a connection using the obsolete v1 link protocol. Log a
3723       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
3725   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
3726     - Reset the periodic events' "enabled" flag when Tor is shut down
3727       cleanly. Previously, this flag was left on, which caused periodic
3728       events not to be re-enabled when Tor was relaunched in-process
3729       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
3730       on 0.3.3.1-alpha.
3732   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
3733     - Avoid a minor memory leak that could occur on relays when failing
3734       to create a "keys" directory. Fixes bug 30148; bugfix
3735       on 0.3.3.1-alpha.
3737   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
3738     - Fix a trivial memory leak when parsing an invalid value
3739       from a download schedule in the configuration. Fixes bug
3740       30894; bugfix on 0.3.4.1-alpha.
3742   o Minor bugfixes (NetBSD, backport from 0.4.1.2-alpha):
3743     - Fix usage of minherit() on NetBSD and other platforms that define
3744       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
3745       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
3747   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
3748     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
3749       implemenation) when failing to load an onion service client
3750       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
3752   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
3753     - When purging the DNS cache because of an out-of-memory condition,
3754       try purging just the older entries at first. Previously, we would
3755       always purge the whole thing. Fixes bug 29617; bugfix
3756       on 0.3.5.1-alpha.
3758   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
3759     - Avoid crashing in our tor_vasprintf() implementation on systems
3760       that define neither vasprintf() nor _vscprintf(). (This bug has
3761       been here long enough that we question whether people are running
3762       Tor on such systems, but we're applying the fix out of caution.)
3763       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
3764       Tobias Stoeckmann.
3766   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
3767     - Remove overly strict assertions that triggered when a pluggable
3768       transport failed to launch. Fixes bug 31091; bugfix
3769       on 0.4.0.1-alpha.
3770     - Remove an assertion in the Unix process backend. This assertion
3771       would trigger when we failed to find the executable for a child
3772       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
3774   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
3775     - Avoid crashing when starting with a corrupt keys directory where
3776       the old ntor key and the new ntor key are identical. Fixes bug
3777       30916; bugfix on 0.2.4.8-alpha.
3779   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
3780     - Correctly exclude a redundant rust build job in Travis. Fixes bug
3781       31463; bugfix on 0.3.5.4-alpha.
3783   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
3784     - When testing port rebinding, don't busy-wait for tor to log.
3785       Instead, actually sleep for a short time before polling again.
3786       Also improve the formatting of control commands and log messages.
3787       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
3789   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
3790     - Log bugs about the TLS read buffer's length only once, rather than
3791       filling the logs with similar warnings. Fixes bug 31939; bugfix
3792       on 0.3.0.4-rc.
3794   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
3795     - Always retry v2 single onion service intro and rend circuits with
3796       a 3-hop path. Previously, v2 single onion services used a 3-hop
3797       path when rendezvous circuits were retried after a remote or
3798       delayed failure, but a 1-hop path for immediate retries. Fixes bug
3799       23818; bugfix on 0.2.9.3-alpha.
3800     - Make v3 single onion services fall back to a 3-hop intro, when all
3801       intro points are unreachable via a 1-hop path. Previously, v3
3802       single onion services failed when all intro nodes were unreachable
3803       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
3805   o Documentation (backport from 0.4.2.1-alpha):
3806     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
3807       notice.html so that operators no longer have to host it
3808       themselves. Closes ticket 31089.
3810   o Testing (backport from 0.4.1.2-alpha):
3811     - Specify torrc paths (with empty files) when launching tor in
3812       integration tests; refrain from reading user and system torrcs.
3813       Resolves issue 29702.
3815   o Testing (continuous integration, backport from 0.4.1.1-alpha):
3816     - In Travis, show stem's tor log after failure. Closes ticket 30234.
3818   o Testing (continuous integration, backport from 0.4.1.5):
3819     - In Travis, make stem log a controller trace to the console, and
3820       tail stem's tor log after failure. Closes ticket 30591.
3821     - In Travis, only run the stem tests that use a tor binary. Closes
3822       ticket 30694.
3824   o Testing (continuous integration, backport from 0.4.2.3-alpha):
3825     - Disable all but one Travis CI macOS build, to mitigate slow
3826       scheduling of Travis macOS jobs. Closes ticket 32177.
3827     - Run the chutney IPv6 networks as part of Travis CI. Closes
3828       ticket 30860.
3829     - Simplify the Travis CI build matrix, and optimise for build time.
3830       Closes ticket 31859.
3831     - Use Windows Server 2019 instead of Windows Server 2016 in our
3832       Appveyor builds. Closes ticket 32086.
3834   o Testing (continuous integration, backport from 0.4.2.4-rc):
3835     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
3836       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
3837       until we can fix some Bionic permissions issues (see ticket
3838       32240). Related to ticket 31919.
3839     - Install the mingw OpenSSL package in Appveyor. This makes sure
3840       that the OpenSSL headers and libraries match in Tor's Appveyor
3841       builds. (This bug was triggered by an Appveyor image update.)
3842       Fixes bug 32449; bugfix on 0.3.5.6-rc.
3843     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
3845   o Testing (continuous integration, backport from 0.4.2.5):
3846     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
3847       extensions. Also activates clang's -Wtypedef-redefinition warnings.
3848       Build some jobs with -std=gnu99, and some jobs without.
3849       Closes ticket 32500.
3851 Changes in version 0.3.5.9 - 2019-12-09
3852   Tor 0.3.5.9 backports serveral fixes from later releases, including
3853   several that affect bridge users, relay stability, onion services,
3854   and much more.
3856   o Directory authority changes (backport from 0.4.1.5):
3857     - The directory authority "dizum" has a new IP address. Closes
3858       ticket 31406.
3860   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
3861     - Consider our directory information to have changed when our list
3862       of bridges changes. Previously, Tor would not re-compute the
3863       status of its directory information when bridges changed, and
3864       therefore would not realize that it was no longer able to build
3865       circuits. Fixes part of bug 29875.
3866     - Do not count previously configured working bridges towards our
3867       total of working bridges. Previously, when Tor's list of bridges
3868       changed, it would think that the old bridges were still usable,
3869       and delay fetching router descriptors for the new ones. Fixes part
3870       of bug 29875; bugfix on 0.3.0.1-alpha.
3872   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
3873     - When considering upgrading circuits from "waiting for guard" to
3874       "open", always ignore circuits that are marked for close. Otherwise,
3875       we can end up in the situation where a subsystem is notified that
3876       a closing circuit has just opened, leading to undesirable
3877       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
3879   o Major bugfixes (NSS, relay, backport from 0.4.0.4-rc):
3880     - When running with NSS, disable TLS 1.2 ciphersuites that use
3881       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
3882       these ciphersuites don't work -- which caused relays to fail to
3883       handshake with one another when these ciphersuites were enabled.
3884       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
3886   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
3887     - Properly clean up the introduction point map when circuits change
3888       purpose from onion service circuits to pathbias, measurement, or
3889       other circuit types. This should fix some service-side instances
3890       of introduction point failure. Fixes bug 29034; bugfix
3891       on 0.3.2.1-alpha.
3893   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
3894     - Fix an unreachable bug in which an introduction point could try to
3895       send an INTRODUCE_ACK with a status code that Trunnel would refuse
3896       to encode, leading the relay to assert(). We've consolidated the
3897       ABI values into Trunnel now. Fixes bug 30454; bugfix
3898       on 0.3.0.1-alpha.
3899     - Clients can now handle unknown status codes from INTRODUCE_ACK
3900       cells. (The NACK behavior will stay the same.) This will allow us
3901       to extend status codes in the future without breaking the normal
3902       client behavior. Fixes another part of bug 30454; bugfix
3903       on 0.3.0.1-alpha.
3905   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
3906     - Stop ignoring torrc options after an %include directive, when the
3907       included directory ends with a file that does not contain any
3908       config options (but does contain comments or whitespace). Fixes
3909       bug 31408; bugfix on 0.3.1.1-alpha.
3911   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
3912     - Onion services now always use the exact number of intro points
3913       configured with the HiddenServiceNumIntroductionPoints option (or
3914       fewer if nodes are excluded). Before, a service could sometimes
3915       pick more intro points than configured. Fixes bug 31548; bugfix
3916       on 0.3.2.1-alpha.
3918   o Minor features (address selection, backport from 0.4.0.3-alpha):
3919     - Treat the subnet 100.64.0.0/10 as public for some purposes;
3920       private for others. This subnet is the RFC 6598 (Carrier Grade
3921       NAT) IP range, and is deployed by many ISPs as an alternative to
3922       RFC 1918 that does not break existing internal networks. Tor now
3923       blocks SOCKS and control ports on these addresses and warns users
3924       if client ports or ExtORPorts are listening on a RFC 6598 address.
3925       Closes ticket 28525. Patch by Neel Chauhan.
3927   o Minor features (bandwidth authority, backport from 0.4.0.4-rc):
3928     - Make bandwidth authorities ignore relays that are reported in the
3929       bandwidth file with the flag "vote=0". This change allows us to
3930       report unmeasured relays for diagnostic reasons without including
3931       their bandwidth in the bandwidth authorities' vote. Closes
3932       ticket 29806.
3934   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
3935     - Add a "--list-modules" command to print a list of which compile-
3936       time modules are enabled. Closes ticket 30452.
3938   o Minor features (continuous integration, backport from 0.4.0.4-rc):
3939     - On Travis Rust builds, cleanup Rust registry and refrain from
3940       caching the "target/" directory to speed up builds. Resolves
3941       issue 29962.
3943   o Minor features (continuous integration, backport from 0.4.0.5):
3944     - In Travis, tell timelimit to use stem's backtrace signals, and
3945       launch python directly from timelimit, so python receives the
3946       signals from timelimit, rather than make. Closes ticket 30117.
3948   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
3949     - Remove sudo configuration lines from .travis.yml as they are no
3950       longer needed with current Travis build environment. Resolves
3951       issue 30213.
3953   o Minor features (continuous integration, backport from 0.4.1.4-rc):
3954     - Our Travis configuration now uses Chutney to run some network
3955       integration tests automatically. Closes ticket 29280.
3957   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
3958     - When building on Appveyor and Travis, pass the "-k" flag to make,
3959       so that we are informed of all compilation failures, not just the
3960       first one or two. Closes ticket 31372.
3962   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
3963     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
3964       in December 2018 (of which ~122 were still functional), with a
3965       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
3966       in June 2019. Closes ticket 28795.
3968   o Minor features (geoip, backport from 0.4.2.5):
3969     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
3970       Country database. Closes ticket 32685.
3972   o Minor features (NSS, diagnostic, backport from 0.4.0.4-rc):
3973     - Try to log an error from NSS (if there is any) and a more useful
3974       description of our situation if we are using NSS and a call to
3975       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
3977   o Minor features (stem tests, backport from 0.4.2.1-alpha):
3978     - Change "make test-stem" so it only runs the stem tests that use
3979       tor. This change makes test-stem faster and more reliable. Closes
3980       ticket 31554.
3982   o Minor bugfixes (security, backport from 0.4.0.4-rc):
3983     - Verify in more places that we are not about to create a buffer
3984       with more than INT_MAX bytes, to avoid possible OOB access in the
3985       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
3986       fixed by Tobias Stoeckmann.
3987     - Fix a potential double free bug when reading huge bandwidth files.
3988       The issue is not exploitable in the current Tor network because
3989       the vulnerable code is only reached when directory authorities
3990       read bandwidth files, but bandwidth files come from a trusted
3991       source (usually the authorities themselves). Furthermore, the
3992       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
3993       which are not used by any of the current authorities. Fixes bug
3994       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
3995       Tobias Stoeckmann.
3997   o Minor bugfix (continuous integration, backport from 0.4.0.4-rc):
3998     - Reset coverage state on disk after Travis CI has finished. This
3999       should prevent future coverage merge errors from causing the test
4000       suite for the "process" subsystem to fail. The process subsystem
4001       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
4002       on 0.2.9.15.
4003     - Terminate test-stem if it takes more than 9.5 minutes to run.
4004       (Travis terminates the job after 10 minutes of no output.)
4005       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
4007   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
4008     - Avoid spurious errors when Appveyor CI fails before the install step.
4009       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
4011   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
4012     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
4013       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
4015   o Minor bugfixes (C correctness, backport from 0.4.0.4-rc):
4016     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
4017       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
4018       CID 1444119.
4020   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
4021     - Fix a logic error that prevented the SessionGroup sub-option from
4022       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
4024   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
4025     - Fix a BUG() assertion that occurs within a very small race window
4026       between when a client intro circuit opens and when its descriptor
4027       gets cleaned up from the cache. The circuit is now closed early,
4028       which will trigger a re-fetch of the descriptor and continue the
4029       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
4031   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
4032     - Don't believe clock skew results from NETINFO cells that appear to
4033       arrive before we sent the VERSIONS cells they are responding to.
4034       Previously, we would accept them up to 3 minutes "in the past".
4035       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
4037   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
4038     - Fix a compilation warning on Windows about casting a function
4039       pointer for GetTickCount64(). Fixes bug 31374; bugfix
4040       on 0.2.9.1-alpha.
4042   o Minor bugfixes (compilation, backport from 0.4.0.2-alpha):
4043     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
4044       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
4046   o Minor bugfixes (compilation, backport from 0.4.1.5):
4047     - Avoid using labs() on time_t, which can cause compilation warnings
4048       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
4050   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
4051     - Suppress spurious float-conversion warnings from GCC when calling
4052       floating-point classifier functions on FreeBSD. Fixes part of bug
4053       31687; bugfix on 0.3.1.5-alpha.
4055   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
4056     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
4057       due to missing declarations of abort(), and prevent other such
4058       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
4060   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
4061     - Fix a bug that prevented us from supporting SOCKS5 proxies that
4062       want authentication along with configured (but unused!)
4063       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
4065   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
4066     - Avoid trying to read data from closed connections, which can cause
4067       needless loops in Libevent and infinite loops in Shadow. Fixes bug
4068       30344; bugfix on 0.1.1.1-alpha.
4070   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
4071     - Allow the test-stem job to fail in Travis, because it sometimes
4072       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
4073     - Skip test_rebind on macOS in Travis, because it is unreliable on
4074       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
4075     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
4076       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
4078   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
4079     - Avoid a set of possible code paths that could try to use freed
4080       memory in routerlist_free() while Tor was exiting. Fixes bug
4081       31003; bugfix on 0.1.2.2-alpha.
4083   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
4084     - Stop crashing after parsing an unknown descriptor purpose
4085       annotation. We think this bug can only be triggered by modifying a
4086       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
4088   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
4089     - Move the "bandwidth-file-headers" line in directory authority
4090       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
4091       on 0.3.5.1-alpha.
4093   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
4094     - On abort, try harder to flush the output buffers of log messages.
4095       On some platforms (macOS), log messages could be discarded when
4096       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4097     - Report the tor version whenever an assertion fails. Previously, we
4098       only reported the Tor version on some crashes, and some non-fatal
4099       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4101   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
4102     - When extracting an IPv6 address from a PF-based proxy, verify that
4103       we are actually configured to receive an IPv6 address, and log an
4104       internal error if not. Fixes part of bug 31687; bugfix
4105       on 0.2.3.4-alpha.
4107   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
4108     - When tor is missing descriptors for some primary entry guards,
4109       make the log message less alarming. It's normal for descriptors to
4110       expire, as long as tor fetches new ones soon after. Fixes bug
4111       31657; bugfix on 0.3.3.1-alpha.
4113   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
4114     - Avoid logging that we are relaxing a circuit timeout when that
4115       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
4117   o Minor bugfixes (logging, backport from 0.4.0.3-alpha):
4118     - Correct a misleading error message when IPv4Only or IPv6Only is
4119       used but the resolved address can not be interpreted as an address
4120       of the specified IP version. Fixes bug 13221; bugfix on
4121       0.2.3.9-alpha. Patch from Kris Katterjohn.
4122     - Log the correct port number for listening sockets when "auto" is
4123       used to let Tor pick the port number. Previously, port 0 was
4124       logged instead of the actual port number. Fixes bug 29144; bugfix
4125       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
4126     - Stop logging a BUG() warning when Tor is waiting for exit
4127       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
4129   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
4130     - Do not log a warning when running with an OpenSSL version other
4131       than the one Tor was compiled with, if the two versions should be
4132       compatible. Previously, we would warn whenever the version was
4133       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
4135   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
4136     - Change log level of message "Hash of session info was not as
4137       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
4138       on 0.1.1.10-alpha.
4140   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
4141     - Rate-limit our the logging message about the obsolete .exit
4142       notation. Previously, there was no limit on this warning, which
4143       could potentially be triggered many times by a hostile website.
4144       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
4146   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
4147     - Do not log a nonfatal assertion failure when receiving a VERSIONS
4148       cell on a connection using the obsolete v1 link protocol. Log a
4149       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
4151   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
4152     - Reset the periodic events' "enabled" flag when Tor is shut down
4153       cleanly. Previously, this flag was left on, which caused periodic
4154       events not to be re-enabled when Tor was relaunched in-process
4155       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
4156       on 0.3.3.1-alpha.
4158   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
4159     - Avoid a minor memory leak that could occur on relays when failing
4160       to create a "keys" directory. Fixes bug 30148; bugfix
4161       on 0.3.3.1-alpha.
4163   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
4164     - Fix a trivial memory leak when parsing an invalid value
4165       from a download schedule in the configuration. Fixes bug
4166       30894; bugfix on 0.3.4.1-alpha.
4168   o Minor bugfixes (memory management, backport from 0.4.0.3-alpha):
4169     - Refactor the shared random state's memory management so that it
4170       actually takes ownership of the shared random value pointers.
4171       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
4173   o Minor bugfixes (memory management, testing, backport from 0.4.0.3-alpha):
4174     - Stop leaking parts of the shared random state in the shared-random
4175       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
4177   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
4178     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
4179       implemenation) when failing to load an onion service client
4180       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
4182   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
4183     - When purging the DNS cache because of an out-of-memory condition,
4184       try purging just the older entries at first. Previously, we would
4185       always purge the whole thing. Fixes bug 29617; bugfix
4186       on 0.3.5.1-alpha.
4188   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
4189     - Avoid crashing in our tor_vasprintf() implementation on systems
4190       that define neither vasprintf() nor _vscprintf(). (This bug has
4191       been here long enough that we question whether people are running
4192       Tor on such systems, but we're applying the fix out of caution.)
4193       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
4194       Tobias Stoeckmann.
4196   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
4197     - Avoid crashing when starting with a corrupt keys directory where
4198       the old ntor key and the new ntor key are identical. Fixes bug
4199       30916; bugfix on 0.2.4.8-alpha.
4201   o Minor bugfixes (rust, backport from 0.4.0.5):
4202     - Abort on panic in all build profiles, instead of potentially
4203       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
4205   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
4206     - Correctly exclude a redundant rust build job in Travis. Fixes bug
4207       31463; bugfix on 0.3.5.4-alpha.
4209   o Minor bugfixes (single onion services, backport from 0.4.0.3-alpha):
4210     - Allow connections to single onion services to remain idle without
4211       being disconnected. Previously, relays acting as rendezvous points
4212       for single onion services were mistakenly closing idle rendezvous
4213       circuits after 60 seconds, thinking that they were unused
4214       directory-fetching circuits that had served their purpose. Fixes
4215       bug 29665; bugfix on 0.2.1.26.
4217   o Minor bugfixes (stats, backport from 0.4.0.3-alpha):
4218     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
4219       relay and bridge extra-info documents. Fixes bug 29017; bugfix
4220       on 0.3.1.1-alpha.
4222   o Minor bugfixes (testing, backport from 0.4.0.3-alpha):
4223     - Downgrade some LOG_ERR messages in the address/* tests to
4224       warnings. The LOG_ERR messages were occurring when we had no
4225       configured network. We were failing the unit tests, because we
4226       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
4227       29530; bugfix on 0.3.5.8.
4228     - Fix our gcov wrapper script to look for object files at the
4229       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
4231   o Minor bugfixes (testing, backport from 0.4.0.4-rc):
4232     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
4233       recent test-network.sh to use new chutney features in CI. Fixes
4234       bug 29703; bugfix on 0.2.9.1-alpha.
4235     - Fix a test failure on Windows caused by an unexpected "BUG"
4236       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
4237       on 0.2.9.3-alpha.
4239   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
4240     - When testing port rebinding, don't busy-wait for tor to log.
4241       Instead, actually sleep for a short time before polling again.
4242       Also improve the formatting of control commands and log messages.
4243       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
4245   o Minor bugfixes (TLS protocol, backport form 0.4.0.4-rc):
4246     - When classifying a client's selection of TLS ciphers, if the
4247       client ciphers are not yet available, do not cache the result.
4248       Previously, we had cached the unavailability of the cipher list
4249       and never looked again, which in turn led us to assume that the
4250       client only supported the ancient V1 link protocol. This, in turn,
4251       was causing Stem integration tests to stall in some cases. Fixes
4252       bug 30021; bugfix on 0.2.4.8-alpha.
4254   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
4255     - Log bugs about the TLS read buffer's length only once, rather than
4256       filling the logs with similar warnings. Fixes bug 31939; bugfix
4257       on 0.3.0.4-rc.
4259   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
4260     - Always retry v2 single onion service intro and rend circuits with
4261       a 3-hop path. Previously, v2 single onion services used a 3-hop
4262       path when rendezvous circuits were retried after a remote or
4263       delayed failure, but a 1-hop path for immediate retries. Fixes bug
4264       23818; bugfix on 0.2.9.3-alpha.
4265     - Make v3 single onion services fall back to a 3-hop intro, when all
4266       intro points are unreachable via a 1-hop path. Previously, v3
4267       single onion services failed when all intro nodes were unreachable
4268       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
4270   o Minor bugfixes (Windows, CI, backport from 0.4.0.3-alpha):
4271     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
4272       Windows Server 2012 R2 job. The remaining 2 jobs still provide
4273       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
4274       fast_finish, so failed jobs terminate the build immediately. Fixes
4275       bug 29601; bugfix on 0.3.5.4-alpha.
4277   o Documentation (backport from 0.4.2.1-alpha):
4278     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
4279       notice.html so that operators no longer have to host it
4280       themselves. Closes ticket 31089.
4282   o Testing (backport from 0.4.1.2-alpha):
4283     - Specify torrc paths (with empty files) when launching tor in
4284       integration tests; refrain from reading user and system torrcs.
4285       Resolves issue 29702.
4287   o Testing (continuous integration, backport from 0.4.1.1-alpha):
4288     - In Travis, show stem's tor log after failure. Closes ticket 30234.
4290   o Testing (continuous integration, backport from 0.4.1.5):
4291     - In Travis, make stem log a controller trace to the console, and
4292       tail stem's tor log after failure. Closes ticket 30591.
4293     - In Travis, only run the stem tests that use a tor binary. Closes
4294       ticket 30694.
4296   o Testing (continuous integration, backport from 0.4.2.3-alpha):
4297     - Disable all but one Travis CI macOS build, to mitigate slow
4298       scheduling of Travis macOS jobs. Closes ticket 32177.
4299     - Run the chutney IPv6 networks as part of Travis CI. Closes
4300       ticket 30860.
4301     - Simplify the Travis CI build matrix, and optimise for build time.
4302       Closes ticket 31859.
4303     - Use Windows Server 2019 instead of Windows Server 2016 in our
4304       Appveyor builds. Closes ticket 32086.
4306   o Testing (continuous integration, backport from 0.4.2.4-rc):
4307     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
4308       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
4309       until we can fix some Bionic permissions issues (see ticket
4310       32240). Related to ticket 31919.
4311     - Install the mingw OpenSSL package in Appveyor. This makes sure
4312       that the OpenSSL headers and libraries match in Tor's Appveyor
4313       builds. (This bug was triggered by an Appveyor image update.)
4314       Fixes bug 32449; bugfix on 0.3.5.6-rc.
4315     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
4317   o Testing (continuous integration, backport from 0.4.2.5):
4318     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
4319       extensions. Also activates clang's -Wtypedef-redefinition warnings.
4320       Build some jobs with -std=gnu99, and some jobs without.
4321       Closes ticket 32500.
4323 Changes in version 0.4.2.4-rc - 2019-11-15
4324   Tor 0.4.2.4-rc is the first release candidate in its series. It fixes
4325   several bugs from earlier versions, including a few that would result in
4326   stack traces or incorrect behavior.
4328   o Minor features (build system):
4329     - Make pkg-config use --prefix when cross-compiling, if
4330       PKG_CONFIG_PATH is not set. Closes ticket 32191.
4332   o Minor features (geoip):
4333     - Update geoip and geoip6 to the November 6 2019 Maxmind GeoLite2
4334       Country database. Closes ticket 32440.
4336   o Minor bugfixes (client, onion service v3):
4337     - Fix a BUG() assertion that occurs within a very small race window
4338       between when a client intro circuit opens and when its descriptor
4339       gets cleaned up from the cache. The circuit is now closed early,
4340       which will trigger a re-fetch of the descriptor and continue the
4341       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
4343   o Minor bugfixes (code quality):
4344     - Fix "make check-includes" so it runs correctly on out-of-tree
4345       builds. Fixes bug 31335; bugfix on 0.3.5.1-alpha.
4347   o Minor bugfixes (configuration):
4348     - Log the option name when skipping an obsolete option. Fixes bug
4349       32295; bugfix on 0.4.2.1-alpha.
4351   o Minor bugfixes (crash):
4352     - When running Tor with an option like --verify-config or
4353       --dump-config that does not start the event loop, avoid crashing
4354       if we try to exit early because of an error. Fixes bug 32407;
4355       bugfix on 0.3.3.1-alpha.
4357   o Minor bugfixes (directory):
4358     - When checking if a directory connection is anonymous, test if the
4359       circuit was marked for close before looking at its channel. This
4360       avoids a BUG() stacktrace if the circuit was previously closed.
4361       Fixes bug 31958; bugfix on 0.4.2.1-alpha.
4363   o Minor bugfixes (shellcheck):
4364     - Fix minor shellcheck errors in the git-*.sh scripts. Fixes bug
4365       32402; bugfix on 0.4.2.1-alpha.
4366     - Start checking most scripts for shellcheck errors again. Fixes bug
4367       32402; bugfix on 0.4.2.1-alpha.
4369   o Testing (continuous integration):
4370     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
4371       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
4372       until we can fix some Bionic permissions issues (see ticket
4373       32240). Related to ticket 31919.
4374     - Install the mingw OpenSSL package in Appveyor. This makes sure
4375       that the OpenSSL headers and libraries match in Tor's Appveyor
4376       builds. (This bug was triggered by an Appveyor image update.)
4377       Fixes bug 32449; bugfix on 0.3.5.6-rc.
4378     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
4381 Changes in version 0.4.2.3-alpha - 2019-10-24
4382   This release fixes several bugs from the previous alpha release, and
4383   from earlier versions of Tor.
4385   o Major bugfixes (relay):
4386     - Relays now respect their AccountingMax bandwidth again. When
4387       relays entered "soft" hibernation (which typically starts when
4388       we've hit 90% of our AccountingMax), we had stopped checking
4389       whether we should enter hard hibernation. Soft hibernation refuses
4390       new connections and new circuits, but the existing circuits can
4391       continue, meaning that relays could have exceeded their configured
4392       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
4394   o Major bugfixes (v3 onion services):
4395     - Onion services now always use the exact number of intro points
4396       configured with the HiddenServiceNumIntroductionPoints option (or
4397       fewer if nodes are excluded). Before, a service could sometimes
4398       pick more intro points than configured. Fixes bug 31548; bugfix
4399       on 0.3.2.1-alpha.
4401   o Minor feature (onion services, control port):
4402     - The ADD_ONION command's keyword "BEST" now defaults to ED25519-V3
4403       (v3) onion services. Previously it defaulted to RSA1024 (v2).
4404       Closes ticket 29669.
4406   o Minor features (testing):
4407     - When running tests that attempt to look up hostnames, replace the
4408       libc name lookup functions with ones that do not actually touch
4409       the network. This way, the tests complete more quickly in the
4410       presence of a slow or missing DNS resolver. Closes ticket 31841.
4412   o Minor features (testing, continuous integration):
4413     - Disable all but one Travis CI macOS build, to mitigate slow
4414       scheduling of Travis macOS jobs. Closes ticket 32177.
4415     - Run the chutney IPv6 networks as part of Travis CI. Closes
4416       ticket 30860.
4417     - Simplify the Travis CI build matrix, and optimise for build time.
4418       Closes ticket 31859.
4419     - Use Windows Server 2019 instead of Windows Server 2016 in our
4420       Appveyor builds. Closes ticket 32086.
4422   o Minor bugfixes (build system):
4423     - Interpret "--disable-module-dirauth=no" correctly. Fixes bug
4424       32124; bugfix on 0.3.4.1-alpha.
4425     - Interpret "--with-tcmalloc=no" correctly. Fixes bug 32124; bugfix
4426       on 0.2.0.20-rc.
4427     - Stop failing when jemalloc is requested, but tcmalloc is not
4428       found. Fixes bug 32124; bugfix on 0.3.5.1-alpha.
4429     - When pkg-config is not installed, or a library that depends on
4430       pkg-config is not found, tell the user what to do to fix the
4431       problem. Fixes bug 31922; bugfix on 0.3.1.1-alpha.
4433   o Minor bugfixes (connections):
4434     - Avoid trying to read data from closed connections, which can cause
4435       needless loops in Libevent and infinite loops in Shadow. Fixes bug
4436       30344; bugfix on 0.1.1.1-alpha.
4438   o Minor bugfixes (error handling):
4439     - Always lock the backtrace buffer before it is used. Fixes bug
4440       31734; bugfix on 0.2.5.3-alpha.
4442   o Minor bugfixes (mainloop, periodic events, in-process API):
4443     - Reset the periodic events' "enabled" flag when Tor is shut down
4444       cleanly. Previously, this flag was left on, which caused periodic
4445       events not to be re-enabled when Tor was relaunched in-process
4446       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
4447       on 0.3.3.1-alpha.
4449   o Minor bugfixes (process management):
4450     - Remove overly strict assertions that triggered when a pluggable
4451       transport failed to launch. Fixes bug 31091; bugfix
4452       on 0.4.0.1-alpha.
4453     - Remove an assertion in the Unix process backend. This assertion
4454       would trigger when we failed to find the executable for a child
4455       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
4457   o Minor bugfixes (testing):
4458     - Avoid intermittent test failures due to a test that had relied on
4459       inconsistent timing sources. Fixes bug 31995; bugfix
4460       on 0.3.1.3-alpha.
4461     - When testing port rebinding, don't busy-wait for tor to log.
4462       Instead, actually sleep for a short time before polling again.
4463       Also improve the formatting of control commands and log messages.
4464       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
4466   o Minor bugfixes (tls, logging):
4467     - Log bugs about the TLS read buffer's length only once, rather than
4468       filling the logs with similar warnings. Fixes bug 31939; bugfix
4469       on 0.3.0.4-rc.
4471   o Minor bugfixes (v3 onion services):
4472     - Fix an implicit conversion from ssize_t to size_t discovered by
4473       Coverity. Fixes bug 31682; bugfix on 0.4.2.1-alpha.
4474     - Fix a memory leak in an unlikely error code path when encoding HS
4475       DoS establish intro extension cell. Fixes bug 32063; bugfix
4476       on 0.4.2.1-alpha.
4477     - When cleaning up intro circuits for a v3 onion service, don't
4478       remove circuits that have an established or pending circuit, even
4479       if they ran out of retries. This way, we don't remove a circuit on
4480       its last retry. Fixes bug 31652; bugfix on 0.3.2.1-alpha.
4482   o Documentation:
4483     - Correct the description of "GuardLifetime". Fixes bug 31189;
4484       bugfix on 0.3.0.1-alpha.
4485     - Make clear in the man page, in both the bandwidth section and the
4486       AccountingMax section, that Tor counts in powers of two, not
4487       powers of ten: 1 GByte is 1024*1024*1024 bytes, not one billion
4488       bytes. Resolves ticket 32106.
4491 Changes in version 0.4.2.2-alpha - 2019-10-07
4492   This release fixes several bugs from the previous alpha release, and
4493   from earlier versions. It also includes a change in authorities, so
4494   that they begin to reject the currently unsupported release series.
4496   o Major features (directory authorities):
4497     - Directory authorities now reject relays running all currently
4498       deprecated release series. The currently supported release series
4499       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
4501   o Major bugfixes (embedded Tor):
4502     - Avoid a possible crash when restarting Tor in embedded mode and
4503       enabling a different set of publish/subscribe messages. Fixes bug
4504       31898; bugfix on 0.4.1.1-alpha.
4506   o Major bugfixes (torrc parsing):
4507     - Stop ignoring torrc options after an %include directive, when the
4508       included directory ends with a file that does not contain any
4509       config options (but does contain comments or whitespace). Fixes
4510       bug 31408; bugfix on 0.3.1.1-alpha.
4512   o Minor features (auto-formatting scripts):
4513     - When annotating C macros, never generate a line that our check-
4514       spaces script would reject. Closes ticket 31759.
4515     - When annotating C macros, try to remove cases of double-negation.
4516       Closes ticket 31779.
4518   o Minor features (continuous integration):
4519     - When building on Appveyor and Travis, pass the "-k" flag to make,
4520       so that we are informed of all compilation failures, not just the
4521       first one or two. Closes ticket 31372.
4523   o Minor features (geoip):
4524     - Update geoip and geoip6 to the October 1 2019 Maxmind GeoLite2
4525       Country database. Closes ticket 31931.
4527   o Minor features (maintenance scripts):
4528     - Add a Coccinelle script to detect bugs caused by incrementing or
4529       decrementing a variable inside a call to log_debug(). Since
4530       log_debug() is a macro whose arguments are conditionally
4531       evaluated, it is usually an error to do this. One such bug was
4532       30628, in which SENDME cells were miscounted by a decrement
4533       operator inside a log_debug() call. Closes ticket 30743.
4535   o Minor features (onion services v3):
4536     - Assist users who try to setup v2 client authorization in v3 onion
4537       services by pointing them to the right documentation. Closes
4538       ticket 28966.
4540   o Minor bugfixes (Appveyor continuous integration):
4541     - Avoid spurious errors when Appveyor CI fails before the install
4542       step. Fixes bug 31884; bugfix on 0.3.4.2-alpha.
4544   o Minor bugfixes (best practices tracker):
4545     - When listing overbroad exceptions, do not also list problems, and
4546       do not list insufficiently broad exceptions. Fixes bug 31338;
4547       bugfix on 0.4.2.1-alpha.
4549   o Minor bugfixes (controller protocol):
4550     - Fix the MAPADDRESS controller command to accept one or more
4551       arguments. Previously, it required two or more arguments, and
4552       ignored the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
4554   o Minor bugfixes (logging):
4555     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
4556       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
4557     - Disable backtrace signal handlers when shutting down tor. Fixes
4558       bug 31614; bugfix on 0.2.5.2-alpha.
4559     - Rate-limit our the logging message about the obsolete .exit
4560       notation. Previously, there was no limit on this warning, which
4561       could potentially be triggered many times by a hostile website.
4562       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
4563     - When initialising log domain masks, only set known log domains.
4564       Fixes bug 31854; bugfix on 0.2.1.1-alpha.
4566   o Minor bugfixes (logging, protocol violations):
4567     - Do not log a nonfatal assertion failure when receiving a VERSIONS
4568       cell on a connection using the obsolete v1 link protocol. Log a
4569       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
4571   o Minor bugfixes (modules):
4572     - Explain what the optional Directory Authority module is, and what
4573       happens when it is disabled. Fixes bug 31825; bugfix
4574       on 0.3.4.1-alpha.
4576   o Minor bugfixes (multithreading):
4577     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
4578       31736; bugfix on 0.0.7.
4580   o Minor bugfixes (relay):
4581     - Avoid crashing when starting with a corrupt keys directory where
4582       the old ntor key and the new ntor key are identical. Fixes bug
4583       30916; bugfix on 0.2.4.8-alpha.
4585   o Minor bugfixes (tests, SunOS):
4586     - Avoid a map_anon_nofork test failure due to a signed/unsigned
4587       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
4589   o Code simplification and refactoring:
4590     - Refactor connection_control_process_inbuf() to reduce the size of
4591       a practracker exception. Closes ticket 31840.
4592     - Refactor the microdescs_parse_from_string() function into smaller
4593       pieces, for better comprehensibility. Closes ticket 31675.
4594     - Use SEVERITY_MASK_IDX() to find the LOG_* mask indexes in the unit
4595       tests and fuzzers, rather than using hard-coded values. Closes
4596       ticket 31334.
4597     - Interface for function `decrypt_desc_layer` cleaned up. Closes
4598       ticket 31589.
4600   o Documentation:
4601     - Document the signal-safe logging behaviour in the tor man page.
4602       Also add some comments to the relevant functions. Closes
4603       ticket 31839.
4604     - Explain why we can't destroy the backtrace buffer mutex. Explain
4605       why we don't need to destroy the log mutex. Closes ticket 31736.
4606     - The Tor source code repository now includes a (somewhat dated)
4607       description of Tor's modular architecture, in doc/HACKING/design.
4608       This is based on the old "tor-guts.git" repository, which we are
4609       adopting and superseding. Closes ticket 31849.
4612 Changes in version 0.4.1.6 - 2019-09-19
4613   This release backports several bugfixes to improve stability and
4614   correctness.  Anyone experiencing build problems or crashes with 0.4.1.5,
4615   or experiencing reliability issues with single onion services, should
4616   upgrade.
4618   o Major bugfixes (crash, Linux, Android, backport from 0.4.2.1-alpha):
4619     - Tolerate systems (including some Android installations) where
4620       madvise and MADV_DONTDUMP are available at build-time, but not at
4621       run time. Previously, these systems would notice a failed syscall
4622       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
4623     - Tolerate systems (including some Linux installations) where
4624       madvise and/or MADV_DONTFORK are available at build-time, but not
4625       at run time. Previously, these systems would notice a failed
4626       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
4628   o Minor features (stem tests, backport from 0.4.2.1-alpha):
4629     - Change "make test-stem" so it only runs the stem tests that use
4630       tor. This change makes test-stem faster and more reliable. Closes
4631       ticket 31554.
4633   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
4634     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
4635       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
4637   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
4638     - Add more stub functions to fix compilation on Android with link-
4639       time optimization when --disable-module-dirauth is used.
4640       Previously, these compilation settings would make the compiler
4641       look for functions that didn't exist. Fixes bug 31552; bugfix
4642       on 0.4.1.1-alpha.
4643     - Suppress spurious float-conversion warnings from GCC when calling
4644       floating-point classifier functions on FreeBSD. Fixes part of bug
4645       31687; bugfix on 0.3.1.5-alpha.
4647   o Minor bugfixes (controller protocol):
4648     - Fix the MAPADDRESS controller command to accept one or more
4649       arguments. Previously, it required two or more arguments, and ignored
4650       the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
4652   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
4653     - When extracting an IPv6 address from a PF-based proxy, verify that
4654       we are actually configured to receive an IPv6 address, and log an
4655       internal error if not. Fixes part of bug 31687; bugfix
4656       on 0.2.3.4-alpha.
4658   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
4659     - When tor is missing descriptors for some primary entry guards,
4660       make the log message less alarming. It's normal for descriptors to
4661       expire, as long as tor fetches new ones soon after. Fixes bug
4662       31657; bugfix on 0.3.3.1-alpha.
4664   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
4665     - Change log level of message "Hash of session info was not as
4666       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
4667       on 0.1.1.10-alpha.
4669   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
4670     - Correctly exclude a redundant rust build job in Travis. Fixes bug
4671       31463; bugfix on 0.3.5.4-alpha.
4673   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
4674     - Always retry v2 single onion service intro and rend circuits with
4675       a 3-hop path. Previously, v2 single onion services used a 3-hop
4676       path when rendezvous circuits were retried after a remote or
4677       delayed failure, but a 1-hop path for immediate retries. Fixes bug
4678       23818; bugfix on 0.2.9.3-alpha.
4680   o Minor bugfixes (v3 single onion services, backport from 0.4.2.1-alpha):
4681     - Always retry v3 single onion service intro and rend circuits with
4682       a 3-hop path. Previously, v3 single onion services used a 3-hop
4683       path when rend circuits were retried after a remote or delayed
4684       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
4685       bugfix on 0.3.2.1-alpha.
4686     - Make v3 single onion services fall back to a 3-hop intro, when all
4687       intro points are unreachable via a 1-hop path. Previously, v3
4688       single onion services failed when all intro nodes were unreachable
4689       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
4691   o Documentation (backport from 0.4.2.1-alpha):
4692     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
4693       notice.html so that operators no longer have to host it
4694       themselves. Closes ticket 31089.
4697 Changes in version 0.4.2.1-alpha - 2019-09-17
4698   This is the first alpha release in the 0.4.2.x series. It adds new
4699   defenses for denial-of-service attacks against onion services. It also
4700   includes numerous kinds of bugfixes and refactoring to help improve
4701   Tor's stability and ease of development.
4703   o Major features (onion service v3, denial of service):
4704     - Add onion service introduction denial of service defenses. Intro
4705       points can now rate-limit client introduction requests, using
4706       parameters that can be sent by the service within the
4707       ESTABLISH_INTRO cell. If the cell extension for this is not used,
4708       the intro point will honor the consensus parameters. Closes
4709       ticket 30924.
4711   o Major bugfixes (circuit build, guard):
4712     - When considering upgrading circuits from "waiting for guard" to
4713       "open", always ignore circuits that are marked for close.
4714       Previously we could end up in the situation where a subsystem is
4715       notified of a circuit opening, but the circuit is still marked for
4716       close, leading to undesirable behavior. Fixes bug 30871; bugfix
4717       on 0.3.0.1-alpha.
4719   o Major bugfixes (crash, Linux, Android):
4720     - Tolerate systems (including some Android installations) where
4721       madvise and MADV_DONTDUMP are available at build-time, but not at
4722       run time. Previously, these systems would notice a failed syscall
4723       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
4724     - Tolerate systems (including some Linux installations) where
4725       madvise and/or MADV_DONTFORK are available at build-time, but not
4726       at run time. Previously, these systems would notice a failed
4727       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
4729   o Minor features (best practices tracker):
4730     - Our best-practices tracker now integrates with our include-checker
4731       tool to keep track of how many layering violations we have not yet
4732       fixed. We hope to reduce this number over time to improve Tor's
4733       modularity. Closes ticket 31176.
4734     - Add a TOR_PRACTRACKER_OPTIONS variable for passing arguments to
4735       practracker from the environment. We may want this for continuous
4736       integration. Closes ticket 31309.
4737     - Give a warning rather than an error when a practracker exception
4738       is violated by a small amount, add a --list-overbroad option to
4739       practracker that lists exceptions that are stricter than they need
4740       to be, and provide an environment variable for disabling
4741       practracker. Closes ticket 30752.
4742     - Our best-practices tracker now looks at headers as well as C
4743       files. Closes ticket 31175.
4745   o Minor features (build system):
4746     - Add --disable-manpage and --disable-html-manual options to
4747       configure script. This will enable shortening build times by not
4748       building documentation. Resolves issue 19381.
4750   o Minor features (compilation):
4751     - Log a more useful error message when we are compiling and one of
4752       the compile-time hardening options we have selected can be linked
4753       but not executed. Closes ticket 27530.
4755   o Minor features (configuration):
4756     - The configuration code has been extended to allow splitting
4757       configuration data across multiple objects. Previously, all
4758       configuration data needed to be kept in a single object, which
4759       tended to become bloated. Closes ticket 31240.
4761   o Minor features (continuous integration):
4762     - When running CI builds on Travis, put some random data in
4763       ~/.torrc, to make sure no tests are reading the Tor configuration
4764       file from its default location. Resolves issue 30102.
4766   o Minor features (debugging):
4767     - Log a nonfatal assertion failure if we encounter a configuration
4768       line whose command is "CLEAR" but which has a nonempty value. This
4769       should be impossible, according to the rules of our configuration
4770       line parsing. Closes ticket 31529.
4772   o Minor features (git hooks):
4773     - Our pre-commit git hook now checks for a special file before
4774       running practracker, so that practracker only runs on branches
4775       that are based on master. Since the pre-push hook calls the pre-
4776       commit hook, practracker will also only run before pushes of
4777       branches based on master. Closes ticket 30979.
4779   o Minor features (git scripts):
4780     - Add a "--" command-line argument, to separate git-push-all.sh
4781       script arguments from arguments that are passed through to git
4782       push. Closes ticket 31314.
4783     - Add a -r <remote-name> argument to git-push-all.sh, so the script
4784       can push test branches to a personal remote. Closes ticket 31314.
4785     - Add a -t <test-branch-prefix> argument to git-merge-forward.sh and
4786       git-push-all.sh, which makes these scripts create, merge forward,
4787       and push test branches. Closes ticket 31314.
4788     - Add a -u argument to git-merge-forward.sh, so that the script can
4789       re-use existing test branches after a merge failure and fix.
4790       Closes ticket 31314.
4791     - Add a TOR_GIT_PUSH env var, which sets the default git push
4792       command and arguments for git-push-all.sh. Closes ticket 31314.
4793     - Add a TOR_PUSH_DELAY variable to git-push-all.sh, which makes the
4794       script push master and maint branches with a delay between each
4795       branch. These delays trigger the CI jobs in a set order, which
4796       should show the most likely failures first. Also make pushes
4797       atomic by default, and make the script pass any command-line
4798       arguments to git push. Closes ticket 29879.
4799     - Call the shellcheck script from the pre-commit hook. Closes
4800       ticket 30967.
4801     - Skip pushing test branches that are the same as a remote
4802       maint/release/master branch in git-push-all.sh by default. Add a
4803       -s argument, so git-push-all.sh can push all test branches. Closes
4804       ticket 31314.
4806   o Minor features (IPv6, logging):
4807     - Log IPv6 addresses as well as IPv4 addresses when describing
4808       routerinfos, routerstatuses, and nodes. Closes ticket 21003.
4810   o Minor features (onion service v3):
4811     - Do not allow single hop clients to fetch or post an HS descriptor
4812       from an HSDir. Closes ticket 24964.
4814   o Minor features (onion service):
4815     - Disallow single-hop clients at the introduction point. We've
4816       removed Tor2web support a while back and single-hop rendezvous
4817       attempts are blocked at the relays. This change should remove load
4818       off the network from spammy clients. Close ticket 24963.
4820   o Minor features (stem tests):
4821     - Change "make test-stem" so it only runs the stem tests that use
4822       tor. This change makes test-stem faster and more reliable. Closes
4823       ticket 31554.
4825   o Minor features (testing):
4826     - Add a script to invoke "tor --dump-config" and "tor
4827       --verify-config" with various configuration options, and see
4828       whether tor's resulting configuration or error messages are what
4829       we expect. Use it for integration testing of our +Option and
4830       /Option flags. Closes ticket 31637.
4831     - Improve test coverage for our existing configuration parsing and
4832       management API. Closes ticket 30893.
4833     - Add integration tests to make sure that practracker gives the
4834       outputs we expect. Closes ticket 31477.
4835     - The practracker self-tests are now run as part of the Tor test
4836       suite. Closes ticket 31304.
4838   o Minor features (token bucket):
4839     - Implement a generic token bucket that uses a single counter, for
4840       use in anti-DoS onion service work. Closes ticket 30687.
4842   o Minor bugfixes (best practices tracker):
4843     - Fix a few issues in the best-practices script, including tests,
4844       tab tolerance, error reporting, and directory-exclusion logic.
4845       Fixes bug 29746; bugfix on 0.4.1.1-alpha.
4846     - When running check-best-practices, only consider files in the src
4847       subdirectory. Previously we had recursively considered all
4848       subdirectories, which made us get confused by the temporary
4849       directories made by "make distcheck". Fixes bug 31578; bugfix
4850       on 0.4.1.1-alpha.
4852   o Minor bugfixes (build system):
4853     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
4854       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
4856   o Minor bugfixes (chutney, makefiles, documentation):
4857     - "make test-network-all" now shows the warnings from each test-
4858       network.sh run on the console, so developers see new warnings
4859       early. We've also improved the documentation for this feature, and
4860       renamed a Makefile variable so the code is self-documenting. Fixes
4861       bug 30455; bugfix on 0.3.0.4-rc.
4863   o Minor bugfixes (compilation):
4864     - Add more stub functions to fix compilation on Android with link-
4865       time optimization when --disable-module-dirauth is used.
4866       Previously, these compilation settings would make the compiler
4867       look for functions that didn't exist. Fixes bug 31552; bugfix
4868       on 0.4.1.1-alpha.
4869     - Suppress spurious float-conversion warnings from GCC when calling
4870       floating-point classifier functions on FreeBSD. Fixes part of bug
4871       31687; bugfix on 0.3.1.5-alpha.
4873   o Minor bugfixes (configuration):
4874     - Invalid floating-point values in the configuration file are now
4875       treated as errors in the configuration. Previously, they were
4876       ignored and treated as zero. Fixes bug 31475; bugfix on 0.0.1.
4878   o Minor bugfixes (coverity):
4879     - Add an assertion when parsing a BEGIN cell so that coverity can be
4880       sure that we are not about to dereference a NULL address. Fixes
4881       bug 31026; bugfix on 0.2.4.7-alpha. This is CID 1447296.
4882     - In our siphash implementation, when building for coverity, use
4883       memcpy in place of a switch statement, so that coverity can tell
4884       we are not accessing out-of-bounds memory. Fixes bug 31025; bugfix
4885       on 0.2.8.1-alpha. This is tracked as CID 1447293 and 1447295.
4886     - Fix several coverity warnings from our unit tests. Fixes bug
4887       31030; bugfix on 0.2.4.1-alpha, 0.3.2.1-alpha, and 0.4.0.1-alpha.
4889   o Minor bugfixes (developer tooling):
4890     - Only log git script changes in the post-merge script when the
4891       merge was to the master branch. Fixes bug 31040; bugfix
4892       on 0.4.1.1-alpha.
4894   o Minor bugfixes (directory authorities):
4895     - Return a distinct status when formatting annotations fails. Fixes
4896       bug 30780; bugfix on 0.2.0.8-alpha.
4898   o Minor bugfixes (error handling):
4899     - On abort, try harder to flush the output buffers of log messages.
4900       On some platforms (macOS), log messages could be discarded when
4901       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4902     - Report the tor version whenever an assertion fails. Previously, we
4903       only reported the Tor version on some crashes, and some non-fatal
4904       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4905     - When tor aborts due to an error, close log file descriptors before
4906       aborting. Closing the logs makes some OSes flush log file buffers,
4907       rather than deleting buffered log lines. Fixes bug 31594; bugfix
4908       on 0.2.5.2-alpha.
4910   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6):
4911     - When extracting an IPv6 address from a PF-based proxy, verify that
4912       we are actually configured to receive an IPv6 address, and log an
4913       internal error if not. Fixes part of bug 31687; bugfix
4914       on 0.2.3.4-alpha.
4916   o Minor bugfixes (git hooks):
4917     - Remove a duplicate call to practracker from the pre-push hook. The
4918       pre-push hook already calls the pre-commit hook, which calls
4919       practracker. Fixes bug 31462; bugfix on 0.4.1.1-alpha.
4921   o Minor bugfixes (git scripts):
4922     - Stop hard-coding the bash path in the git scripts. Some OSes don't
4923       have bash in /usr/bin, others have an ancient bash at this path.
4924       Fixes bug 30840; bugfix on 0.4.0.1-alpha.
4925     - Stop hard-coding the tor master branch name and worktree path in
4926       the git scripts. Fixes bug 30841; bugfix on 0.4.0.1-alpha.
4927     - Allow git-push-all.sh to be run from any directory. Previously,
4928       the script only worked if run from an upstream worktree directory.
4929       Closes ticket 31678.
4931   o Minor bugfixes (guards):
4932     - When tor is missing descriptors for some primary entry guards,
4933       make the log message less alarming. It's normal for descriptors to
4934       expire, as long as tor fetches new ones soon after. Fixes bug
4935       31657; bugfix on 0.3.3.1-alpha.
4937   o Minor bugfixes (ipv6):
4938     - Check for private IPv6 addresses alongside their IPv4 equivalents
4939       when authorities check descriptors. Previously, we only checked
4940       for private IPv4 addresses. Fixes bug 31088; bugfix on
4941       0.2.3.21-rc. Patch by Neel Chauhan.
4942     - When parsing microdescriptors, we should check the IPv6 exit
4943       policy alongside IPv4. Previously, we checked both exit policies
4944       for only router info structures, while microdescriptors were
4945       IPv4-only. Fixes bug 27284; bugfix on 0.2.3.1-alpha. Patch by
4946       Neel Chauhan.
4948   o Minor bugfixes (logging):
4949     - Change log level of message "Hash of session info was not as
4950       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
4951       on 0.1.1.10-alpha.
4952     - Fix a code issue that would have broken our parsing of log domains
4953       as soon as we had 33 of them. Fortunately, we still only have 29.
4954       Fixes bug 31451; bugfix on 0.4.1.4-rc.
4956   o Minor bugfixes (memory management):
4957     - Stop leaking a small amount of memory in nt_service_install(), in
4958       unreachable code. Fixes bug 30799; bugfix on 0.2.0.7-alpha. Patch
4959       by Xiaoyin Liu.
4961   o Minor bugfixes (networking, IP addresses):
4962     - When parsing addresses via Tor's internal DNS lookup API, reject
4963       IPv4 addresses in square brackets, and accept IPv6 addresses in
4964       square brackets. This change completes the work started in 23082,
4965       making address parsing consistent between tor's internal DNS
4966       lookup and address parsing APIs. Fixes bug 30721; bugfix
4967       on 0.2.1.5-alpha.
4968     - When parsing addresses via Tor's internal address:port parsing and
4969       DNS lookup APIs, require IPv6 addresses with ports to have square
4970       brackets. But allow IPv6 addresses without ports, whether or not
4971       they have square brackets. Fixes bug 30721; bugfix
4972       on 0.2.1.5-alpha.
4974   o Minor bugfixes (onion service v3):
4975     - When purging the client descriptor cache, close any introduction
4976       point circuits associated with purged cache entries. This avoids
4977       picking those circuits later when connecting to the same
4978       introduction points. Fixes bug 30921; bugfix on 0.3.2.1-alpha.
4980   o Minor bugfixes (onion services):
4981     - In the hs_ident_circuit_t data structure, remove the unused field
4982       circuit_type and the respective argument in hs_ident_circuit_new().
4983       This field was set by clients (for introduction) and services (for
4984       introduction and rendezvous) but was never used afterwards. Fixes
4985       bug 31490; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
4987   o Minor bugfixes (operator tools):
4988     - Make tor-print-ed-signing-cert(1) print certificate expiration
4989       date in RFC 1123 and UNIX timestamp formats, to make output
4990       machine readable. Fixes bug 31012; bugfix on 0.3.5.1-alpha.
4992   o Minor bugfixes (rust):
4993     - Correctly exclude a redundant rust build job in Travis. Fixes bug
4994       31463; bugfix on 0.3.5.4-alpha.
4995     - Raise the minimum rustc version to 1.31.0, as checked by configure
4996       and CI. Fixes bug 31442; bugfix on 0.3.5.4-alpha.
4998   o Minor bugfixes (sendme, code structure):
4999     - Rename the trunnel SENDME file definition from sendme.trunnel to
5000       sendme_cell.trunnel to avoid having twice sendme.{c|h} in the
5001       repository. Fixes bug 30769; bugfix on 0.4.1.1-alpha.
5003   o Minor bugfixes (statistics):
5004     - Stop removing the ed25519 signature if the extra info file is too
5005       big. If the signature data was removed, but the keyword was kept,
5006       this could result in an unparseable extra info file. Fixes bug
5007       30958; bugfix on 0.2.7.2-alpha.
5009   o Minor bugfixes (subsystems):
5010     - Make the subsystem init order match the subsystem module
5011       dependencies. Call windows process security APIs as early as
5012       possible. Initialize logging before network and time, so that
5013       network and time can use logging. Fixes bug 31615; bugfix
5014       on 0.4.0.1-alpha.
5016   o Minor bugfixes (testing):
5017     - Teach the util/socketpair_ersatz test to work correctly when we
5018       have no network stack configured. Fixes bug 30804; bugfix
5019       on 0.2.5.1-alpha.
5021   o Minor bugfixes (v2 single onion services):
5022     - Always retry v2 single onion service intro and rend circuits with
5023       a 3-hop path. Previously, v2 single onion services used a 3-hop
5024       path when rendezvous circuits were retried after a remote or
5025       delayed failure, but a 1-hop path for immediate retries. Fixes bug
5026       23818; bugfix on 0.2.9.3-alpha.
5028   o Minor bugfixes (v3 single onion services):
5029     - Always retry v3 single onion service intro and rend circuits with
5030       a 3-hop path. Previously, v3 single onion services used a 3-hop
5031       path when rend circuits were retried after a remote or delayed
5032       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
5033       bugfix on 0.3.2.1-alpha.
5034     - Make v3 single onion services fall back to a 3-hop intro, when all
5035       intro points are unreachable via a 1-hop path. Previously, v3
5036       single onion services failed when all intro nodes were unreachable
5037       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
5039   o Documentation:
5040     - Improve documentation in circuit padding subsystem. Patch by
5041       Tobias Pulls. Closes ticket 31113.
5042     - Include an example usage for IPv6 ORPort in our sample torrc.
5043       Closes ticket 31320; patch from Ali Raheem.
5044     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
5045       notice.html so that operators no longer have to host it
5046       themselves. Closes ticket 31089.
5048   o Removed features:
5049     - No longer include recommended package digests in votes as detailed
5050       in proposal 301. The RecommendedPackages torrc option is
5051       deprecated and will no longer have any effect. "package" lines
5052       will still be considered when computing consensuses for consensus
5053       methods that include them. (This change has no effect on the list
5054       of recommended Tor versions, which is still in use.) Closes
5055       ticket 29738.
5056     - Remove torctl.in from contrib/dist directory. Resolves
5057       ticket 30550.
5059   o Testing:
5060     - Run shellcheck for all non-third-party shell scripts that are
5061       shipped with Tor. Closes ticket 29533.
5062     - When checking shell scripts, ignore any user-created directories.
5063       Closes ticket 30967.
5065   o Code simplification and refactoring (config handling):
5066     - Extract our variable manipulation code from confparse.c to a new
5067       lower-level typedvar.h module. Closes ticket 30864.
5068     - Lower another layer of object management from confparse.c to a
5069       more general tool. Now typed structure members are accessible via
5070       an abstract type. Implements ticket 30914.
5071     - Move our backend logic for working with configuration and state
5072       files into a lower-level library, since it no longer depends on
5073       any tor-specific functionality. Closes ticket 31626.
5074     - Numerous simplifications in configuration-handling logic: remove
5075       duplicated macro definitions, replace magical names with flags,
5076       and refactor "TestingTorNetwork" to use the same default-option
5077       logic as the rest of Tor. Closes ticket 30935.
5078     - Replace our ad-hoc set of flags for configuration variables and
5079       configuration variable types with fine-grained orthogonal flags
5080       corresponding to the actual behavior we want. Closes ticket 31625.
5082   o Code simplification and refactoring (misc):
5083     - Eliminate some uses of lower-level control reply abstractions,
5084       primarily in the onion_helper functions. Closes ticket 30889.
5085     - Rework bootstrap tracking to use the new publish-subscribe
5086       subsystem. Closes ticket 29976.
5087     - Rewrite format_node_description() and router_get_verbose_nickname()
5088       to use strlcpy() and strlcat(). The previous implementation used
5089       memcpy() and pointer arithmetic, which was error-prone. Closes
5090       ticket 31545. This is CID 1452819.
5091     - Split extrainfo_dump_to_string() into smaller functions. Closes
5092       ticket 30956.
5093     - Use the ptrdiff_t type consistently for expressing variable
5094       offsets and pointer differences. Previously we incorrectly (but
5095       harmlessly) used int and sometimes off_t for these cases. Closes
5096       ticket 31532.
5097     - Use the subsystems mechanism to manage the main event loop code.
5098       Closes ticket 30806.
5099     - Various simplifications and minor improvements to the circuit
5100       padding machines. Patch by Tobias Pulls. Closes tickets 31112
5101       and 31098.
5103   o Documentation (hard-coded directories):
5104     - Improve the documentation for the DirAuthority and FallbackDir
5105       torrc options. Closes ticket 30955.
5107   o Documentation (tor.1 man page):
5108     - Fix typo in tor.1 man page: the option is "--help", not "-help".
5109       Fixes bug 31008; bugfix on 0.2.2.9-alpha.
5112 Changes in version 0.4.1.5 - 2019-08-20
5113   This is the first stable release in the 0.4.1.x series. This series
5114   adds experimental circuit-level padding, authenticated SENDME cells to
5115   defend against certain attacks, and several performance improvements
5116   to save on CPU consumption. It fixes bugs in bootstrapping and v3
5117   onion services. It also includes numerous smaller features and
5118   bugfixes on earlier versions.
5120   Per our support policy, we will support the 0.4.1.x series for nine
5121   months, or until three months after the release of a stable 0.4.2.x:
5122   whichever is longer. If you need longer-term support, please stick
5123   with 0.3.5.x, which will we plan to support until Feb 2022.
5125   Below are the changes since 0.4.1.4-rc. For a complete list of changes
5126   since 0.4.0.5, see the ReleaseNotes file.
5128   o Directory authority changes:
5129     - The directory authority "dizum" has a new IP address. Closes
5130       ticket 31406.
5132   o Minor features (circuit padding logging):
5133     - Demote noisy client-side warn logs about circuit padding to
5134       protocol warnings. Add additional log messages and circuit ID
5135       fields to help with bug 30992 and any other future issues.
5137   o Minor bugfixes (circuit padding negotiation):
5138     - Bump the circuit padding protocol version to explicitly signify
5139       that the HS setup machine support is finalized in 0.4.1.x-stable.
5140       This also means that 0.4.1.x-alpha clients will not negotiate
5141       padding with 0.4.1.x-stable relays, and 0.4.1.x-stable clients
5142       will not negotiate padding with 0.4.1.x-alpha relays (or 0.4.0.x
5143       relays). Fixes bug 31356; bugfix on 0.4.1.1-alpha.
5145   o Minor bugfixes (circuit padding):
5146     - Ignore non-padding cells on padding circuits. This addresses
5147       various warning messages from subsystems that were not expecting
5148       padding circuits. Fixes bug 30942; bugfix on 0.4.1.1-alpha.
5150   o Minor bugfixes (clock skew detection):
5151     - Don't believe clock skew results from NETINFO cells that appear to
5152       arrive before we sent the VERSIONS cells they are responding to.
5153       Previously, we would accept them up to 3 minutes "in the past".
5154       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
5156   o Minor bugfixes (compatibility, standards compliance):
5157     - Fix a bug that would invoke undefined behavior on certain
5158       operating systems when trying to asprintf() a string exactly
5159       INT_MAX bytes long. We don't believe this is exploitable, but it's
5160       better to fix it anyway. Fixes bug 31001; bugfix on 0.2.2.11-alpha.
5161       Found and fixed by Tobias Stoeckmann.
5163   o Minor bugfixes (compilation warning):
5164     - Fix a compilation warning on Windows about casting a function
5165       pointer for GetTickCount64(). Fixes bug 31374; bugfix
5166       on 0.2.9.1-alpha.
5168   o Minor bugfixes (compilation):
5169     - Avoid using labs() on time_t, which can cause compilation warnings
5170       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
5172   o Minor bugfixes (distribution):
5173     - Do not ship any temporary files found in the
5174       scripts/maint/practracker directory. Fixes bug 31311; bugfix
5175       on 0.4.1.1-alpha.
5177   o Testing (continuous integration):
5178     - In Travis, make stem log a controller trace to the console, and
5179       tail stem's tor log after failure. Closes ticket 30591.
5180     - In Travis, only run the stem tests that use a tor binary. Closes
5181       ticket 30694.
5184 Changes in version 0.4.1.4-rc - 2019-07-25
5185   Tor 0.4.1.4-rc fixes a few bugs from previous versions of Tor, and
5186   updates to a new list of fallback directories. If no new bugs are
5187   found, the next release in the 0.4.1.x serious should be stable.
5189   o Major bugfixes (circuit build, guard):
5190     - When considering upgrading circuits from "waiting for guard" to
5191       "open", always ignore circuits that are marked for close. Otherwise,
5192       we can end up in the situation where a subsystem is notified that
5193       a closing circuit has just opened, leading to undesirable
5194       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
5196   o Minor features (continuous integration):
5197     - Our Travis configuration now uses Chutney to run some network
5198       integration tests automatically. Closes ticket 29280.
5200   o Minor features (fallback directory list):
5201     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
5202       in December 2018 (of which ~122 were still functional), with a
5203       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
5204       in June 2019. Closes ticket 28795.
5206   o Minor bugfixes (circuit padding):
5207     - On relays, properly check that a padding machine is absent before
5208       logging a warning about it being absent. Fixes bug 30649; bugfix
5209       on 0.4.0.1-alpha.
5210     - Add two NULL checks in unreachable places to silence Coverity (CID
5211       144729 and 1447291) and better future-proof ourselves. Fixes bug
5212       31024; bugfix on 0.4.1.1-alpha.
5214   o Minor bugfixes (crash on exit):
5215     - Avoid a set of possible code paths that could try to use freed
5216       memory in routerlist_free() while Tor was exiting. Fixes bug
5217       31003; bugfix on 0.1.2.2-alpha.
5219   o Minor bugfixes (logging):
5220     - Fix a conflict between the flag used for messaging-domain log
5221       messages, and the LD_NO_MOCK testing flag. Fixes bug 31080; bugfix
5222       on 0.4.1.1-alpha.
5224   o Minor bugfixes (memory leaks):
5225     - Fix a trivial memory leak when parsing an invalid value from a
5226       download schedule in the configuration. Fixes bug 30894; bugfix
5227       on 0.3.4.1-alpha.
5229   o Code simplification and refactoring:
5230     - Remove some dead code from circpad_machine_remove_token() to fix
5231       some Coverity warnings (CID 1447298). Fixes bug 31027; bugfix
5232       on 0.4.1.1-alpha.
5235 Changes in version 0.4.1.3-alpha - 2019-06-25
5236   Tor 0.4.1.3-alpha resolves numerous bugs left over from the previous
5237   alpha, most of them from earlier release series.
5239   o Major bugfixes (Onion service reachability):
5240     - Properly clean up the introduction point map when circuits change
5241       purpose from onion service circuits to pathbias, measurement, or
5242       other circuit types. This should fix some service-side instances
5243       of introduction point failure. Fixes bug 29034; bugfix
5244       on 0.3.2.1-alpha.
5246   o Minor features (geoip):
5247     - Update geoip and geoip6 to the June 10 2019 Maxmind GeoLite2
5248       Country database. Closes ticket 30852.
5250   o Minor features (logging):
5251     - Give a more useful assertion failure message if we think we have
5252       minherit() but we fail to make a region non-inheritable. Give a
5253       compile-time warning if our support for minherit() is incomplete.
5254       Closes ticket 30686.
5256   o Minor bugfixes (circuit isolation):
5257     - Fix a logic error that prevented the SessionGroup sub-option from
5258       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
5260   o Minor bugfixes (continuous integration):
5261     - Allow the test-stem job to fail in Travis, because it sometimes
5262       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
5263     - Skip test_rebind on macOS in Travis, because it is unreliable on
5264       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
5265     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
5266       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
5268   o Minor bugfixes (directory authorities):
5269     - Stop crashing after parsing an unknown descriptor purpose
5270       annotation. We think this bug can only be triggered by modifying a
5271       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
5273   o Minor bugfixes (pluggable transports):
5274     - When running as a bridge with pluggable transports, always publish
5275       pluggable transport information in our extrainfo descriptor, even
5276       if ExtraInfoStatistics is 0. This information is needed by
5277       BridgeDB. Fixes bug 30956; bugfix on 0.4.1.1-alpha.
5279   o Documentation:
5280     - Mention URLs for Travis/Appveyor/Jenkins in ReleasingTor.md.
5281       Closes ticket 30630.
5284 Changes in version 0.4.1.2-alpha - 2019-06-06
5285   Tor 0.4.1.2-alpha resolves numerous bugs--some of them from the
5286   previous alpha, and some much older. It also contains minor testing
5287   improvements, and an improvement to the security of our authenticated
5288   SENDME implementation.
5290   o Major bugfixes (bridges):
5291     - Consider our directory information to have changed when our list
5292       of bridges changes. Previously, Tor would not re-compute the
5293       status of its directory information when bridges changed, and
5294       therefore would not realize that it was no longer able to build
5295       circuits. Fixes part of bug 29875.
5296     - Do not count previously configured working bridges towards our
5297       total of working bridges. Previously, when Tor's list of bridges
5298       changed, it would think that the old bridges were still usable,
5299       and delay fetching router descriptors for the new ones. Fixes part
5300       of bug 29875; bugfix on 0.3.0.1-alpha.
5302   o Major bugfixes (flow control, SENDME):
5303     - Decrement the stream-level package window after packaging a cell.
5304       Previously, it was done inside a log_debug() call, meaning that if
5305       debug logs were not enabled, the decrement would never happen, and
5306       thus the window would be out of sync with the other end point.
5307       Fixes bug 30628; bugfix on 0.4.1.1-alpha.
5309   o Major bugfixes (onion service reachability):
5310     - Properly clean up the introduction point map and associated state
5311       when circuits change purpose from onion service circuits to
5312       pathbias, measurement, or other circuit types. This may fix some
5313       instances of introduction point failure. Fixes bug 29034; bugfix
5314       on 0.3.2.1-alpha.
5316   o Minor features (authenticated SENDME):
5317     - Ensure that there is enough randomness on every circuit to prevent
5318       an attacker from successfully predicting the hashes they will need
5319       to include in authenticated SENDME cells. At a random interval, if
5320       we have not sent randomness already, we now leave some extra space
5321       at the end of a cell that we can fill with random bytes. Closes
5322       ticket 26846.
5324   o Minor features (continuous integration):
5325     - When running coverage builds on Travis, we now set
5326       TOR_TEST_RNG_SEED, to avoid RNG-based coverage differences. Part
5327       of ticket 28878.
5329   o Minor features (maintenance):
5330     - Add a new "make autostyle" target that developers can use to apply
5331       all automatic Tor style and consistency conversions to the
5332       codebase. Closes ticket 30539.
5334   o Minor features (testing):
5335     - The circuitpadding tests now use a reproducible RNG implementation,
5336       so that if a test fails, we can learn why. Part of ticket 28878.
5337     - Tor's tests now support an environment variable, TOR_TEST_RNG_SEED,
5338       to set the RNG seed for tests that use a reproducible RNG. Part of
5339       ticket 28878.
5340     - When running tests in coverage mode, take additional care to make
5341       our coverage deterministic, so that we can accurately track
5342       changes in code coverage. Closes ticket 30519.
5344   o Minor bugfixes (configuration, proxies):
5345     - Fix a bug that prevented us from supporting SOCKS5 proxies that
5346       want authentication along with configured (but unused!)
5347       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
5349   o Minor bugfixes (controller):
5350     - POSTDESCRIPTOR requests should work again. Previously, they were
5351       broken if a "purpose=" flag was specified. Fixes bug 30580; bugfix
5352       on 0.4.1.1-alpha.
5353     - Repair the HSFETCH command so that it works again. Previously, it
5354       expected a body when it shouldn't have. Fixes bug 30646; bugfix
5355       on 0.4.1.1-alpha.
5357   o Minor bugfixes (developer tooling):
5358     - Fix pre-push hook to allow fixup and squash commits when pushing
5359       to non-upstream git remote. Fixes bug 30286; bugfix
5360       on 0.4.0.1-alpha.
5362   o Minor bugfixes (directory authority):
5363     - Move the "bandwidth-file-headers" line in directory authority
5364       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
5365       on 0.3.5.1-alpha.
5367   o Minor bugfixes (NetBSD):
5368     - Fix usage of minherit() on NetBSD and other platforms that define
5369       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
5370       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
5372   o Minor bugfixes (out-of-memory handler):
5373     - When purging the DNS cache because of an out-of-memory condition,
5374       try purging just the older entries at first. Previously, we would
5375       always purge the whole thing. Fixes bug 29617; bugfix
5376       on 0.3.5.1-alpha.
5378   o Minor bugfixes (portability):
5379     - Avoid crashing in our tor_vasprintf() implementation on systems
5380       that define neither vasprintf() nor _vscprintf(). (This bug has
5381       been here long enough that we question whether people are running
5382       Tor on such systems, but we're applying the fix out of caution.)
5383       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
5384       Tobias Stoeckmann.
5386   o Minor bugfixes (shutdown, libevent, memory safety):
5387     - Avoid use-after-free bugs when shutting down, by making sure that
5388       we shut down libevent only after shutting down all of its users.
5389       We believe these are harmless in practice, since they only occur
5390       on the shutdown path, and do not involve any attacker-controlled
5391       data. Fixes bug 30629; bugfix on 0.4.1.1-alpha.
5393   o Minor bugfixes (static analysis):
5394     - Fix several spurious Coverity warnings about the unit tests, to
5395       lower our chances of missing real warnings in the future. Fixes
5396       bug 30150; bugfix on 0.3.5.1-alpha and various other Tor versions.
5398   o Testing:
5399     - Specify torrc paths (with empty files) when launching tor in
5400       integration tests; refrain from reading user and system torrcs.
5401       Resolves issue 29702.
5404 Changes in version 0.4.1.1-alpha - 2019-05-22
5405   This is the first alpha in the 0.4.1.x series. It introduces
5406   lightweight circuit padding to make some onion-service circuits harder
5407   to distinguish, includes a new "authenticated SENDME" feature to make
5408   certain denial-of-service attacks more difficult, and improves
5409   performance in several areas.
5411   o Major features (circuit padding):
5412     - Onion service clients now add padding cells at the start of their
5413       INTRODUCE and RENDEZVOUS circuits, to make those circuits' traffic
5414       look more like general purpose Exit traffic. The overhead for this
5415       is 2 extra cells in each direction for RENDEZVOUS circuits, and 1
5416       extra upstream cell and 10 downstream cells for INTRODUCE
5417       circuits. This feature is only enabled when also supported by the
5418       circuit's middle node. (Clients may specify fixed middle nodes
5419       with the MiddleNodes option, and may force-disable this feature
5420       with the CircuitPadding option.) Closes ticket 28634.
5422   o Major features (code organization):
5423     - Tor now includes a generic publish-subscribe message-passing
5424       subsystem that we can use to organize intermodule dependencies. We
5425       hope to use this to reduce dependencies between modules that don't
5426       need to be related, and to generally simplify our codebase. Closes
5427       ticket 28226.
5429   o Major features (controller protocol):
5430     - Controller commands are now parsed using a generalized parsing
5431       subsystem. Previously, each controller command was responsible for
5432       parsing its own input, which led to strange inconsistencies.
5433       Closes ticket 30091.
5435   o Major features (flow control):
5436     - Implement authenticated SENDMEs as detailed in proposal 289. A
5437       SENDME cell now includes the digest of the traffic that it
5438       acknowledges, so that once an end point receives the SENDME, it
5439       can confirm the other side's knowledge of the previous cells that
5440       were sent, and prevent certain types of denial-of-service attacks.
5441       This behavior is controlled by two new consensus parameters: see
5442       the proposal for more details. Fixes ticket 26288.
5444   o Major features (performance):
5445     - Our node selection algorithm now excludes nodes in linear time.
5446       Previously, the algorithm was quadratic, which could slow down
5447       heavily used onion services. Closes ticket 30307.
5449   o Major features (performance, RNG):
5450     - Tor now constructs a fast secure pseudorandom number generator for
5451       each thread, to use when performance is critical. This PRNG is
5452       based on AES-CTR, using a buffering construction similar to
5453       libottery and the (newer) OpenBSD arc4random() code. It
5454       outperforms OpenSSL 1.1.1a's CSPRNG by roughly a factor of 100 for
5455       small outputs. Although we believe it to be cryptographically
5456       strong, we are only using it when necessary for performance.
5457       Implements tickets 29023 and 29536.
5459   o Major bugfixes (onion service v3):
5460     - Fix an unreachable bug in which an introduction point could try to
5461       send an INTRODUCE_ACK with a status code that Trunnel would refuse
5462       to encode, leading the relay to assert(). We've consolidated the
5463       ABI values into Trunnel now. Fixes bug 30454; bugfix
5464       on 0.3.0.1-alpha.
5465     - Clients can now handle unknown status codes from INTRODUCE_ACK
5466       cells. (The NACK behavior will stay the same.) This will allow us
5467       to extend status codes in the future without breaking the normal
5468       client behavior. Fixes another part of bug 30454; bugfix
5469       on 0.3.0.1-alpha.
5471   o Minor features (circuit padding):
5472     - We now use a fast PRNG when scheduling circuit padding. Part of
5473       ticket 28636.
5474     - Allow the padding machine designer to pick the edges of their
5475       histogram instead of trying to compute them automatically using an
5476       exponential formula. Resolves some undefined behavior in the case
5477       of small histograms and allows greater flexibility on machine
5478       design. Closes ticket 29298; bugfix on 0.4.0.1-alpha.
5479     - Allow circuit padding machines to hold a circuit open until they
5480       are done padding it. Closes ticket 28780.
5482   o Minor features (compile-time modules):
5483     - Add a "--list-modules" command to print a list of which compile-
5484       time modules are enabled. Closes ticket 30452.
5486   o Minor features (continuous integration):
5487     - Remove sudo configuration lines from .travis.yml as they are no
5488       longer needed with current Travis build environment. Resolves
5489       issue 30213.
5490     - In Travis, show stem's tor log after failure. Closes ticket 30234.
5492   o Minor features (controller):
5493     - Add onion service version 3 support to the HSFETCH command.
5494       Previously, only version 2 onion services were supported. Closes
5495       ticket 25417. Patch by Neel Chauhan.
5497   o Minor features (debugging):
5498     - Introduce tor_assertf() and tor_assertf_nonfatal() to enable
5499       logging of additional information during assert failure. Now we
5500       can use format strings to include information for trouble
5501       shooting. Resolves ticket 29662.
5503   o Minor features (defense in depth):
5504     - In smartlist_remove_keeporder(), set unused pointers to NULL, in
5505       case a bug causes them to be used later. Closes ticket 30176.
5506       Patch from Tobias Stoeckmann.
5507     - Tor now uses a cryptographically strong PRNG even for decisions
5508       that we do not believe are security-sensitive. Previously, for
5509       performance reasons, we had used a trivially predictable linear
5510       congruential generator algorithm for certain load-balancing and
5511       statistical sampling decisions. Now we use our fast RNG in those
5512       cases. Closes ticket 29542.
5514   o Minor features (developer tools):
5515     - Tor's "practracker" test script now checks for files and functions
5516       that seem too long and complicated. Existing overlong functions
5517       and files are accepted for now, but should eventually be
5518       refactored. Closes ticket 29221.
5519     - Add some scripts used for git maintenance to scripts/git. Closes
5520       ticket 29391.
5521     - Call practracker from pre-push and pre-commit git hooks to let
5522       developers know if they made any code style violations. Closes
5523       ticket 30051.
5524     - Add a script to check that each header has a well-formed and
5525       unique guard macro. Closes ticket 29756.
5527   o Minor features (geoip):
5528     - Update geoip and geoip6 to the May 13 2019 Maxmind GeoLite2
5529       Country database. Closes ticket 30522.
5531   o Minor features (HTTP tunnel):
5532     - Return an informative web page when the HTTPTunnelPort is used as
5533       an HTTP proxy. Closes ticket 27821, patch by "eighthave".
5535   o Minor features (IPv6, v3 onion services):
5536     - Make v3 onion services put IPv6 addresses in service descriptors.
5537       Before this change, service descriptors only contained IPv4
5538       addresses. Implements 26992.
5540   o Minor features (modularity):
5541     - The "--disable-module-dirauth" compile-time option now disables
5542       even more dirauth-only code. Closes ticket 30345.
5544   o Minor features (performance):
5545     - Use OpenSSL's implementations of SHA3 when available (in OpenSSL
5546       1.1.1 and later), since they tend to be faster than tiny-keccak.
5547       Closes ticket 28837.
5549   o Minor features (testing):
5550     - Tor's unit test code now contains helper functions to replace the
5551       PRNG with a deterministic or reproducible version for testing.
5552       Previously, various tests implemented this in various ways.
5553       Implements ticket 29732.
5554     - We now have a script, cov-test-determinism.sh, to identify places
5555       where our unit test coverage has become nondeterministic. Closes
5556       ticket 29436.
5557     - Check that representative subsets of values of `int` and `unsigned
5558       int` can be represented by `void *`. Resolves issue 29537.
5560   o Minor bugfixes (bridge authority):
5561     - Bridge authorities now set bridges as running or non-running when
5562       about to dump their status to a file. Previously, they set bridges
5563       as running in response to a GETINFO command, but those shouldn't
5564       modify data structures. Fixes bug 24490; bugfix on 0.2.0.13-alpha.
5565       Patch by Neel Chauhan.
5567   o Minor bugfixes (channel padding statistics):
5568     - Channel padding write totals and padding-enabled totals are now
5569       counted properly in relay extrainfo descriptors. Fixes bug 29231;
5570       bugfix on 0.3.1.1-alpha.
5572   o Minor bugfixes (circuit padding):
5573     - Add a "CircuitPadding" torrc option to disable circuit padding.
5574       Fixes bug 28693; bugfix on 0.4.0.1-alpha.
5575     - Allow circuit padding machines to specify that they do not
5576       contribute much overhead, and provide consensus flags and torrc
5577       options to force clients to only use these low overhead machines.
5578       Fixes bug 29203; bugfix on 0.4.0.1-alpha.
5579     - Provide a consensus parameter to fully disable circuit padding, to
5580       be used in emergency network overload situations. Fixes bug 30173;
5581       bugfix on 0.4.0.1-alpha.
5582     - The circuit padding subsystem will no longer schedule padding if
5583       dormant mode is enabled. Fixes bug 28636; bugfix on 0.4.0.1-alpha.
5584     - Inspect a circuit-level cell queue before sending padding, to
5585       avoid sending padding while too much data is already queued. Fixes
5586       bug 29204; bugfix on 0.4.0.1-alpha.
5587     - Avoid calling monotime_absolute_usec() in circuit padding machines
5588       that do not use token removal or circuit RTT estimation. Fixes bug
5589       29085; bugfix on 0.4.0.1-alpha.
5591   o Minor bugfixes (compilation, unusual configurations):
5592     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
5593       due to missing declarations of abort(), and prevent other such
5594       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
5596   o Minor bugfixes (controller protocol):
5597     - Teach the controller parser to distinguish an object preceded by
5598       an argument list from one without. Previously, it couldn't
5599       distinguish an argument list from the first line of a multiline
5600       object. Fixes bug 29984; bugfix on 0.2.3.8-alpha.
5602   o Minor bugfixes (directory authority, ipv6):
5603     - Directory authorities with IPv6 support now always mark themselves
5604       as reachable via IPv6. Fixes bug 24338; bugfix on 0.2.4.1-alpha.
5605       Patch by Neel Chauhan.
5607   o Minor bugfixes (documentation):
5608     - Improve the documentation for using MapAddress with ".exit". Fixes
5609       bug 30109; bugfix on 0.1.0.1-rc.
5610     - Improve the monotonic time module and function documentation to
5611       explain what "monotonic" actually means, and document some results
5612       that have surprised people. Fixes bug 29640; bugfix
5613       on 0.2.9.1-alpha.
5614     - Use proper formatting when providing an example on quoting options
5615       that contain whitespace. Fixes bug 29635; bugfix on 0.2.3.18-rc.
5617   o Minor bugfixes (logging):
5618     - Do not log a warning when running with an OpenSSL version other
5619       than the one Tor was compiled with, if the two versions should be
5620       compatible. Previously, we would warn whenever the version was
5621       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
5622     - Warn operators when the MyFamily option is set but ContactInfo is
5623       missing, as the latter should be set too. Fixes bug 25110; bugfix
5624       on 0.3.3.1-alpha.
5626   o Minor bugfixes (memory leak):
5627     - Avoid a minor memory leak that could occur on relays when failing
5628       to create a "keys" directory. Fixes bug 30148; bugfix
5629       on 0.3.3.1-alpha.
5631   o Minor bugfixes (onion services):
5632     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
5633       implemenation) when failing to load an onion service client
5634       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
5635     - When refusing to launch a controller's HSFETCH request because of
5636       rate-limiting, respond to the controller with a new response,
5637       "QUERY_RATE_LIMITED". Previously, we would log QUERY_NO_HSDIR for
5638       this case. Fixes bug 28269; bugfix on 0.3.1.1-alpha. Patch by
5639       Neel Chauhan.
5640     - When relaunching a circuit to a rendezvous service, mark the
5641       circuit as needing high-uptime routers as appropriate. Fixes bug
5642       17357; bugfix on 0.1.0.1-rc. Patch by Neel Chauhan.
5643     - Stop ignoring IPv6 link specifiers sent to v3 onion services.
5644       (IPv6 support for v3 onion services is still incomplete: see
5645       ticket 23493 for details.) Fixes bug 23588; bugfix on
5646       0.3.2.1-alpha. Patch by Neel Chauhan.
5648   o Minor bugfixes (onion services, performance):
5649     - When building circuits to onion services, call tor_addr_parse()
5650       less often. Previously, we called tor_addr_parse() in
5651       circuit_is_acceptable() even if its output wasn't used. This
5652       change should improve performance when building circuits. Fixes
5653       bug 22210; bugfix on 0.2.8.12. Patch by Neel Chauhan.
5655   o Minor bugfixes (performance):
5656     - When checking whether a node is a bridge, use a fast check to make
5657       sure that its identity is set. Previously, we used a constant-time
5658       check, which is not necessary in this case. Fixes bug 30308;
5659       bugfix on 0.3.5.1-alpha.
5661   o Minor bugfixes (pluggable transports):
5662     - Tor now sets TOR_PT_EXIT_ON_STDIN_CLOSE=1 for client transports as
5663       well as servers. Fixes bug 25614; bugfix on 0.2.7.1-alpha.
5665   o Minor bugfixes (probability distributions):
5666     - Refactor and improve parts of the probability distribution code
5667       that made Coverity complain. Fixes bug 29805; bugfix
5668       on 0.4.0.1-alpha.
5670   o Minor bugfixes (python):
5671     - Stop assuming that /usr/bin/python3 exists. For scripts that work
5672       with python2, use /usr/bin/python. Otherwise, use /usr/bin/env
5673       python3. Fixes bug 29913; bugfix on 0.2.5.3-alpha.
5675   o Minor bugfixes (relay):
5676     - When running as a relay, if IPv6Exit is set to 1 while ExitRelay
5677       is auto, act as if ExitRelay is 1. Previously, we would ignore
5678       IPv6Exit if ExitRelay was 0 or auto. Fixes bug 29613; bugfix on
5679       0.3.5.1-alpha. Patch by Neel Chauhan.
5681   o Minor bugfixes (stats):
5682     - When ExtraInfoStatistics is 0, stop including bandwidth usage
5683       statistics, GeoIPFile hashes, ServerTransportPlugin lines, and
5684       bridge statistics by country in extra-info documents. Fixes bug
5685       29018; bugfix on 0.2.4.1-alpha.
5687   o Minor bugfixes (testing):
5688     - Call setrlimit() to disable core dumps in test_bt_cl.c. Previously
5689       we used `ulimit -c` in test_bt.sh, which violates POSIX shell
5690       compatibility. Fixes bug 29061; bugfix on 0.3.5.1-alpha.
5691     - Fix some incorrect code in the v3 onion service unit tests. Fixes
5692       bug 29243; bugfix on 0.3.2.1-alpha.
5693     - In the "routerkeys/*" tests, check the return values of mkdir()
5694       for possible failures. Fixes bug 29939; bugfix on 0.2.7.2-alpha.
5695       Found by Coverity as CID 1444254.
5696     - Split test_utils_general() into several smaller test functions.
5697       This makes it easier to perform resource deallocation on assert
5698       failure, and fixes Coverity warnings CID 1444117 and CID 1444118.
5699       Fixes bug 29823; bugfix on 0.2.9.1-alpha.
5701   o Minor bugfixes (tor-resolve):
5702     - Fix a memory leak in tor-resolve that could happen if Tor gave it
5703       a malformed SOCKS response. (Memory leaks in tor-resolve don't
5704       actually matter, but it's good to fix them anyway.) Fixes bug
5705       30151; bugfix on 0.4.0.1-alpha.
5707   o Code simplification and refactoring:
5708     - Abstract out the low-level formatting of replies on the control
5709       port. Implements ticket 30007.
5710     - Add several assertions in an attempt to fix some Coverity
5711       warnings. Closes ticket 30149.
5712     - Introduce a connection_dir_buf_add() helper function that checks
5713       for compress_state of dir_connection_t and automatically writes a
5714       string to directory connection with or without compression.
5715       Resolves issue 28816.
5716     - Make the base32_decode() API return the number of bytes written,
5717       for consistency with base64_decode(). Closes ticket 28913.
5718     - Move most relay-only periodic events out of mainloop.c into the
5719       relay subsystem. Closes ticket 30414.
5720     - Refactor and encapsulate parts of the codebase that manipulate
5721       crypt_path_t objects. Resolves issue 30236.
5722     - Refactor several places in our code that Coverity incorrectly
5723       believed might have memory leaks. Closes ticket 30147.
5724     - Remove redundant return values in crypto_format, and the
5725       associated return value checks elsewhere in the code. Make the
5726       implementations in crypto_format consistent, and remove redundant
5727       code. Resolves ticket 29660.
5728     - Rename tor_mem_is_zero() to fast_mem_is_zero(), to emphasize that
5729       it is not a constant-time function. Closes ticket 30309.
5730     - Replace hs_desc_link_specifier_t with link_specifier_t, and remove
5731       all hs_desc_link_specifier_t-specific code. Fixes bug 22781;
5732       bugfix on 0.3.2.1-alpha.
5733     - Simplify v3 onion service link specifier handling code. Fixes bug
5734       23576; bugfix on 0.3.2.1-alpha.
5735     - Split crypto_digest.c into NSS code, OpenSSL code, and shared
5736       code. Resolves ticket 29108.
5737     - Split control.c into several submodules, in preparation for
5738       distributing its current responsibilities throughout the codebase.
5739       Closes ticket 29894.
5740     - Start to move responsibility for knowing about periodic events to
5741       the appropriate subsystems, so that the mainloop doesn't need to
5742       know all the periodic events in the rest of the codebase.
5743       Implements tickets 30293 and 30294.
5745   o Documentation:
5746     - Document how to find git commits and tags for bug fixes in
5747       CodingStandards.md. Update some file documentation. Closes
5748       ticket 30261.
5750   o Removed features:
5751     - Remove the linux-tor-prio.sh script from contrib/operator-tools
5752       directory. Resolves issue 29434.
5753     - Remove the obsolete OpenSUSE initscript. Resolves issue 30076.
5754     - Remove the obsolete script at contrib/dist/tor.sh.in. Resolves
5755       issue 30075.
5757   o Code simplification and refactoring (shell scripts):
5758     - Clean up many of our shell scripts to fix shellcheck warnings.
5759       These include autogen.sh (ticket 26069), test_keygen.sh (ticket
5760       29062), test_switch_id.sh (ticket 29065), test_rebind.sh (ticket
5761       29063), src/test/fuzz/minimize.sh (ticket 30079), test_rust.sh
5762       (ticket 29064), torify (ticket 29070), asciidoc-helper.sh (29926),
5763       fuzz_multi.sh (30077), fuzz_static_testcases.sh (ticket 29059),
5764       nagios-check-tor-authority-cert (ticket 29071),
5765       src/test/fuzz/fixup_filenames.sh (ticket 30078), test-network.sh
5766       (ticket 29060), test_key_expiration.sh (ticket 30002),
5767       zero_length_keys.sh (ticket 29068), and test_workqueue_*.sh
5768       (ticket 29067).
5770   o Testing (chutney):
5771     - In "make test-network-all", test IPv6-only v3 single onion
5772       services, using the chutney network single-onion-v23-ipv6-md.
5773       Closes ticket 27251.
5776 Changes in version 0.4.0.5 - 2019-05-02
5777   This is the first stable release in the 0.4.0.x series. It contains
5778   improvements for power management and bootstrap reporting, as well as
5779   preliminary backend support for circuit padding to prevent some kinds
5780   of traffic analysis. It also continues our work in refactoring Tor for
5781   long-term maintainability.
5783   Per our support policy, we will support the 0.4.0.x series for nine
5784   months, or until three months after the release of a stable 0.4.1.x:
5785   whichever is longer. If you need longer-term support, please stick
5786   with 0.3.5.x, which will we plan to support until Feb 2022.
5788   Below are the changes since 0.4.0.4-rc. For a complete list of changes
5789   since 0.3.5.7, see the ReleaseNotes file.
5791   o Minor features (continuous integration):
5792     - In Travis, tell timelimit to use stem's backtrace signals, and
5793       launch python directly from timelimit, so python receives the
5794       signals from timelimit, rather than make. Closes ticket 30117.
5796   o Minor features (diagnostic):
5797     - Add more diagnostic log messages in an attempt to solve the issue
5798       of NUL bytes appearing in a microdescriptor cache. Related to
5799       ticket 28223.
5801   o Minor features (testing):
5802     - Use the approx_time() function when setting the "Expires" header
5803       in directory replies, to make them more testable. Needed for
5804       ticket 30001.
5806   o Minor bugfixes (rust):
5807     - Abort on panic in all build profiles, instead of potentially
5808       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
5810   o Minor bugfixes (shellcheck):
5811     - Look for scripts in their correct locations during "make
5812       shellcheck". Previously we had looked in the wrong place during
5813       out-of-tree builds. Fixes bug 30263; bugfix on 0.4.0.1-alpha.
5815   o Minor bugfixes (testing):
5816     - Check the time in the "Expires" header using approx_time(). Fixes
5817       bug 30001; bugfix on 0.4.0.4-rc.
5819   o Minor bugfixes (UI):
5820     - Lower log level of unlink() errors during bootstrap. Fixes bug
5821       29930; bugfix on 0.4.0.1-alpha.
5824 Changes in version 0.4.0.4-rc - 2019-04-11
5825   Tor 0.4.0.4-rc is the first release candidate in its series; it fixes
5826   several bugs from earlier versions, including some that had affected
5827   stability, and one that prevented relays from working with NSS.
5829   o Major bugfixes (NSS, relay):
5830     - When running with NSS, disable TLS 1.2 ciphersuites that use
5831       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
5832       these ciphersuites don't work -- which caused relays to fail to
5833       handshake with one another when these ciphersuites were enabled.
5834       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
5836   o Minor features (bandwidth authority):
5837     - Make bandwidth authorities ignore relays that are reported in the
5838       bandwidth file with the flag "vote=0". This change allows us to
5839       report unmeasured relays for diagnostic reasons without including
5840       their bandwidth in the bandwidth authorities' vote. Closes
5841       ticket 29806.
5842     - When a directory authority is using a bandwidth file to obtain the
5843       bandwidth values that will be included in the next vote, serve
5844       this bandwidth file at /tor/status-vote/next/bandwidth. Closes
5845       ticket 21377.
5847   o Minor features (circuit padding):
5848     - Stop warning about undefined behavior in the probability
5849       distribution tests. Float division by zero may technically be
5850       undefined behavior in C, but it's well defined in IEEE 754.
5851       Partial backport of 29298. Closes ticket 29527; bugfix
5852       on 0.4.0.1-alpha.
5854   o Minor features (continuous integration):
5855     - On Travis Rust builds, cleanup Rust registry and refrain from
5856       caching the "target/" directory to speed up builds. Resolves
5857       issue 29962.
5859   o Minor features (dormant mode):
5860     - Add a DormantCanceledByStartup option to tell Tor that it should
5861       treat a startup event as cancelling any previous dormant state.
5862       Integrators should use this option with caution: it should only be
5863       used if Tor is being started because of something that the user
5864       did, and not if Tor is being automatically started in the
5865       background. Closes ticket 29357.
5867   o Minor features (geoip):
5868     - Update geoip and geoip6 to the April 2 2019 Maxmind GeoLite2
5869       Country database. Closes ticket 29992.
5871   o Minor features (NSS, diagnostic):
5872     - Try to log an error from NSS (if there is any) and a more useful
5873       description of our situation if we are using NSS and a call to
5874       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
5876   o Minor bugfixes (security):
5877     - Fix a potential double free bug when reading huge bandwidth files.
5878       The issue is not exploitable in the current Tor network because
5879       the vulnerable code is only reached when directory authorities
5880       read bandwidth files, but bandwidth files come from a trusted
5881       source (usually the authorities themselves). Furthermore, the
5882       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
5883       which are not used by any of the current authorities. Fixes bug
5884       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
5885       Tobias Stoeckmann.
5886     - Verify in more places that we are not about to create a buffer
5887       with more than INT_MAX bytes, to avoid possible OOB access in the
5888       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
5889       fixed by Tobias Stoeckmann.
5891   o Minor bugfix (continuous integration):
5892     - Reset coverage state on disk after Travis CI has finished. This
5893       should prevent future coverage merge errors from causing the test
5894       suite for the "process" subsystem to fail. The process subsystem
5895       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
5896       on 0.2.9.15.
5897     - Terminate test-stem if it takes more than 9.5 minutes to run.
5898       (Travis terminates the job after 10 minutes of no output.)
5899       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
5901   o Minor bugfixes (bootstrap reporting):
5902     - During bootstrap reporting, correctly distinguish pluggable
5903       transports from plain proxies. Fixes bug 28925; bugfix
5904       on 0.4.0.1-alpha.
5906   o Minor bugfixes (C correctness):
5907     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
5908       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
5909       CID 1444119.
5911   o Minor bugfixes (circuitpadding testing):
5912     - Minor tweaks to avoid rare test failures related to timers and
5913       monotonic time. Fixes bug 29500; bugfix on 0.4.0.1-alpha.
5915   o Minor bugfixes (directory authorities):
5916     - Actually include the bandwidth-file-digest line in directory
5917       authority votes. Fixes bug 29959; bugfix on 0.4.0.2-alpha.
5919   o Minor bugfixes (logging):
5920     - On Windows, when errors cause us to reload a consensus from disk,
5921       tell the user that we are retrying at log level "notice".
5922       Previously we only logged this information at "info", which was
5923       confusing because the errors themselves were logged at "warning".
5924       Improves previous fix for 28614. Fixes bug 30004; bugfix
5925       on 0.4.0.2-alpha.
5927   o Minor bugfixes (pluggable transports):
5928     - Restore old behavior when it comes to discovering the path of a
5929       given Pluggable Transport executable file. A change in
5930       0.4.0.1-alpha had broken this behavior on paths containing a
5931       space. Fixes bug 29874; bugfix on 0.4.0.1-alpha.
5933   o Minor bugfixes (testing):
5934     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
5935       recent test-network.sh to use new chutney features in CI. Fixes
5936       bug 29703; bugfix on 0.2.9.1-alpha.
5937     - Fix a test failure on Windows caused by an unexpected "BUG"
5938       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
5939       on 0.2.9.3-alpha.
5941   o Minor bugfixes (TLS protocol):
5942     - When classifying a client's selection of TLS ciphers, if the
5943       client ciphers are not yet available, do not cache the result.
5944       Previously, we had cached the unavailability of the cipher list
5945       and never looked again, which in turn led us to assume that the
5946       client only supported the ancient V1 link protocol. This, in turn,
5947       was causing Stem integration tests to stall in some cases. Fixes
5948       bug 30021; bugfix on 0.2.4.8-alpha.
5950   o Code simplification and refactoring:
5951     - Introduce a connection_dir_buf_add() helper function that detects
5952       whether compression is in use, and adds a string accordingly.
5953       Resolves issue 28816.
5954     - Refactor handle_get_next_bandwidth() to use
5955       connection_dir_buf_add(). Implements ticket 29897.
5957   o Documentation:
5958     - Clarify that Tor performs stream isolation among *Port listeners
5959       by default. Resolves issue 29121.
5962 Changes in version 0.4.0.3-alpha - 2019-03-22
5963   Tor 0.4.0.3-alpha is the third in its series; it fixes several small
5964   bugs from earlier versions.
5966   o Minor features (address selection):
5967     - Treat the subnet 100.64.0.0/10 as public for some purposes;
5968       private for others. This subnet is the RFC 6598 (Carrier Grade
5969       NAT) IP range, and is deployed by many ISPs as an alternative to
5970       RFC 1918 that does not break existing internal networks. Tor now
5971       blocks SOCKS and control ports on these addresses and warns users
5972       if client ports or ExtORPorts are listening on a RFC 6598 address.
5973       Closes ticket 28525. Patch by Neel Chauhan.
5975   o Minor features (geoip):
5976     - Update geoip and geoip6 to the March 4 2019 Maxmind GeoLite2
5977       Country database. Closes ticket 29666.
5979   o Minor bugfixes (circuitpadding):
5980     - Inspect the circuit-level cell queue before sending padding, to
5981       avoid sending padding when too much data is queued. Fixes bug
5982       29204; bugfix on 0.4.0.1-alpha.
5984   o Minor bugfixes (logging):
5985     - Correct a misleading error message when IPv4Only or IPv6Only is
5986       used but the resolved address can not be interpreted as an address
5987       of the specified IP version. Fixes bug 13221; bugfix on
5988       0.2.3.9-alpha. Patch from Kris Katterjohn.
5989     - Log the correct port number for listening sockets when "auto" is
5990       used to let Tor pick the port number. Previously, port 0 was
5991       logged instead of the actual port number. Fixes bug 29144; bugfix
5992       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
5993     - Stop logging a BUG() warning when Tor is waiting for exit
5994       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
5996   o Minor bugfixes (memory management):
5997     - Refactor the shared random state's memory management so that it
5998       actually takes ownership of the shared random value pointers.
5999       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
6001   o Minor bugfixes (memory management, testing):
6002     - Stop leaking parts of the shared random state in the shared-random
6003       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
6005   o Minor bugfixes (pluggable transports):
6006     - Fix an assertion failure crash bug when a pluggable transport is
6007       terminated during the bootstrap phase. Fixes bug 29562; bugfix
6008       on 0.4.0.1-alpha.
6010   o Minor bugfixes (Rust, protover):
6011     - Add a missing "Padding" value to the Rust implementation of
6012       protover. Fixes bug 29631; bugfix on 0.4.0.1-alpha.
6014   o Minor bugfixes (single onion services):
6015     - Allow connections to single onion services to remain idle without
6016       being disconnected. Previously, relays acting as rendezvous points
6017       for single onion services were mistakenly closing idle rendezvous
6018       circuits after 60 seconds, thinking that they were unused
6019       directory-fetching circuits that had served their purpose. Fixes
6020       bug 29665; bugfix on 0.2.1.26.
6022   o Minor bugfixes (stats):
6023     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
6024       relay and bridge extra-info documents. Fixes bug 29017; bugfix
6025       on 0.3.1.1-alpha.
6027   o Minor bugfixes (testing):
6028     - Downgrade some LOG_ERR messages in the address/* tests to
6029       warnings. The LOG_ERR messages were occurring when we had no
6030       configured network. We were failing the unit tests, because we
6031       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
6032       29530; bugfix on 0.3.5.8.
6033     - Fix our gcov wrapper script to look for object files at the
6034       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
6035     - Decrease the false positive rate of stochastic probability
6036       distribution tests. Fixes bug 29693; bugfix on 0.4.0.1-alpha.
6038   o Minor bugfixes (Windows, CI):
6039     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
6040       Windows Server 2012 R2 job. The remaining 2 jobs still provide
6041       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
6042       fast_finish, so failed jobs terminate the build immediately. Fixes
6043       bug 29601; bugfix on 0.3.5.4-alpha.
6046 Changes in version 0.3.5.8 - 2019-02-21
6047   Tor 0.3.5.8 backports several fixes from later releases, including fixes
6048   for an annoying SOCKS-parsing bug that affected users in earlier 0.3.5.x
6049   releases.
6051   It also includes a fix for a medium-severity security bug affecting Tor
6052   0.3.2.1-alpha and later. All Tor instances running an affected release
6053   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
6055   o Major bugfixes (cell scheduler, KIST, security):
6056     - Make KIST consider the outbuf length when computing what it can
6057       put in the outbuf. Previously, KIST acted as though the outbuf
6058       were empty, which could lead to the outbuf becoming too full. It
6059       is possible that an attacker could exploit this bug to cause a Tor
6060       client or relay to run out of memory and crash. Fixes bug 29168;
6061       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
6062       TROVE-2019-001 and CVE-2019-8955.
6064   o Major bugfixes (networking, backport from 0.4.0.2-alpha):
6065     - Gracefully handle empty username/password fields in SOCKS5
6066       username/password auth message and allow SOCKS5 handshake to
6067       continue. Previously, we had rejected these handshakes, breaking
6068       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
6070   o Minor features (compilation, backport from 0.4.0.2-alpha):
6071     - Compile correctly when OpenSSL is built with engine support
6072       disabled, or with deprecated APIs disabled. Closes ticket 29026.
6073       Patches from "Mangix".
6075   o Minor features (geoip):
6076     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
6077       Country database. Closes ticket 29478.
6079   o Minor features (testing, backport from 0.4.0.2-alpha):
6080     - Treat all unexpected ERR and BUG messages as test failures. Closes
6081       ticket 28668.
6083   o Minor bugfixes (onion service v3, client, backport from 0.4.0.1-alpha):
6084     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
6085       connection waiting for a descriptor that we actually have in the
6086       cache. It turns out that this can actually happen, though it is
6087       rare. Now, tor will recover and retry the descriptor. Fixes bug
6088       28669; bugfix on 0.3.2.4-alpha.
6090   o Minor bugfixes (IPv6, backport from 0.4.0.1-alpha):
6091     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
6092       IPv6 socket was bound using an address family of AF_INET instead
6093       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
6094       Kris Katterjohn.
6096   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
6097     - Update Cargo.lock file to match the version made by the latest
6098       version of Rust, so that "make distcheck" will pass again. Fixes
6099       bug 29244; bugfix on 0.3.3.4-alpha.
6101   o Minor bugfixes (client, clock skew, backport from 0.4.0.1-alpha):
6102     - Select guards even if the consensus has expired, as long as the
6103       consensus is still reasonably live. Fixes bug 24661; bugfix
6104       on 0.3.0.1-alpha.
6106   o Minor bugfixes (compilation, backport from 0.4.0.1-alpha):
6107     - Compile correctly on OpenBSD; previously, we were missing some
6108       headers required in order to detect it properly. Fixes bug 28938;
6109       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
6111   o Minor bugfixes (documentation, backport from 0.4.0.2-alpha):
6112     - Describe the contents of the v3 onion service client authorization
6113       files correctly: They hold public keys, not private keys. Fixes
6114       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
6116   o Minor bugfixes (logging, backport from 0.4.0.1-alpha):
6117     - Rework rep_hist_log_link_protocol_counts() to iterate through all
6118       link protocol versions when logging incoming/outgoing connection
6119       counts. Tor no longer skips version 5, and we won't have to
6120       remember to update this function when new link protocol version is
6121       developed. Fixes bug 28920; bugfix on 0.2.6.10.
6123   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
6124     - Log more information at "warning" level when unable to read a
6125       private key; log more information at "info" level when unable to
6126       read a public key. We had warnings here before, but they were lost
6127       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
6129   o Minor bugfixes (misc, backport from 0.4.0.2-alpha):
6130     - The amount of total available physical memory is now determined
6131       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
6132       when it is defined and a 64-bit variant is not available. Fixes
6133       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
6135   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
6136     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
6137       than one private key for a hidden service. Fixes bug 29040; bugfix
6138       on 0.3.5.1-alpha.
6139     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
6140       "debug" level. Tor used to log it as a warning, which caused very
6141       long log lines to appear for some users. Fixes bug 29135; bugfix
6142       on 0.3.2.1-alpha.
6143     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
6144       as a warning. Instead, log it as a protocol warning, because there
6145       is nothing that relay operators can do to fix it. Fixes bug 29029;
6146       bugfix on 0.2.5.7-rc.
6148   o Minor bugfixes (tests, directory clients, backport from 0.4.0.1-alpha):
6149     - Mark outdated dirservers when Tor only has a reasonably live
6150       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
6152   o Minor bugfixes (tests, backport from 0.4.0.2-alpha):
6153     - Detect and suppress "bug" warnings from the util/time test on
6154       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
6155     - Do not log an error-level message if we fail to find an IPv6
6156       network interface from the unit tests. Fixes bug 29160; bugfix
6157       on 0.2.7.3-rc.
6159   o Minor bugfixes (usability, backport from 0.4.0.1-alpha):
6160     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
6161       Some users took this phrasing to mean that the mentioned guard was
6162       under their control or responsibility, which it is not. Fixes bug
6163       28895; bugfix on Tor 0.3.0.1-alpha.
6166 Changes in version 0.3.4.11 - 2019-02-21
6167   Tor 0.3.4.11 is the third stable release in its series.  It includes
6168   a fix for a medium-severity security bug affecting Tor 0.3.2.1-alpha and
6169   later. All Tor instances running an affected release should upgrade to
6170   0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
6172   o Major bugfixes (cell scheduler, KIST, security):
6173     - Make KIST consider the outbuf length when computing what it can
6174       put in the outbuf. Previously, KIST acted as though the outbuf
6175       were empty, which could lead to the outbuf becoming too full. It
6176       is possible that an attacker could exploit this bug to cause a Tor
6177       client or relay to run out of memory and crash. Fixes bug 29168;
6178       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
6179       TROVE-2019-001 and CVE-2019-8955.
6181   o Minor features (geoip):
6182     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
6183       Country database. Closes ticket 29478.
6185   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
6186     - Update Cargo.lock file to match the version made by the latest
6187       version of Rust, so that "make distcheck" will pass again. Fixes
6188       bug 29244; bugfix on 0.3.3.4-alpha.
6190   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
6191     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
6192       as a warning. Instead, log it as a protocol warning, because there
6193       is nothing that relay operators can do to fix it. Fixes bug 29029;
6194       bugfix on 0.2.5.7-rc.
6197 Changes in version 0.3.3.12 - 2019-02-21
6198   Tor 0.3.3.12 fixes a medium-severity security bug affecting Tor
6199   0.3.2.1-alpha and later. All Tor instances running an affected release
6200   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
6202   This release marks the end of support for the Tor 0.3.3.x series. We
6203   recommend that users switch to either the Tor 0.3.4 series (supported
6204   until at least 10 June 2019), or the Tor 0.3.5 series, which will
6205   receive long-term support until at least 1 Feb 2022.
6207   o Major bugfixes (cell scheduler, KIST, security):
6208     - Make KIST consider the outbuf length when computing what it can
6209       put in the outbuf. Previously, KIST acted as though the outbuf
6210       were empty, which could lead to the outbuf becoming too full. It
6211       is possible that an attacker could exploit this bug to cause a Tor
6212       client or relay to run out of memory and crash. Fixes bug 29168;
6213       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
6214       TROVE-2019-001 and CVE-2019-8955.
6216   o Minor features (geoip):
6217     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
6218       Country database. Closes ticket 29478.
6220   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
6221     - Update Cargo.lock file to match the version made by the latest
6222       version of Rust, so that "make distcheck" will pass again. Fixes
6223       bug 29244; bugfix on 0.3.3.4-alpha.
6225   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
6226     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
6227       as a warning. Instead, log it as a protocol warning, because there
6228       is nothing that relay operators can do to fix it. Fixes bug 29029;
6229       bugfix on 0.2.5.7-rc.
6232 Changes in version 0.4.0.2-alpha - 2019-02-21
6233   Tor 0.4.0.2-alpha is the second alpha in its series; it fixes several
6234   bugs from earlier versions, including several that had broken
6235   backward compatibility.
6237   It also includes a fix for a medium-severity security bug affecting Tor
6238   0.3.2.1-alpha and later. All Tor instances running an affected release
6239   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
6241   o Major bugfixes (cell scheduler, KIST, security):
6242     - Make KIST consider the outbuf length when computing what it can
6243       put in the outbuf. Previously, KIST acted as though the outbuf
6244       were empty, which could lead to the outbuf becoming too full. It
6245       is possible that an attacker could exploit this bug to cause a Tor
6246       client or relay to run out of memory and crash. Fixes bug 29168;
6247       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
6248       TROVE-2019-001 and CVE-2019-8955.
6250   o Major bugfixes (networking):
6251     - Gracefully handle empty username/password fields in SOCKS5
6252       username/password auth messsage and allow SOCKS5 handshake to
6253       continue. Previously, we had rejected these handshakes, breaking
6254       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
6256   o Major bugfixes (windows, startup):
6257     - When reading a consensus file from disk, detect whether it was
6258       written in text mode, and re-read it in text mode if so. Always
6259       write consensus files in binary mode so that we can map them into
6260       memory later. Previously, we had written in text mode, which
6261       confused us when we tried to map the file on windows. Fixes bug
6262       28614; bugfix on 0.4.0.1-alpha.
6264   o Minor features (compilation):
6265     - Compile correctly when OpenSSL is built with engine support
6266       disabled, or with deprecated APIs disabled. Closes ticket 29026.
6267       Patches from "Mangix".
6269   o Minor features (developer tooling):
6270     - Check that bugfix versions in changes files look like Tor versions
6271       from the versions spec. Warn when bugfixes claim to be on a future
6272       release. Closes ticket 27761.
6273     - Provide a git pre-commit hook that disallows committing if we have
6274       any failures in our code and changelog formatting checks. It is
6275       now available in scripts/maint/pre-commit.git-hook. Implements
6276       feature 28976.
6278   o Minor features (directory authority):
6279     - When a directory authority is using a bandwidth file to obtain
6280       bandwidth values, include the digest of that file in the vote.
6281       Closes ticket 26698.
6283   o Minor features (geoip):
6284     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
6285       Country database. Closes ticket 29478.
6287   o Minor features (testing):
6288     - Treat all unexpected ERR and BUG messages as test failures. Closes
6289       ticket 28668.
6291   o Minor bugfixes (build, compatibility, rust):
6292     - Update Cargo.lock file to match the version made by the latest
6293       version of Rust, so that "make distcheck" will pass again. Fixes
6294       bug 29244; bugfix on 0.3.3.4-alpha.
6296   o Minor bugfixes (compilation):
6297     - Fix compilation warnings in test_circuitpadding.c. Fixes bug
6298       29169; bugfix on 0.4.0.1-alpha.
6299     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
6300       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
6302   o Minor bugfixes (documentation):
6303     - Describe the contents of the v3 onion service client authorization
6304       files correctly: They hold public keys, not private keys. Fixes
6305       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
6307   o Minor bugfixes (linux seccomp sandbox):
6308     - Fix startup crash when experimental sandbox support is enabled.
6309       Fixes bug 29150; bugfix on 0.4.0.1-alpha. Patch by Peter Gerber.
6311   o Minor bugfixes (logging):
6312     - Avoid logging that we are relaxing a circuit timeout when that
6313       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
6314     - Log more information at "warning" level when unable to read a
6315       private key; log more information at "info" level when unable to
6316       read a public key. We had warnings here before, but they were lost
6317       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
6319   o Minor bugfixes (misc):
6320     - The amount of total available physical memory is now determined
6321       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
6322       when it is defined and a 64-bit variant is not available. Fixes
6323       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
6325   o Minor bugfixes (onion services):
6326     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
6327       than one private key for a hidden service. Fixes bug 29040; bugfix
6328       on 0.3.5.1-alpha.
6329     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
6330       "debug" level. Tor used to log it as a warning, which caused very
6331       long log lines to appear for some users. Fixes bug 29135; bugfix
6332       on 0.3.2.1-alpha.
6333     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
6334       as a warning. Instead, log it as a protocol warning, because there
6335       is nothing that relay operators can do to fix it. Fixes bug 29029;
6336       bugfix on 0.2.5.7-rc.
6338   o Minor bugfixes (scheduler):
6339     - When re-adding channels to the pending list, check the correct
6340       channel's sched_heap_idx. This issue has had no effect in mainline
6341       Tor, but could have led to bugs down the road in improved versions
6342       of our circuit scheduling code. Fixes bug 29508; bugfix
6343       on 0.3.2.10.
6345   o Minor bugfixes (tests):
6346     - Fix intermittent failures on an adaptive padding test. Fixes one
6347       case of bug 29122; bugfix on 0.4.0.1-alpha.
6348     - Disable an unstable circuit-padding test that was failing
6349       intermittently because of an ill-defined small histogram. Such
6350       histograms will be allowed again after 29298 is implemented. Fixes
6351       a second case of bug 29122; bugfix on 0.4.0.1-alpha.
6352     - Detect and suppress "bug" warnings from the util/time test on
6353       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
6354     - Do not log an error-level message if we fail to find an IPv6
6355       network interface from the unit tests. Fixes bug 29160; bugfix
6356       on 0.2.7.3-rc.
6358   o Documentation:
6359     - In the manpage entry describing MapAddress torrc setting, use
6360       example IP addresses from ranges specified for use in documentation
6361       by RFC 5737. Resolves issue 28623.
6363   o Removed features:
6364     - Remove the old check-tor script. Resolves issue 29072.
6367 Changes in version 0.4.0.1-alpha - 2019-01-18
6368   Tor 0.4.0.1-alpha is the first release in the new 0.4.0.x series. It
6369   introduces improved features for power and bandwidth conservation,
6370   more accurate reporting of bootstrap progress for user interfaces, and
6371   an experimental backend for an exciting new adaptive padding feature.
6372   There is also the usual assortment of bugfixes and minor features, all
6373   described below.
6375   o Major features (battery management, client, dormant mode):
6376     - When Tor is running as a client, and it is unused for a long time,
6377       it can now enter a "dormant" state. When Tor is dormant, it avoids
6378       network and CPU activity until it is reawoken either by a user
6379       request or by a controller command. For more information, see the
6380       configuration options starting with "Dormant". Implements tickets
6381       2149 and 28335.
6382     - The client's memory of whether it is "dormant", and how long it
6383       has spent idle, persists across invocations. Implements
6384       ticket 28624.
6385     - There is a DormantOnFirstStartup option that integrators can use
6386       if they expect that in many cases, Tor will be installed but
6387       not used.
6389   o Major features (bootstrap reporting):
6390     - When reporting bootstrap progress, report the first connection
6391       uniformly, regardless of whether it's a connection for building
6392       application circuits. This allows finer-grained reporting of early
6393       progress than previously possible, with the improvements of ticket
6394       27169. Closes tickets 27167 and 27103. Addresses ticket 27308.
6395     - When reporting bootstrap progress, treat connecting to a proxy or
6396       pluggable transport as separate from having successfully used that
6397       proxy or pluggable transport to connect to a relay. Closes tickets
6398       27100 and 28884.
6400   o Major features (circuit padding):
6401     - Implement preliminary support for the circuit padding portion of
6402       Proposal 254. The implementation supports Adaptive Padding (aka
6403       WTF-PAD) state machines for use between experimental clients and
6404       relays. Support is also provided for APE-style state machines that
6405       use probability distributions instead of histograms to specify
6406       inter-packet delay. At the moment, Tor does not provide any
6407       padding state machines that are used in normal operation: for now,
6408       this feature exists solely for experimentation. Closes
6409       ticket 28142.
6411   o Major features (refactoring):
6412     - Tor now uses an explicit list of its own subsystems when
6413       initializing and shutting down. Previously, these systems were
6414       managed implicitly in various places throughout the codebase.
6415       (There may still be some subsystems using the old system.) Closes
6416       ticket 28330.
6418   o Minor features (bootstrap reporting):
6419     - When reporting bootstrap progress, stop distinguishing between
6420       situations where only internal paths are available and situations
6421       where external paths are available. Previously, Tor would often
6422       erroneously report that it had only internal paths. Closes
6423       ticket 27402.
6425   o Minor features (continuous integration):
6426     - Log Python version during each Travis CI job. Resolves
6427       issue 28551.
6429   o Minor features (controller):
6430     - Add a DROPOWNERSHIP command to undo the effects of TAKEOWNERSHIP.
6431       Implements ticket 28843.
6433   o Minor features (developer tooling):
6434     - Provide a git hook script to prevent "fixup!" and "squash!"
6435       commits from ending up in the master branch, as scripts/main/pre-
6436       push.git-hook. Closes ticket 27993.
6438   o Minor features (directory authority):
6439     - Directory authorities support a new consensus algorithm, under
6440       which the family lines in microdescriptors are encoded in a
6441       canonical form. This change makes family lines more compressible
6442       in transit, and on the client. Closes ticket 28266; implements
6443       proposal 298.
6445   o Minor features (directory authority, relay):
6446     - Authorities now vote on a "StaleDesc" flag to indicate that a
6447       relay's descriptor is so old that the relay should upload again
6448       soon. Relays treat this flag as a signal to upload a new
6449       descriptor. This flag will eventually let us remove the
6450       'published' date from routerstatus entries, and make our consensus
6451       diffs much smaller. Closes ticket 26770; implements proposal 293.
6453   o Minor features (fallback directory mirrors):
6454     - Update the fallback whitelist based on operator opt-ins and opt-
6455       outs. Closes ticket 24805, patch by Phoul.
6457   o Minor features (FreeBSD):
6458     - On FreeBSD-based systems, warn relay operators if the
6459       "net.inet.ip.random_id" sysctl (IP ID randomization) is disabled.
6460       Closes ticket 28518.
6462   o Minor features (HTTP standards compliance):
6463     - Stop sending the header "Content-type: application/octet-stream"
6464       along with transparently compressed documents: this confused
6465       browsers. Closes ticket 28100.
6467   o Minor features (IPv6):
6468     - We add an option ClientAutoIPv6ORPort, to make clients randomly
6469       prefer a node's IPv4 or IPv6 ORPort. The random preference is set
6470       every time a node is loaded from a new consensus or bridge config.
6471       We expect that this option will enable clients to bootstrap more
6472       quickly without having to determine whether they support IPv4,
6473       IPv6, or both. Closes ticket 27490. Patch by Neel Chauhan.
6474     - When using addrs_in_same_network_family(), avoid choosing circuit
6475       paths that pass through the same IPv6 subnet more than once.
6476       Previously, we only checked IPv4 subnets. Closes ticket 24393.
6477       Patch by Neel Chauhan.
6479   o Minor features (log messages):
6480     - Improve log message in v3 onion services that could print out
6481       negative revision counters. Closes ticket 27707. Patch
6482       by "ffmancera".
6484   o Minor features (memory usage):
6485     - Save memory by storing microdescriptor family lists with a more
6486       compact representation. Closes ticket 27359.
6487     - Tor clients now use mmap() to read consensus files from disk, so
6488       that they no longer need keep the full text of a consensus in
6489       memory when parsing it or applying a diff. Closes ticket 27244.
6491   o Minor features (parsing):
6492     - Directory authorities now validate that router descriptors and
6493       ExtraInfo documents are in a valid subset of UTF-8, and reject
6494       them if they are not. Closes ticket 27367.
6496   o Minor features (performance):
6497     - Cache the results of summarize_protocol_flags(), so that we don't
6498       have to parse the same protocol-versions string over and over.
6499       This should save us a huge number of malloc calls on startup, and
6500       may reduce memory fragmentation with some allocators. Closes
6501       ticket 27225.
6502     - Remove a needless memset() call from get_token_arguments, thereby
6503       speeding up the tokenization of directory objects by about 20%.
6504       Closes ticket 28852.
6505     - Replace parse_short_policy() with a faster implementation, to
6506       improve microdescriptor parsing time. Closes ticket 28853.
6507     - Speed up directory parsing a little by avoiding use of the non-
6508       inlined strcmp_len() function. Closes ticket 28856.
6509     - Speed up microdescriptor parsing by about 30%, to help improve
6510       startup time. Closes ticket 28839.
6512   o Minor features (pluggable transports):
6513     - Add support for emitting STATUS updates to Tor's control port from
6514       a pluggable transport process. Closes ticket 28846.
6515     - Add support for logging to Tor's logging subsystem from a
6516       pluggable transport process. Closes ticket 28180.
6518   o Minor features (process management):
6519     - Add a new process API for handling child processes. This new API
6520       allows Tor to have bi-directional communication with child
6521       processes on both Unix and Windows. Closes ticket 28179.
6522     - Use the subsystem manager to initialize and shut down the process
6523       module. Closes ticket 28847.
6525   o Minor features (relay):
6526     - When listing relay families, list them in canonical form including
6527       the relay's own identity, and try to give a more useful set of
6528       warnings. Part of ticket 28266 and proposal 298.
6530   o Minor features (required protocols):
6531     - Before exiting because of a missing required protocol, Tor will
6532       now check the publication time of the consensus, and not exit
6533       unless the consensus is newer than the Tor program's own release
6534       date. Previously, Tor would not check the consensus publication
6535       time, and so might exit because of a missing protocol that might
6536       no longer be required in a current consensus. Implements proposal
6537       297; closes ticket 27735.
6539   o Minor features (testing):
6540     - Allow a HeartbeatPeriod of less than 30 minutes in testing Tor
6541       networks. Closes ticket 28840. Patch by Rob Jansen.
6543   o Minor bugfixes (client, clock skew):
6544     - Bootstrap successfully even when Tor's clock is behind the clocks
6545       on the authorities. Fixes bug 28591; bugfix on 0.2.0.9-alpha.
6546     - Select guards even if the consensus has expired, as long as the
6547       consensus is still reasonably live. Fixes bug 24661; bugfix
6548       on 0.3.0.1-alpha.
6550   o Minor bugfixes (compilation):
6551     - Compile correctly on OpenBSD; previously, we were missing some
6552       headers required in order to detect it properly. Fixes bug 28938;
6553       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
6555   o Minor bugfixes (directory clients):
6556     - Mark outdated dirservers when Tor only has a reasonably live
6557       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
6559   o Minor bugfixes (directory mirrors):
6560     - Even when a directory mirror's clock is behind the clocks on the
6561       authorities, we now allow the mirror to serve "future"
6562       consensuses. Fixes bug 28654; bugfix on 0.3.0.1-alpha.
6564   o Minor bugfixes (DNS):
6565     - Gracefully handle an empty or absent resolve.conf file by falling
6566       back to using "localhost" as a DNS server (and hoping it works).
6567       Previously, we would just stop running as an exit. Fixes bug
6568       21900; bugfix on 0.2.1.10-alpha.
6570   o Minor bugfixes (guards):
6571     - In count_acceptable_nodes(), the minimum number is now one bridge
6572       or guard node, and two non-guard nodes for a circuit. Previously,
6573       we had added up the sum of all nodes with a descriptor, but that
6574       could cause us to build failing circuits when we had either too
6575       many bridges or not enough guard nodes. Fixes bug 25885; bugfix on
6576       0.2.3.1-alpha. Patch by Neel Chauhan.
6578   o Minor bugfixes (IPv6):
6579     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
6580       IPv6 socket was bound using an address family of AF_INET instead
6581       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
6582       Kris Katterjohn.
6584   o Minor bugfixes (logging):
6585     - Rework rep_hist_log_link_protocol_counts() to iterate through all
6586       link protocol versions when logging incoming/outgoing connection
6587       counts. Tor no longer skips version 5, and we won't have to
6588       remember to update this function when new link protocol version is
6589       developed. Fixes bug 28920; bugfix on 0.2.6.10.
6591   o Minor bugfixes (networking):
6592     - Introduce additional checks into tor_addr_parse() to reject
6593       certain incorrect inputs that previously were not detected. Fixes
6594       bug 23082; bugfix on 0.2.0.10-alpha.
6596   o Minor bugfixes (onion service v3, client):
6597     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
6598       connection waiting for a descriptor that we actually have in the
6599       cache. It turns out that this can actually happen, though it is
6600       rare. Now, tor will recover and retry the descriptor. Fixes bug
6601       28669; bugfix on 0.3.2.4-alpha.
6603   o Minor bugfixes (periodic events):
6604     - Refrain from calling routerlist_remove_old_routers() from
6605       check_descriptor_callback(). Instead, create a new hourly periodic
6606       event. Fixes bug 27929; bugfix on 0.2.8.1-alpha.
6608   o Minor bugfixes (pluggable transports):
6609     - Make sure that data is continously read from standard output and
6610       standard error pipes of a pluggable transport child-process, to
6611       avoid deadlocking when a pipe's buffer is full. Fixes bug 26360;
6612       bugfix on 0.2.3.6-alpha.
6614   o Minor bugfixes (unit tests):
6615     - Instead of relying on hs_free_all() to clean up all onion service
6616       objects in test_build_descriptors(), we now deallocate them one by
6617       one. This lets Coverity know that we are not leaking memory there
6618       and fixes CID 1442277. Fixes bug 28989; bugfix on 0.3.5.1-alpha.
6620   o Minor bugfixes (usability):
6621     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
6622       Some users took this phrasing to mean that the mentioned guard was
6623       under their control or responsibility, which it is not. Fixes bug
6624       28895; bugfix on Tor 0.3.0.1-alpha.
6626   o Code simplification and refactoring:
6627     - Reimplement NETINFO cell parsing and generation to rely on
6628       trunnel-generated wire format handling code. Closes ticket 27325.
6629     - Remove unnecessary unsafe code from the Rust macro "cstr!". Closes
6630       ticket 28077.
6631     - Rework SOCKS wire format handling to rely on trunnel-generated
6632       parsing/generation code. Resolves ticket 27620.
6633     - Split out bootstrap progress reporting from control.c into a
6634       separate file. Part of ticket 27402.
6635     - The .may_include files that we use to describe our directory-by-
6636       directory dependency structure now describe a noncircular
6637       dependency graph over the directories that they cover. Our
6638       checkIncludes.py tool now enforces this noncircularity. Closes
6639       ticket 28362.
6641   o Documentation:
6642     - Mention that you cannot add a new onion service if Tor is already
6643       running with Sandbox enabled. Closes ticket 28560.
6644     - Improve ControlPort documentation. Mention that it accepts
6645       address:port pairs, and can be used multiple times. Closes
6646       ticket 28805.
6647     - Document the exact output of "tor --version". Closes ticket 28889.
6649   o Removed features:
6650     - Stop responding to the 'GETINFO status/version/num-concurring' and
6651       'GETINFO status/version/num-versioning' control port commands, as
6652       those were deprecated back in 0.2.0.30. Also stop listing them in
6653       output of 'GETINFO info/names'. Resolves ticket 28757.
6654     - The scripts used to generate and maintain the list of fallback
6655       directories have been extracted into a new "fallback-scripts"
6656       repository. Closes ticket 27914.
6658   o Testing:
6659     - Run shellcheck for scripts in the in scripts/ directory. Closes
6660       ticket 28058.
6661     - Add unit tests for tokenize_string() and get_next_token()
6662       functions. Resolves ticket 27625.
6664   o Code simplification and refactoring (onion service v3):
6665     - Consolidate the authorized client descriptor cookie computation
6666       code from client and service into one function. Closes
6667       ticket 27549.
6669   o Code simplification and refactoring (shell scripts):
6670     - Cleanup scan-build.sh to silence shellcheck warnings. Closes
6671       ticket 28007.
6672     - Fix issues that shellcheck found in chutney-git-bisect.sh.
6673       Resolves ticket 28006.
6674     - Fix issues that shellcheck found in updateRustDependencies.sh.
6675       Resolves ticket 28012.
6676     - Fix shellcheck warnings in cov-diff script. Resolves issue 28009.
6677     - Fix shellcheck warnings in run_calltool.sh. Resolves ticket 28011.
6678     - Fix shellcheck warnings in run_trunnel.sh. Resolves issue 28010.
6679     - Fix shellcheck warnings in scripts/test/coverage. Resolves
6680       issue 28008.
6683 Changes in version 0.3.3.11 - 2019-01-07
6684   Tor 0.3.3.11 backports numerous fixes from later versions of Tor.
6685   numerous fixes, including an important fix for anyone using OpenSSL
6686   1.1.1. Anyone running an earlier version of Tor 0.3.3 should upgrade
6687   to this version, or to a later series.
6689   As a reminder, support the Tor 0.3.3 series will end on 22 Feb 2019.
6690   We anticipate that this will be the last release of Tor 0.3.3, unless
6691   some major bug is before then. Some time between now and then, users
6692   should switch to either the Tor 0.3.4 series (supported until at least
6693   10 June 2019), or the Tor 0.3.5 series, which will receive long-term
6694   support until at least 1 Feb 2022.
6696   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
6697     - Fix our usage of named groups when running as a TLS 1.3 client in
6698       OpenSSL 1.1.1. Previously, we only initialized EC groups when
6699       running as a relay, which caused clients to fail to negotiate TLS
6700       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
6701       support was added).
6703   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
6704     - Fix a use-after-free error that could be caused by passing Tor an
6705       impossible set of options that would fail during options_act().
6706       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
6708   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
6709     - Only run one online rust build in Travis, to reduce network
6710       errors. Skip offline rust builds on Travis for Linux gcc, because
6711       they're redundant. Implements ticket 27252.
6712     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
6713       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
6714       Linux with default settings, because all the non-default builds
6715       use gcc on Linux. Implements ticket 27252.
6717   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
6718     - Use the Travis Homebrew addon to install packages on macOS during
6719       Travis CI. The package list is the same, but the Homebrew addon
6720       does not do a `brew update` by default. Implements ticket 27738.
6722   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
6723     - Replace the 150 fallbacks originally introduced in Tor
6724       0.3.3.1-alpha in January 2018 (of which ~115 were still
6725       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
6726       removed) generated in December 2018. Closes ticket 24803.
6728   o Minor features (geoip):
6729     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
6730       Country database. Closes ticket 29012.
6732   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
6733     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
6734       key export function from handling long labels. When this bug is
6735       detected, Tor will disable TLS 1.3. We recommend upgrading to a
6736       version of OpenSSL without this bug when it becomes available.
6737       Closes ticket 28973.
6739   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
6740     - Update relay descriptor on bandwidth changes only when the uptime
6741       is smaller than 24h, in order to reduce the efficiency of guard
6742       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
6744   o Minor bugfixes (C correctness, backport from 0.3.5.4-alpha):
6745     - Avoid undefined behavior in an end-of-string check when parsing
6746       the BEGIN line in a directory object. Fixes bug 28202; bugfix
6747       on 0.2.0.3-alpha.
6749   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
6750     - Rewrite our assertion macros so that they no longer suppress the
6751       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
6753   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
6754     - Initialize a variable unconditionally in aes_new_cipher(), since
6755       some compilers cannot tell that we always initialize it before
6756       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
6758   o Minor bugfixes (directory authority, backport from 0.3.5.4-alpha):
6759     - Log additional info when we get a relay that shares an ed25519 ID
6760       with a different relay, instead making a BUG() warning. Fixes bug
6761       27800; bugfix on 0.3.2.1-alpha.
6763   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
6764     - When a user requests a group-readable DataDirectory, give it to
6765       them. Previously, when the DataDirectory and the CacheDirectory
6766       were the same, the default setting (0) for
6767       CacheDirectoryGroupReadable would override the setting for
6768       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
6769       on 0.3.3.1-alpha.
6771   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
6772     - When the onion service directory can't be created or has the wrong
6773       permissions, do not log a stack trace. Fixes bug 27335; bugfix
6774       on 0.3.2.1-alpha.
6776   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
6777     - Close all SOCKS request (for the same .onion) if the newly fetched
6778       descriptor is unusable. Before that, we would close only the first
6779       one leaving the other hanging and let to time out by themselves.
6780       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
6782   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
6783     - Don't warn so loudly when Tor is unable to decode an onion
6784       descriptor. This can now happen as a normal use case if a client
6785       gets a descriptor with client authorization but the client is not
6786       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
6788   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
6789     - When deleting an ephemeral onion service (DEL_ONION), do not close
6790       any rendezvous circuits in order to let the existing client
6791       connections finish by themselves or closed by the application. The
6792       HS v2 is doing that already so now we have the same behavior for
6793       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
6795   o Minor bugfixes (HTTP tunnel):
6796     - Fix a bug warning when closing an HTTP tunnel connection due to
6797       an HTTP request we couldn't handle. Fixes bug 26470; bugfix on
6798       0.3.2.1-alpha.
6800   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
6801     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
6802       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
6804   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
6805     - Ensure circuitmux queues are empty before scheduling or sending
6806       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
6808   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
6809     - Reject protocol names containing bytes other than alphanumeric
6810       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
6811       on 0.2.9.4-alpha.
6813   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
6814     - Compute protover votes correctly in the rust version of the
6815       protover code. Previously, the protover rewrite in 24031 allowed
6816       repeated votes from the same voter for the same protocol version
6817       to be counted multiple times in protover_compute_vote(). Fixes bug
6818       27649; bugfix on 0.3.3.5-rc.
6819     - Reject protover names that contain invalid characters. Fixes bug
6820       27687; bugfix on 0.3.3.1-alpha.
6822   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
6823     - protover_all_supported() would attempt to allocate up to 16GB on
6824       some inputs, leading to a potential memory DoS. Fixes bug 27206;
6825       bugfix on 0.3.3.5-rc.
6827   o Minor bugfixes (rust, backport from 0.3.5.4-alpha):
6828     - Fix a potential null dereference in protover_all_supported(). Add
6829       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
6830     - Return a string that can be safely freed by C code, not one
6831       created by the rust allocator, in protover_all_supported(). Fixes
6832       bug 27740; bugfix on 0.3.3.1-alpha.
6833     - Fix an API mismatch in the rust implementation of
6834       protover_compute_vote(). This bug could have caused crashes on any
6835       directory authorities running Tor with Rust (which we do not yet
6836       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
6838   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
6839     - If a unit test running in a subprocess exits abnormally or with a
6840       nonzero status code, treat the test as having failed, even if the
6841       test reported success. Without this fix, memory leaks don't cause
6842       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
6843       bugfix on 0.2.2.4-alpha.
6845   o Minor bugfixes (testing, backport from 0.3.5.4-alpha):
6846     - Treat backtrace test failures as expected on BSD-derived systems
6847       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
6848       (FreeBSD failures have been treated as expected since 18204 in
6849       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
6851   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
6852     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
6853       bugfix on 0.3.0.1-alpha.
6856 Changes in version 0.3.4.10 - 2019-01-07
6857   Tor 0.3.4.9 is the second stable release in its series; it backports
6858   numerous fixes, including an important fix for relays, and for anyone
6859   using OpenSSL 1.1.1. Anyone running an  earlier version of Tor 0.3.4
6860   should upgrade.
6862   As a reminder, the Tor 0.3.4 series will be supported until 10 June
6863   2019. Some time between now and then, users should switch to the Tor
6864   0.3.5 series, which will receive long-term support until at least 1
6865   Feb 2022.
6867   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
6868     - Fix our usage of named groups when running as a TLS 1.3 client in
6869       OpenSSL 1.1.1. Previously, we only initialized EC groups when
6870       running as a relay, which caused clients to fail to negotiate TLS
6871       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
6872       support was added).
6874   o Major bugfixes (relay, directory, backport from 0.3.5.7):
6875     - Always reactivate linked connections in the main loop so long as
6876       any linked connection has been active. Previously, connections
6877       serving directory information wouldn't get reactivated after the
6878       first chunk of data was sent (usually 32KB), which would prevent
6879       clients from bootstrapping. Fixes bug 28912; bugfix on
6880       0.3.4.1-alpha. Patch by "cypherpunks3".
6882   o Minor features (continuous integration, Windows, backport from 0.3.5.6-rc):
6883     - Always show the configure and test logs, and upload them as build
6884       artifacts, when building for Windows using Appveyor CI.
6885       Implements 28459.
6887   o Minor features (controller, backport from 0.3.5.1-alpha):
6888     - For purposes of CIRC_BW-based dropped cell detection, track half-
6889       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
6890       bias check cells to arrive without counting it as dropped until
6891       either the END arrives, or the windows are empty. Closes
6892       ticket 25573.
6894   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
6895     - Replace the 150 fallbacks originally introduced in Tor
6896       0.3.3.1-alpha in January 2018 (of which ~115 were still
6897       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
6898       removed) generated in December 2018. Closes ticket 24803.
6900   o Minor features (geoip):
6901     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
6902       Country database. Closes ticket 28395.
6904   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
6905     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
6906       key export function from handling long labels. When this bug is
6907       detected, Tor will disable TLS 1.3. We recommend upgrading to a
6908       version of OpenSSL without this bug when it becomes available.
6909       Closes ticket 28973.
6911   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
6912     - Initialize a variable unconditionally in aes_new_cipher(), since
6913       some compilers cannot tell that we always initialize it before
6914       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
6916   o Minor bugfixes (connection, relay, backport from 0.3.5.5-alpha):
6917     - Avoid a logging a BUG() stacktrace when closing connection held
6918       open because the write side is rate limited but not the read side.
6919       Now, the connection read side is simply shut down until Tor is
6920       able to flush the connection and close it. Fixes bug 27750; bugfix
6921       on 0.3.4.1-alpha.
6923   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.5-alpha):
6924     - Manually configure the zstd compiler options, when building using
6925       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
6926       not come with a pkg-config file. Fixes bug 28454; bugfix
6927       on 0.3.4.1-alpha.
6928     - Stop using an external OpenSSL install, and stop installing MSYS2
6929       packages, when building using mingw on Appveyor Windows CI. Fixes
6930       bug 28399; bugfix on 0.3.4.1-alpha.
6932   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.6-rc):
6933     - Explicitly specify the path to the OpenSSL library and do not
6934       download OpenSSL from Pacman, but instead use the library that is
6935       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
6937   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
6938     - When a user requests a group-readable DataDirectory, give it to
6939       them. Previously, when the DataDirectory and the CacheDirectory
6940       were the same, the default setting (0) for
6941       CacheDirectoryGroupReadable would override the setting for
6942       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
6943       on 0.3.3.1-alpha.
6945   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
6946     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
6947       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
6949   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
6950     - Don't warn so loudly when Tor is unable to decode an onion
6951       descriptor. This can now happen as a normal use case if a client
6952       gets a descriptor with client authorization but the client is not
6953       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
6955   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
6956     - When deleting an ephemeral onion service (DEL_ONION), do not close
6957       any rendezvous circuits in order to let the existing client
6958       connections finish by themselves or closed by the application. The
6959       HS v2 is doing that already so now we have the same behavior for
6960       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
6962   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
6963     - Update relay descriptor on bandwidth changes only when the uptime
6964       is smaller than 24h, in order to reduce the efficiency of guard
6965       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
6967   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
6968     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
6969       bugfix on 0.3.0.1-alpha.
6972 Changes in version 0.3.5.7 - 2019-01-07
6973   Tor 0.3.5.7 is the first stable release in its series; it includes
6974   compilation and portability fixes, and a fix for a severe problem
6975   affecting directory caches.
6977   The Tor 0.3.5 series includes several new features and performance
6978   improvements, including client authorization for v3 onion services,
6979   cleanups to bootstrap reporting, support for improved bandwidth-
6980   measurement tools, experimental support for NSS in place of OpenSSL,
6981   and much more. It also begins a full reorganization of Tor's code
6982   layout, for improved modularity and maintainability in the future.
6983   Finally, there is the usual set of performance improvements and
6984   bugfixes that we try to do in every release series.
6986   There are a couple of changes in the 0.3.5 that may affect
6987   compatibility. First, the default version for newly created onion
6988   services is now v3. Use the HiddenServiceVersion option if you want to
6989   override this. Second, some log messages related to bootstrapping have
6990   changed; if you use stem, you may need to update to the latest version
6991   so it will recognize them.
6993   We have designated 0.3.5 as a "long-term support" (LTS) series: we
6994   will continue to patch major bugs in typical configurations of 0.3.5
6995   until at least 1 Feb 2022. (We do not plan to provide long-term
6996   support for embedding, Rust support, NSS support, running a directory
6997   authority, or unsupported platforms. For these, you will need to stick
6998   with the latest stable release.)
7000   Below are the changes since 0.3.5.6-rc. For a complete list of changes
7001   since 0.3.4.9, see the ReleaseNotes file.
7003   o Major bugfixes (relay, directory):
7004     - Always reactivate linked connections in the main loop so long as
7005       any linked connection has been active. Previously, connections
7006       serving directory information wouldn't get reactivated after the
7007       first chunk of data was sent (usually 32KB), which would prevent
7008       clients from bootstrapping. Fixes bug 28912; bugfix on
7009       0.3.4.1-alpha. Patch by "cypherpunks3".
7011   o Minor features (compilation):
7012     - When possible, place our warning flags in a separate file, to
7013       avoid flooding verbose build logs. Closes ticket 28924.
7015   o Minor features (geoip):
7016     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
7017       Country database. Closes ticket 29012.
7019   o Minor features (OpenSSL bug workaround):
7020     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
7021       key export function from handling long labels. When this bug is
7022       detected, Tor will disable TLS 1.3. We recommend upgrading to a
7023       version of OpenSSL without this bug when it becomes available.
7024       Closes ticket 28973.
7026   o Minor features (performance):
7027     - Remove about 96% of the work from the function that we run at
7028       startup to test our curve25519_basepoint implementation. Since
7029       this function has yet to find an actual failure, we now only run
7030       it for 8 iterations instead of 200. Based on our profile
7031       information, this change should save around 8% of our startup time
7032       on typical desktops, and may have a similar effect on other
7033       platforms. Closes ticket 28838.
7034     - Stop re-validating our hardcoded Diffie-Hellman parameters on
7035       every startup. Doing this wasted time and cycles, especially on
7036       low-powered devices. Closes ticket 28851.
7038   o Minor bugfixes (compilation):
7039     - Fix compilation for Android by adding a missing header to
7040       freespace.c. Fixes bug 28974; bugfix on 0.3.5.1-alpha.
7042   o Minor bugfixes (correctness):
7043     - Fix an unreached code path where we checked the value of
7044       "hostname" inside send_resolved_hostname_cell(). Previously, we
7045       used it before checking it; now we check it first. Fixes bug
7046       28879; bugfix on 0.1.2.7-alpha.
7048   o Minor bugfixes (testing):
7049     - Make sure that test_rebind.py actually obeys its timeout, even
7050       when it receives a large number of log messages. Fixes bug 28883;
7051       bugfix on 0.3.5.4-alpha.
7052     - Stop running stem's unit tests as part of "make test-stem", but
7053       continue to run stem's unit and online tests during "make test-
7054       stem-full". Fixes bug 28568; bugfix on 0.2.6.3-alpha.
7056   o Minor bugfixes (windows services):
7057     - Make Tor start correctly as an NT service again: previously it was
7058       broken by refactoring. Fixes bug 28612; bugfix on 0.3.5.3-alpha.
7060   o Code simplification and refactoring:
7061     - When parsing a port configuration, make it more obvious to static
7062       analyzer tools that we always initialize the address. Closes
7063       ticket 28881.
7066 Changes in version 0.3.5.6-rc - 2018-12-18
7067   Tor 0.3.5.6-rc fixes numerous small bugs in earlier versions of Tor.
7068   It is the first release candidate in the 0.3.5.x series; if no further
7069   huge bugs are found, our next release may be the stable 0.3.5.x.
7071   o Minor features (continuous integration, Windows):
7072     - Always show the configure and test logs, and upload them as build
7073       artifacts, when building for Windows using Appveyor CI.
7074       Implements 28459.
7076   o Minor features (fallback directory list):
7077     - Replace the 150 fallbacks originally introduced in Tor
7078       0.3.3.1-alpha in January 2018 (of which ~115 were still
7079       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
7080       removed) generated in December 2018. Closes ticket 24803.
7082   o Minor features (geoip):
7083     - Update geoip and geoip6 to the December 5 2018 Maxmind GeoLite2
7084       Country database. Closes ticket 28744.
7086   o Minor bugfixes (compilation):
7087     - Add missing dependency on libgdi32.dll for tor-print-ed-signing-
7088       cert.exe on Windows. Fixes bug 28485; bugfix on 0.3.5.1-alpha.
7090   o Minor bugfixes (continuous integration, Windows):
7091     - Explicitly specify the path to the OpenSSL library and do not
7092       download OpenSSL from Pacman, but instead use the library that is
7093       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
7095   o Minor bugfixes (onion service v3):
7096     - When deleting an ephemeral onion service (DEL_ONION), do not close
7097       any rendezvous circuits in order to let the existing client
7098       connections finish by themselves or closed by the application. The
7099       HS v2 is doing that already so now we have the same behavior for
7100       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
7102   o Minor bugfixes (restart-in-process, boostrap):
7103     - Add missing resets of bootstrap tracking state when shutting down
7104       (regression caused by ticket 27169). Fixes bug 28524; bugfix
7105       on 0.3.5.1-alpha.
7107   o Minor bugfixes (testing):
7108     - Use a separate DataDirectory for the test_rebind script.
7109       Previously, this script would run using the default DataDirectory,
7110       and sometimes fail. Fixes bug 28562; bugfix on 0.3.5.1-alpha.
7111       Patch from Taylor R Campbell.
7112     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
7113       bugfix on 0.3.0.1-alpha.
7115   o Minor bugfixes (Windows):
7116     - Correctly identify Windows 8.1, Windows 10, and Windows Server
7117       2008 and later from their NT versions. Fixes bug 28096; bugfix on
7118       0.2.2.34; reported by Keifer Bly.
7119     - On recent Windows versions, the GetVersionEx() function may report
7120       an earlier Windows version than the running OS. To avoid user
7121       confusion, add "[or later]" to Tor's version string on affected
7122       versions of Windows. Fixes bug 28096; bugfix on 0.2.2.34; reported
7123       by Keifer Bly.
7124     - Remove Windows versions that were never supported by the
7125       GetVersionEx() function. Stop duplicating the latest Windows
7126       version in get_uname(). Fixes bug 28096; bugfix on 0.2.2.34;
7127       reported by Keifer Bly.
7129   o Testing:
7130     - Increase logging and tag all log entries with timestamps in
7131       test_rebind.py. Provides diagnostics for issue 28229.
7133   o Code simplification and refactoring (shared random, dirauth):
7134     - Change many tor_assert() to use BUG() instead. The idea is to not
7135       crash a dirauth but rather scream loudly with a stacktrace and let
7136       it continue run. The shared random subsystem is very resilient and
7137       if anything wrong happens with it, at worst a non coherent value
7138       will be put in the vote and discarded by the other authorities.
7139       Closes ticket 19566.
7141   o Documentation (onion services):
7142     - Document in the man page that changing ClientOnionAuthDir value or
7143       adding a new file in the directory will not work at runtime upon
7144       sending a HUP if Sandbox 1. Closes ticket 28128.
7145     - Note in the man page that the only real way to fully revoke an
7146       onion service v3 client authorization is by restarting the tor
7147       process. Closes ticket 28275.
7150 Changes in version 0.3.5.5-alpha - 2018-11-16
7151   Tor 0.3.5.5-alpha includes numerous bugfixes on earlier releases,
7152   including several that we hope to backport to older release series in
7153   the future.
7155   o Major bugfixes (OpenSSL, portability):
7156     - Fix our usage of named groups when running as a TLS 1.3 client in
7157       OpenSSL 1.1.1. Previously, we only initialized EC groups when
7158       running as a relay, which caused clients to fail to negotiate TLS
7159       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
7160       support was added).
7162   o Minor features (geoip):
7163     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
7164       Country database. Closes ticket 28395.
7166   o Minor bugfixes (compilation):
7167     - Initialize a variable unconditionally in aes_new_cipher(), since
7168       some compilers cannot tell that we always initialize it before
7169       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
7171   o Minor bugfixes (connection, relay):
7172     - Avoid a logging a BUG() stacktrace when closing connection held
7173       open because the write side is rate limited but not the read side.
7174       Now, the connection read side is simply shut down until Tor is
7175       able to flush the connection and close it. Fixes bug 27750; bugfix
7176       on 0.3.4.1-alpha.
7178   o Minor bugfixes (continuous integration, Windows):
7179     - Manually configure the zstd compiler options, when building using
7180       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
7181       not come with a pkg-config file. Fixes bug 28454; bugfix
7182       on 0.3.4.1-alpha.
7183     - Stop using an external OpenSSL install, and stop installing MSYS2
7184       packages, when building using mingw on Appveyor Windows CI. Fixes
7185       bug 28399; bugfix on 0.3.4.1-alpha.
7187   o Minor bugfixes (documentation):
7188     - Make Doxygen work again after the code movement in the 0.3.5
7189       source tree. Fixes bug 28435; bugfix on 0.3.5.1-alpha.
7191   o Minor bugfixes (Linux seccomp2 sandbox):
7192     - Permit the "shutdown()" system call, which is apparently used by
7193       OpenSSL under some circumstances. Fixes bug 28183; bugfix
7194       on 0.2.5.1-alpha.
7196   o Minor bugfixes (logging):
7197     - Stop talking about the Named flag in log messages. Clients have
7198       ignored the Named flag since 0.3.2. Fixes bug 28441; bugfix
7199       on 0.3.2.1-alpha.
7201   o Minor bugfixes (memory leaks):
7202     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
7203       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
7205   o Minor bugfixes (onion services):
7206     - On an intro point for a version 3 onion service, stop closing
7207       introduction circuits on an NACK. This lets the client decide
7208       whether to reuse the circuit or discard it. Previously, we closed
7209       intro circuits when sending NACKs. Fixes bug 27841; bugfix on
7210       0.3.2.1-alpha. Patch by Neel Chaunan.
7211     - When replacing a descriptor in the client cache, make sure to
7212       close all client introduction circuits for the old descriptor, so
7213       we don't end up with unusable leftover circuits. Fixes bug 27471;
7214       bugfix on 0.3.2.1-alpha.
7217 Changes in version 0.3.5.4-alpha - 2018-11-08
7218   Tor 0.3.5.4-alpha includes numerous bugfixes on earlier versions and
7219   improves our continuous integration support. It continues our attempts
7220   to stabilize this alpha branch and build it into a foundation for an
7221   acceptable long-term-support release.
7223   o Major bugfixes (compilation, rust):
7224     - Rust tests can now build and run successfully with the
7225       --enable-fragile-hardening option enabled. Doing this currently
7226       requires the rust beta channel; it will be possible with stable
7227       rust once Rust version 1.31 is released. Patch from Alex Crichton.
7228       Fixes bugs 27272, 27273, and 27274. Bugfix on 0.3.1.1-alpha.
7230   o Major bugfixes (embedding, main loop):
7231     - When DisableNetwork becomes set, actually disable periodic events
7232       that are already enabled. (Previously, we would refrain from
7233       enabling new ones, but we would leave the old ones turned on.)
7234       Fixes bug 28348; bugfix on 0.3.4.1-alpha.
7236   o Minor features (continuous integration):
7237     - Add a Travis CI build for --enable-nss on Linux gcc. Closes
7238       ticket 27751.
7239     - Add new CI job to Travis configuration to run stem-based
7240       integration tests. Closes ticket 27913.
7242   o Minor features (Windows, continuous integration):
7243     - Build tor on Windows Server 2012 R2 and Windows Server 2016 using
7244       Appveyor's CI. Closes ticket 28318.
7246   o Minor bugfixes (C correctness, also in 0.3.4.9):
7247     - Avoid undefined behavior in an end-of-string check when parsing
7248       the BEGIN line in a directory object. Fixes bug 28202; bugfix
7249       on 0.2.0.3-alpha.
7251   o Minor bugfixes (compilation):
7252     - Fix a pair of missing headers on OpenBSD. Fixes bug 28303; bugfix
7253       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
7255   o Minor bugfixes (compilation, OpenSolaris):
7256     - Fix compilation on OpenSolaris and its descendants by adding a
7257       missing include to compat_pthreads.c. Fixes bug 27963; bugfix
7258       on 0.3.5.1-alpha.
7260   o Minor bugfixes (configuration):
7261     - Refuse to start with relative file paths and RunAsDaemon set
7262       (regression from the fix for bug 22731). Fixes bug 28298; bugfix
7263       on 0.3.3.1-alpha.
7265   o Minor bugfixes (directory authority, also in 0.3.4.9):
7266     - Log additional info when we get a relay that shares an ed25519 ID
7267       with a different relay, instead of a BUG() warning with a
7268       backtrace. Fixes bug 27800; bugfix on 0.3.2.1-alpha.
7270   o Minor bugfixes (onion service v3):
7271     - Build the service descriptor's signing key certificate before
7272       uploading, so we always have a fresh one: leaving no chances for
7273       it to expire service side. Fixes bug 27838; bugfix
7274       on 0.3.2.1-alpha.
7276   o Minor bugfixes (onion service v3, client authorization):
7277     - Fix an assert() when adding a client authorization for the first
7278       time and then sending a HUP signal to the service. Before that,
7279       Tor would stop abruptly. Fixes bug 27995; bugfix on 0.3.5.1-alpha.
7281   o Minor bugfixes (onion services):
7282     - Unless we have explicitly set HiddenServiceVersion, detect the
7283       onion service version and then look for invalid options.
7284       Previously, we did the reverse, but that broke existing configs
7285       which were pointed to a v2 service and had options like
7286       HiddenServiceAuthorizeClient set. Fixes bug 28127; bugfix on
7287       0.3.5.1-alpha. Patch by Neel Chauhan.
7289   o Minor bugfixes (portability):
7290     - Make the OPE code (which is used for v3 onion services) run
7291       correctly on big-endian platforms. Fixes bug 28115; bugfix
7292       on 0.3.5.1-alpha.
7294   o Minor bugfixes (protover, rust):
7295     - Reject extra commas in version strings. Fixes bug 27197; bugfix
7296       on 0.3.3.3-alpha.
7298   o Minor bugfixes (relay shutdown, systemd):
7299     - Notify systemd of ShutdownWaitLength so it can be set to longer
7300       than systemd's TimeoutStopSec. In Tor's systemd service file, set
7301       TimeoutSec to 60 seconds to allow Tor some time to shut down.
7302       Fixes bug 28113; bugfix on 0.2.6.2-alpha.
7304   o Minor bugfixes (rust, also in 0.3.4.9):
7305     - Fix a potential null dereference in protover_all_supported(). Add
7306       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
7307     - Return a string that can be safely freed by C code, not one
7308       created by the rust allocator, in protover_all_supported(). Fixes
7309       bug 27740; bugfix on 0.3.3.1-alpha.
7311   o Minor bugfixes (rust, directory authority, also in 0.3.4.9):
7312     - Fix an API mismatch in the rust implementation of
7313       protover_compute_vote(). This bug could have caused crashes on any
7314       directory authorities running Tor with Rust (which we do not yet
7315       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
7317   o Minor bugfixes (testing):
7318     - Avoid hangs and race conditions in test_rebind.py. Fixes bug
7319       27968; bugfix on 0.3.5.1-alpha.
7321   o Minor bugfixes (testing, also in 0.3.4.9):
7322     - Treat backtrace test failures as expected on BSD-derived systems
7323       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
7324       (FreeBSD failures have been treated as expected since 18204 in
7325       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
7327   o Documentation (onion service manpage):
7328     - Improve HSv3 client authorization by making some options more
7329       explicit and detailed. Closes ticket 28026. Patch by Mike Tigas.
7332 Changes in version 0.3.4.9 - 2018-11-02
7333   Tor 0.3.4.9 is the second stable release in its series; it backports
7334   numerous fixes, including a fix for a bandwidth management bug that
7335   was causing memory exhaustion on relays. Anyone running an earlier
7336   version of Tor 0.3.4.9 should upgrade.
7338   o Major bugfixes (compilation, backport from 0.3.5.3-alpha):
7339     - Fix compilation on ARM (and other less-used CPUs) when compiling
7340       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
7342   o Major bugfixes (mainloop, bootstrap, backport from 0.3.5.3-alpha):
7343     - Make sure Tor bootstraps and works properly if only the
7344       ControlPort is set. Prior to this fix, Tor would only bootstrap
7345       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
7346       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
7348   o Major bugfixes (relay, backport from 0.3.5.3-alpha):
7349     - When our write bandwidth limit is exhausted, stop writing on the
7350       connection. Previously, we had a typo in the code that would make
7351       us stop reading instead, leading to relay connections being stuck
7352       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
7353       on 0.3.4.1-alpha.
7355   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
7356     - Fix a use-after-free error that could be caused by passing Tor an
7357       impossible set of options that would fail during options_act().
7358       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
7360   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
7361     - Don't do a distcheck with --disable-module-dirauth in Travis.
7362       Implements ticket 27252.
7363     - Only run one online rust build in Travis, to reduce network
7364       errors. Skip offline rust builds on Travis for Linux gcc, because
7365       they're redundant. Implements ticket 27252.
7366     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
7367       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
7368       Linux with default settings, because all the non-default builds
7369       use gcc on Linux. Implements ticket 27252.
7371   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
7372     - Use the Travis Homebrew addon to install packages on macOS during
7373       Travis CI. The package list is the same, but the Homebrew addon
7374       does not do a `brew update` by default. Implements ticket 27738.
7376   o Minor features (geoip):
7377     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
7378       Country database. Closes ticket 27991.
7380   o Minor bugfixes (32-bit OSX and iOS, timing, backport from 0.3.5.2-alpha):
7381     - Fix an integer overflow bug in our optimized 32-bit millisecond-
7382       difference algorithm for 32-bit Apple platforms. Previously, it
7383       would overflow when calculating the difference between two times
7384       more than 47 days apart. Fixes part of bug 27139; bugfix
7385       on 0.3.4.1-alpha.
7386     - Improve the precision of our 32-bit millisecond difference
7387       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
7388       bugfix on 0.3.4.1-alpha.
7389     - Relax the tolerance on the mainloop/update_time_jumps test when
7390       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
7391       on 0.3.4.1-alpha.
7393   o Minor bugfixes (C correctness, to appear in 0.3.5.4-alpha):
7394     - Avoid undefined behavior in an end-of-string check when parsing
7395       the BEGIN line in a directory object. Fixes bug 28202; bugfix
7396       on 0.2.0.3-alpha.
7398   o Minor bugfixes (CI, appveyor, to appear in 0.3.5.4-alpha):
7399     - Only install the necessary mingw packages during our appveyor
7400       builds. This change makes the build a little faster, and prevents
7401       a conflict with a preinstalled mingw openssl that appveyor now
7402       ships. Fixes bugs 27943 and 27765; bugfix on 0.3.4.2-alpha.
7404   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
7405     - Rewrite our assertion macros so that they no longer suppress the
7406       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
7408   o Minor bugfixes (continuous integration, backport from 0.3.5.1-alpha):
7409     - Stop reinstalling identical packages in our Windows CI. Fixes bug
7410       27464; bugfix on 0.3.4.1-alpha.
7412   o Minor bugfixes (directory authority, to appear in 0.3.5.4-alpha):
7413     - Log additional info when we get a relay that shares an ed25519 ID
7414       with a different relay, instead making a BUG() warning. Fixes bug
7415       27800; bugfix on 0.3.2.1-alpha.
7417   o Minor bugfixes (directory connection shutdown, backport from 0.3.5.1-alpha):
7418     - Avoid a double-close when shutting down a stalled directory
7419       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
7421   o Minor bugfixes (HTTP tunnel, backport from 0.3.5.1-alpha):
7422     - Fix a bug warning when closing an HTTP tunnel connection due to an
7423       HTTP request we couldn't handle. Fixes bug 26470; bugfix
7424       on 0.3.2.1-alpha.
7426   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
7427     - Ensure circuitmux queues are empty before scheduling or sending
7428       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
7430   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
7431     - When the onion service directory can't be created or has the wrong
7432       permissions, do not log a stack trace. Fixes bug 27335; bugfix
7433       on 0.3.2.1-alpha.
7435   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
7436     - Close all SOCKS request (for the same .onion) if the newly fetched
7437       descriptor is unusable. Before that, we would close only the first
7438       one leaving the other hanging and let to time out by themselves.
7439       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
7441   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
7442     - When selecting a v3 rendezvous point, don't only look at the
7443       protover, but also check whether the curve25519 onion key is
7444       present. This way we avoid picking a relay that supports the v3
7445       rendezvous but for which we don't have the microdescriptor. Fixes
7446       bug 27797; bugfix on 0.3.2.1-alpha.
7448   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
7449     - Reject protocol names containing bytes other than alphanumeric
7450       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
7451       on 0.2.9.4-alpha.
7453   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
7454     - Compute protover votes correctly in the rust version of the
7455       protover code. Previously, the protover rewrite in 24031 allowed
7456       repeated votes from the same voter for the same protocol version
7457       to be counted multiple times in protover_compute_vote(). Fixes bug
7458       27649; bugfix on 0.3.3.5-rc.
7459     - Reject protover names that contain invalid characters. Fixes bug
7460       27687; bugfix on 0.3.3.1-alpha.
7462   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
7463     - protover_all_supported() would attempt to allocate up to 16GB on
7464       some inputs, leading to a potential memory DoS. Fixes bug 27206;
7465       bugfix on 0.3.3.5-rc.
7467   o Minor bugfixes (rust, directory authority, to appear in 0.3.5.4-alpha):
7468     - Fix an API mismatch in the rust implementation of
7469       protover_compute_vote(). This bug could have caused crashes on any
7470       directory authorities running Tor with Rust (which we do not yet
7471       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
7473   o Minor bugfixes (rust, to appear in 0.3.5.4-alpha):
7474     - Fix a potential null dereference in protover_all_supported(). Add
7475       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
7476     - Return a string that can be safely freed by C code, not one
7477       created by the rust allocator, in protover_all_supported(). Fixes
7478       bug 27740; bugfix on 0.3.3.1-alpha.
7480   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
7481     - If a unit test running in a subprocess exits abnormally or with a
7482       nonzero status code, treat the test as having failed, even if the
7483       test reported success. Without this fix, memory leaks don't cause
7484       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
7485       bugfix on 0.2.2.4-alpha.
7487   o Minor bugfixes (testing, backport from 0.3.5.3-alpha):
7488     - Make the hs_service tests use the same time source when creating
7489       the introduction point and when testing it. Now tests work better
7490       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
7491       on 0.3.2.1-alpha.
7493   o Minor bugfixes (testing, to appear in 0.3.5.4-alpha):
7494     - Treat backtrace test failures as expected on BSD-derived systems
7495       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
7496       (FreeBSD failures have been treated as expected since 18204 in
7497       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
7500 Changes in version 0.3.5.3-alpha - 2018-10-17
7501   Tor 0.3.5.3-alpha fixes several bugs, mostly from previous 0.3.5.x
7502   versions. One important fix for relays addresses a problem with rate-
7503   limiting code from back in 0.3.4.x: If the fix works out, we'll be
7504   backporting it soon. This release is still an alpha, but we hope it's
7505   getting closer and closer to stability.
7507   o Major features (onion services):
7508     - Version 3 onion services can now use the per-service
7509       HiddenServiceExportCircuitID option to differentiate client
7510       circuits. It communicates with the service by using the HAProxy
7511       protocol to assign virtual IP addresses to inbound client
7512       circuits. Closes ticket 4700. Patch by Mahrud Sayrafi.
7514   o Major bugfixes (compilation):
7515     - Fix compilation on ARM (and other less-used CPUs) when compiling
7516       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
7518   o Major bugfixes (initialization, crash):
7519     - Fix an assertion crash that would stop Tor from starting up if it
7520       tried to activate a periodic event too early. Fixes bug 27861;
7521       bugfix on 0.3.5.1-alpha.
7523   o Major bugfixes (mainloop, bootstrap):
7524     - Make sure Tor bootstraps and works properly if only the
7525       ControlPort is set. Prior to this fix, Tor would only bootstrap
7526       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
7527       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
7529   o Major bugfixes (relay):
7530     - When our write bandwidth limit is exhausted, stop writing on the
7531       connection. Previously, we had a typo in the code that would make
7532       us stop reading instead, leading to relay connections being stuck
7533       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
7534       on 0.3.4.1-alpha.
7536   o Minor features (continuous integration):
7537     - Use the Travis Homebrew addon to install packages on macOS during
7538       Travis CI. The package list is the same, but the Homebrew addon
7539       does not do a `brew update` by default. Implements ticket 27738.
7540     - Report what program produced the mysterious core file that we
7541       occasionally see on Travis CI during make distcheck. Closes
7542       ticket 28024.
7544   o Minor features (geoip):
7545     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
7546       Country database. Closes ticket 27991.
7548   o Minor bugfixes (code safety):
7549     - Rewrite our assertion macros so that they no longer suppress the
7550       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
7551       on 0.0.6.
7553   o Minor bugfixes (compilation):
7554     - Compile the ed25519-donna code with a correct declaration of
7555       crypto_strongest_rand(). Previously, we built it with one type,
7556       but linked it against another in the unit tests, which caused
7557       compilation failures with LTO enabled. This could have caused
7558       other undefined behavior in the tests. Fixes bug 27728; bugfix
7559       on 0.3.5.1-alpha.
7561   o Minor bugfixes (compilation, netbsd):
7562     - Add a missing include back into procmon.c. Fixes bug 27990; bugfix
7563       on 0.3.5.1-alpha.
7565   o Minor bugfixes (continuous integration, appveyor):
7566     - Install only the necessary mingw packages during our appveyor
7567       builds. This change makes the build a little faster, and prevents
7568       a conflict with a preinstalled mingw openssl that appveyor now
7569       ships. Fixes bugs 27765 and 27943; bugfix on 0.3.4.2-alpha.
7571   o Minor bugfixes (directory permissions):
7572     - When a user requests a group-readable DataDirectory, give it to
7573       them. Previously, when the DataDirectory and the CacheDirectory
7574       were the same, the default setting (0) for
7575       CacheDirectoryGroupReadable would override the setting for
7576       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
7577       on 0.3.3.1-alpha.
7579   o Minor bugfixes (memory leaks):
7580     - Fix a small memory leak when calling Tor with --dump-config. Fixes
7581       bug 27893; bugfix on 0.3.2.1-alpha.
7583   o Minor bugfixes (networking):
7584     - In retry_listeners_ports(), make sure that we're removing a member
7585       of old_conns smartlist at most once. Fixes bug 27808; bugfix
7586       on 0.3.5.1-alpha.
7587     - Refrain from attempting socket rebinding when old and new
7588       listeners are in different address families. Fixes bug 27928;
7589       bugfix on 0.3.5.1-alpha.
7591   o Minor bugfixes (onion service v3):
7592     - Stop dumping a stack trace when trying to connect to an intro
7593       point without having a descriptor for it. Fixes bug 27774; bugfix
7594       on 0.3.2.1-alpha.
7595     - Don't warn so loudly when Tor is unable to decode an onion
7596       descriptor. This can now happen as a normal use case if a client
7597       gets a descriptor with client authorization but the client is not
7598       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
7599     - When selecting a v3 rendezvous point, don't only look at the
7600       protover, but also check whether the curve25519 onion key is
7601       present. This way we avoid picking a relay that supports the v3
7602       rendezvous but for which we don't have the microdescriptor. Fixes
7603       bug 27797; bugfix on 0.3.2.1-alpha.
7605   o Minor bugfixes (protover):
7606     - Reject protocol names containing bytes other than alphanumeric
7607       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
7608       on 0.2.9.4-alpha.
7610   o Minor bugfixes (testing):
7611     - Make the hs_service tests use the same time source when creating
7612       the introduction point and when testing it. Now tests work better
7613       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
7614       on 0.3.2.1-alpha.
7615     - In test_rebind.py, check if the Python version is in the supported
7616       range. Fixes bug 27675; bugfix on 0.3.5.1-alpha.
7618   o Code simplification and refactoring:
7619     - Divide more large Tor source files -- especially ones that span
7620       multiple areas of functionality -- into smaller parts, including
7621       onion.c and main.c. Closes ticket 26747.
7622     - Divide the "routerparse.c" module into separate modules for each
7623       group of parsed objects. Closes ticket 27924.
7624     - Move protover_rust.c to the same place protover.c was moved to.
7625       Closes ticket 27814.
7626     - Split directory.c into separate pieces for client, server, and
7627       common functionality. Closes ticket 26744.
7628     - Split the non-statistics-related parts from the rephist.c and
7629       geoip.c modules. Closes ticket 27892.
7630     - Split the router.c file into relay-only and shared components, to
7631       help with future modularization. Closes ticket 27864.
7633   o Documentation:
7634     - In the tor-resolve(1) manpage, fix the reference to socks-
7635       extensions.txt by adding a web URL. Resolves ticket 27853.
7636     - Mention that we require Python to be 2.7 or newer for some
7637       integration tests that we ship with Tor. Resolves ticket 27677.
7640 Changes in version 0.3.5.2-alpha - 2018-09-21
7641   Tor 0.3.5.2-alpha fixes several bugs in 0.3.5.1-alpha, including one
7642   that made Tor think it had run out of sockets. Anybody running a relay
7643   or an onion service on 0.3.5.1-alpha should upgrade.
7645   o Major bugfixes (relay bandwidth statistics):
7646     - When we close relayed circuits, report the data in the circuit
7647       queues as being written in our relay bandwidth stats. This
7648       mitigates guard discovery and other attacks that close circuits
7649       for the explicit purpose of noticing this discrepancy in
7650       statistics. Fixes bug 23512; bugfix on 0.0.8pre3.
7652   o Major bugfixes (socket accounting):
7653     - In our socket accounting code, count a socket as closed even when
7654       it is closed indirectly by the TLS layer. Previously, we would
7655       count these sockets as still in use, and incorrectly believe that
7656       we had run out of sockets. Fixes bug 27795; bugfix
7657       on 0.3.5.1-alpha.
7659   o Minor bugfixes (32-bit OSX and iOS, timing):
7660     - Fix an integer overflow bug in our optimized 32-bit millisecond-
7661       difference algorithm for 32-bit Apple platforms. Previously, it
7662       would overflow when calculating the difference between two times
7663       more than 47 days apart. Fixes part of bug 27139; bugfix
7664       on 0.3.4.1-alpha.
7665     - Improve the precision of our 32-bit millisecond difference
7666       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
7667       bugfix on 0.3.4.1-alpha.
7668     - Relax the tolerance on the mainloop/update_time_jumps test when
7669       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
7670       on 0.3.4.1-alpha.
7672   o Minor bugfixes (onion service v3):
7673     - Close all SOCKS request (for the same .onion) if the newly fetched
7674       descriptor is unusable. Before that, we would close only the first
7675       one leaving the other hanging and let to time out by themselves.
7676       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
7678   o Minor bugfixes (memory leak):
7679     - Fix an unlikely memory leak when trying to read a private key from
7680       a ridiculously large file. Fixes bug 27764; bugfix on
7681       0.3.5.1-alpha. This is CID 1439488.
7683   o Minor bugfixes (NSS):
7684     - Correctly detect failure to open a dummy TCP socket when stealing
7685       ownership of an fd from the NSS layer. Fixes bug 27782; bugfix
7686       on 0.3.5.1-alpha.
7688   o Minor bugfixes (rust):
7689     - protover_all_supported() would attempt to allocate up to 16GB on
7690       some inputs, leading to a potential memory DoS. Fixes bug 27206;
7691       bugfix on 0.3.3.5-rc.
7693   o Minor bugfixes (testing):
7694     - Revise the "conditionvar_timeout" test so that it succeeds even on
7695       heavily loaded systems where the test threads are not scheduled
7696       within 200 msec. Fixes bug 27073; bugfix on 0.2.6.3-alpha.
7698   o Code simplification and refactoring:
7699     - Divide the routerlist.c and dirserv.c modules into smaller parts.
7700       Closes ticket 27799.
7703 Changes in version 0.3.5.1-alpha - 2018-09-18
7704   Tor 0.3.5.1-alpha is the first release of the 0.3.5.x series. It adds
7705   client authorization for modern (v3) onion services, improves
7706   bootstrap reporting, begins reorganizing Tor's codebase, adds optional
7707   support for NSS in place of OpenSSL, and much more.
7709   o Major features (onion services, UI change):
7710     - For a newly created onion service, the default version is now 3.
7711       Tor still supports existing version 2 services, but the operator
7712       now needs to set "HiddenServiceVersion 2" in order to create a new
7713       version 2 service. For existing services, Tor now learns the
7714       version by reading the key file. Closes ticket 27215.
7716   o Major features (relay, UI change):
7717     - Relays no longer run as exits by default. If the "ExitRelay"
7718       option is auto (or unset), and no exit policy is specified with
7719       ExitPolicy or ReducedExitPolicy, we now treat ExitRelay as 0.
7720       Previously in this case, we allowed exit traffic and logged a
7721       warning message. Closes ticket 21530. Patch by Neel Chauhan.
7722     - Tor now validates that the ContactInfo config option is valid UTF-
7723       8 when parsing torrc. Closes ticket 27428.
7725   o Major features (bootstrap):
7726     - Don't report directory progress until after a connection to a
7727       relay or bridge has succeeded. Previously, we'd report 80%
7728       progress based on cached directory information when we couldn't
7729       even connect to the network. Closes ticket 27169.
7731   o Major features (new code layout):
7732     - Nearly all of Tor's source code has been moved around into more
7733       logical places. The "common" directory is now divided into a set
7734       of libraries in "lib", and files in the "or" directory have been
7735       split into "core" (logic absolutely needed for onion routing),
7736       "feature" (independent modules in Tor), and "app" (to configure
7737       and invoke the rest of Tor). See doc/HACKING/CodeStructure.md for
7738       more information. Closes ticket 26481.
7740       This refactoring is not complete: although the libraries have been
7741       refactored to be acyclic, the main body of Tor is still too
7742       interconnected. We will attempt to improve this in the future.
7744   o Major features (onion services v3):
7745     - Implement onion service client authorization at the descriptor
7746       level: only authorized clients can decrypt a service's descriptor
7747       to find out how to contact it. A new torrc option was added to
7748       control this client side: ClientOnionAuthDir <path>. On the
7749       service side, if the "authorized_clients/" directory exists in the
7750       onion service directory path, client configurations are read from
7751       the files within. See the manpage for more details. Closes ticket
7752       27547. Patch done by Suphanat Chunhapanya (haxxpop).
7753     - Improve revision counter generation in next-gen onion services.
7754       Onion services can now scale by hosting multiple instances on
7755       different hosts without synchronization between them, which was
7756       previously impossible because descriptors would get rejected by
7757       HSDirs. Addresses ticket 25552.
7759   o Major features (portability, cryptography, experimental, TLS):
7760     - Tor now has the option to compile with the NSS library instead of
7761       OpenSSL. This feature is experimental, and we expect that bugs may
7762       remain. It is mainly intended for environments where Tor's
7763       performance is not CPU-bound, and where NSS is already known to be
7764       installed. To try it out, configure Tor with the --enable-nss
7765       flag. Closes tickets 26631, 26815, and 26816.
7767       If you are experimenting with this option and using an old cached
7768       consensus, Tor may fail to start. To solve this, delete your
7769       "cached-consensus" and "cached-microdesc-consensus" files,
7770       (if present), and restart Tor.
7772   o Major bugfixes (directory authority):
7773     - Actually check that the address we get from DirAuthority
7774       configuration line is valid IPv4. Explicitly disallow DirAuthority
7775       address to be a DNS hostname. Fixes bug 26488; bugfix
7776       on 0.1.2.10-rc.
7778   o Major bugfixes (restart-in-process):
7779     - Fix a use-after-free error that could be caused by passing Tor an
7780       impossible set of options that would fail during options_act().
7781       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
7783   o Minor features (admin tools):
7784     - Add a new --key-expiration option to print the expiration date of
7785       the signing cert in an ed25519_signing_cert file. Resolves
7786       issue 19506.
7788   o Minor features (build):
7789     - If you pass the "--enable-pic" option to configure, Tor will try
7790       to tell the compiler to build position-independent code suitable
7791       to link into a dynamic library. (The default remains -fPIE, for
7792       code suitable for a relocatable executable.) Closes ticket 23846.
7794   o Minor features (code correctness, testing):
7795     - Tor's build process now includes a "check-includes" make target to
7796       verify that no module of Tor relies on any headers from a higher-
7797       level module. We hope to use this feature over time to help
7798       refactor our codebase. Closes ticket 26447.
7800   o Minor features (code layout):
7801     - We have a new "lowest-level" error-handling API for use by code
7802       invoked from within the logging module. With this interface, the
7803       logging code is no longer at risk of calling into itself if a
7804       failure occurs while it is trying to log something. Closes
7805       ticket 26427.
7807   o Minor features (compilation):
7808     - Tor's configure script now supports a --with-malloc= option to
7809       select your malloc implementation. Supported options are
7810       "tcmalloc", "jemalloc", "openbsd" (deprecated), and "system" (the
7811       default). Addresses part of ticket 20424. Based on a patch from
7812       Alex Xu.
7814   o Minor features (config):
7815     - The "auto" keyword in torrc is now case-insensitive. Closes
7816       ticket 26663.
7818   o Minor features (continuous integration):
7819     - Don't do a distcheck with --disable-module-dirauth in Travis.
7820       Implements ticket 27252.
7821     - Install libcap-dev and libseccomp2-dev so these optional
7822       dependencies get tested on Travis CI. Closes ticket 26560.
7823     - Only run one online rust build in Travis, to reduce network
7824       errors. Skip offline rust builds on Travis for Linux gcc, because
7825       they're redundant. Implements ticket 27252.
7826     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
7827       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
7828       Linux with default settings, because all the non-default builds
7829       use gcc on Linux. Implements ticket 27252.
7831   o Minor features (controller):
7832     - Emit CIRC_BW events as soon as we detect that we processed an
7833       invalid or otherwise dropped cell on a circuit. This allows
7834       vanguards and other controllers to react more quickly to dropped
7835       cells. Closes ticket 27678.
7836     - For purposes of CIRC_BW-based dropped cell detection, track half-
7837       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
7838       bias check cells to arrive without counting it as dropped until
7839       either the END arrives, or the windows are empty. Closes
7840       ticket 25573.
7841     - Implement a 'GETINFO md/all' controller command to enable getting
7842       all known microdescriptors. Closes ticket 8323.
7843     - The GETINFO command now support an "uptime" argument, to return
7844       Tor's uptime in seconds. Closes ticket 25132.
7846   o Minor features (denial-of-service avoidance):
7847     - Make our OOM handler aware of the DNS cache so that it doesn't
7848       fill up the memory. This check is important for our DoS mitigation
7849       subsystem. Closes ticket 18642. Patch by Neel Chauhan.
7851   o Minor features (development):
7852     - Tor's makefile now supports running the "clippy" Rust style tool
7853       on our Rust code. Closes ticket 22156.
7855   o Minor features (directory authority):
7856     - There is no longer an artificial upper limit on the length of
7857       bandwidth lines. Closes ticket 26223.
7858     - When a bandwidth file is used to obtain the bandwidth measurements,
7859       include this bandwidth file headers in the votes. Closes
7860       ticket 3723.
7861     - Improved support for networks with only a single authority or a
7862       single fallback directory. Patch from Gabriel Somlo. Closes
7863       ticket 25928.
7865   o Minor features (embedding API):
7866     - The Tor controller API now supports a function to launch Tor with
7867       a preconstructed owning controller FD, so that embedding
7868       applications don't need to manage controller ports and
7869       authentication. Closes ticket 24204.
7870     - The Tor controller API now has a function that returns the name
7871       and version of the backend implementing the API. Closes
7872       ticket 26947.
7874   o Minor features (geoip):
7875     - Update geoip and geoip6 to the September 6 2018 Maxmind GeoLite2
7876       Country database. Closes ticket 27631.
7878   o Minor features (memory management):
7879     - Get Libevent to use the same memory allocator as Tor, by calling
7880       event_set_mem_functions() during initialization. Resolves
7881       ticket 8415.
7883   o Minor features (memory usage):
7884     - When not using them, store legacy TAP public onion keys in DER-
7885       encoded format, rather than as expanded public keys. This should
7886       save several megabytes on typical clients. Closes ticket 27246.
7888   o Minor features (OpenSSL):
7889     - When possible, use RFC5869 HKDF implementation from OpenSSL rather
7890       than our own. Resolves ticket 19979.
7892   o Minor features (Rust, code quality):
7893     - Improve rust code quality in the rust protover implementation by
7894       making it more idiomatic. Includes changing an internal API to
7895       take &str instead of &String. Closes ticket 26492.
7897   o Minor features (testing):
7898     - Add scripts/test/chutney-git-bisect.sh, for bisecting using
7899       chutney. Implements ticket 27211.
7901   o Minor features (tor-resolve):
7902     - The tor-resolve utility can now be used with IPv6 SOCKS proxies.
7903       Side-effect of the refactoring for ticket 26526.
7905   o Minor features (UI):
7906     - Log each included configuration file or directory as we read it,
7907       to provide more visibility about where Tor is reading from. Patch
7908       from Unto Sten; closes ticket 27186.
7909     - Lower log level of "Scheduler type KIST has been enabled" to INFO.
7910       Closes ticket 26703.
7912   o Minor bugfixes (bootstrap):
7913     - Try harder to get descriptors in non-exit test networks, by using
7914       the mid weight for the third hop when there are no exits. Fixes
7915       bug 27237; bugfix on 0.2.6.2-alpha.
7917   o Minor bugfixes (C correctness):
7918     - Avoid casting smartlist index to int implicitly, as it may trigger
7919       a warning (-Wshorten-64-to-32). Fixes bug 26282; bugfix on
7920       0.2.3.13-alpha, 0.2.7.1-alpha and 0.2.1.1-alpha.
7921     - Use time_t for all values in
7922       predicted_ports_prediction_time_remaining(). Rework the code that
7923       computes difference between durations/timestamps. Fixes bug 27165;
7924       bugfix on 0.3.1.1-alpha.
7926   o Minor bugfixes (client, memory usage):
7927     - When not running as a directory cache, there is no need to store
7928       the text of the current consensus networkstatus in RAM.
7929       Previously, however, clients would store it anyway, at a cost of
7930       over 5 MB. Now, they do not. Fixes bug 27247; bugfix
7931       on 0.3.0.1-alpha.
7933   o Minor bugfixes (client, reachableaddresses):
7934     - Instead of adding a "reject *:*" line to ReachableAddresses when
7935       loading the configuration, add one to the policy after parsing it
7936       in parse_reachable_addresses(). This prevents extra "reject *.*"
7937       lines from accumulating on reloads. Fixes bug 20874; bugfix on
7938       0.1.1.5-alpha. Patch by Neel Chauhan.
7940   o Minor bugfixes (code quality):
7941     - Rename sandbox_getaddrinfo() and other functions to no longer
7942       misleadingly suggest that they are sandbox-only. Fixes bug 26525;
7943       bugfix on 0.2.7.1-alpha.
7945   o Minor bugfixes (configuration, Onion Services):
7946     - In rend_service_parse_port_config(), disallow any input to remain
7947       after address-port pair was parsed. This will catch address and
7948       port being whitespace-separated by mistake of the user. Fixes bug
7949       27044; bugfix on 0.2.9.10.
7951   o Minor bugfixes (continuous integration):
7952     - Stop reinstalling identical packages in our Windows CI. Fixes bug
7953       27464; bugfix on 0.3.4.1-alpha.
7955   o Minor bugfixes (controller):
7956     - Consider all routerinfo errors other than "not a server" to be
7957       transient for the purpose of "GETINFO exit-policy/*" controller
7958       request. Print stacktrace in the unlikely case of failing to
7959       recompute routerinfo digest. Fixes bug 27034; bugfix
7960       on 0.3.4.1-alpha.
7962   o Minor bugfixes (directory connection shutdown):
7963     - Avoid a double-close when shutting down a stalled directory
7964       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
7966   o Minor bugfixes (HTTP tunnel):
7967     - Fix a bug warning when closing an HTTP tunnel connection due to an
7968       HTTP request we couldn't handle. Fixes bug 26470; bugfix
7969       on 0.3.2.1-alpha.
7971   o Minor bugfixes (ipv6):
7972     - In addrs_in_same_network_family(), we choose the subnet size based
7973       on the IP version (IPv4 or IPv6). Previously, we chose a fixed
7974       subnet size of /16 for both IPv4 and IPv6 addresses. Fixes bug
7975       15518; bugfix on 0.2.3.1-alpha. Patch by Neel Chauhan.
7977   o Minor bugfixes (logging):
7978     - As a precaution, do an early return from log_addr_has_changed() if
7979       Tor is running as client. Also, log a stack trace for debugging as
7980       this function should only be called when Tor runs as server. Fixes
7981       bug 26892; bugfix on 0.1.1.9-alpha.
7982     - Refrain from mentioning bug 21018 in the logs, as it is already
7983       fixed. Fixes bug 25477; bugfix on 0.2.9.8.
7985   o Minor bugfixes (logging, documentation):
7986     - When SafeLogging is enabled, scrub IP address in
7987       channel_tls_process_netinfo_cell(). Also, add a note to manpage
7988       that scrubbing is not guaranteed on loglevels below Notice. Fixes
7989       bug 26882; bugfix on 0.2.4.10-alpha.
7991   o Minor bugfixes (netflow padding):
7992     - Ensure circuitmux queues are empty before scheduling or sending
7993       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
7995   o Minor bugfixes (onion service v2):
7996     - Log at level "info", not "warning", in the case that we do not
7997       have a consensus when a .onion request comes in. This can happen
7998       normally while bootstrapping. Fixes bug 27040; bugfix
7999       on 0.2.8.2-alpha.
8001   o Minor bugfixes (onion service v3):
8002     - When the onion service directory can't be created or has the wrong
8003       permissions, do not log a stack trace. Fixes bug 27335; bugfix
8004       on 0.3.2.1-alpha.
8006   o Minor bugfixes (OS compatibility):
8007     - Properly handle configuration changes that move a listener to/from
8008       wildcard IP address. If the first attempt to bind a socket fails,
8009       close the old listener and try binding the socket again. Fixes bug
8010       17873; bugfix on 0.0.8pre-1.
8012   o Minor bugfixes (performance)::
8013     - Rework node_is_a_configured_bridge() to no longer call
8014       node_get_all_orports(), which was performing too many memory
8015       allocations. Fixes bug 27224; bugfix on 0.2.3.9.
8017   o Minor bugfixes (relay statistics):
8018     - Update relay descriptor on bandwidth changes only when the uptime
8019       is smaller than 24h, in order to reduce the efficiency of guard
8020       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
8022   o Minor bugfixes (relays):
8023     - Consider the fact that we'll be making direct connections to our
8024       entry and guard nodes when computing the fraction of nodes that
8025       have their descriptors. Also, if we are using bridges and there is
8026       at least one bridge with a full descriptor, treat the fraction of
8027       guards available as 100%. Fixes bug 25886; bugfix on 0.2.4.10-alpha.
8028       Patch by Neel Chauhan.
8029     - Update the message logged on relays when DirCache is disabled.
8030       Since 0.3.3.5-rc, authorities require DirCache (V2Dir) for the
8031       Guard flag. Fixes bug 24312; bugfix on 0.3.3.5-rc.
8033   o Minor bugfixes (rust, protover):
8034     - Compute protover votes correctly in the rust version of the
8035       protover code. Previously, the protover rewrite in 24031 allowed
8036       repeated votes from the same voter for the same protocol version
8037       to be counted multiple times in protover_compute_vote(). Fixes bug
8038       27649; bugfix on 0.3.3.5-rc.
8039     - Reject protover names that contain invalid characters. Fixes bug
8040       27687; bugfix on 0.3.3.1-alpha.
8042   o Minor bugfixes (testing):
8043     - Fix two unit tests to work when HOME environment variable is not
8044       set. Fixes bug 27096; bugfix on 0.2.8.1-alpha.
8045     - If a unit test running in a subprocess exits abnormally or with a
8046       nonzero status code, treat the test as having failed, even if the
8047       test reported success. Without this fix, memory leaks don't cause
8048       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
8049       bugfix on 0.2.2.4-alpha.
8050     - When logging a version mismatch in our openssl_version tests,
8051       report the actual offending version strings. Fixes bug 26152;
8052       bugfix on 0.2.9.1-alpha.
8053     - Fix forking tests on Windows when there is a space somewhere in
8054       the path. Fixes bug 26437; bugfix on 0.2.2.4-alpha.
8056   o Code simplification and refactoring:
8057     - 'updateFallbackDirs.py' now ignores the blacklist file, as it's not
8058       longer needed. Closes ticket 26502.
8059     - Include paths to header files within Tor are now qualified by
8060       directory within the top-level src directory.
8061     - Many structures have been removed from the centralized "or.h"
8062       header, and moved into their own headers. This will allow us to
8063       reduce the number of places in the code that rely on each
8064       structure's contents and layout. Closes ticket 26383.
8065     - Remove ATTR_NONNULL macro from codebase. Resolves ticket 26527.
8066     - Remove GetAdaptersAddresses_fn_t. The code that used it was
8067       removed as part of the 26481 refactor. Closes ticket 27467.
8068     - Rework Tor SOCKS server code to use Trunnel and benefit from
8069       autogenerated functions for parsing and generating SOCKS wire
8070       format. New implementation is cleaner, more maintainable and
8071       should be less prone to heartbleed-style vulnerabilities.
8072       Implements a significant fraction of ticket 3569.
8073     - Split sampled_guards_update_from_consensus() and
8074       select_entry_guard_for_circuit() into subfunctions. In
8075       entry_guards_update_primary() unite three smartlist enumerations
8076       into one and move smartlist comparison code out of the function.
8077       Closes ticket 21349.
8078     - Tor now assumes that you have standards-conformant stdint.h and
8079       inttypes.h headers when compiling. Closes ticket 26626.
8080     - Unify our bloom filter logic. Previously we had two copies of this
8081       code: one for routerlist filtering, and one for address set
8082       calculations. Closes ticket 26510.
8083     - Use the simpler strcmpstart() helper in
8084       rend_parse_v2_service_descriptor instead of strncmp(). Closes
8085       ticket 27630.
8086     - Utility functions that can perform a DNS lookup are now wholly
8087       separated from those that can't, in separate headers and C
8088       modules. Closes ticket 26526.
8090   o Documentation:
8091     - Copy paragraph and URL to Tor's code of conduct document from
8092       CONTRIBUTING to new CODE_OF_CONDUCT file. Resolves ticket 26638.
8093     - Remove old instructions from INSTALL document. Closes ticket 26588.
8094     - Warn users that they should not include MyFamily line(s) in their
8095       torrc when running Tor bridge. Closes ticket 26908.
8097   o Removed features:
8098     - Tor no longer supports building with the dmalloc library. For
8099       debugging memory issues, we suggest using gperftools or msan
8100       instead. Closes ticket 26426.
8101     - Tor no longer attempts to run on Windows environments without the
8102       GetAdaptersAddresses() function. This function has existed since
8103       Windows XP, which is itself already older than we support.
8104     - Remove Tor2web functionality for version 2 onion services. The
8105       Tor2webMode and Tor2webRendezvousPoints options are now obsolete.
8106       (This feature was never shipped in vanilla Tor and it was only
8107       possible to use this feature by building the support at compile
8108       time. Tor2webMode is not implemented for version 3 onion services.)
8109       Closes ticket 26367.
8112 Changes in version 0.2.9.17 - 2018-09-10
8113   Tor 0.2.9.17 backports numerous bugfixes from later versions of Tor.
8115   o Minor features (compatibility, backport from 0.3.4.8):
8116     - Tell OpenSSL to maintain backward compatibility with previous
8117       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
8118       ciphers are disabled by default. Closes ticket 27344.
8120   o Minor features (continuous integration, backport from 0.3.4.7-rc):
8121     - Enable macOS builds in our Travis CI configuration. Closes
8122       ticket 24629.
8123     - Install libcap-dev and libseccomp2-dev so these optional
8124       dependencies get tested on Travis CI. Closes ticket 26560.
8125     - Run asciidoc during Travis CI. Implements ticket 27087.
8126     - Use ccache in our Travis CI configuration. Closes ticket 26952.
8128   o Minor features (geoip):
8129     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
8130       Country database. Closes ticket 27089.
8132   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
8133     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
8134       tell the compiler not to include the system malloc implementation.
8135       Fixes bug 20424; bugfix on 0.2.0.20-rc.
8137   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
8138     - Silence a spurious compiler warning on the GetAdaptersAddresses
8139       function pointer cast. This issue is already fixed by 26481 in
8140       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8141       bugfix on 0.2.3.11-alpha.
8142     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8143       supported, and always fails. Some compilers warn about the
8144       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8145       on 0.2.2.23-alpha.
8147   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
8148     - Don't link or search for pthreads when building for Windows, even
8149       if we are using build environment (like mingw) that provides a
8150       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8152   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
8153     - Skip a pair of unreliable key generation tests on Windows, until
8154       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8155       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8157   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
8158     - Pass the module flags to distcheck configure, and log the flags
8159       before running configure. (Backported to 0.2.9 and later as a
8160       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8162   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
8163     - When a Travis build fails, and showing a log fails, keep trying to
8164       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8165     - When we use echo in Travis, don't pass a --flag as the first
8166       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8168   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
8169     - When voting for recommended versions, make sure that all of the
8170       versions are well-formed and parsable. Fixes bug 26485; bugfix
8171       on 0.1.1.6-alpha.
8173   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
8174     - Fix a bug in out sandboxing rules for the openat() syscall.
8175       Previously, no openat() call would be permitted, which would break
8176       filesystem operations on recent glibc versions. Fixes bug 25440;
8177       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8179   o Minor bugfixes (onion services, backport from 0.3.4.8):
8180     - Silence a spurious compiler warning in
8181       rend_client_send_introduction(). Fixes bug 27463; bugfix
8182       on 0.1.1.2-alpha.
8184   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
8185     - Log a protocol warning when single onion services or Tor2web clients
8186       fail to authenticate direct connections to relays.
8187       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
8189   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
8190     - Disable core dumps in test_bt.sh, to avoid failures in "make
8191       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8193   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
8194     - Before running make test-network-all, delete old logs and test
8195       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8196       on 0.2.7.3-rc.
8198   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
8199     - Our "tortls/cert_matches_key" unit test no longer relies on
8200       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8201       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8202       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8204   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
8205     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8206       27185; bugfix on 0.2.2.2-alpha.
8209 Changes in version 0.3.2.12 - 2018-09-10
8210   Tor 0.3.2.12 backport numerous fixes from later versions of Tor.
8212   o Minor features (compatibility, backport from 0.3.4.8):
8213     - Tell OpenSSL to maintain backward compatibility with previous
8214       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
8215       ciphers are disabled by default. Closes ticket 27344.
8217   o Minor features (continuous integration, backport from 0.3.4.7-rc):
8218     - Enable macOS builds in our Travis CI configuration. Closes
8219       ticket 24629.
8220     - Install libcap-dev and libseccomp2-dev so these optional
8221       dependencies get tested on Travis CI. Closes ticket 26560.
8222     - Run asciidoc during Travis CI. Implements ticket 27087.
8223     - Use ccache in our Travis CI configuration. Closes ticket 26952.
8225   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
8226     - Use cargo cache in our Travis CI configuration. Closes
8227       ticket 26952.
8229   o Minor features (controller, backport from 0.3.4.6-rc):
8230     - The control port now exposes the list of HTTPTunnelPorts and
8231       ExtOrPorts via GETINFO net/listeners/httptunnel and
8232       net/listeners/extor respectively. Closes ticket 26647.
8234   o Minor features (directory authorities, backport from 0.3.4.7-rc):
8235     - Authorities no longer vote to make the subprotocol version
8236       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
8237       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
8239   o Minor features (geoip):
8240     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
8241       Country database. Closes ticket 27089.
8243   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
8244     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
8245       tell the compiler not to include the system malloc implementation.
8246       Fixes bug 20424; bugfix on 0.2.0.20-rc.
8247     - Don't try to use a pragma to temporarily disable the
8248       -Wunused-const-variable warning if the compiler doesn't support
8249       it. Fixes bug 26785; bugfix on 0.3.2.11.
8251   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
8252     - Silence a spurious compiler warning on the GetAdaptersAddresses
8253       function pointer cast. This issue is already fixed by 26481 in
8254       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8255       bugfix on 0.2.3.11-alpha.
8256     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8257       supported, and always fails. Some compilers warn about the
8258       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8259       on 0.2.2.23-alpha.
8261   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
8262     - Don't link or search for pthreads when building for Windows, even
8263       if we are using build environment (like mingw) that provides a
8264       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8266   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
8267     - Skip a pair of unreliable key generation tests on Windows, until
8268       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8269       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8271   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
8272     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
8273     - Pass the module flags to distcheck configure, and log the flags
8274       before running configure. (Backported to 0.2.9 and later as a
8275       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8277   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
8278     - When a Travis build fails, and showing a log fails, keep trying to
8279       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8280     - When we use echo in Travis, don't pass a --flag as the first
8281       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8283   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
8284     - When voting for recommended versions, make sure that all of the
8285       versions are well-formed and parsable. Fixes bug 26485; bugfix
8286       on 0.1.1.6-alpha.
8288   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
8289     - Fix a bug in out sandboxing rules for the openat() syscall.
8290       Previously, no openat() call would be permitted, which would break
8291       filesystem operations on recent glibc versions. Fixes bug 25440;
8292       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8294   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
8295     - Improve the log message when connection initiators fail to
8296       authenticate direct connections to relays. Fixes bug 26927; bugfix
8297       on 0.3.0.1-alpha.
8299   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
8300     - Fix bug that causes services to not ever rotate their descriptors
8301       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
8302       on 0.3.2.1-alpha.
8304   o Minor bugfixes (onion services, backport from 0.3.4.8):
8305     - Silence a spurious compiler warning in
8306       rend_client_send_introduction(). Fixes bug 27463; bugfix
8307       on 0.1.1.2-alpha.
8309   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
8310     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
8311       on 0.3.1.5-alpha.
8312     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
8313       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
8314     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
8315       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
8317   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
8318     - Log a protocol warning when single onion services or Tor2web clients
8319       fail to authenticate direct connections to relays.
8320       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
8322   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
8323     - Disable core dumps in test_bt.sh, to avoid failures in "make
8324       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8326   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
8327     - When running make test-network-all, use the mixed+hs-v2 network.
8328       (A previous fix to chutney removed v3 onion services from the
8329       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
8330       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
8331     - Before running make test-network-all, delete old logs and test
8332       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8333       on 0.2.7.3-rc.
8335   o Minor bugfixes (testing, openssl compatibility):
8336     - Our "tortls/cert_matches_key" unit test no longer relies on OpenSSL
8337       internals.  Previously, it relied on unsupported OpenSSL behavior in
8338       a way that caused it to crash with OpenSSL 1.0.2p. Fixes bug 27226;
8339       bugfix on 0.2.5.1-alpha.
8341   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
8342     - Our "tortls/cert_matches_key" unit test no longer relies on
8343       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8344       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8345       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8347   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
8348     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8349       27185; bugfix on 0.2.2.2-alpha.
8352 Changes in version 0.3.3.10 - 2018-09-10
8353   Tor 0.3.3.10 backports numerous fixes from later versions of Tor.
8355   o Minor features (bug workaround, backport from 0.3.4.7-rc):
8356     - Compile correctly on systems that provide the C11 stdatomic.h
8357       header, but where C11 atomic functions don't actually compile.
8358       Closes ticket 26779; workaround for Debian issue 903709.
8360   o Minor features (compatibility, backport from 0.3.4.8):
8361     - Tell OpenSSL to maintain backward compatibility with previous
8362       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
8363       ciphers are disabled by default. Closes ticket 27344.
8365   o Minor features (continuous integration, backport from 0.3.4.7-rc):
8366     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
8367     - Enable macOS builds in our Travis CI configuration. Closes
8368       ticket 24629.
8369     - Install libcap-dev and libseccomp2-dev so these optional
8370       dependencies get tested on Travis CI. Closes ticket 26560.
8371     - Run asciidoc during Travis CI. Implements ticket 27087.
8372     - Use ccache in our Travis CI configuration. Closes ticket 26952.
8374   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
8375     - Use cargo cache in our Travis CI configuration. Closes
8376       ticket 26952.
8378   o Minor features (controller, backport from 0.3.4.6-rc):
8379     - The control port now exposes the list of HTTPTunnelPorts and
8380       ExtOrPorts via GETINFO net/listeners/httptunnel and
8381       net/listeners/extor respectively. Closes ticket 26647.
8383   o Minor features (directory authorities, backport from 0.3.4.7-rc):
8384     - Authorities no longer vote to make the subprotocol version
8385       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
8386       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
8388   o Minor features (geoip):
8389     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
8390       Country database. Closes ticket 27089.
8392   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
8393     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
8394       tell the compiler not to include the system malloc implementation.
8395       Fixes bug 20424; bugfix on 0.2.0.20-rc.
8396     - Don't try to use a pragma to temporarily disable the
8397       -Wunused-const-variable warning if the compiler doesn't support
8398       it. Fixes bug 26785; bugfix on 0.3.2.11.
8400   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
8401     - Silence a spurious compiler warning on the GetAdaptersAddresses
8402       function pointer cast. This issue is already fixed by 26481 in
8403       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8404       bugfix on 0.2.3.11-alpha.
8405     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8406       supported, and always fails. Some compilers warn about the
8407       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8408       on 0.2.2.23-alpha.
8410   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
8411     - Don't link or search for pthreads when building for Windows, even
8412       if we are using build environment (like mingw) that provides a
8413       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8415   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
8416     - Skip a pair of unreliable key generation tests on Windows, until
8417       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8418       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8420   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
8421     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
8422     - Pass the module flags to distcheck configure, and log the flags
8423       before running configure. (Backported to 0.2.9 and later as a
8424       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8426   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
8427     - When a Travis build fails, and showing a log fails, keep trying to
8428       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8429     - When we use echo in Travis, don't pass a --flag as the first
8430       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8432   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
8433     - When voting for recommended versions, make sure that all of the
8434       versions are well-formed and parsable. Fixes bug 26485; bugfix
8435       on 0.1.1.6-alpha.
8437   o Minor bugfixes (in-process restart, backport from 0.3.4.7-rc):
8438     - Always call tor_free_all() when leaving tor_run_main(). When we
8439       did not, restarting tor in-process would cause an assertion
8440       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
8442   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
8443     - Fix a bug in our sandboxing rules for the openat() syscall.
8444       Previously, no openat() call would be permitted, which would break
8445       filesystem operations on recent glibc versions. Fixes bug 25440;
8446       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8448   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
8449     - Improve the log message when connection initiators fail to
8450       authenticate direct connections to relays. Fixes bug 26927; bugfix
8451       on 0.3.0.1-alpha.
8453   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
8454     - Fix bug that causes services to not ever rotate their descriptors
8455       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
8456       on 0.3.2.1-alpha.
8458   o Minor bugfixes (onion services, backport from 0.3.4.8):
8459     - Silence a spurious compiler warning in
8460       rend_client_send_introduction(). Fixes bug 27463; bugfix
8461       on 0.1.1.2-alpha.
8463   o Minor bugfixes (portability, backport from 0.3.4.6-rc):
8464     - Work around two different bugs in the OS X 10.10 and later SDKs
8465       that would prevent us from successfully targeting earlier versions
8466       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
8468   o Minor bugfixes (portability, backport from 0.3.4.7-rc):
8469     - Fix compilation of the unit tests on GNU/Hurd, which does not
8470       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
8471       from "paulusASol".
8473   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
8474     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
8475       on 0.3.1.5-alpha.
8476     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
8477       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
8478     - Protover parsing was accepting the presence of whitespace in
8479       version strings, which the C implementation would choke on, e.g.
8480       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
8481     - Protover parsing was ignoring a 2nd hyphen and everything after
8482       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
8483       on 0.3.3.1-alpha.
8484     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
8485       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
8486     - cd to ${abs_top_builddir}/src/rust before running cargo in
8487       src/test/test_rust.sh. This makes the working directory consistent
8488       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
8490   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
8491     - Log a protocol warning when single onion services or Tor2web clients
8492       fail to authenticate direct connections to relays.
8493       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
8495   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
8496     - Disable core dumps in test_bt.sh, to avoid failures in "make
8497       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8499   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
8500     - When running make test-network-all, use the mixed+hs-v2 network.
8501       (A previous fix to chutney removed v3 onion services from the
8502       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
8503       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
8504     - Before running make test-network-all, delete old logs and test
8505       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8506       on 0.2.7.3-rc.
8508   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
8509     - Our "tortls/cert_matches_key" unit test no longer relies on
8510       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8511       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8512       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8514   o Minor bugfixes (v3 onion services, backport from 0.3.4.6-rc):
8515     - Stop sending ed25519 link specifiers in v3 onion service introduce
8516       cells and descriptors, when the rendezvous or introduction point
8517       doesn't support ed25519 link authentication. Fixes bug 26627;
8518       bugfix on 0.3.2.4-alpha.
8520   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
8521     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8522       27185; bugfix on 0.2.2.2-alpha.
8525 Changes in version 0.3.4.8 - 2018-09-10
8526   Tor 0.3.4.8 is the first stable release in its series; it includes
8527   compilation and portability fixes.
8529   The Tor 0.3.4 series includes improvements for running Tor in
8530   low-power and embedded environments, which should help performance in
8531   general. We've begun work on better modularity, and included preliminary
8532   changes on the directory authority side to accommodate a new bandwidth
8533   measurement system.  We've also integrated more continuous-integration
8534   systems into our development process, and made corresponding changes to
8535   Tor's testing infrastructure.  Finally, we've continued to refine
8536   our anti-denial-of-service code.
8538   Below are the changes since 0.3.4.7-rc.  For a complete list of changes
8539   since 0.3.3.9, see the ReleaseNotes file.
8541   o Minor features (compatibility):
8542     - Tell OpenSSL to maintain backward compatibility with previous
8543       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
8544       ciphers are disabled by default. Closes ticket 27344.
8546   o Minor features (continuous integration):
8547     - Log the compiler path and version during Appveyor builds.
8548       Implements ticket 27449.
8549     - Show config.log and test-suite.log after failed Appveyor builds.
8550       Also upload the zipped full logs as a build artifact. Implements
8551       ticket 27430.
8553   o Minor bugfixes (compilation):
8554     - Silence a spurious compiler warning on the GetAdaptersAddresses
8555       function pointer cast. This issue is already fixed by 26481 in
8556       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
8557       bugfix on 0.2.3.11-alpha.
8558     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
8559       supported, and always fails. Some compilers warn about the
8560       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
8561       on 0.2.2.23-alpha.
8563   o Minor bugfixes (continuous integration):
8564     - Disable gcc hardening in Appveyor Windows 64-bit builds. As of
8565       August 29 2018, Appveyor images come with gcc 8.2.0 by default.
8566       Executables compiled for 64-bit Windows with this version of gcc
8567       crash when Tor's --enable-gcc-hardening flag is set. Fixes bug
8568       27460; bugfix on 0.3.4.1-alpha.
8569     - When a Travis build fails, and showing a log fails, keep trying to
8570       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
8571     - When we use echo in Travis, don't pass a --flag as the first
8572       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
8574   o Minor bugfixes (onion services):
8575     - Silence a spurious compiler warning in
8576       rend_client_send_introduction(). Fixes bug 27463; bugfix
8577       on 0.1.1.2-alpha.
8579   o Minor bugfixes (testing, chutney):
8580     - When running make test-network-all, use the mixed+hs-v2 network.
8581       (A previous fix to chutney removed v3 onion services from the
8582       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
8583       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
8584     - Before running make test-network-all, delete old logs and test
8585       result files, to avoid spurious failures. Fixes bug 27295; bugfix
8586       on 0.2.7.3-rc.
8588 Changes in version 0.3.4.7-rc - 2018-08-24
8589   Tor 0.3.4.7-rc fixes several small compilation, portability, and
8590   correctness issues in previous versions of Tor. This version is a
8591   release candidate: if no serious bugs are found, we expect that the
8592   stable 0.3.4 release will be (almost) the same as this release.
8594   o Minor features (bug workaround):
8595     - Compile correctly on systems that provide the C11 stdatomic.h
8596       header, but where C11 atomic functions don't actually compile.
8597       Closes ticket 26779; workaround for Debian issue 903709.
8599   o Minor features (continuous integration):
8600     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
8601     - Enable macOS builds in our Travis CI configuration. Closes
8602       ticket 24629.
8603     - Install libcap-dev and libseccomp2-dev so these optional
8604       dependencies get tested on Travis CI. Closes ticket 26560.
8605     - Only post Appveyor IRC notifications when the build fails.
8606       Implements ticket 27275.
8607     - Run asciidoc during Travis CI. Implements ticket 27087.
8608     - Use ccache in our Travis CI configuration. Closes ticket 26952.
8610   o Minor features (continuous integration, rust):
8611     - Use cargo cache in our Travis CI configuration. Closes
8612       ticket 26952.
8614   o Minor features (directory authorities):
8615     - Authorities no longer vote to make the subprotocol version
8616       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
8617       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
8619   o Minor features (geoip):
8620     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
8621       Country database. Closes ticket 27089.
8623   o Minor bugfixes (compilation, windows):
8624     - Don't link or search for pthreads when building for Windows, even
8625       if we are using build environment (like mingw) that provides a
8626       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
8628   o Minor bugfixes (continuous integration):
8629     - Improve Appveyor CI IRC logging. Generate correct branches and
8630       URLs for pull requests and tags. Use unambiguous short commits.
8631       Fixes bug 26979; bugfix on master.
8632     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
8633     - Pass the module flags to distcheck configure, and log the flags
8634       before running configure. (Backported to 0.2.9 and later as a
8635       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
8637   o Minor bugfixes (in-process restart):
8638     - Always call tor_free_all() when leaving tor_run_main(). When we
8639       did not, restarting tor in-process would cause an assertion
8640       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
8642   o Minor bugfixes (linux seccomp2 sandbox):
8643     - Fix a bug in out sandboxing rules for the openat() syscall.
8644       Previously, no openat() call would be permitted, which would break
8645       filesystem operations on recent glibc versions. Fixes bug 25440;
8646       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
8648   o Minor bugfixes (onion services):
8649     - Fix bug that causes services to not ever rotate their descriptors
8650       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
8651       on 0.3.2.1-alpha.
8653   o Minor bugfixes (portability):
8654     - Fix compilation of the unit tests on GNU/Hurd, which does not
8655       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
8656       from "paulusASol".
8658   o Minor bugfixes (rust):
8659     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
8660       on 0.3.1.5-alpha.
8661     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
8662       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
8663     - Protover parsing was accepting the presence of whitespace in
8664       version strings, which the C implementation would choke on, e.g.
8665       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
8666     - Protover parsing was ignoring a 2nd hyphen and everything after
8667       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
8668       on 0.3.3.1-alpha.
8669     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
8670       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
8671     - cd to ${abs_top_builddir}/src/rust before running cargo in
8672       src/test/test_rust.sh. This makes the working directory consistent
8673       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
8675   o Minor bugfixes (testing, bootstrap):
8676     - When calculating bootstrap progress, check exit policies and the
8677       exit flag. Previously, Tor would only check the exit flag, which
8678       caused race conditions in small and fast networks like chutney.
8679       Fixes bug 27236; bugfix on 0.2.6.3-alpha.
8681   o Minor bugfixes (testing, openssl compatibility):
8682     - Our "tortls/cert_matches_key" unit test no longer relies on
8683       OpenSSL internals. Previously, it relied on unsupported OpenSSL
8684       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
8685       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
8687   o Minor bugfixes (Windows, compilation):
8688     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
8689       27185; bugfix on 0.2.2.2-alpha.
8692 Changes in version 0.3.4.6-rc - 2018-08-06
8693   Tor 0.3.4.6-rc fixes several small compilation, portability, and
8694   correctness issues in previous versions of Tor. This version is a
8695   release candidate: if no serious bugs are found, we expect that the
8696   stable 0.3.4 release will be (almost) the same as this release.
8698   o Major bugfixes (event scheduler):
8699     - When we enable a periodic event, schedule it in the event loop
8700       rather than running it immediately. Previously, we would re-run
8701       periodic events immediately in the middle of (for example)
8702       changing our options, with unpredictable effects. Fixes bug 27003;
8703       bugfix on 0.3.4.1-alpha.
8705   o Minor features (compilation):
8706     - When building Tor, prefer to use Python 3 over Python 2, and more
8707       recent (contemplated) versions over older ones. Closes
8708       ticket 26372.
8709     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
8710       tell the compiler not to include the system malloc implementation.
8711       Fixes bug 20424; bugfix on 0.2.0.20-rc.
8712     - Don't try to use a pragma to temporarily disable the
8713       -Wunused-const-variable warning if the compiler doesn't support
8714       it. Fixes bug 26785; bugfix on 0.3.2.11.
8716   o Minor bugfixes (continuous integration):
8717     - Skip a pair of unreliable key generation tests on Windows, until
8718       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
8719       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
8721   o Minor features (controller):
8722     - The control port now exposes the list of HTTPTunnelPorts and
8723       ExtOrPorts via GETINFO net/listeners/httptunnel and
8724       net/listeners/extor respectively. Closes ticket 26647.
8726   o Minor bugfixes (directory authority):
8727     - When voting for recommended versions, make sure that all of the
8728       versions are well-formed and parsable. Fixes bug 26485; bugfix
8729       on 0.1.1.6-alpha.
8731   o Minor features (geoip):
8732     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8733       Country database. Closes ticket 26674.
8735   o Minor features (Rust, portability):
8736     - Rust cross-compilation is now supported. Closes ticket 25895.
8738   o Minor bugfixes (compilation):
8739     - Update build system so that tor builds again with --disable-unittests
8740       after recent refactoring. Fixes bug 26789; bugfix on 0.3.4.3-alpha.
8741     - Fix a compilation warning on some versions of GCC when building
8742       code that calls routerinfo_get_my_routerinfo() twice, assuming
8743       that the second call will succeed if the first one did. Fixes bug
8744       26269; bugfix on 0.2.8.2-alpha.
8746   o Minor bugfixes (controller):
8747     - Report the port correctly when a port is configured to bind to
8748       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
8749     - Parse the "HSADDRESS=" parameter in HSPOST commands properly.
8750       Previously, it was misparsed and ignored. Fixes bug 26523; bugfix
8751       on 0.3.3.1-alpha. Patch by "akwizgran".
8753   o Minor bugfixes (correctness, flow control):
8754     - Upon receiving a stream-level SENDME cell, verify that our window
8755       has not grown too large. Fixes bug 26214; bugfix on svn
8756       r54 (pre-0.0.1).
8758   o Minor bugfixes (memory, correctness):
8759     - Fix a number of small memory leaks identified by coverity. Fixes
8760       bug 26467; bugfix on numerous Tor versions.
8762   o Minor bugfixes (logging):
8763     - Improve the log message when connection initiators fail to
8764       authenticate direct connections to relays. Fixes bug 26927; bugfix
8765       on 0.3.0.1-alpha.
8767   o Minor bugfixes (portability):
8768     - Avoid a compilation error in test_bwmgt.c on Solaris 10. Fixes bug
8769       26994; bugfix on 0.3.4.1-alpha.
8770     - Work around two different bugs in the OS X 10.10 and later SDKs
8771       that would prevent us from successfully targeting earlier versions
8772       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
8774   o Minor bugfixes (single onion services, Tor2web):
8775     - Log a protocol warning when single onion services or Tor2web
8776       clients fail to authenticate direct connections to relays. Fixes
8777       bug 26924; bugfix on 0.2.9.1-alpha.
8779   o Minor bugfixes (testing):
8780     - Disable core dumps in test_bt.sh, to avoid failures in "make
8781       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
8783   o Minor bugfixes (testing, compatibility):
8784     - When running the ntor_ref.py and hs_ntor_ref.py tests, make sure
8785       only to pass strings (rather than "bytes" objects) to the Python
8786       subprocess module. Python 3 on Windows seems to require this.
8787       Fixes bug 26535; bugfix on 0.2.5.5-alpha (for ntor_ref.py) and
8788       0.3.1.1-alpha (for hs_ntor_ref.py).
8790   o Minor bugfixes (v3 onion services):
8791     - Stop sending ed25519 link specifiers in v3 onion service introduce
8792       cells and descriptors, when the rendezvous or introduction point
8793       doesn't support ed25519 link authentication. Fixes bug 26627;
8794       bugfix on 0.3.2.4-alpha.
8797 Changes in version 0.3.4.5-rc - 2018-07-13
8798   Tor 0.3.4.5-rc moves to a new bridge authority, meaning people running
8799   bridge relays should upgrade.
8801   o Directory authority changes:
8802     - The "Bifroest" bridge authority has been retired; the new bridge
8803       authority is "Serge", and it is operated by George from the
8804       TorBSD project. Closes ticket 26771.
8807 Changes in version 0.3.3.9 - 2018-07-13
8808   Tor 0.3.3.9 moves to a new bridge authority, meaning people running
8809   bridge relays should upgrade.
8811   o Directory authority changes:
8812     - The "Bifroest" bridge authority has been retired; the new bridge
8813       authority is "Serge", and it is operated by George from the
8814       TorBSD project. Closes ticket 26771.
8817 Changes in version 0.3.2.11 - 2018-07-13
8818   Tor 0.3.2.11 moves to a new bridge authority, meaning people running
8819   bridge relays should upgrade. We also take this opportunity to backport
8820   other minor fixes.
8822   o Directory authority changes:
8823     - The "Bifroest" bridge authority has been retired; the new bridge
8824       authority is "Serge", and it is operated by George from the
8825       TorBSD project. Closes ticket 26771.
8827   o Directory authority changes (backport from 0.3.3.7):
8828     - Add an IPv6 address for the "dannenberg" directory authority.
8829       Closes ticket 26343.
8831   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
8832     - When directory authorities read a zero-byte bandwidth file, they
8833       would previously log a warning with the contents of an
8834       uninitialised buffer. They now log a warning about the empty file
8835       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
8837   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
8838     - Correctly detect when onion services get disabled after HUP. Fixes
8839       bug 25761; bugfix on 0.3.2.1.
8841   o Minor features (sandbox, backport from 0.3.3.4-alpha):
8842     - Explicitly permit the poll() system call when the Linux
8843       seccomp2-based sandbox is enabled: apparently, some versions of
8844       libc use poll() when calling getpwnam(). Closes ticket 25313.
8846   o Minor feature (continuous integration, backport from 0.3.3.5-rc):
8847     - Update the Travis CI configuration to use the stable Rust channel,
8848       now that we have decided to require that. Closes ticket 25714.
8850   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
8851     - Our .travis.yml configuration now includes support for testing the
8852       results of "make distcheck". (It's not uncommon for "make check"
8853       to pass but "make distcheck" to fail.) Closes ticket 25814.
8854     - Our Travis CI configuration now integrates with the Coveralls
8855       coverage analysis tool. Closes ticket 25818.
8857   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
8858     - Add several checks to detect whether Tor relays are uploading
8859       their descriptors without specifying why they regenerated them.
8860       Diagnostic for ticket 25686.
8862   o Minor features (compilation, backport from 0.3.4.4-rc):
8863     - When building Tor, prefer to use Python 3 over Python 2, and more
8864       recent (contemplated) versions over older ones. Closes
8865       ticket 26372.
8867   o Minor features (geoip):
8868     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
8869       Country database. Closes ticket 26674.
8871   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
8872     - Upon receiving a malformed connected cell, stop processing the
8873       cell immediately. Previously we would mark the connection for
8874       close, but continue processing the cell as if the connection were
8875       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
8877   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
8878     - Allow the nanosleep() system call, which glibc uses to implement
8879       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
8881   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
8882     - When running the hs_ntor_ref.py test, make sure only to pass
8883       strings (rather than "bytes" objects) to the Python subprocess
8884       module. Python 3 on Windows seems to require this. Fixes bug
8885       26535; bugfix on 0.3.1.1-alpha.
8886     - When running the ntor_ref.py test, make sure only to pass strings
8887       (rather than "bytes" objects) to the Python subprocess module.
8888       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
8889       on 0.2.5.5-alpha.
8891   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
8892     - Work around a change in OpenSSL 1.1.1 where return values that
8893       would previously indicate "no password" now indicate an empty
8894       password. Without this workaround, Tor instances running with
8895       OpenSSL 1.1.1 would accept descriptors that other Tor instances
8896       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
8898   o Minor bugfixes (documentation, backport from 0.3.3.5-rc):
8899     - Document that the PerConnBW{Rate,Burst} options will fall back to
8900       their corresponding consensus parameters only if those parameters
8901       are set. Previously we had claimed that these values would always
8902       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
8904   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
8905     - Fix a compilation warning on some versions of GCC when building
8906       code that calls routerinfo_get_my_routerinfo() twice, assuming
8907       that the second call will succeed if the first one did. Fixes bug
8908       26269; bugfix on 0.2.8.2-alpha.
8910   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
8911     - Don't consider Tor running as a client if the ControlPort is open,
8912       but no actual client ports are open. Fixes bug 26062; bugfix
8913       on 0.2.9.4-alpha.
8915   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
8916     - Prevent a possible out-of-bounds smartlist read in
8917       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
8919   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
8920     - Fix a very unlikely (impossible, we believe) null pointer
8921       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
8922       Coverity; this is CID 1430932.
8924   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
8925     - Fix a memory leak when a v3 onion service is configured and gets a
8926       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
8927     - When parsing the descriptor signature, look for the token plus an
8928       extra white-space at the end. This is more correct but also will
8929       allow us to support new fields that might start with "signature".
8930       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
8932   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
8933     - Relays now correctly block attempts to re-extend to the previous
8934       relay by Ed25519 identity. Previously they would warn in this
8935       case, but not actually reject the attempt. Fixes bug 26158; bugfix
8936       on 0.3.0.1-alpha.
8938   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
8939     - Avoid a crash when running with DirPort set but ORPort turned off.
8940       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
8942   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
8943     - Silence unused-const-variable warnings in zstd.h with some GCC
8944       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
8946   o Minor bugfixes (testing, backport from 0.3.3.4-alpha):
8947     - Avoid intermittent test failures due to a test that had relied on
8948       onion service introduction point creation finishing within 5
8949       seconds of real clock time. Fixes bug 25450; bugfix
8950       on 0.3.1.3-alpha.
8952   o Minor bugfixes (compilation, backport from 0.3.3.4-alpha):
8953     - Fix a C99 compliance issue in our configuration script that caused
8954       compilation issues when compiling Tor with certain versions of
8955       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
8957   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
8958     - Fix a number of small memory leaks identified by coverity. Fixes
8959       bug 26467; bugfix on numerous Tor versions.
8961   o Code simplification and refactoring (backport from 0.3.3.5-rc):
8962     - Move the list of default directory authorities to its own file.
8963       Closes ticket 24854. Patch by "beastr0".
8966 Changes in version 0.2.9.16 - 2018-07-13
8967   Tor 0.2.9.16 moves to a new bridge authority, meaning people running
8968   bridge relays should upgrade. We also take this opportunity to backport
8969   other minor fixes.
8971   o Directory authority changes:
8972     - The "Bifroest" bridge authority has been retired; the new bridge
8973       authority is "Serge", and it is operated by George from the
8974       TorBSD project. Closes ticket 26771.
8976   o Directory authority changes (backport from 0.3.3.7):
8977     - Add an IPv6 address for the "dannenberg" directory authority.
8978       Closes ticket 26343.
8980   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
8981     - When directory authorities read a zero-byte bandwidth file, they
8982       would previously log a warning with the contents of an
8983       uninitialised buffer. They now log a warning about the empty file
8984       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
8986   o Minor features (sandbox, backport from 0.3.3.4-alpha):
8987     - Explicitly permit the poll() system call when the Linux
8988       seccomp2-based sandbox is enabled: apparently, some versions of
8989       libc use poll() when calling getpwnam(). Closes ticket 25313.
8991   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
8992     - Our .travis.yml configuration now includes support for testing the
8993       results of "make distcheck". (It's not uncommon for "make check"
8994       to pass but "make distcheck" to fail.) Closes ticket 25814.
8995     - Our Travis CI configuration now integrates with the Coveralls
8996       coverage analysis tool. Closes ticket 25818.
8998   o Minor features (compilation, backport from 0.3.4.4-rc):
8999     - When building Tor, prefer to use Python 3 over Python 2, and more
9000       recent (contemplated) versions over older ones. Closes
9001       ticket 26372.
9003   o Minor features (geoip):
9004     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
9005       Country database. Closes ticket 26674.
9007   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
9008     - Upon receiving a malformed connected cell, stop processing the
9009       cell immediately. Previously we would mark the connection for
9010       close, but continue processing the cell as if the connection were
9011       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
9013   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
9014     - Allow the nanosleep() system call, which glibc uses to implement
9015       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
9017   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
9018     - When running the ntor_ref.py test, make sure only to pass strings
9019       (rather than "bytes" objects) to the Python subprocess module.
9020       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
9021       on 0.2.5.5-alpha.
9023   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
9024     - Work around a change in OpenSSL 1.1.1 where return values that
9025       would previously indicate "no password" now indicate an empty
9026       password. Without this workaround, Tor instances running with
9027       OpenSSL 1.1.1 would accept descriptors that other Tor instances
9028       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
9030   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
9031     - Fix a compilation warning on some versions of GCC when building
9032       code that calls routerinfo_get_my_routerinfo() twice, assuming
9033       that the second call will succeed if the first one did. Fixes bug
9034       26269; bugfix on 0.2.8.2-alpha.
9036   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
9037     - Don't consider Tor running as a client if the ControlPort is open,
9038       but no actual client ports are open. Fixes bug 26062; bugfix
9039       on 0.2.9.4-alpha.
9041   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
9042     - Prevent a possible out-of-bounds smartlist read in
9043       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
9045   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
9046     - Fix a very unlikely (impossible, we believe) null pointer
9047       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
9048       Coverity; this is CID 1430932.
9050   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
9051     - Fix a number of small memory leaks identified by coverity. Fixes
9052       bug 26467; bugfix on numerous Tor versions.
9054   o Code simplification and refactoring (backport from 0.3.3.5-rc):
9055     - Move the list of default directory authorities to its own file.
9056       Closes ticket 24854. Patch by "beastr0".
9059 Changes in version 0.3.4.4-rc - 2018-07-09
9060   Tor 0.3.4.4-rc fixes several small compilation, portability, and
9061   correctness issues in previous versions of Tor. This version is a
9062   release candidate: if no serious bugs are found, we expect that the
9063   stable 0.3.4 release will be (almost) the same as this release.
9065   o Minor features (compilation):
9066     - When building Tor, prefer to use Python 3 over Python 2, and more
9067       recent (contemplated) versions over older ones. Closes
9068       ticket 26372.
9070   o Minor features (geoip):
9071     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
9072       Country database. Closes ticket 26674.
9074   o Minor features (Rust, portability):
9075     - Rust cross-compilation is now supported. Closes ticket 25895.
9077   o Minor bugfixes (compilation):
9078     - Fix a compilation warning on some versions of GCC when building
9079       code that calls routerinfo_get_my_routerinfo() twice, assuming
9080       that the second call will succeed if the first one did. Fixes bug
9081       26269; bugfix on 0.2.8.2-alpha.
9083   o Minor bugfixes (control port):
9084     - Report the port correctly when a port is configured to bind to
9085       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
9086     - Handle the HSADDRESS= argument to the HSPOST command properly.
9087       (Previously, this argument was misparsed and thus ignored.) Fixes
9088       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
9090   o Minor bugfixes (correctness, flow control):
9091     - Upon receiving a stream-level SENDME cell, verify that our window
9092       has not grown too large. Fixes bug 26214; bugfix on svn
9093       r54 (pre-0.0.1).
9095   o Minor bugfixes (memory, correctness):
9096     - Fix a number of small memory leaks identified by coverity. Fixes
9097       bug 26467; bugfix on numerous Tor versions.
9099   o Minor bugfixes (testing, compatibility):
9100     - When running the hs_ntor_ref.py test, make sure only to pass
9101       strings (rather than "bytes" objects) to the Python subprocess
9102       module. Python 3 on Windows seems to require this. Fixes bug
9103       26535; bugfix on 0.3.1.1-alpha.
9104     - When running the ntor_ref.py test, make sure only to pass strings
9105       (rather than "bytes" objects) to the Python subprocess module.
9106       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
9107       on 0.2.5.5-alpha.
9110 Changes in version 0.3.3.8 - 2018-07-09
9111   Tor 0.3.3.8 backports several changes from the 0.3.4.x series, including
9112   fixes for a memory leak affecting directory authorities.
9114   o Major bugfixes (directory authority, backport from 0.3.4.3-alpha):
9115     - Stop leaking memory on directory authorities when planning to
9116       vote. This bug was crashing authorities by exhausting their
9117       memory. Fixes bug 26435; bugfix on 0.3.3.6.
9119   o Major bugfixes (rust, testing, backport from 0.3.4.3-alpha):
9120     - Make sure that failing tests in Rust will actually cause the build
9121       to fail: previously, they were ignored. Fixes bug 26258; bugfix
9122       on 0.3.3.4-alpha.
9124   o Minor features (compilation, backport from 0.3.4.4-rc):
9125     - When building Tor, prefer to use Python 3 over Python 2, and more
9126       recent (contemplated) versions over older ones. Closes
9127       ticket 26372.
9129   o Minor features (geoip):
9130     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
9131       Country database. Closes ticket 26674.
9133   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
9134     - Add several checks to detect whether Tor relays are uploading
9135       their descriptors without specifying why they regenerated them.
9136       Diagnostic for ticket 25686.
9138   o Minor bugfixes (circuit path selection, backport from 0.3.4.1-alpha):
9139     - Don't count path selection failures as circuit build failures.
9140       This change should eliminate cases where Tor blames its guard or
9141       the network for situations like insufficient microdescriptors
9142       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
9143       on 0.3.3.1-alpha.
9145   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
9146     - Fix a compilation warning on some versions of GCC when building
9147       code that calls routerinfo_get_my_routerinfo() twice, assuming
9148       that the second call will succeed if the first one did. Fixes bug
9149       26269; bugfix on 0.2.8.2-alpha.
9151   o Minor bugfixes (control port, backport from 0.3.4.4-rc):
9152     - Handle the HSADDRESS= argument to the HSPOST command properly.
9153       (Previously, this argument was misparsed and thus ignored.) Fixes
9154       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
9156   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
9157     - Fix a number of small memory leaks identified by coverity. Fixes
9158       bug 26467; bugfix on numerous Tor versions.
9160   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
9161     - Relays now correctly block attempts to re-extend to the previous
9162       relay by Ed25519 identity. Previously they would warn in this
9163       case, but not actually reject the attempt. Fixes bug 26158; bugfix
9164       on 0.3.0.1-alpha.
9166   o Minor bugfixes (restart-in-process, backport from 0.3.4.1-alpha):
9167     - When shutting down, Tor now clears all the flags in the control.c
9168       module. This should prevent a bug where authentication cookies are
9169       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
9171   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
9172     - When running the hs_ntor_ref.py test, make sure only to pass
9173       strings (rather than "bytes" objects) to the Python subprocess
9174       module. Python 3 on Windows seems to require this. Fixes bug
9175       26535; bugfix on 0.3.1.1-alpha.
9176     - When running the ntor_ref.py test, make sure only to pass strings
9177       (rather than "bytes" objects) to the Python subprocess module.
9178       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
9179       on 0.2.5.5-alpha.
9182 Changes in version 0.3.4.3-alpha - 2018-06-26
9183   Tor 0.3.4.3-alpha fixes several bugs in earlier versions, including
9184   one that was causing stability issues on directory authorities.
9186   o Major bugfixes (directory authority):
9187     - Stop leaking memory on directory authorities when planning to
9188       vote. This bug was crashing authorities by exhausting their
9189       memory. Fixes bug 26435; bugfix on 0.3.3.6.
9191   o Major bugfixes (rust, testing):
9192     - Make sure that failing tests in Rust will actually cause the build
9193       to fail: previously, they were ignored. Fixes bug 26258; bugfix
9194       on 0.3.3.4-alpha.
9196   o Minor feature (directory authorities):
9197     - Stop warning about incomplete bw lines before the first complete
9198       bw line has been found, so that additional header lines can be
9199       ignored. Fixes bug 25960; bugfix on 0.2.2.1-alpha
9201   o Minor features (relay, diagnostic):
9202     - Add several checks to detect whether Tor relays are uploading
9203       their descriptors without specifying why they regenerated them.
9204       Diagnostic for ticket 25686.
9206   o Minor features (unit tests):
9207     - Test complete bandwidth measurements files, and test that
9208       incomplete bandwidth lines only give warnings when the end of the
9209       header has not been detected. Fixes bug 25947; bugfix
9210       on 0.2.2.1-alpha
9212   o Minor bugfixes (compilation):
9213     - Refrain from compiling unit testing related object files when
9214       --disable-unittests is set to configure script. Fixes bug 24891;
9215       bugfix on 0.2.5.1-alpha.
9216     - When linking the libtor_testing.a library, only include the
9217       dirauth object files once. Previously, they were getting added
9218       twice. Fixes bug 26402; bugfix on 0.3.4.1-alpha.
9219     - The --enable-fatal-warnings flag now affects Rust code as well.
9220       Closes ticket 26245.
9222   o Minor bugfixes (onion services):
9223     - Recompute some consensus information after detecting a clock jump,
9224       or after transitioning from a non-live consensus to a live
9225       consensus. We do this to avoid having an outdated state, and
9226       miscalculating the index for next-generation onion services. Fixes
9227       bug 24977; bugfix on 0.3.2.1-alpha.
9229   o Minor bugfixes (relay):
9230     - Relays now correctly block attempts to re-extend to the previous
9231       relay by Ed25519 identity. Previously they would warn in this
9232       case, but not actually reject the attempt. Fixes bug 26158; bugfix
9233       on 0.3.0.1-alpha.
9235   o Minor bugfixes (testing):
9236     - Fix compilation of the doctests in the Rust crypto crate. Fixes
9237       bug 26415; bugfix on 0.3.4.1-alpha.
9238     - Instead of trying to read the geoip configuration files from
9239       within the unit tests, instead create our own ersatz files with
9240       just enough geoip data in the format we expect. Trying to read
9241       from the source directory created problems on Windows with mingw,
9242       where the build system's paths are not the same as the platform's
9243       paths. Fixes bug 25787; bugfix on 0.3.4.1-alpha.
9244     - Refrain from trying to get an item from an empty smartlist in
9245       test_bridges_clear_bridge_list. Set DEBUG_SMARTLIST in unit tests
9246       to catch improper smartlist usage. Furthermore, enable
9247       DEBUG_SMARTLIST globally when build is configured with fragile
9248       hardening. Fixes bug 26196; bugfix on 0.3.4.1-alpha.
9251 Changes in version 0.3.3.7 - 2018-06-12
9252   Tor 0.3.3.7 backports several changes from the 0.3.4.x series, including
9253   fixes for bugs affecting compatibility and stability.
9255   o Directory authority changes:
9256     - Add an IPv6 address for the "dannenberg" directory authority.
9257       Closes ticket 26343.
9259   o Minor features (geoip):
9260     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
9261       Country database. Closes ticket 26351.
9263   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
9264     - Work around a change in OpenSSL 1.1.1 where return values that
9265       would previously indicate "no password" now indicate an empty
9266       password. Without this workaround, Tor instances running with
9267       OpenSSL 1.1.1 would accept descriptors that other Tor instances
9268       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
9270   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
9271     - Silence unused-const-variable warnings in zstd.h with some GCC
9272       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
9274   o Minor bugfixes (controller, backport from 0.3.4.2-alpha):
9275     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
9276       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
9277       miscounting the total number of circuits for these field values.)
9278       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
9280   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
9281     - Prevent a possible out-of-bounds smartlist read in
9282       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
9284   o Minor bugfixes (path selection, backport from 0.3.4.1-alpha):
9285     - Only select relays when they have the descriptors we prefer to use
9286       for them. This change fixes a bug where we could select a relay
9287       because it had _some_ descriptor, but reject it later with a
9288       nonfatal assertion error because it didn't have the exact one we
9289       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
9292 Changes in version 0.3.4.2-alpha - 2018-06-12
9293   Tor 0.3.4.2-alpha fixes several minor bugs in the previous alpha
9294   release, and forward-ports an authority-only security fix from 0.3.3.6.
9296   o Directory authority changes:
9297     - Add an IPv6 address for the "dannenberg" directory authority.
9298       Closes ticket 26343.
9300   o Major bugfixes (security, directory authority, denial-of-service, also in 0.3.3.6):
9301     - Fix a bug that could have allowed an attacker to force a directory
9302       authority to use up all its RAM by passing it a maliciously
9303       crafted protocol versions string. Fixes bug 25517; bugfix on
9304       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
9306   o Minor features (continuous integration):
9307     - Add the necessary configuration files for continuous integration
9308       testing on Windows, via the Appveyor platform. Closes ticket
9309       25549. Patches from Marcin Cieślak and Isis Lovecruft.
9311   o Minor features (geoip):
9312     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
9313       Country database. Closes ticket 26351.
9315   o Minor bugfixes (compatibility, openssl):
9316     - Work around a change in OpenSSL 1.1.1 where return values that
9317       would previously indicate "no password" now indicate an empty
9318       password. Without this workaround, Tor instances running with
9319       OpenSSL 1.1.1 would accept descriptors that other Tor instances
9320       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
9322   o Minor bugfixes (compilation):
9323     - Silence unused-const-variable warnings in zstd.h with some GCC
9324       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
9325     - Fix compilation when using OpenSSL 1.1.0 with the "no-deprecated"
9326       flag enabled. Fixes bug 26156; bugfix on 0.3.4.1-alpha.
9327     - Avoid a compiler warning when casting the return value of
9328       smartlist_len() to double with DEBUG_SMARTLIST enabled. Fixes bug
9329       26283; bugfix on 0.2.4.10-alpha.
9331   o Minor bugfixes (control port):
9332     - Do not count 0-length RELAY_COMMAND_DATA cells as valid data in
9333       CIRC_BW events. Previously, such cells were counted entirely in
9334       the OVERHEAD field. Now they are not. Fixes bug 26259; bugfix
9335       on 0.3.4.1-alpha.
9337   o Minor bugfixes (controller):
9338     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
9339       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
9340       miscounting the total number of circuits for these field values.)
9341       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
9343   o Minor bugfixes (hardening):
9344     - Prevent a possible out-of-bounds smartlist read in
9345       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
9347   o Minor bugfixes (onion services):
9348     - Fix a bug that blocked the creation of ephemeral v3 onion
9349       services. Fixes bug 25939; bugfix on 0.3.4.1-alpha.
9351   o Minor bugfixes (test coverage tools):
9352     - Update our "cov-diff" script to handle output from the latest
9353       version of gcov, and to remove extraneous timestamp information
9354       from its output. Fixes bugs 26101 and 26102; bugfix
9355       on 0.2.5.1-alpha.
9358 Changes in version 0.3.3.6 - 2018-05-22
9359   Tor 0.3.3.6 is the first stable release in the 0.3.3 series. It
9360   backports several important fixes from the 0.3.4.1-alpha.
9362   The Tor 0.3.3 series includes controller support and other
9363   improvements for v3 onion services, official support for embedding Tor
9364   within other applications, and our first non-trivial module written in
9365   the Rust programming language. (Rust is still not enabled by default
9366   when building Tor.) And as usual, there are numerous other smaller
9367   bugfixes, features, and improvements.
9369   Below are the changes since 0.3.3.5-rc. For a list of all changes
9370   since 0.3.2.10, see the ReleaseNotes file.
9372   o Major bugfixes (directory authorities, security, backport from 0.3.4.1-alpha):
9373     - When directory authorities read a zero-byte bandwidth file, they
9374       would previously log a warning with the contents of an
9375       uninitialised buffer. They now log a warning about the empty file
9376       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
9378   o Major bugfixes (security, directory authority, denial-of-service):
9379     - Fix a bug that could have allowed an attacker to force a directory
9380       authority to use up all its RAM by passing it a maliciously
9381       crafted protocol versions string. Fixes bug 25517; bugfix on
9382       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
9384   o Major bugfixes (crash, backport from 0.3.4.1-alpha):
9385     - Avoid a rare assertion failure in the circuit build timeout code
9386       if we fail to allow any circuits to actually complete. Fixes bug
9387       25733; bugfix on 0.2.2.2-alpha.
9389   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
9390     - Avoid a crash when testing router reachability on a router that
9391       could have an ed25519 ID, but which does not. Fixes bug 25415;
9392       bugfix on 0.3.3.2-alpha.
9394   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
9395     - Correctly detect when onion services get disabled after HUP. Fixes
9396       bug 25761; bugfix on 0.3.2.1.
9398   o Major bugfixes (relay, denial of service, backport from 0.3.4.1-alpha):
9399     - Impose a limit on circuit cell queue size. The limit can be
9400       controlled by a consensus parameter. Fixes bug 25226; bugfix
9401       on 0.2.4.14-alpha.
9403   o Minor features (compatibility, backport from 0.3.4.1-alpha):
9404     - Avoid some compilation warnings with recent versions of LibreSSL.
9405       Closes ticket 26006.
9407   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
9408     - Our .travis.yml configuration now includes support for testing the
9409       results of "make distcheck". (It's not uncommon for "make check"
9410       to pass but "make distcheck" to fail.) Closes ticket 25814.
9411     - Our Travis CI configuration now integrates with the Coveralls
9412       coverage analysis tool. Closes ticket 25818.
9414   o Minor features (geoip):
9415     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
9416       database. Closes ticket 26104.
9418   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
9419     - Don't consider Tor running as a client if the ControlPort is open,
9420       but no actual client ports are open. Fixes bug 26062; bugfix
9421       on 0.2.9.4-alpha.
9423   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
9424     - Upon receiving a malformed connected cell, stop processing the
9425       cell immediately. Previously we would mark the connection for
9426       close, but continue processing the cell as if the connection were
9427       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
9429   o Minor bugfixes (documentation, backport from 0.3.4.1-alpha):
9430     - Stop saying in the manual that clients cache ipv4 dns answers from
9431       exit relays. We haven't used them since 0.2.6.3-alpha, and in
9432       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
9433       we forgot to say so in the man page. Fixes bug 26052; bugfix
9434       on 0.3.2.6-alpha.
9436   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
9437     - Allow the nanosleep() system call, which glibc uses to implement
9438       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
9440   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
9441     - Fix a memory leak when a v3 onion service is configured and gets a
9442       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
9443     - When parsing the descriptor signature, look for the token plus an
9444       extra white-space at the end. This is more correct but also will
9445       allow us to support new fields that might start with "signature".
9446       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
9448   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
9449     - Avoid a crash when running with DirPort set but ORPort turned off.
9450       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
9452   o Documentation (backport from 0.3.4.1-alpha):
9453     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
9454       ticket 25857. Patch from "CTassisF".
9457 Changes in version 0.3.4.1-alpha - 2018-05-17
9458   Tor 0.3.4.1-alpha is the first release in the 0.3.4.x series. It
9459   includes refactoring to begin reducing Tor's binary size and idle CPU
9460   usage on mobile, along with prep work for new bandwidth scanners,
9461   improvements to the experimental "vanguards" feature, and numerous
9462   other small features and bugfixes.
9464   o New system requirements:
9465     - Tor no longer tries to support old operating systems without
9466       mmap() or some local equivalent. Apparently, compilation on such
9467       systems has been broken for some time, without anybody noticing or
9468       complaining. Closes ticket 25398.
9470   o Major feature (directory authority, modularization):
9471     - The directory authority subsystem has been modularized. The code
9472       is now located in src/or/dirauth/, and is compiled in by default.
9473       To disable the module, the configure option
9474       --disable-module-dirauth has been added. This module may be
9475       disabled by default in some future release. Closes ticket 25610.
9477   o Major features (main loop, CPU usage):
9478     - When Tor is disabled (via DisableNetwork or via hibernation), it
9479       no longer needs to run any per-second events. This change should
9480       make it easier for mobile applications to disable Tor while the
9481       device is sleeping, or Tor is not running. Closes ticket 26063.
9482     - Tor no longer enables all of its periodic events by default.
9483       Previously, Tor would enable all possible main loop events,
9484       regardless of whether it needed them. Furthermore, many of these
9485       events are now disabled with Tor is hibernating or DisableNetwork
9486       is set. This is a big step towards reducing client CPU usage by
9487       reducing the amount of wake-ups the daemon does. Closes ticket
9488       25376 and 25762.
9489     - The bandwidth-limitation logic has been refactored so that
9490       bandwidth calculations are performed on-demand, rather than every
9491       TokenBucketRefillInterval milliseconds. This change should improve
9492       the granularity of our bandwidth calculations, and limit the
9493       number of times that the Tor process needs to wake up when it is
9494       idle. Closes ticket 25373.
9495     - Move responsibility for many operations from a once-per-second
9496       callback to a callback that is only scheduled as needed. Moving
9497       this functionality has allowed us to disable the callback when
9498       Tor's network is disabled. Once enough items are removed from our
9499       once-per-second callback, we can eliminate it entirely to conserve
9500       CPU when idle. The functionality removed includes: closing
9501       connections, circuits, and channels (ticket 25932); consensus
9502       voting (25937); flushing log callbacks (25951); honoring delayed
9503       SIGNEWNYM requests (25949); rescanning the consensus cache
9504       (25931); saving the state file to disk (25948); warning relay
9505       operators about unreachable ports (25952); and keeping track of
9506       Tor's uptime (26009).
9508   o Major bugfixes (directory authorities, security):
9509     - When directory authorities read a zero-byte bandwidth file, they
9510       would previously log a warning with the contents of an
9511       uninitialised buffer. They now log a warning about the empty file
9512       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
9514   o Major bugfixes (crash):
9515     - Avoid a rare assertion failure in the circuit build timeout code
9516       if we fail to allow any circuits to actually complete. Fixes bug
9517       25733; bugfix on 0.2.2.2-alpha.
9519   o Major bugfixes (directory authority):
9520     - Avoid a crash when testing router reachability on a router that
9521       could have an ed25519 ID, but which does not. Fixes bug 25415;
9522       bugfix on 0.3.3.2-alpha.
9524   o Major bugfixes (onion service):
9525     - Correctly detect when onion services get disabled after HUP. Fixes
9526       bug 25761; bugfix on 0.3.2.1.
9528   o Major bugfixes (protover, voting):
9529     - Revise Rust implementation of protover to use a more memory-
9530       efficient voting algorithm and corresponding data structures, thus
9531       avoiding a potential (but small impact) DoS attack where specially
9532       crafted protocol strings would expand to several potential
9533       megabytes in memory. In the process, several portions of code were
9534       revised to be methods on new, custom types, rather than functions
9535       taking interchangeable types, thus increasing type safety of the
9536       module. Custom error types and handling were added as well, in
9537       order to facilitate better error dismissal/handling in outside
9538       crates and avoid mistakenly passing an internal error string to C
9539       over the FFI boundary. Many tests were added, and some previous
9540       differences between the C and Rust implementations have been
9541       remedied. Fixes bug 24031; bugfix on 0.3.3.1-alpha.
9543   o Major bugfixes (relay, denial of service):
9544     - Impose a limit on circuit cell queue size. The limit can be
9545       controlled by a consensus parameter. Fixes bug 25226; bugfix
9546       on 0.2.4.14-alpha.
9548   o Minor features (accounting):
9549     - When Tor becomes dormant, it now uses a scheduled event to wake up
9550       at the right time. Previously, we would use the per-second timer
9551       to check whether to wake up, but we no longer have any per-second
9552       timers enabled when the network is disabled. Closes ticket 26064.
9554   o Minor features (code quality):
9555     - Add optional spell-checking for the Tor codebase, using the
9556       "misspell" program. To use this feature, run "make check-typos".
9557       Closes ticket 25024.
9559   o Minor features (compatibility):
9560     - Tor now detects versions of OpenSSL 1.1.0 and later compiled with
9561       the no-deprecated option, and builds correctly with them. Closes
9562       tickets 19429, 19981, and 25353.
9563     - Avoid some compilation warnings with recent versions of LibreSSL.
9564       Closes ticket 26006.
9566   o Minor features (compression, zstd):
9567     - When running with zstd, Tor now considers using advanced functions
9568       that the zstd maintainers have labeled as potentially unstable. To
9569       prevent breakage, Tor will only use this functionality when the
9570       runtime version of the zstd library matches the version with which
9571       Tor was compiled. Closes ticket 25162.
9573   o Minor features (configuration):
9574     - The "DownloadSchedule" options have been renamed to end with
9575       "DownloadInitialDelay". The old names are still allowed, but will
9576       produce a warning. Comma-separated lists are still permitted for
9577       these options, but all values after the first are ignored (as they
9578       have been since 0.2.9). Closes ticket 23354.
9580   o Minor features (continuous integration):
9581     - Our .travis.yml configuration now includes support for testing the
9582       results of "make distcheck". (It's not uncommon for "make check"
9583       to pass but "make distcheck" to fail.) Closes ticket 25814.
9584     - Our Travis CI configuration now integrates with the Coveralls
9585       coverage analysis tool. Closes ticket 25818.
9587   o Minor features (control port):
9588     - Introduce GETINFO "current-time/{local,utc}" to return the local
9589       and UTC times respectively in ISO format. This helps a controller
9590       like Tor Browser detect a time-related error. Closes ticket 25511.
9591       Patch by Neel Chauhan.
9592     - Introduce new fields to the CIRC_BW event. There are two new
9593       fields in each of the read and written directions. The DELIVERED
9594       fields report the total valid data on the circuit, as measured by
9595       the payload sizes of verified and error-checked relay command
9596       cells. The OVERHEAD fields report the total unused bytes in each
9597       of these cells. Closes ticket 25903.
9599   o Minor features (directory authority):
9600     - Directory authorities now open their key-pinning files as O_SYNC,
9601       to limit their chances of accidentally writing partial lines.
9602       Closes ticket 23909.
9604   o Minor features (directory authority, forward compatibility):
9605     - Make the lines of the measured bandwidth file able to contain
9606       their entries in any order. Previously, the node_id entry needed
9607       to come first. Closes ticket 26004.
9609   o Minor features (entry guards):
9610     - Introduce a new torrc option NumPrimaryGuards for controlling the
9611       number of primary guards. Closes ticket 25843.
9613   o Minor features (geoip):
9614     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
9615       database. Closes ticket 26104.
9617   o Minor features (performance):
9618     - Avoid a needless call to malloc() when processing an incoming
9619       relay cell. Closes ticket 24914.
9620     - Make our timing-wheel code run a tiny bit faster on 32-bit
9621       platforms, by preferring 32-bit math to 64-bit. Closes
9622       ticket 24688.
9623     - Avoid a needless malloc()/free() pair every time we handle an ntor
9624       handshake. Closes ticket 25150.
9626   o Minor features (testing):
9627     - Add a unit test for voting_schedule_get_start_of_next_interval().
9628       Closes ticket 26014, and helps make unit test coverage
9629       more deterministic.
9630     - A new unittests module specifically for testing the functions in
9631       the (new-ish) bridges.c module has been created with new
9632       unittests, raising the code coverage percentages. Closes 25425.
9633     - We now have improved testing for addressmap_get_virtual_address()
9634       function. This should improve our test coverage, and make our test
9635       coverage more deterministic. Closes ticket 25993.
9637   o Minor features (timekeeping, circuit scheduling):
9638     - When keeping track of how busy each circuit have been recently on
9639       a given connection, use coarse-grained monotonic timers rather
9640       than gettimeofday(). This change should marginally increase
9641       accuracy and performance. Implements part of ticket 25927.
9643   o Minor bugfixes (bandwidth management):
9644     - Consider ourselves "low on write bandwidth" if we have exhausted
9645       our write bandwidth some time in the last second. This was the
9646       documented behavior before, but the actual behavior was to change
9647       this value every TokenBucketRefillInterval. Fixes bug 25828;
9648       bugfix on 0.2.3.5-alpha.
9650   o Minor bugfixes (C correctness):
9651     - Add a missing lock acquisition in the shutdown code of the control
9652       subsystem. Fixes bug 25675; bugfix on 0.2.7.3-rc. Found by
9653       Coverity; this is CID 1433643.
9655   o Minor bugfixes (circuit path selection):
9656     - Don't count path selection failures as circuit build failures.
9657       This change should eliminate cases where Tor blames its guard or
9658       the network for situations like insufficient microdescriptors
9659       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
9660       on 0.3.3.1-alpha.
9662   o Minor bugfixes (client):
9663     - Don't consider Tor running as a client if the ControlPort is open,
9664       but no actual client ports are open. Fixes bug 26062; bugfix
9665       on 0.2.9.4-alpha.
9667   o Minor bugfixes (code style):
9668     - Fixed multiple includes of transports.h in src/or/connection.c
9669       Fixes bug 25261; bugfix on 0.2.5.1-alpha.
9670     - Remove the unused variable n_possible from the function
9671       channel_get_for_extend(). Fixes bug 25645; bugfix on 0.2.4.4-alpha
9673   o Minor bugfixes (control interface):
9674     - Respond with more human-readable error messages to GETINFO exit-
9675       policy/* requests. Also, let controller know if an error is
9676       transient (response code 551) or not (response code 552). Fixes
9677       bug 25852; bugfix on 0.2.8.1-alpha.
9679   o Minor bugfixes (controller):
9680     - Make CIRC_BW event reflect the total of all data sent on a
9681       circuit, including padding and dropped cells. Also fix a mis-
9682       counting bug when STREAM_BW events were enabled. Fixes bug 25400;
9683       bugfix on 0.2.5.2-alpha.
9685   o Minor bugfixes (correctness, client):
9686     - Upon receiving a malformed connected cell, stop processing the cell
9687       immediately.  Previously we would mark the connection for close, but
9688       continue processing the cell as if the connection were open. Fixes bug
9689       26072; bugfix on 0.2.4.7-alpha.
9691   o Minor bugfixes (directory client):
9692     - When unverified-consensus is verified, rename it to cached-
9693       consenus. Fixes bug 4187; bugfix on 0.2.0.3-alpha.
9694     - Fixed launching a certificate fetch always during the scheduled
9695       periodic consensus fetch by fetching only in those cases when
9696       consensus are waiting for certs. Fixes bug 24740; bugfix
9697       on 0.2.9.1-alpha.
9699   o Minor bugfixes (documentation):
9700     - Stop saying in the manual that clients cache ipv4 dns answers from
9701       exit relays. We haven't used them since 0.2.6.3-alpha, and in
9702       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
9703       we forgot to say so in the man page. Fixes bug 26052; bugfix
9704       on 0.3.2.6-alpha.
9706   o Minor bugfixes (error reporting):
9707     - Improve tolerance for directory authorities with skewed clocks.
9708       Previously, an authority with a clock more than 60 seconds ahead
9709       could cause a client with a correct clock to warn that the
9710       client's clock was behind. Now the clocks of a majority of
9711       directory authorities have to be ahead of the client before this
9712       warning will occur. Fixes bug 25756; bugfix on 0.2.2.25-alpha.
9714   o Minor bugfixes (Linux seccomp2 sandbox):
9715     - Allow the nanosleep() system call, which glibc uses to implement
9716       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
9718   o Minor bugfixes (onion service):
9719     - Fix a memory leak when a v3 onion service is configured and gets a
9720       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
9721     - When parsing the descriptor signature, look for the token plus an
9722       extra white-space at the end. This is more correct but also will
9723       allow us to support new fields that might start with "signature".
9724       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
9726   o Minor bugfixes (path selection):
9727     - Only select relays when they have the descriptors we prefer to use
9728       for them. This change fixes a bug where we could select a relay
9729       because it had _some_ descriptor, but reject it later with a
9730       nonfatal assertion error because it didn't have the exact one we
9731       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
9733   o Minor bugfixes (portability):
9734     - Do not align mmap length, as it is not required by POSIX, and the
9735       getpagesize function is deprecated. Fixes bug 25399; bugfix
9736       on 0.1.1.23.
9738   o Minor bugfixes (portability, FreeBSD):
9739     - In have_enough_mem_for_dircache(), the variable DIRCACHE_MIN_MEM_MB
9740       does not stringify on FreeBSD, so we switch to tor_asprintf().
9741       Fixes bug 20887; bugfix on 0.2.8.1-alpha. Patch by Neel Chauhan.
9743   o Minor bugfixes (relay statistics):
9744     - When a relay is collecting internal statistics about how many
9745       create cell requests it has seen of each type, accurately count
9746       the requests from relays that temporarily fall out of the
9747       consensus. (To be extra conservative, we were already ignoring
9748       requests from clients in our counts, and we continue ignoring them
9749       here.) Fixes bug 24910; bugfix on 0.2.4.17-rc.
9751   o Minor bugfixes (relay, crash):
9752     - Avoid a crash when running with DirPort set but ORPort turned off.
9753       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
9755   o Minor bugfixes (restart-in-process):
9756     - When shutting down, Tor now clears all the flags in the control.c
9757       module. This should prevent a bug where authentication cookies are
9758       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
9760   o Minor bugfixes (testing):
9761     - When testing workqueue event-cancellation, make sure that we
9762       actually cancel an event, and that cancel each event with equal
9763       probability. (It was previously possible, though extremely
9764       unlikely, for our event-canceling test not to cancel any events.)
9765       Fixes bug 26008; bugfix on 0.2.6.3-alpha.
9766     - Repeat part of the test in test_client_pick_intro() a number of
9767       times, to give it consistent coverage. Fixes bug 25996; bugfix
9768       on 0.3.2.1-alpha.
9769     - Remove randomness from the hs_common/responsible_hsdirs test, so
9770       that it always takes the same path through the function it tests.
9771       Fixes bug 25997; bugfix on 0.3.2.1-alpha.
9772     - Change the behavior of the "channel/outbound" test so that it
9773       never causes a 10-second rollover for the EWMA circuitmux code.
9774       Previously, this behavior would happen randomly, and result in
9775       fluctuating test coverage. Fixes bug 25994; bugfix
9776       on 0.3.3.1-alpha.
9777     - Use X509_new() to allocate certificates that will be freed later
9778       with X509_free(). Previously, some parts of the unit tests had
9779       used tor_malloc_zero(), which is incorrect, and which caused test
9780       failures on Windows when they were built with extra hardening.
9781       Fixes bugs 25943 and 25944; bugfix on 0.2.8.1-alpha. Patch by
9782       Marcin Cieślak.
9783     - While running the circuit_timeout test, fix the PRNG to a
9784       deterministic AES stream, so that the test coverage from this test
9785       will itself be deterministic. Fixes bug 25995; bugfix
9786       on 0.2.2.2-alpha.
9788   o Minor bugfixes (vanguards):
9789     - Allow the last hop in a vanguard circuit to be the same as our
9790       first, to prevent the adversary from influencing guard node choice
9791       by choice of last hop. Also prevent the creation of A - B - A
9792       paths, or A - A paths, which are forbidden by relays. Fixes bug
9793       25870; bugfix on 0.3.3.1-alpha.
9795   o Code simplification and refactoring:
9796     - Remove duplicate code in parse_{c,s}method_line and bootstrap
9797       their functionalities into a single function. Fixes bug 6236;
9798       bugfix on 0.2.3.6-alpha.
9799     - We remove the PortForwarding and PortForwardingHelper options,
9800       related functions, and the port_forwarding tests. These options
9801       were used by the now-deprecated Vidalia to help ordinary users
9802       become Tor relays or bridges. Closes ticket 25409. Patch by
9803       Neel Chauhan.
9804     - In order to make the OR and dir checking function in router.c less
9805       confusing we renamed some functions and
9806       consider_testing_reachability() has been split into
9807       router_should_check_reachability() and
9808       router_do_reachability_checks(). Also we improved the documentation
9809       in some functions. Closes ticket 18918.
9810     - Initial work to isolate Libevent usage to a handful of modules in
9811       our codebase, to simplify our call structure, and so that we can
9812       more easily change event loops in the future if needed. Closes
9813       ticket 23750.
9814     - Introduce a function to call getsockname() and return tor_addr_t,
9815       to save a little complexity throughout the codebase. Closes
9816       ticket 18105.
9817     - Make hsdir_index in node_t a hsdir_index_t rather than a pointer
9818       as hsdir_index is always present. Also, we move hsdir_index_t into
9819       or.h. Closes ticket 23094. Patch by Neel Chauhan.
9820     - Merge functions used for describing nodes and suppress the
9821       functions that do not allocate memory for the output buffer
9822       string. NODE_DESC_BUF_LEN constant and format_node_description()
9823       function cannot be used externally from router.c module anymore.
9824       Closes ticket 25432. Patch by valentecaio.
9825     - Our main loop has been simplified so that all important operations
9826       happen inside events. Previously, some operations had to happen
9827       outside the event loop, to prevent infinite sequences of event
9828       activations. Closes ticket 25374.
9829     - Put a SHA1 public key digest in hs_service_intro_point_t, and use
9830       it in register_intro_circ() and service_intro_point_new(). This
9831       prevents the digest from being re-calculated each time. Closes
9832       ticket 23107. Patch by Neel Chauhan.
9833     - Refactor token-bucket implementations to use a common backend.
9834       Closes ticket 25766.
9835     - Remove extern declaration of stats_n_seconds_working variable from
9836       main, protecting its accesses with get_uptime() and reset_uptime()
9837       functions. Closes ticket 25081, patch by “valentecaio”.
9838     - Remove our previous logic for "cached gettimeofday()" -- our
9839       coarse monotonic timers are fast enough for this purpose, and far
9840       less error-prone. Implements part of ticket 25927.
9841     - Remove the return value for fascist_firewall_choose_address_base(),
9842       and sister functions such as fascist_firewall_choose_address_node()
9843       and fascist_firewall_choose_address_rs(). Also, while we're here,
9844       initialize the ap argument as leaving it uninitialized can pose a
9845       security hazard. Closes ticket 24734. Patch by Neel Chauhan.
9846     - Rename two fields of connection_t struct. timestamp_lastwritten is
9847       renamed to timestamp_last_write_allowed and timestamp_lastread is
9848       renamed to timestamp_last_read_allowed. Closes ticket 24714, patch
9849       by "valentecaio".
9850     - Since Tor requires C99, remove our old workaround code for libc
9851       implementations where free(NULL) doesn't work. Closes ticket 24484.
9852     - Use our standard rate-limiting code to deal with excessive
9853       libevent failures, rather than the hand-rolled logic we had
9854       before. Closes ticket 26016.
9855     - We remove the return value of node_get_prim_orport() and
9856       node_get_prim_dirport(), and introduce node_get_prim_orport() in
9857       node_ipv6_or_preferred() and node_ipv6_dir_preferred() in order to
9858       check for a null address. Closes ticket 23873. Patch by
9859       Neel Chauhan.
9860     - We switch to should_record_bridge_info() in
9861       geoip_note_client_seen() and options_need_geoip_info() instead of
9862       accessing the configuration values directly. Fixes bug 25290;
9863       bugfix on 0.2.1.6-alpha. Patch by Neel Chauhan.
9865   o Deprecated features:
9866     - As we are not recommending 0.2.5 anymore, we require relays that
9867       once had an ed25519 key associated with their RSA key to always
9868       have that key, instead of allowing them to drop back to a version
9869       that didn't support ed25519. This means they need to use a new RSA
9870       key if they want to downgrade to an older version of tor without
9871       ed25519. Closes ticket 20522.
9873   o Documentation:
9874     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
9875       ticket 25857. Patch from "CTassisF".
9877   o Removed features:
9878     - Directory authorities will no longer support voting according to
9879       any consensus method before consensus method 25. This keeps
9880       authorities compatible with all authorities running 0.2.9.8 and
9881       later, and does not break any clients or relays. Implements ticket
9882       24378 and proposal 290.
9883     - The PortForwarding and PortForwardingHelper features have been
9884       removed. The reasoning is, given that implementations of NAT
9885       traversal protocols within common consumer grade routers are
9886       frequently buggy, and that the target audience for a NAT punching
9887       feature is a perhaps less-technically-inclined relay operator,
9888       when the helper fails to setup traversal the problems are usually
9889       deep, ugly, and very router specific, making them horrendously
9890       impossible for technical support to reliable assist with, and thus
9891       resulting in frustration all around. Unfortunately, relay
9892       operators who would like to run relays behind NATs will need to
9893       become more familiar with the port forwarding configurations on
9894       their local router. Closes 25409.
9895     - The TestingEnableTbEmptyEvent option has been removed. It was used
9896       in testing simulations to measure how often connection buckets
9897       were emptied, in order to improve our scheduling, but it has not
9898       been actively used in years. Closes ticket 25760.
9899     - The old "round-robin" circuit multiplexer (circuitmux)
9900       implementation has been removed, along with a fairly large set of
9901       code that existed to support it. It has not been the default
9902       circuitmux since we introduced the "EWMA" circuitmux in 0.2.4.x,
9903       but it still required an unreasonable amount of memory and CPU.
9904       Closes ticket 25268.
9907 Changes in version 0.3.3.5-rc - 2018-04-15
9908   Tor 0.3.3.5-rc fixes various bugs in earlier versions of Tor,
9909   including some that could affect reliability or correctness.
9911   This is the first release candidate in the 0.3.3 series. If we find no
9912   new bugs or regression here, then the first stable 0.3.3 release will
9913   be nearly identical to this one.
9915   o Major bugfixes (security, protover, voting):
9916     - Revise Rust implementation of protover to use a more memory-
9917       efficient voting algorithm and corresponding data structures, thus
9918       avoiding a potential memory-based DoS attack where specially
9919       crafted protocol strings would expand to fill available memory.
9920       Fixes bug 24031; bugfix on 0.3.3.1-alpha.
9922   o Major bugfixes (performance, load balancing):
9923     - Directory authorities no longer vote in favor of the Guard flag
9924       for relays without directory support. Starting in Tor
9925       0.3.0.1-alpha, clients have been avoiding using such relays in the
9926       Guard position, leading to increasingly broken load balancing for
9927       the 5%-or-so of Guards that don't advertise directory support.
9928       Fixes bug 22310; bugfix on 0.3.0.6.
9930   o Minor feature (continuous integration):
9931     - Update the Travis CI configuration to use the stable Rust channel,
9932       now that we have decided to require that. Closes ticket 25714.
9934   o Minor features (config options):
9935     - Change the way the default value for MaxMemInQueues is calculated.
9936       We now use 40% of the hardware RAM if the system has 8 GB RAM or
9937       more. Otherwise we use the former value of 75%. Closes
9938       ticket 24782.
9940   o Minor features (geoip):
9941     - Update geoip and geoip6 to the April 3 2018 Maxmind GeoLite2
9942       Country database. Closes ticket 25718.
9944   o Minor bugfixes (client):
9945     - When using a listed relay as a bridge, and also using
9946       microdescriptors, and considering that relay as a non-bridge in a
9947       circuit, treat its microdescriptor as a valid source of
9948       information about that relay. This change should prevent a non-
9949       fatal assertion error. Fixes bug 25691; bugfix on 0.3.3.4-alpha.
9951   o Minor bugfixes (controller):
9952     - Restore the correct operation of the RESOLVE command, which had
9953       been broken since we added the ability to enable/disable DNS on
9954       specific listener ports. Fixes bug 25617; bugfix on 0.2.9.3-alpha.
9956   o Minor bugfixes (distribution, compilation, rust):
9957     - Build correctly when the rust dependencies submodule is loaded,
9958       but the TOR_RUST_DEPENDENCIES environment variable is not set.
9959       Fixes bug 25679; bugfix on 0.3.3.1-alpha.
9960     - Actually include all of our Rust source in our source
9961       distributions. (Previously, a few of the files were accidentally
9962       omitted.) Fixes bug 25732; bugfix on 0.3.3.2-alpha.
9964   o Minor bugfixes (documentation):
9965     - Document that the PerConnBW{Rate,Burst} options will fall back to
9966       their corresponding consensus parameters only if those parameters
9967       are set. Previously we had claimed that these values would always
9968       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
9969     - Revert a misformatting issue in the ExitPolicy documentation.
9970       Fixes bug 25582; bugfix on 0.3.3.1-alpha.
9972   o Minor bugfixes (exit relay DNS retries):
9973     - Re-attempt timed-out DNS queries 3 times before failure, since our
9974       timeout is 5 seconds for them, but clients wait 10-15. Also allow
9975       slightly more timeouts per resolver when an exit has multiple
9976       resolvers configured. Fixes bug 21394; bugfix on 0.3.1.9.
9978   o Minor bugfixes (onion services):
9979     - Re-instate counting the client HSDir fetch circuits against the
9980       MaxClientCircuitsPending rate limit. Fixes bug 24989; bugfix
9981       on 0.3.3.1-alpha.
9982     - Remove underscores from the _HSLayer{2,3}Nodes options. This
9983       expert-user configuration can now be enabled as HSLayer{2,3}Nodes.
9984       Fixes bug 25581; bugfix on 0.3.3.1-alpha
9986   o Code simplification and refactoring:
9987     - Move the list of default directory authorities to its own file.
9988       Closes ticket 24854. Patch by "beastr0".
9990   o Documentation (manpage, denial of service):
9991     - Provide more detail about the denial-of-service options, by
9992       listing each mitigation and explaining how they relate. Closes
9993       ticket 25248.
9996 Changes in version 0.3.3.4-alpha - 2018-03-29
9997   Tor 0.3.3.4-alpha includes various bugfixes for issues found during
9998   the alpha testing of earlier releases in its series. We are
9999   approaching a stable 0.3.3.4-alpha release: more testing is welcome!
10001   o New system requirements:
10002     - When built with Rust, Tor now depends on version 0.2.39 of the
10003       libc crate. Closes tickets 25310 and 25664.
10005   o Major bugfixes (relay, connection):
10006     - If we have failed to connect to a relay and received a connection
10007       refused, timeout, or similar error (at the TCP level), do not try
10008       that same address/port again for 60 seconds after the failure has
10009       occurred. Fixes bug 24767; bugfix on 0.0.6.
10011   o Minor features (geoip):
10012     - Update geoip and geoip6 to the March 8 2018 Maxmind GeoLite2
10013       Country database. Closes ticket 25469.
10015   o Minor features (log messages):
10016     - Improve log message in the out-of-memory handler to include
10017       information about memory usage from the different compression
10018       backends. Closes ticket 25372.
10020   o Minor features (sandbox):
10021     - Explicitly permit the poll() system call when the Linux
10022       seccomp2-based sandbox is enabled: apparently, some versions of
10023       libc use poll() when calling getpwnam(). Closes ticket 25313.
10025   o Minor bugfixes (C correctness):
10026     - Fix a very unlikely (impossible, we believe) null pointer
10027       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
10028       Coverity; this is CID 1430932.
10030   o Minor bugfixes (channel, client):
10031     - Better identify client connection when reporting to the geoip
10032       client cache. Fixes bug 24904; bugfix on 0.3.1.7.
10034   o Minor bugfixes (compilation):
10035     - Fix a C99 compliance issue in our configuration script that caused
10036       compilation issues when compiling Tor with certain versions of
10037       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
10039   o Minor bugfixes (controller, reliability):
10040     - Avoid a (nonfatal) assertion failure when extending a one-hop
10041       circuit from the controller to become a multihop circuit. Fixes
10042       bug 24903; bugfix on 0.2.5.2-alpha.
10044   o Major bugfixes (networking):
10045     - Tor will no longer reject IPv6 address strings from Tor Browser
10046       when they are passed as hostnames in SOCKS5 requests. Fixes bug
10047       25036, bugfix on Tor 0.3.1.2.
10049   o Minor bugfixes (networking):
10050     - string_is_valid_hostname() will not consider IP strings to be
10051       valid hostnames. Fixes bug 25055; bugfix on Tor 0.2.5.5.
10053   o Minor bugfixes (onion service v3):
10054     - Avoid an assertion failure when the next onion service
10055       descriptor rotation type is out of sync with the consensus's
10056       valid-after time. Instead, log a warning message with extra
10057       information, so we can better hunt down the cause of this
10058       assertion. Fixes bug 25306; bugfix on 0.3.2.1-alpha.
10060   o Minor bugfixes (testing):
10061     - Avoid intermittent test failures due to a test that had relied on
10062       onion service introduction point creation finishing within 5
10063       seconds of real clock time. Fixes bug 25450; bugfix
10064       on 0.3.1.3-alpha.
10065     - Rust crates are now automatically detected and tested. Previously,
10066       some crates were not tested by `make test-rust` due to a static
10067       string in the `src/test/test_rust.sh` script specifying which
10068       crates to test. Fixes bug 25560; bugfix on 0.3.3.3-alpha.
10070   o Minor bugfixes (testing, benchmarks):
10071     - Fix a crash when running benchmark tests on win32 systems. The
10072       crash was due to a mutex that wasn't initialized before logging
10073       and options were initialized. Fixes bug 25479; bugfix
10074       on 0.3.3.3-alpha.
10076   o Minor bugfixes (warnings, ipv6):
10077     - Avoid a bug warning that could occur when trying to connect to a
10078       relay over IPv6. This warning would occur on a Tor instance that
10079       downloads router descriptors, but prefers to use microdescriptors.
10080       Fixes bug 25213; bugfix on 0.3.3.1-alpha.
10082   o Code simplification and refactoring:
10083     - Remove the old (deterministic) directory retry logic entirely:
10084       We've used exponential backoff exclusively for some time. Closes
10085       ticket 23814.
10087   o Documentation:
10088     - Improved the documentation of AccountingStart parameter. Closes
10089       ticket 23635.
10090     - Update the documentation for "Log" to include the current list of
10091       logging domains. Closes ticket 25378.
10094 Changes in version 0.3.1.10 - 2018-03-03
10095   Tor 0.3.1.10 backports a number of bugfixes, including important fixes for
10096   security issues.
10098   It includes an important security fix for a remote crash attack
10099   against directory authorities, tracked as TROVE-2018-001.
10101   This release also backports our new system for improved resistance to
10102   denial-of-service attacks against relays.
10104   This release also fixes several minor bugs and annoyances from
10105   earlier releases.
10107   All directory authorities should upgrade to one of the versions
10108   released today. Relays running 0.3.1.x may wish to update to one of
10109   the versions released today, for the DoS mitigations.
10111   Please note: according to our release calendar, Tor 0.3.1 will no
10112   longer be supported after 1 July 2018. If you will be running Tor
10113   after that date, you should make sure to plan to upgrade to the latest
10114   stable version, or downgrade to 0.2.9 (which will receive long-term
10115   support).
10117   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
10118     - Fix a protocol-list handling bug that could be used to remotely crash
10119       directory authorities with a null-pointer exception. Fixes bug 25074;
10120       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10121       CVE-2018-0490.
10123   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
10124     - Give relays some defenses against the recent network overload. We
10125       start with three defenses (default parameters in parentheses).
10126       First: if a single client address makes too many concurrent
10127       connections (>100), hang up on further connections. Second: if a
10128       single client address makes circuits too quickly (more than 3 per
10129       second, with an allowed burst of 90) while also having too many
10130       connections open (3), refuse new create cells for the next while
10131       (1-2 hours). Third: if a client asks to establish a rendezvous
10132       point to you directly, ignore the request. These defenses can be
10133       manually controlled by new torrc options, but relays will also
10134       take guidance from consensus parameters, so there's no need to
10135       configure anything manually. Implements ticket 24902.
10137   o Minor features (linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
10138     - Update the sandbox rules so that they should now work correctly
10139       with Glibc 2.26. Closes ticket 24315.
10141   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
10142     - Fix an "off by 2" error in counting rendezvous failures on the
10143       onion service side. While we thought we would stop the rendezvous
10144       attempt after one failed circuit, we were actually making three
10145       circuit attempts before giving up. Now switch to a default of 2,
10146       and allow the consensus parameter "hs_service_max_rdv_failures" to
10147       override. Fixes bug 24895; bugfix on 0.0.6.
10149   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
10150     - Add Link protocol version 5 to the supported protocols list. Fixes
10151       bug 25070; bugfix on 0.3.1.1-alpha.
10153   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
10154     - Fix a set of false positives where relays would consider
10155       connections to other relays as being client-only connections (and
10156       thus e.g. deserving different link padding schemes) if those
10157       relays fell out of the consensus briefly. Now we look only at the
10158       initial handshake and whether the connection authenticated as a
10159       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
10161   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
10162     - Make our OOM handler aware of the geoip client history cache so it
10163       doesn't fill up the memory. This check is important for IPv6 and
10164       our DoS mitigation subsystem. Closes ticket 25122.
10166   o Minor feature (relay statistics, backport from 0.3.2.6-alpha):
10167     - Change relay bandwidth reporting stats interval from 4 hours to 24
10168       hours in order to reduce the efficiency of guard discovery
10169       attacks. Fixes ticket 23856.
10171   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
10172     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
10173       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
10174       since they neither disabled TLS 1.3 nor enabled any of the
10175       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
10176       Closes ticket 24978.
10178   o Minor features (fallback directory mirrors, backport from 0.3.2.9):
10179     - The fallback directory list has been re-generated based on the
10180       current status of the network. Tor uses fallback directories to
10181       bootstrap when it doesn't yet have up-to-date directory
10182       information. Closes ticket 24801.
10183     - Make the default DirAuthorityFallbackRate 0.1, so that clients
10184       prefer to bootstrap from fallback directory mirrors. This is a
10185       follow-up to 24679, which removed weights from the default
10186       fallbacks. Implements ticket 24681.
10188   o Minor features (geoip):
10189     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10190       Country database.
10192   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
10193     - Use the actual observed address of an incoming relay connection,
10194       not the canonical address of the relay from its descriptor, when
10195       making decisions about how to handle the incoming connection.
10196       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10198   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
10199     - Directory authorities, when refusing a descriptor from a rejected
10200       relay, now explicitly tell the relay (in its logs) to set a valid
10201       ContactInfo address and contact the bad-relays@ mailing list.
10202       Fixes bug 25170; bugfix on 0.2.9.1.
10204   o Minor bugfixes (address selection, backport from 0.3.2.9):
10205     - When the fascist_firewall_choose_address_ functions don't find a
10206       reachable address, set the returned address to the null address
10207       and port. This is a precautionary measure, because some callers do
10208       not check the return value. Fixes bug 24736; bugfix
10209       on 0.2.8.2-alpha.
10211   o Major bugfixes (bootstrapping, backport from 0.3.2.5-alpha):
10212     - Fetch descriptors aggressively whenever we lack enough to build
10213       circuits, regardless of how many descriptors we are missing.
10214       Previously, we would delay launching the fetch when we had fewer
10215       than 15 missing descriptors, even if some of those descriptors
10216       were blocking circuits from building. Fixes bug 23985; bugfix on
10217       0.1.1.11-alpha. The effects of this bug became worse in
10218       0.3.0.3-alpha, when we began treating missing descriptors from our
10219       primary guards as a reason to delay circuits.
10220     - Don't try fetching microdescriptors from relays that have failed
10221       to deliver them in the past. Fixes bug 23817; bugfix
10222       on 0.3.0.1-alpha.
10224   o Minor bugfixes (compilation, backport from 0.3.2.7-rc):
10225     - Fix a signed/unsigned comparison warning introduced by our fix to
10226       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
10228   o Minor bugfixes (control port, linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
10229     - Avoid a crash when attempting to use the seccomp2 sandbox together
10230       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
10231       on 0.2.5.1-alpha.
10233   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
10234     - Fix a possible crash on malformed consensus. If a consensus had
10235       contained an unparseable protocol line, it could have made clients
10236       and relays crash with a null-pointer exception. To exploit this
10237       issue, however, an attacker would need to be able to subvert the
10238       directory authority system. Fixes bug 25251; bugfix on
10239       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10241   o Minor bugfixes (directory cache, backport from 0.3.2.5-alpha):
10242     - Recover better from empty or corrupt files in the consensus cache
10243       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
10244     - When a consensus diff calculation is only partially successful,
10245       only record the successful parts as having succeeded. Partial
10246       success can happen if (for example) one compression method fails
10247       but the others succeed. Previously we misrecorded all the
10248       calculations as having succeeded, which would later cause a
10249       nonfatal assertion failure. Fixes bug 24086; bugfix
10250       on 0.3.1.1-alpha.
10252   o Minor bugfixes (entry guards, backport from 0.3.2.3-alpha):
10253     - Tor now updates its guard state when it reads a consensus
10254       regardless of whether it's missing descriptors. That makes tor use
10255       its primary guards to fetch descriptors in some edge cases where
10256       it would previously have used fallback directories. Fixes bug
10257       23862; bugfix on 0.3.0.1-alpha.
10259   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
10260     - Don't treat inability to store a cached consensus object as a bug:
10261       it can happen normally when we are out of disk space. Fixes bug
10262       24859; bugfix on 0.3.1.1-alpha.
10264   o Minor bugfixes (memory usage, backport from 0.3.2.8-rc):
10265     - When queuing DESTROY cells on a channel, only queue the circuit-id
10266       and reason fields: not the entire 514-byte cell. This fix should
10267       help mitigate any bugs or attacks that fill up these queues, and
10268       free more RAM for other uses. Fixes bug 24666; bugfix
10269       on 0.2.5.1-alpha.
10271   o Minor bugfixes (network layer, backport from 0.3.2.5-alpha):
10272     - When closing a connection via close_connection_immediately(), we
10273       mark it as "not blocked on bandwidth", to prevent later calls from
10274       trying to unblock it, and give it permission to read. This fixes a
10275       backtrace warning that can happen on relays under various
10276       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
10278   o Minor bugfixes (path selection, backport from 0.3.2.4-alpha):
10279     - When selecting relays by bandwidth, avoid a rounding error that
10280       could sometimes cause load to be imbalanced incorrectly.
10281       Previously, we would always round upwards; now, we round towards
10282       the nearest integer. This had the biggest effect when a relay's
10283       weight adjustments should have given it weight 0, but it got
10284       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
10285     - When calculating the fraction of nodes that have descriptors, and
10286       all nodes in the network have zero bandwidths, count the number of
10287       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
10288     - Actually log the total bandwidth in compute_weighted_bandwidths().
10289       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
10291   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
10292     - Improve the performance of our consensus-diff application code
10293       when Tor is built with the --enable-fragile-hardening option set.
10294       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
10296   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
10297     - Don't exit the Tor process if setrlimit() fails to change the file
10298       limit (which can happen sometimes on some versions of OSX). Fixes
10299       bug 21074; bugfix on 0.0.9pre5.
10301   o Minor bugfixes (portability, msvc, backport from 0.3.2.9):
10302     - Fix a bug in the bit-counting parts of our timing-wheel code on
10303       MSVC. (Note that MSVC is still not a supported build platform, due
10304       to cyptographic timing channel risks.) Fixes bug 24633; bugfix
10305       on 0.2.9.1-alpha.
10307   o Minor bugfixes (relay, partial backport):
10308     - Make the internal channel_is_client() function look at what sort
10309       of connection handshake the other side used, rather than whether
10310       the other side ever sent a create_fast cell to us. Backports part
10311       of the fixes from bugs 22805 and 24898.
10313   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
10314     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10315       0.2.9.4-alpha.
10316     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10317       bugfix on 0.2.9.4-alpha.
10319   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
10320     - Update the "rust dependencies" submodule to be a project-level
10321       repository, rather than a user repository. Closes ticket 25323.
10324 Changes in version 0.2.9.15 - 2018-03-03
10325   Tor 0.2.9.15 backports important security and stability bugfixes from
10326   later Tor releases.
10328   It includes an important security fix for a remote crash attack
10329   against directory authorities, tracked as TROVE-2018-001.
10331   This release also backports our new system for improved resistance to
10332   denial-of-service attacks against relays.
10334   This release also fixes several minor bugs and annoyances from
10335   earlier releases.
10337   All directory authorities should upgrade to one of the versions
10338   released today. Relays running 0.2.9.x may wish to update to one of
10339   the versions released today, for the DoS mitigations.
10341   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
10342     - Fix a protocol-list handling bug that could be used to remotely crash
10343       directory authorities with a null-pointer exception. Fixes bug 25074;
10344       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10345       CVE-2018-0490.
10347   o Major features (denial-of-service mitigation):
10348     - Give relays some defenses against the recent network overload. We
10349       start with three defenses (default parameters in parentheses).
10350       First: if a single client address makes too many concurrent
10351       connections (>100), hang up on further connections. Second: if a
10352       single client address makes circuits too quickly (more than 3 per
10353       second, with an allowed burst of 90) while also having too many
10354       connections open (3), refuse new create cells for the next while
10355       (1-2 hours). Third: if a client asks to establish a rendezvous
10356       point to you directly, ignore the request. These defenses can be
10357       manually controlled by new torrc options, but relays will also
10358       take guidance from consensus parameters, so there's no need to
10359       configure anything manually. Implements ticket 24902.
10361   o Major bugfixes (bootstrapping):
10362     - Fetch descriptors aggressively whenever we lack enough to build
10363       circuits, regardless of how many descriptors we are missing.
10364       Previously, we would delay launching the fetch when we had fewer
10365       than 15 missing descriptors, even if some of those descriptors
10366       were blocking circuits from building. Fixes bug 23985; bugfix on
10367       0.1.1.11-alpha. The effects of this bug became worse in
10368       0.3.0.3-alpha, when we began treating missing descriptors from our
10369       primary guards as a reason to delay circuits.
10371   o Major bugfixes (onion services, retry behavior):
10372     - Fix an "off by 2" error in counting rendezvous failures on the
10373       onion service side. While we thought we would stop the rendezvous
10374       attempt after one failed circuit, we were actually making three
10375       circuit attempts before giving up. Now switch to a default of 2,
10376       and allow the consensus parameter "hs_service_max_rdv_failures" to
10377       override. Fixes bug 24895; bugfix on 0.0.6.
10379   o Minor feature (relay statistics):
10380     - Change relay bandwidth reporting stats interval from 4 hours to 24
10381       hours in order to reduce the efficiency of guard discovery
10382       attacks. Fixes ticket 23856.
10384   o Minor features (compatibility, OpenSSL):
10385     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
10386       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
10387       since they neither disabled TLS 1.3 nor enabled any of the
10388       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
10389       Closes ticket 24978.
10391   o Minor features (denial-of-service avoidance):
10392     - Make our OOM handler aware of the geoip client history cache so it
10393       doesn't fill up the memory. This check is important for IPv6 and
10394       our DoS mitigation subsystem. Closes ticket 25122.
10396   o Minor features (fallback directory mirrors):
10397     - The fallback directory list has been re-generated based on the
10398       current status of the network. Tor uses fallback directories to
10399       bootstrap when it doesn't yet have up-to-date directory
10400       information. Closes ticket 24801.
10401     - Make the default DirAuthorityFallbackRate 0.1, so that clients
10402       prefer to bootstrap from fallback directory mirrors. This is a
10403       follow-up to 24679, which removed weights from the default
10404       fallbacks. Implements ticket 24681.
10406   o Minor features (geoip):
10407     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10408       Country database.
10410   o Minor features (linux seccomp2 sandbox):
10411     - Update the sandbox rules so that they should now work correctly
10412       with Glibc 2.26. Closes ticket 24315.
10414   o Minor bugfix (channel connection):
10415     - Use the actual observed address of an incoming relay connection,
10416       not the canonical address of the relay from its descriptor, when
10417       making decisions about how to handle the incoming connection.
10418       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10420   o Minor bugfix (directory authority):
10421     - Directory authorities, when refusing a descriptor from a rejected
10422       relay, now explicitly tell the relay (in its logs) to set a valid
10423       ContactInfo address and contact the bad-relays@ mailing list.
10424       Fixes bug 25170; bugfix on 0.2.9.1.
10426   o Minor bugfixes (address selection):
10427     - When the fascist_firewall_choose_address_ functions don't find a
10428       reachable address, set the returned address to the null address
10429       and port. This is a precautionary measure, because some callers do
10430       not check the return value. Fixes bug 24736; bugfix
10431       on 0.2.8.2-alpha.
10433   o Minor bugfixes (compilation):
10434     - Fix a signed/unsigned comparison warning introduced by our fix to
10435       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
10437   o Minor bugfixes (control port, linux seccomp2 sandbox):
10438     - Avoid a crash when attempting to use the seccomp2 sandbox together
10439       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
10440       on 0.2.5.1-alpha.
10442   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
10443     - Fix a possible crash on malformed consensus. If a consensus had
10444       contained an unparseable protocol line, it could have made clients
10445       and relays crash with a null-pointer exception. To exploit this
10446       issue, however, an attacker would need to be able to subvert the
10447       directory authority system. Fixes bug 25251; bugfix on
10448       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10450   o Minor bugfixes (memory usage):
10451     - When queuing DESTROY cells on a channel, only queue the circuit-id
10452       and reason fields: not the entire 514-byte cell. This fix should
10453       help mitigate any bugs or attacks that fill up these queues, and
10454       free more RAM for other uses. Fixes bug 24666; bugfix
10455       on 0.2.5.1-alpha.
10457   o Minor bugfixes (network layer):
10458     - When closing a connection via close_connection_immediately(), we
10459       mark it as "not blocked on bandwidth", to prevent later calls from
10460       trying to unblock it, and give it permission to read. This fixes a
10461       backtrace warning that can happen on relays under various
10462       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
10464   o Minor bugfixes (OSX):
10465     - Don't exit the Tor process if setrlimit() fails to change the file
10466       limit (which can happen sometimes on some versions of OSX). Fixes
10467       bug 21074; bugfix on 0.0.9pre5.
10469   o Minor bugfixes (path selection):
10470     - When selecting relays by bandwidth, avoid a rounding error that
10471       could sometimes cause load to be imbalanced incorrectly.
10472       Previously, we would always round upwards; now, we round towards
10473       the nearest integer. This had the biggest effect when a relay's
10474       weight adjustments should have given it weight 0, but it got
10475       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
10476     - When calculating the fraction of nodes that have descriptors, and
10477       all nodes in the network have zero bandwidths, count the number of
10478       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
10479     - Actually log the total bandwidth in compute_weighted_bandwidths().
10480       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
10482   o Minor bugfixes (portability, msvc):
10483     - Fix a bug in the bit-counting parts of our timing-wheel code on
10484       MSVC. (Note that MSVC is still not a supported build platform, due
10485       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
10486       on 0.2.9.1-alpha.
10488   o Minor bugfixes (relay):
10489     - Make the internal channel_is_client() function look at what sort
10490       of connection handshake the other side used, rather than whether
10491       the other side ever sent a create_fast cell to us. Backports part
10492       of the fixes from bugs 22805 and 24898.
10494   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
10495     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10496       0.2.9.4-alpha.
10497     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10498       bugfix on 0.2.9.4-alpha.
10501 Changes in version 0.3.2.10 - 2018-03-03
10502   Tor 0.3.2.10 is the second stable release in the 0.3.2 series. It
10503   backports a number of bugfixes, including important fixes for security
10504   issues.
10506   It includes an important security fix for a remote crash attack
10507   against directory authorities, tracked as TROVE-2018-001.
10509   Additionally, it backports a fix for a bug whose severity we have
10510   upgraded: Bug 24700, which was fixed in 0.3.3.2-alpha, can be remotely
10511   triggered in order to crash relays with a use-after-free pattern. As
10512   such, we are now tracking that bug as TROVE-2018-002 and
10513   CVE-2018-0491, and backporting it to earlier releases. This bug
10514   affected versions 0.3.2.1-alpha through 0.3.2.9, as well as version
10515   0.3.3.1-alpha.
10517   This release also backports our new system for improved resistance to
10518   denial-of-service attacks against relays.
10520   This release also fixes several minor bugs and annoyances from
10521   earlier releases.
10523   Relays running 0.3.2.x SHOULD upgrade to one of the versions released
10524   today, for the fix to TROVE-2018-002. Directory authorities should
10525   also upgrade. (Relays on earlier versions might want to update too for
10526   the DoS mitigations.)
10528   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
10529     - Fix a protocol-list handling bug that could be used to remotely crash
10530       directory authorities with a null-pointer exception. Fixes bug 25074;
10531       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10532       CVE-2018-0490.
10534   o Major bugfixes (scheduler, KIST, denial-of-service, backport from 0.3.3.2-alpha):
10535     - Avoid adding the same channel twice in the KIST scheduler pending
10536       list, which could lead to remote denial-of-service use-after-free
10537       attacks against relays. Fixes bug 24700; bugfix on 0.3.2.1-alpha.
10539   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
10540     - Give relays some defenses against the recent network overload. We
10541       start with three defenses (default parameters in parentheses).
10542       First: if a single client address makes too many concurrent
10543       connections (>100), hang up on further connections. Second: if a
10544       single client address makes circuits too quickly (more than 3 per
10545       second, with an allowed burst of 90) while also having too many
10546       connections open (3), refuse new create cells for the next while
10547       (1-2 hours). Third: if a client asks to establish a rendezvous
10548       point to you directly, ignore the request. These defenses can be
10549       manually controlled by new torrc options, but relays will also
10550       take guidance from consensus parameters, so there's no need to
10551       configure anything manually. Implements ticket 24902.
10553   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
10554     - Fix an "off by 2" error in counting rendezvous failures on the
10555       onion service side. While we thought we would stop the rendezvous
10556       attempt after one failed circuit, we were actually making three
10557       circuit attempts before giving up. Now switch to a default of 2,
10558       and allow the consensus parameter "hs_service_max_rdv_failures" to
10559       override. Fixes bug 24895; bugfix on 0.0.6.
10560     - New-style (v3) onion services now obey the "max rendezvous circuit
10561       attempts" logic. Previously they would make as many rendezvous
10562       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
10563       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
10565   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
10566     - Add Link protocol version 5 to the supported protocols list. Fixes
10567       bug 25070; bugfix on 0.3.1.1-alpha.
10569   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
10570     - Fix a set of false positives where relays would consider
10571       connections to other relays as being client-only connections (and
10572       thus e.g. deserving different link padding schemes) if those
10573       relays fell out of the consensus briefly. Now we look only at the
10574       initial handshake and whether the connection authenticated as a
10575       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
10577   o Major bugfixes (scheduler, consensus, backport from 0.3.3.2-alpha):
10578     - The scheduler subsystem was failing to promptly notice changes in
10579       consensus parameters, making it harder to switch schedulers
10580       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
10582   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
10583     - Make our OOM handler aware of the geoip client history cache so it
10584       doesn't fill up the memory. This check is important for IPv6 and
10585       our DoS mitigation subsystem. Closes ticket 25122.
10587   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
10588     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
10589       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
10590       since they neither disabled TLS 1.3 nor enabled any of the
10591       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
10592       Closes ticket 24978.
10594   o Minor features (geoip):
10595     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10596       Country database.
10598   o Minor features (logging, diagnostic, backport from 0.3.3.2-alpha):
10599     - When logging a failure to create an onion service's descriptor,
10600       also log what the problem with the descriptor was. Diagnostic
10601       for ticket 24972.
10603   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
10604     - Use the actual observed address of an incoming relay connection,
10605       not the canonical address of the relay from its descriptor, when
10606       making decisions about how to handle the incoming connection.
10607       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10609   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
10610     - Fix a possible crash on malformed consensus. If a consensus had
10611       contained an unparseable protocol line, it could have made clients
10612       and relays crash with a null-pointer exception. To exploit this
10613       issue, however, an attacker would need to be able to subvert the
10614       directory authority system. Fixes bug 25251; bugfix on
10615       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10617   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
10618     - Directory authorities, when refusing a descriptor from a rejected
10619       relay, now explicitly tell the relay (in its logs) to set a valid
10620       ContactInfo address and contact the bad-relays@ mailing list.
10621       Fixes bug 25170; bugfix on 0.2.9.1.
10623   o Minor bugfixes (build, rust, backport from 0.3.3.1-alpha):
10624     - When building with Rust on OSX, link against libresolv, to work
10625       around the issue at https://github.com/rust-lang/rust/issues/46797.
10626       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
10628   o Minor bugfixes (onion services, backport from 0.3.3.2-alpha):
10629     - Remove a BUG() statement when a client fetches an onion descriptor
10630       that has a lower revision counter than the one in its cache. This
10631       can happen in normal circumstances due to HSDir desync. Fixes bug
10632       24976; bugfix on 0.3.2.1-alpha.
10634   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
10635     - Don't treat inability to store a cached consensus object as a bug:
10636       it can happen normally when we are out of disk space. Fixes bug
10637       24859; bugfix on 0.3.1.1-alpha.
10639   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
10640     - Improve the performance of our consensus-diff application code
10641       when Tor is built with the --enable-fragile-hardening option set.
10642       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
10644   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
10645     - Don't exit the Tor process if setrlimit() fails to change the file
10646       limit (which can happen sometimes on some versions of OSX). Fixes
10647       bug 21074; bugfix on 0.0.9pre5.
10649   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
10650     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10651       0.2.9.4-alpha.
10652     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10653       bugfix on 0.2.9.4-alpha.
10655   o Minor bugfixes (testing, backport from 0.3.3.1-alpha):
10656     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
10657       25005; bugfix on 0.3.2.7-rc.
10659   o Minor bugfixes (v3 onion services, backport from 0.3.3.2-alpha):
10660     - Look at the "HSRend" protocol version, not the "HSDir" protocol
10661       version, when deciding whether a consensus entry can support the
10662       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
10663       bugfix on 0.3.2.1-alpha.
10665   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
10666     - Update the "rust dependencies" submodule to be a project-level
10667       repository, rather than a user repository. Closes ticket 25323.
10669   o Documentation (backport from 0.3.3.1-alpha)
10670     - Document that operators who run more than one relay or bridge are
10671       expected to set MyFamily and ContactInfo correctly. Closes
10672       ticket 24526.
10675 Changes in version 0.3.3.3-alpha - 2018-03-03
10676   Tor 0.3.3.3-alpha is the third alpha release for the 0.3.3.x series.
10677   It includes an important security fix for a remote crash attack
10678   against directory authorities tracked as TROVE-2018-001.
10680   Additionally, with this release, we are upgrading the severity of a
10681   bug fixed in 0.3.3.2-alpha. Bug 24700, which was fixed in
10682   0.3.3.2-alpha, can be remotely triggered in order to crash relays with
10683   a use-after-free pattern. As such, we are now tracking that bug as
10684   TROVE-2018-002 and CVE-2018-0491. This bug affected versions
10685   0.3.2.1-alpha through 0.3.2.9, as well as 0.3.3.1-alpha.
10687   This release also fixes several minor bugs and annoyances from
10688   earlier releases.
10690   Relays running 0.3.2.x should upgrade to one of the versions released
10691   today, for the fix to TROVE-2018-002. Directory authorities should
10692   also upgrade. (Relays on earlier versions might want to update too for
10693   the DoS mitigations.)
10695   o Major bugfixes (denial-of-service, directory authority):
10696     - Fix a protocol-list handling bug that could be used to remotely crash
10697       directory authorities with a null-pointer exception. Fixes bug 25074;
10698       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
10699       CVE-2018-0490.
10701   o Minor features (compatibility, OpenSSL):
10702     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
10703       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
10704       since they neither disabled TLS 1.3 nor enabled any of the
10705       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
10706       Closes ticket 24978.
10708   o Minor features (logging):
10709     - Clarify the log messages produced when getrandom() or a related
10710       entropy-generation mechanism gives an error. Closes ticket 25120.
10712   o Minor features (testing):
10713     - Add a "make test-rust" target to run the rust tests only. Closes
10714       ticket 25071.
10716   o Minor bugfixes (denial-of-service):
10717     - Fix a possible crash on malformed consensus. If a consensus had
10718       contained an unparseable protocol line, it could have made clients
10719       and relays crash with a null-pointer exception. To exploit this
10720       issue, however, an attacker would need to be able to subvert the
10721       directory authority system. Fixes bug 25251; bugfix on
10722       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
10724   o Minor bugfixes (DoS mitigation):
10725     - Add extra safety checks when refilling the circuit creation bucket
10726       to ensure we never set a value above the allowed maximum burst.
10727       Fixes bug 25202; bugfix on 0.3.3.2-alpha.
10728     - When a new consensus arrives, don't update our DoS-mitigation
10729       parameters if we aren't a public relay. Fixes bug 25223; bugfix
10730       on 0.3.3.2-alpha.
10732   o Minor bugfixes (man page, SocksPort):
10733     - Remove dead code from the old "SocksSocket" option, and rename
10734       SocksSocketsGroupWritable to UnixSocksGroupWritable. The old option
10735       still works, but is deprecated. Fixes bug 24343; bugfix on 0.2.6.3.
10737   o Minor bugfixes (performance):
10738     - Reduce the number of circuits that will be opened at once during
10739       the circuit build timeout phase. This is done by increasing the
10740       idle timeout to 3 minutes, and lowering the maximum number of
10741       concurrent learning circuits to 10. Fixes bug 24769; bugfix
10742       on 0.3.1.1-alpha.
10744   o Minor bugfixes (spec conformance):
10745     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
10746       0.2.9.4-alpha.
10747     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
10748       bugfix on 0.2.9.4-alpha.
10750   o Minor bugfixes (spec conformance, rust):
10751     - Resolve a denial-of-service issue caused by an infinite loop in
10752       the rust protover code. Fixes bug 25250, bugfix on 0.3.3.1-alpha.
10753       Also tracked as TROVE-2018-003.
10755   o Code simplification and refactoring:
10756     - Update the "rust dependencies" submodule to be a project-level
10757       repository, rather than a user repository. Closes ticket 25323.
10760 Changes in version 0.3.3.2-alpha - 2018-02-10
10761   Tor 0.3.3.2-alpha is the second alpha in the 0.3.3.x series. It
10762   introduces a mechanism to handle the high loads that many relay
10763   operators have been reporting recently. It also fixes several bugs in
10764   older releases. If this new code proves reliable, we plan to backport
10765   it to older supported release series.
10767   o Major features (denial-of-service mitigation):
10768     - Give relays some defenses against the recent network overload. We
10769       start with three defenses (default parameters in parentheses).
10770       First: if a single client address makes too many concurrent
10771       connections (>100), hang up on further connections. Second: if a
10772       single client address makes circuits too quickly (more than 3 per
10773       second, with an allowed burst of 90) while also having too many
10774       connections open (3), refuse new create cells for the next while
10775       (1-2 hours). Third: if a client asks to establish a rendezvous
10776       point to you directly, ignore the request. These defenses can be
10777       manually controlled by new torrc options, but relays will also
10778       take guidance from consensus parameters, so there's no need to
10779       configure anything manually. Implements ticket 24902.
10781   o Major bugfixes (netflow padding):
10782     - Stop adding unneeded channel padding right after we finish
10783       flushing to a connection that has been trying to flush for many
10784       seconds. Instead, treat all partial or complete flushes as
10785       activity on the channel, which will defer the time until we need
10786       to add padding. This fix should resolve confusing and scary log
10787       messages like "Channel padding timeout scheduled 221453ms in the
10788       past." Fixes bug 22212; bugfix on 0.3.1.1-alpha.
10790   o Major bugfixes (protocol versions):
10791     - Add Link protocol version 5 to the supported protocols list. Fixes
10792       bug 25070; bugfix on 0.3.1.1-alpha.
10794   o Major bugfixes (scheduler, consensus):
10795     - The scheduler subsystem was failing to promptly notice changes in
10796       consensus parameters, making it harder to switch schedulers
10797       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
10799   o Minor features (denial-of-service avoidance):
10800     - Make our OOM handler aware of the geoip client history cache so it
10801       doesn't fill up the memory. This check is important for IPv6 and
10802       our DoS mitigation subsystem. Closes ticket 25122.
10804   o Minor features (directory authority):
10805     - When directory authorities are unable to add signatures to a
10806       pending consensus, log the reason why. Closes ticket 24849.
10808   o Minor features (geoip):
10809     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
10810       Country database.
10812   o Minor features (logging, diagnostic):
10813     - When logging a failure to create an onion service's descriptor,
10814       also log what the problem with the descriptor was. Diagnostic for
10815       ticket 24972.
10817   o Minor bugfix (channel connection):
10818     - Use the actual observed address of an incoming relay connection,
10819       not the canonical address of the relay from its descriptor, when
10820       making decisions about how to handle the incoming connection.
10821       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
10823   o Minor bugfix (directory authority):
10824     - Directory authorities, when refusing a descriptor from a rejected
10825       relay, now explicitly tell the relay (in its logs) to set a valid
10826       ContactInfo address and contact the bad-relays@ mailing list.
10827       Fixes bug 25170; bugfix on 0.2.9.1.
10829   o Minor bugfixes (all versions of Tor):
10830     - Use the "misspell" tool to detect and fix typos throughout the
10831       source code. Fixes bug 23650; bugfix on various versions of Tor.
10832       Patch from Deepesh Pathak.
10834   o Minor bugfixes (circuit, cannibalization):
10835     - Don't cannibalize preemptively-built circuits if we no longer
10836       recognize their first hop. This situation can happen if our Guard
10837       relay went off the consensus after the circuit was created. Fixes
10838       bug 24469; bugfix on 0.0.6.
10840   o Minor bugfixes (correctness):
10841     - Remove a nonworking, unnecessary check to see whether a circuit
10842       hop's identity digest was set when the circuit failed. Fixes bug
10843       24927; bugfix on 0.2.4.4-alpha.
10845   o Minor bugfixes (logging):
10846     - Don't treat inability to store a cached consensus object as a bug:
10847       it can happen normally when we are out of disk space. Fixes bug
10848       24859; bugfix on 0.3.1.1-alpha.
10849     - Fix a (mostly harmless) race condition when invoking
10850       LOG_PROTOCOL_WARN message from a subthread while the torrc options
10851       are changing. Fixes bug 23954; bugfix on 0.1.1.9-alpha.
10853   o Minor bugfixes (onion services):
10854     - Remove a BUG() statement when a client fetches an onion descriptor
10855       that has a lower revision counter than the one in its cache. This
10856       can happen in normal circumstances due to HSDir desync. Fixes bug
10857       24976; bugfix on 0.3.2.1-alpha.
10858     - If we are configured to offer a single onion service, don't log
10859       long-term established one hop rendezvous points in the heartbeat.
10860       Fixes bug 25116; bugfix on 0.2.9.6-rc.
10862   o Minor bugfixes (performance):
10863     - Avoid calling protocol_list_supports_protocol() from inside tight
10864       loops when running with cached routerinfo_t objects. Instead,
10865       summarize the relevant protocols as flags in the routerinfo_t, as
10866       we do for routerstatus_t objects. This change simplifies our code
10867       a little, and saves a large amount of short-term memory allocation
10868       operations. Fixes bug 25008; bugfix on 0.2.9.4-alpha.
10870   o Minor bugfixes (Rust FFI):
10871     - Fix a minor memory leak which would happen whenever the C code
10872       would call the Rust implementation of
10873       protover_get_supported_protocols(). This was due to the C version
10874       returning a static string, whereas the Rust version newly allocated
10875       a CString to pass across the FFI boundary. Consequently, the C
10876       code was not expecting to need to free() what it was given. Fixes
10877       bug 25127; bugfix on 0.3.2.1-alpha.
10879   o Minor bugfixes (scheduler, KIST):
10880     - Avoid adding the same channel twice in the KIST scheduler pending
10881       list, which would waste CPU cycles. Fixes bug 24700; bugfix
10882       on 0.3.2.1-alpha.
10884   o Minor bugfixes (unit test, monotonic time):
10885     - Increase a constant (1msec to 10msec) in the monotonic time test
10886       that makes sure the nsec/usec/msec times read are synchronized.
10887       This change was needed to accommodate slow systems like armel or
10888       when the clock_gettime() is not a VDSO on the running kernel.
10889       Fixes bug 25113; bugfix on 0.2.9.1.
10891   o Minor bugfixes (v3 onion services):
10892     - Look at the "HSRend" protocol version, not the "HSDir" protocol
10893       version, when deciding whether a consensus entry can support the
10894       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
10895       bugfix on 0.3.2.1-alpha.
10897   o Code simplification and refactoring:
10898     - Remove the unused nodelist_recompute_all_hsdir_indices(). Closes
10899       ticket 25108.
10900     - Remove a series of counters used to track circuit extend attempts
10901       and connection status but that in reality we aren't using for
10902       anything other than stats logged by a SIGUSR1 signal. Closes
10903       ticket 25163.
10905   o Documentation (man page):
10906     - The HiddenServiceVersion torrc option accepts only one number:
10907       either version 2 or 3. Closes ticket 25026; bugfix
10908       on 0.3.2.2-alpha.
10911 Changes in version 0.3.3.1-alpha - 2018-01-25
10912   Tor 0.3.3.1-alpha is the first release in the 0.3.3.x series. It adds
10913   several new features to Tor, including several improvements to
10914   bootstrapping, and support for an experimental "vanguards" feature to
10915   resist guard discovery attacks. This series also includes better
10916   support for applications that need to embed Tor or manage v3
10917   onion services.
10919   o Major features (embedding):
10920     - There is now a documented stable API for programs that need to
10921       embed Tor. See tor_api.h for full documentation and known bugs.
10922       Closes ticket 23684.
10923     - Tor now has support for restarting in the same process.
10924       Controllers that run Tor using the "tor_api.h" interface can now
10925       restart Tor after Tor has exited. This support is incomplete,
10926       however: we fixed crash bugs that prevented it from working at
10927       all, but many bugs probably remain, including a possibility of
10928       security issues. Implements ticket 24581.
10930   o Major features (IPv6, directory documents):
10931     - Add consensus method 27, which adds IPv6 ORPorts to the microdesc
10932       consensus. This information makes it easier for IPv6 clients to
10933       bootstrap and choose reachable entry guards. Implements ticket 23826.
10934     - Add consensus method 28, which removes IPv6 ORPorts from
10935       microdescriptors. Now that the consensus contains IPv6 ORPorts, they
10936       are redundant in microdescs. This change will be used by Tor clients
10937       on 0.2.8.x and later. (That is to say, with all Tor clients that
10938       have IPv6 bootstrap and guard support.) Implements ticket 23828.
10939     - Expand the documentation for AuthDirHasIPv6Connectivity when it is
10940       set by different numbers of authorities. Fixes 23870
10941       on 0.2.4.1-alpha.
10943   o Major features (onion service v3, control port):
10944     - The control port now supports commands and events for v3 onion
10945       services. It is now possible to create ephemeral v3 services using
10946       ADD_ONION. Additionally, several events (HS_DESC, HS_DESC_CONTENT,
10947       CIRC and CIRC_MINOR) and commands (GETINFO, HSPOST, ADD_ONION and
10948       DEL_ONION) have been extended to support v3 onion services. Closes
10949       ticket 20699; implements proposal 284.
10951   o Major features (onion services):
10952     - Provide torrc options to pin the second and third hops of onion
10953       service circuits to a list of nodes. The option HSLayer2Guards
10954       pins the second hop, and the option HSLayer3Guards pins the third
10955       hop. These options are for use in conjunction with experiments
10956       with "vanguards" for preventing guard enumeration attacks. Closes
10957       ticket 13837.
10959   o Major features (rust, portability, experimental):
10960     - Tor now ships with an optional implementation of one of its
10961       smaller modules (protover.c) in the Rust programming language. To
10962       try it out, install a Rust build environment, and configure Tor
10963       with "--enable-rust --enable-cargo-online-mode". This should not
10964       cause any user-visible changes, but should help us gain more
10965       experience with Rust, and plan future Rust integration work.
10966       Implementation by Chelsea Komlo. Closes ticket 22840.
10968   o Minor features (storage, configuration):
10969     - Users can store cached directory documents somewhere other than
10970       the DataDirectory by using the CacheDirectory option. Similarly,
10971       the storage location for relay's keys can be overridden with the
10972       KeyDirectory option. Closes ticket 22703.
10974   o Major features (v3 onion services, ipv6):
10975     - When v3 onion service clients send introduce cells, they now
10976       include the IPv6 address of the rendezvous point, if it has one.
10977       Current v3 onion services running 0.3.2 ignore IPv6 addresses, but
10978       in future Tor versions, IPv6-only v3 single onion services will be
10979       able to use IPv6 addresses to connect directly to the rendezvous
10980       point. Closes ticket 23577. Patch by Neel Chauhan.
10982   o Major bugfixes (onion services, retry behavior):
10983     - Fix an "off by 2" error in counting rendezvous failures on the
10984       onion service side. While we thought we would stop the rendezvous
10985       attempt after one failed circuit, we were actually making three
10986       circuit attempts before giving up. Now switch to a default of 2,
10987       and allow the consensus parameter "hs_service_max_rdv_failures" to
10988       override. Fixes bug 24895; bugfix on 0.0.6.
10989     - New-style (v3) onion services now obey the "max rendezvous circuit
10990       attempts" logic. Previously they would make as many rendezvous
10991       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
10992       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
10994   o Major bugfixes (relays):
10995     - Fix a set of false positives where relays would consider
10996       connections to other relays as being client-only connections (and
10997       thus e.g. deserving different link padding schemes) if those
10998       relays fell out of the consensus briefly. Now we look only at the
10999       initial handshake and whether the connection authenticated as a
11000       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
11002   o Minor feature (IPv6):
11003     - Make IPv6-only clients wait for microdescs for relays, even if we
11004       were previously using descriptors (or were using them as a bridge)
11005       and have a cached descriptor for them. Implements ticket 23827.
11006     - When a consensus has IPv6 ORPorts, make IPv6-only clients use
11007       them, rather than waiting to download microdescriptors.
11008       Implements ticket 23827.
11010   o Minor features (cleanup):
11011     - Tor now deletes the CookieAuthFile and ExtORPortCookieAuthFile
11012       when it stops. Closes ticket 23271.
11014   o Minor features (defensive programming):
11015     - Most of the functions in Tor that free objects have been replaced
11016       with macros that free the objects and set the corresponding
11017       pointers to NULL. This change should help prevent a large class of
11018       dangling pointer bugs. Closes ticket 24337.
11019     - Where possible, the tor_free() macro now only evaluates its input
11020       once. Part of ticket 24337.
11021     - Check that microdesc ed25519 ids are non-zero in
11022       node_get_ed25519_id() before returning them. Implements ticket
11023       24001, patch by "aruna1234".
11025   o Minor features (embedding):
11026     - Tor can now start with a preauthenticated control connection
11027       created by the process that launched it. This feature is meant for
11028       use by programs that want to launch and manage a Tor process
11029       without allowing other programs to manage it as well. For more
11030       information, see the __OwningControllerFD option documented in
11031       control-spec.txt. Closes ticket 23900.
11032     - On most errors that would cause Tor to exit, it now tries to
11033       return from the tor_main() function, rather than calling the
11034       system exit() function. Most users won't notice a difference here,
11035       but it should be significant for programs that run Tor inside
11036       a separate thread: they should now be able to survive Tor's exit
11037       conditions rather than having Tor shut down the entire process.
11038       Closes ticket 23848.
11039     - Applications that want to embed Tor can now tell Tor not to
11040       register any of its own POSIX signal handlers, using the
11041       __DisableSignalHandlers option. Closes ticket 24588.
11043   o Minor features (fallback directory list):
11044     - Avoid selecting fallbacks that change their IP addresses too
11045       often. Select more fallbacks by ignoring the Guard flag, and
11046       allowing lower cutoffs for the Running and V2Dir flags. Also allow
11047       a lower bandwidth, and a higher number of fallbacks per operator
11048       (5% of the list). Implements ticket 24785.
11049     - Update the fallback whitelist and blacklist based on opt-ins and
11050       relay changes. Closes tickets 22321, 24678, 22527, 24135,
11051       and 24695.
11053   o Minor features (fallback directory mirror configuration):
11054     - Add a nickname to each fallback in a C comment. This makes it
11055       easier for operators to find their relays, and allows stem to use
11056       nicknames to identify fallbacks. Implements ticket 24600.
11057     - Add a type and version header to the fallback directory mirror
11058       file. Also add a delimiter to the end of each fallback entry. This
11059       helps external parsers like stem and Relay Search. Implements
11060       ticket 24725.
11061     - Add an extrainfo cache flag for each fallback in a C comment. This
11062       allows stem to use fallbacks to fetch extra-info documents, rather
11063       than using authorities. Implements ticket 22759.
11064     - Add the generateFallbackDirLine.py script for automatically
11065       generating fallback directory mirror lines from relay fingerprints.
11066       No more typos! Add the lookupFallbackDirContact.py script for
11067       automatically looking up operator contact info from relay
11068       fingerprints. Implements ticket 24706, patch by teor and atagar.
11069     - Reject any fallback directory mirror that serves an expired
11070       consensus. Implements ticket 20942, patch by "minik".
11071     - Remove commas and equals signs from external string inputs to the
11072       fallback list. This avoids format confusion attacks. Implements
11073       ticket 24726.
11074     - Remove the "weight=10" line from fallback directory mirror
11075       entries. Ticket 24681 will maintain the current fallback weights
11076       by changing Tor's default fallback weight to 10. Implements
11077       ticket 24679.
11078     - Stop logging excessive information about fallback netblocks.
11079       Implements ticket 24791.
11081   o Minor features (forward-compatibility):
11082     - If a relay supports some link authentication protocol that we do
11083       not recognize, then include that relay's ed25519 key when telling
11084       other relays to extend to it. Previously, we treated future
11085       versions as if they were too old to support ed25519 link
11086       authentication. Closes ticket 20895.
11088   o Minor features (heartbeat):
11089     - Add onion service information to our heartbeat logs, displaying
11090       stats about the activity of configured onion services. Closes
11091       ticket 24896.
11093   o Minor features (instrumentation, development):
11094     - Add the MainloopStats option to allow developers to get
11095       instrumentation information from the main event loop via the
11096       heartbeat messages. We hope to use this to improve Tor's behavior
11097       when it's trying to sleep. Closes ticket 24605.
11099   o Minor features (log messages):
11100     - Improve a warning message that happens when we fail to re-parse an
11101       old router because of an expired certificate. Closes ticket 20020.
11102     - Make the log more quantitative when we hit MaxMemInQueues
11103       threshold exposing some values. Closes ticket 24501.
11105   o Minor features (logging, android):
11106     - Added support for the Android logging subsystem. Closes
11107       ticket 24362.
11109   o Minor features (performance):
11110     - Support predictive circuit building for onion service circuits
11111       with multiple layers of guards. Closes ticket 23101.
11112     - Use stdatomic.h where available, rather than mutexes, to implement
11113       atomic_counter_t. Closes ticket 23953.
11115   o Minor features (performance, 32-bit):
11116     - Improve performance on 32-bit systems by avoiding 64-bit division
11117       when calculating the timestamp in milliseconds for channel padding
11118       computations. Implements ticket 24613.
11119     - Improve performance on 32-bit systems by avoiding 64-bit division
11120       when timestamping cells and buffer chunks for OOM calculations.
11121       Implements ticket 24374.
11123   o Minor features (performance, OSX, iOS):
11124     - Use the mach_approximate_time() function (when available) to
11125       implement coarse monotonic time. Having a coarse time function
11126       should avoid a large number of system calls, and improve
11127       performance slightly, especially under load. Closes ticket 24427.
11129   o Minor features (performance, windows):
11130     - Improve performance on Windows Vista and Windows 7 by adjusting
11131       TCP send window size according to the recommendation from
11132       SIO_IDEAL_SEND_BACKLOG_QUERY. Closes ticket 22798. Patch
11133       from Vort.
11135   o Major features (relay):
11136     - Implement an option, ReducedExitPolicy, to allow an Tor exit relay
11137       operator to use a more reasonable ("reduced") exit policy, rather
11138       than the default one. If you want to run an exit node without
11139       thinking too hard about which ports to allow, this one is for you.
11140       Closes ticket 13605. Patch from Neel Chauhan.
11142   o Minor features (testing, debugging, embedding):
11143     - For development purposes, Tor now has a mode in which it runs for
11144       a few seconds, then stops, and starts again without exiting the
11145       process. This mode is meant to help us debug various issues with
11146       ticket 23847. To use this feature, compile with
11147       --enable-restart-debugging, and set the TOR_DEBUG_RESTART
11148       environment variable. This is expected to crash a lot, and is
11149       really meant for developers only. It will likely be removed in a
11150       future release. Implements ticket 24583.
11152   o Minor bugfix (network IPv6 test):
11153     - Tor's test scripts now check if "ping -6 ::1" works when the user
11154       runs "make test-network-all". Fixes bug 24677; bugfix on
11155       0.2.9.3-alpha. Patch by "ffmancera".
11157   o Minor bugfixes (build, rust):
11158     - Fix output of autoconf checks to display success messages for Rust
11159       dependencies and a suitable rustc compiler version. Fixes bug
11160       24612; bugfix on 0.3.1.3-alpha.
11161     - When building with Rust on OSX, link against libresolv, to work
11162       around the issue at https://github.com/rust-lang/rust/issues/46797.
11163       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
11164     - Don't pass the --quiet option to cargo: it seems to suppress some
11165       errors, which is not what we want to do when building. Fixes bug
11166       24518; bugfix on 0.3.1.7.
11167     - Build correctly when building from outside Tor's source tree with
11168       the TOR_RUST_DEPENDENCIES option set. Fixes bug 22768; bugfix
11169       on 0.3.1.7.
11171   o Minor bugfixes (directory authorities, IPv6):
11172     - When creating a routerstatus (vote) from a routerinfo (descriptor),
11173       set the IPv6 address to the unspecified IPv6 address, and
11174       explicitly initialize the port to zero. Fixes bug 24488; bugfix
11175       on 0.2.4.1-alpha.
11177   o Minor bugfixes (fallback directory mirrors):
11178     - Make updateFallbackDirs.py search harder for python. (Some OSs
11179       don't put it in /usr/bin.) Fixes bug 24708; bugfix
11180       on 0.2.8.1-alpha.
11182   o Minor bugfixes (hibernation, bandwidth accounting, shutdown):
11183     - When hibernating, close connections normally and allow them to
11184       flush. Fixes bug 23571; bugfix on 0.2.4.7-alpha. Also fixes
11185       bug 7267.
11186     - Do not attempt to launch self-reachability tests when entering
11187       hibernation. Fixes a case of bug 12062; bugfix on 0.0.9pre5.
11188     - Resolve several bugs related to descriptor fetching on bridge
11189       clients with bandwidth accounting enabled. (This combination is
11190       not recommended!) Fixes a case of bug 12062; bugfix
11191       on 0.2.0.3-alpha.
11192     - When hibernating, do not attempt to launch DNS checks. Fixes a
11193       case of bug 12062; bugfix on 0.1.2.2-alpha.
11194     - When hibernating, do not try to upload or download descriptors.
11195       Fixes a case of bug 12062; bugfix on 0.0.9pre5.
11197   o Minor bugfixes (IPv6, bridges):
11198     - Tor now always sets IPv6 preferences for bridges. Fixes bug 24573;
11199       bugfix on 0.2.8.2-alpha.
11200     - Tor now sets IPv6 address in the routerstatus as well as in the
11201       router descriptors when updating addresses for a bridge. Closes
11202       ticket 24572; bugfix on 0.2.4.5-alpha. Patch by "ffmancera".
11204   o Minor bugfixes (linux seccomp2 sandbox):
11205     - When running with the sandbox enabled, reload configuration files
11206       correctly even when %include was used. Previously we would crash.
11207       Fixes bug 22605; bugfix on 0.3.1. Patch from Daniel Pinto.
11209   o Minor bugfixes (memory leaks):
11210     - Avoid possible at-exit memory leaks related to use of Libevent's
11211       event_base_once() function. (This function tends to leak memory if
11212       the event_base is closed before the event fires.) Fixes bug 24584;
11213       bugfix on 0.2.8.1-alpha.
11214     - Fix a harmless memory leak in tor-resolve. Fixes bug 24582; bugfix
11215       on 0.2.1.1-alpha.
11217   o Minor bugfixes (OSX):
11218     - Don't exit the Tor process if setrlimit() fails to change the file
11219       limit (which can happen sometimes on some versions of OSX). Fixes
11220       bug 21074; bugfix on 0.0.9pre5.
11222   o Minor bugfixes (performance, fragile-hardening):
11223     - Improve the performance of our consensus-diff application code
11224       when Tor is built with the --enable-fragile-hardening option set.
11225       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
11227   o Minor bugfixes (performance, timeouts):
11228     - Consider circuits for timeout as soon as they complete a hop. This
11229       is more accurate than applying the timeout in
11230       circuit_expire_building() because that function is only called
11231       once per second, which is now too slow for typical timeouts on the
11232       current network. Fixes bug 23114; bugfix on 0.2.2.2-alpha.
11233     - Use onion service circuits (and other circuits longer than 3 hops)
11234       to calculate a circuit build timeout. Previously, Tor only
11235       calculated its build timeout based on circuits that planned to be
11236       exactly 3 hops long. With this change, we include measurements
11237       from all circuits at the point where they complete their third
11238       hop. Fixes bug 23100; bugfix on 0.2.2.2-alpha.
11240   o Minor bugfixes (testing):
11241     - Give out Exit flags in bootstrapping networks. Fixes bug 24137;
11242       bugfix on 0.2.3.1-alpha.
11243     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
11244       25005; bugfix on 0.3.2.7-rc.
11246   o Code simplification and refactoring:
11247     - Remove /usr/athena from search path in configure.ac. Closes
11248       ticket 24363.
11249     - Remove duplicate code in node_has_curve25519_onion_key() and
11250       node_get_curve25519_onion_key(), and add a check for a zero
11251       microdesc curve25519 onion key. Closes ticket 23966, patch by
11252       "aruna1234" and teor.
11253     - Rewrite channel_rsa_id_group_set_badness to reduce temporary
11254       memory allocations with large numbers of OR connections (e.g.
11255       relays). Closes ticket 24119.
11256     - Separate the function that deletes ephemeral files when Tor
11257       stops gracefully.
11258     - Small changes to Tor's buf_t API to make it suitable for use as a
11259       general-purpose safe string constructor. Closes ticket 22342.
11260     - Switch -Wnormalized=id to -Wnormalized=nfkc in configure.ac to
11261       avoid source code identifier confusion. Closes ticket 24467.
11262     - The tor_git_revision[] constant no longer needs to be redeclared
11263       by everything that links against the rest of Tor. Done as part of
11264       ticket 23845, to simplify our external API.
11265     - We make extend_info_from_node() use node_get_curve25519_onion_key()
11266       introduced in ticket 23577 to access the curve25519 public keys
11267       rather than accessing it directly. Closes ticket 23760. Patch by
11268       Neel Chauhan.
11269     - Add a function to log channels' scheduler state changes to aid
11270       debugging efforts. Closes ticket 24531.
11272   o Documentation:
11273     - Add documentation on how to build tor with Rust dependencies
11274       without having to be online. Closes ticket 22907; bugfix
11275       on 0.3.0.3-alpha.
11276     - Clarify the behavior of RelayBandwidth{Rate,Burst} with client
11277       traffic. Closes ticket 24318.
11278     - Document that OutboundBindAddress doesn't apply to DNS requests.
11279       Closes ticket 22145. Patch from Aruna Maurya.
11280     - Document that operators who run more than one relay or bridge are
11281       expected to set MyFamily and ContactInfo correctly. Closes
11282       ticket 24526.
11284   o Code simplification and refactoring (channels):
11285     - Remove the incoming and outgoing channel queues. These were never
11286       used, but still took up a step in our fast path.
11287     - The majority of the channel unit tests have been rewritten and the
11288       code coverage has now been raised to 83.6% for channel.c. Closes
11289       ticket 23709.
11290     - Remove other dead code from the channel subsystem: All together,
11291       this cleanup has removed more than 1500 lines of code overall and
11292       adding very little except for unit test.
11294   o Code simplification and refactoring (circuit rendezvous):
11295     - Split the client-side rendezvous circuit lookup into two
11296       functions: one that returns only established circuits and another
11297       that returns all kinds of circuits. Closes ticket 23459.
11299   o Code simplification and refactoring (controller):
11300     - Make most of the variables in networkstatus_getinfo_by_purpose()
11301       const. Implements ticket 24489.
11304 Changes in version 0.3.2.9 - 2018-01-09
11305   Tor 0.3.2.9 is the first stable release in the 0.3.2 series.
11307   The 0.3.2 series includes our long-anticipated new onion service
11308   design, with numerous security features. (For more information, see
11309   our blog post at https://blog.torproject.org/fall-harvest.) We also
11310   have a new circuit scheduler algorithm for improved performance on
11311   relays everywhere (see https://blog.torproject.org/kist-and-tell),
11312   along with many smaller features and bugfixes.
11314   Per our stable release policy, we plan to support each stable release
11315   series for at least the next nine months, or for three months after
11316   the first stable release of the next series: whichever is longer. If
11317   you need a release with long-term support, we recommend that you stay
11318   with the 0.2.9 series.
11320   Below is a list of the changes since 0.3.2.8-rc. For a list of all
11321   changes since 0.3.1, see the ReleaseNotes file.
11323   o Minor features (fallback directory mirrors):
11324     - The fallback directory list has been re-generated based on the
11325       current status of the network. Tor uses fallback directories to
11326       bootstrap when it doesn't yet have up-to-date directory
11327       information. Closes ticket 24801.
11328     - Make the default DirAuthorityFallbackRate 0.1, so that clients
11329       prefer to bootstrap from fallback directory mirrors. This is a
11330       follow-up to 24679, which removed weights from the default
11331       fallbacks. Implements ticket 24681.
11333   o Minor features (geoip):
11334     - Update geoip and geoip6 to the January 5 2018 Maxmind GeoLite2
11335       Country database.
11337   o Minor bugfixes (address selection):
11338     - When the fascist_firewall_choose_address_ functions don't find a
11339       reachable address, set the returned address to the null address
11340       and port. This is a precautionary measure, because some callers do
11341       not check the return value. Fixes bug 24736; bugfix
11342       on 0.2.8.2-alpha.
11344   o Minor bugfixes (compilation):
11345     - Resolve a few shadowed-variable warnings in the onion service
11346       code. Fixes bug 24634; bugfix on 0.3.2.1-alpha.
11348   o Minor bugfixes (portability, msvc):
11349     - Fix a bug in the bit-counting parts of our timing-wheel code on
11350       MSVC. (Note that MSVC is still not a supported build platform, due
11351       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
11352       on 0.2.9.1-alpha.
11355 Changes in version 0.3.2.8-rc - 2017-12-21
11356   Tor 0.3.2.8-rc fixes a pair of bugs in the KIST and KISTLite
11357   schedulers that had led servers under heavy load to overload their
11358   outgoing connections. All relay operators running earlier 0.3.2.x
11359   versions should upgrade. This version also includes a mitigation for
11360   over-full DESTROY queues leading to out-of-memory conditions: if it
11361   works, we will soon backport it to earlier release series.
11363   This is the second release candidate in the 0.3.2 series. If we find
11364   no new bugs or regression here, then the first stable 0.3.2 release
11365   will be nearly identical to this.
11367   o Major bugfixes (KIST, scheduler):
11368     - The KIST scheduler did not correctly account for data already
11369       enqueued in each connection's send socket buffer, particularly in
11370       cases when the TCP/IP congestion window was reduced between
11371       scheduler calls. This situation lead to excessive per-connection
11372       buffering in the kernel, and a potential memory DoS. Fixes bug
11373       24665; bugfix on 0.3.2.1-alpha.
11375   o Minor features (geoip):
11376     - Update geoip and geoip6 to the December 6 2017 Maxmind GeoLite2
11377       Country database.
11379   o Minor bugfixes (hidden service v3):
11380     - Bump hsdir_spread_store parameter from 3 to 4 in order to increase
11381       the probability of reaching a service for a client missing
11382       microdescriptors. Fixes bug 24425; bugfix on 0.3.2.1-alpha.
11384   o Minor bugfixes (memory usage):
11385     - When queuing DESTROY cells on a channel, only queue the circuit-id
11386       and reason fields: not the entire 514-byte cell. This fix should
11387       help mitigate any bugs or attacks that fill up these queues, and
11388       free more RAM for other uses. Fixes bug 24666; bugfix
11389       on 0.2.5.1-alpha.
11391   o Minor bugfixes (scheduler, KIST):
11392     - Use a sane write limit for KISTLite when writing onto a connection
11393       buffer instead of using INT_MAX and shoving as much as it can.
11394       Because the OOM handler cleans up circuit queues, we are better
11395       off at keeping them in that queue instead of the connection's
11396       buffer. Fixes bug 24671; bugfix on 0.3.2.1-alpha.
11399 Changes in version 0.3.2.7-rc - 2017-12-14
11400   Tor 0.3.2.7-rc fixes various bugs in earlier versions of Tor,
11401   including some that could affect reliability or correctness.
11403   This is the first release candidate in the 0.3.2 series. If we find no
11404   new bugs or regression here, then the first stable 0.3.2. release will
11405   be nearly identical to this.
11407   o Major bugfixes (circuit prediction):
11408     - Fix circuit prediction logic so that a client doesn't treat a port
11409       as being "handled" by a circuit if that circuit already has
11410       isolation settings on it. This change should make Tor clients more
11411       responsive by improving their chances of having a pre-created
11412       circuit ready for use when a request arrives. Fixes bug 18859;
11413       bugfix on 0.2.3.3-alpha.
11415   o Minor features (logging):
11416     - Provide better warnings when the getrandom() syscall fails. Closes
11417       ticket 24500.
11419   o Minor features (portability):
11420     - Tor now compiles correctly on arm64 with libseccomp-dev installed.
11421       (It doesn't yet work with the sandbox enabled.) Closes
11422       ticket 24424.
11424   o Minor bugfixes (bridge clients, bootstrap):
11425     - Retry directory downloads when we get our first bridge descriptor
11426       during bootstrap or while reconnecting to the network. Keep
11427       retrying every time we get a bridge descriptor, until we have a
11428       reachable bridge. Fixes part of bug 24367; bugfix on 0.2.0.3-alpha.
11429     - Stop delaying bridge descriptor fetches when we have cached bridge
11430       descriptors. Instead, only delay bridge descriptor fetches when we
11431       have at least one reachable bridge. Fixes part of bug 24367;
11432       bugfix on 0.2.0.3-alpha.
11433     - Stop delaying directory fetches when we have cached bridge
11434       descriptors. Instead, only delay bridge descriptor fetches when
11435       all our bridges are definitely unreachable. Fixes part of bug
11436       24367; bugfix on 0.2.0.3-alpha.
11438   o Minor bugfixes (compilation):
11439     - Fix a signed/unsigned comparison warning introduced by our fix to
11440       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
11442   o Minor bugfixes (correctness):
11443     - Fix several places in our codebase where a C compiler would be
11444       likely to eliminate a check, based on assuming that undefined
11445       behavior had not happened elsewhere in the code. These cases are
11446       usually a sign of redundant checking or dubious arithmetic. Found
11447       by Georg Koppen using the "STACK" tool from Wang, Zeldovich,
11448       Kaashoek, and Solar-Lezama. Fixes bug 24423; bugfix on various
11449       Tor versions.
11451   o Minor bugfixes (onion service v3):
11452     - Fix a race where an onion service would launch a new intro circuit
11453       after closing an old one, but fail to register it before freeing
11454       the previously closed circuit. This bug was making the service
11455       unable to find the established intro circuit and thus not upload
11456       its descriptor, thus making a service unavailable for up to 24
11457       hours. Fixes bug 23603; bugfix on 0.3.2.1-alpha.
11459   o Minor bugfixes (scheduler, KIST):
11460     - Properly set the scheduler state of an unopened channel in the
11461       KIST scheduler main loop. This prevents a harmless but annoying
11462       log warning. Fixes bug 24502; bugfix on 0.3.2.4-alpha.
11463     - Avoid a possible integer overflow when computing the available
11464       space on the TCP buffer of a channel. This had no security
11465       implications; but could make KIST allow too many cells on a
11466       saturated connection. Fixes bug 24590; bugfix on 0.3.2.1-alpha.
11467     - Downgrade to "info" a harmless warning about the monotonic time
11468       moving backwards: This can happen on platform not supporting
11469       monotonic time. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
11472 Changes in version 0.3.2.6-alpha - 2017-12-01
11473   This version of Tor is the latest in the 0.3.2 alpha series. It
11474   includes fixes for several important security issues. All Tor users
11475   should upgrade to this release, or to one of the other releases coming
11476   out today.
11478   o Major bugfixes (security):
11479     - Fix a denial of service bug where an attacker could use a
11480       malformed directory object to cause a Tor instance to pause while
11481       OpenSSL would try to read a passphrase from the terminal. (Tor
11482       instances run without a terminal, which is the case for most Tor
11483       packages, are not impacted.) Fixes bug 24246; bugfix on every
11484       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11485       Found by OSS-Fuzz as testcase 6360145429790720.
11486     - Fix a denial of service issue where an attacker could crash a
11487       directory authority using a malformed router descriptor. Fixes bug
11488       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11489       and CVE-2017-8820.
11490     - When checking for replays in the INTRODUCE1 cell data for a
11491       (legacy) onion service, correctly detect replays in the RSA-
11492       encrypted part of the cell. We were previously checking for
11493       replays on the entire cell, but those can be circumvented due to
11494       the malleability of Tor's legacy hybrid encryption. This fix helps
11495       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11496       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11497       and CVE-2017-8819.
11499   o Major bugfixes (security, onion service v2):
11500     - Fix a use-after-free error that could crash v2 Tor onion services
11501       when they failed to open circuits while expiring introduction
11502       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11503       also tracked as TROVE-2017-013 and CVE-2017-8823.
11505   o Major bugfixes (security, relay):
11506     - When running as a relay, make sure that we never build a path
11507       through ourselves, even in the case where we have somehow lost the
11508       version of our descriptor appearing in the consensus. Fixes part
11509       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11510       as TROVE-2017-012 and CVE-2017-8822.
11511     - When running as a relay, make sure that we never choose ourselves
11512       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
11513       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
11515   o Minor feature (relay statistics):
11516     - Change relay bandwidth reporting stats interval from 4 hours to 24
11517       hours in order to reduce the efficiency of guard discovery
11518       attacks. Fixes ticket 23856.
11520   o Minor features (directory authority):
11521     - Add an IPv6 address for the "bastet" directory authority. Closes
11522       ticket 24394.
11524   o Minor bugfixes (client):
11525     - By default, do not enable storage of client-side DNS values. These
11526       values were unused by default previously, but they should not have
11527       been cached at all. Fixes bug 24050; bugfix on 0.2.6.3-alpha.
11530 Changes in version 0.3.1.9 - 2017-12-01:
11531   Tor 0.3.1.9 backports important security and stability fixes from the
11532   0.3.2 development series. All Tor users should upgrade to this
11533   release, or to another of the releases coming out today.
11535   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11536     - Fix a denial of service bug where an attacker could use a
11537       malformed directory object to cause a Tor instance to pause while
11538       OpenSSL would try to read a passphrase from the terminal. (Tor
11539       instances run without a terminal, which is the case for most Tor
11540       packages, are not impacted.) Fixes bug 24246; bugfix on every
11541       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11542       Found by OSS-Fuzz as testcase 6360145429790720.
11543     - Fix a denial of service issue where an attacker could crash a
11544       directory authority using a malformed router descriptor. Fixes bug
11545       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11546       and CVE-2017-8820.
11547     - When checking for replays in the INTRODUCE1 cell data for a
11548       (legacy) onion service, correctly detect replays in the RSA-
11549       encrypted part of the cell. We were previously checking for
11550       replays on the entire cell, but those can be circumvented due to
11551       the malleability of Tor's legacy hybrid encryption. This fix helps
11552       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11553       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11554       and CVE-2017-8819.
11556   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11557     - Fix a use-after-free error that could crash v2 Tor onion services
11558       when they failed to open circuits while expiring introduction
11559       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11560       also tracked as TROVE-2017-013 and CVE-2017-8823.
11562   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11563     - When running as a relay, make sure that we never build a path
11564       through ourselves, even in the case where we have somehow lost the
11565       version of our descriptor appearing in the consensus. Fixes part
11566       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11567       as TROVE-2017-012 and CVE-2017-8822.
11568     - When running as a relay, make sure that we never choose ourselves
11569       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
11570       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
11572   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
11573     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11574       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11575       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11576       identifying and finding a workaround to this bug and to Moritz,
11577       Arthur Edelstein, and Roger for helping to track it down and
11578       analyze it.
11580   o Minor features (bridge):
11581     - Bridges now include notice in their descriptors that they are
11582       bridges, and notice of their distribution status, based on their
11583       publication settings. Implements ticket 18329. For more fine-
11584       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11585       or later.
11587   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11588     - Add an IPv6 address for the "bastet" directory authority. Closes
11589       ticket 24394.
11591   o Minor features (geoip):
11592     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11593       Country database.
11595   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
11596     - Avoid unnecessary calls to directory_fetches_from_authorities() on
11597       relays, to prevent spurious address resolutions and descriptor
11598       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
11599       bugfix on in 0.2.8.1-alpha.
11601   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
11602     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
11603       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
11605   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
11606     - When a circuit is marked for close, do not attempt to package any
11607       cells for channels on that circuit. Previously, we would detect
11608       this condition lower in the call stack, when we noticed that the
11609       circuit had no attached channel, and log an annoying message.
11610       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
11612   o Minor bugfixes (onion service, backport from 0.3.2.5-alpha):
11613     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
11614       so it matches dir-spec.txt. Fixes bug 24262; bugfix
11615       on 0.3.1.1-alpha.
11617   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
11618     - Avoid a crash when transitioning from client mode to bridge mode.
11619       Previously, we would launch the worker threads whenever our
11620       "public server" mode changed, but not when our "server" mode
11621       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11624 Changes in version 0.3.0.13 - 2017-12-01
11625   Tor 0.3.0.13 backports important security and stability bugfixes from
11626   later Tor releases. All Tor users should upgrade to this release, or
11627   to another of the releases coming out today.
11629   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
11630   2018. If you need a release with long-term support, please stick with
11631   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11633   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11634     - Fix a denial of service bug where an attacker could use a
11635       malformed directory object to cause a Tor instance to pause while
11636       OpenSSL would try to read a passphrase from the terminal. (Tor
11637       instances run without a terminal, which is the case for most Tor
11638       packages, are not impacted.) Fixes bug 24246; bugfix on every
11639       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11640       Found by OSS-Fuzz as testcase 6360145429790720.
11641     - Fix a denial of service issue where an attacker could crash a
11642       directory authority using a malformed router descriptor. Fixes bug
11643       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11644       and CVE-2017-8820.
11645     - When checking for replays in the INTRODUCE1 cell data for a
11646       (legacy) onion service, correctly detect replays in the RSA-
11647       encrypted part of the cell. We were previously checking for
11648       replays on the entire cell, but those can be circumvented due to
11649       the malleability of Tor's legacy hybrid encryption. This fix helps
11650       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11651       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11652       and CVE-2017-8819.
11654   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11655     - Fix a use-after-free error that could crash v2 Tor onion services
11656       when they failed to open circuits while expiring introduction
11657       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11658       also tracked as TROVE-2017-013 and CVE-2017-8823.
11660   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11661     - When running as a relay, make sure that we never build a path
11662       through ourselves, even in the case where we have somehow lost the
11663       version of our descriptor appearing in the consensus. Fixes part
11664       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11665       as TROVE-2017-012 and CVE-2017-8822.
11666     - When running as a relay, make sure that we never choose ourselves
11667       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
11668       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
11670   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
11671     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11672       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11673       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11674       identifying and finding a workaround to this bug and to Moritz,
11675       Arthur Edelstein, and Roger for helping to track it down and
11676       analyze it.
11678   o Minor features (security, windows, backport from 0.3.1.1-alpha):
11679     - Enable a couple of pieces of Windows hardening: one
11680       (HeapEnableTerminationOnCorruption) that has been on-by-default
11681       since Windows 8, and unavailable before Windows 7; and one
11682       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
11683       affect us, but shouldn't do any harm. Closes ticket 21953.
11685   o Minor features (bridge, backport from 0.3.1.9):
11686     - Bridges now include notice in their descriptors that they are
11687       bridges, and notice of their distribution status, based on their
11688       publication settings. Implements ticket 18329. For more fine-
11689       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11690       or later.
11692   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11693     - Add an IPv6 address for the "bastet" directory authority. Closes
11694       ticket 24394.
11696   o Minor features (geoip):
11697     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11698       Country database.
11700   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
11701     - Avoid unnecessary calls to directory_fetches_from_authorities() on
11702       relays, to prevent spurious address resolutions and descriptor
11703       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
11704       bugfix on in 0.2.8.1-alpha.
11706   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
11707     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
11708       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
11710   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
11711     - When a circuit is marked for close, do not attempt to package any
11712       cells for channels on that circuit. Previously, we would detect
11713       this condition lower in the call stack, when we noticed that the
11714       circuit had no attached channel, and log an annoying message.
11715       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
11717   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
11718     - Avoid a crash when transitioning from client mode to bridge mode.
11719       Previously, we would launch the worker threads whenever our
11720       "public server" mode changed, but not when our "server" mode
11721       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11723   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
11724     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11725       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11728 Changes in version 0.2.9.14 - 2017-12-01
11729   Tor 0.3.0.13 backports important security and stability bugfixes from
11730   later Tor releases. All Tor users should upgrade to this release, or
11731   to another of the releases coming out today.
11733   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
11734     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
11735       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
11736       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
11737       identifying and finding a workaround to this bug and to Moritz,
11738       Arthur Edelstein, and Roger for helping to track it down and
11739       analyze it.
11741   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11742     - Fix a denial of service bug where an attacker could use a
11743       malformed directory object to cause a Tor instance to pause while
11744       OpenSSL would try to read a passphrase from the terminal. (Tor
11745       instances run without a terminal, which is the case for most Tor
11746       packages, are not impacted.) Fixes bug 24246; bugfix on every
11747       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11748       Found by OSS-Fuzz as testcase 6360145429790720.
11749     - Fix a denial of service issue where an attacker could crash a
11750       directory authority using a malformed router descriptor. Fixes bug
11751       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
11752       and CVE-2017-8820.
11753     - When checking for replays in the INTRODUCE1 cell data for a
11754       (legacy) onion service, correctly detect replays in the RSA-
11755       encrypted part of the cell. We were previously checking for
11756       replays on the entire cell, but those can be circumvented due to
11757       the malleability of Tor's legacy hybrid encryption. This fix helps
11758       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11759       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11760       and CVE-2017-8819.
11762   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11763     - Fix a use-after-free error that could crash v2 Tor onion services
11764       when they failed to open circuits while expiring introduction
11765       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11766       also tracked as TROVE-2017-013 and CVE-2017-8823.
11768   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11769     - When running as a relay, make sure that we never build a path
11770       through ourselves, even in the case where we have somehow lost the
11771       version of our descriptor appearing in the consensus. Fixes part
11772       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11773       as TROVE-2017-012 and CVE-2017-8822.
11775   o Minor features (bridge, backport from 0.3.1.9):
11776     - Bridges now include notice in their descriptors that they are
11777       bridges, and notice of their distribution status, based on their
11778       publication settings. Implements ticket 18329. For more fine-
11779       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11780       or later.
11782   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11783     - Add an IPv6 address for the "bastet" directory authority. Closes
11784       ticket 24394.
11786   o Minor features (geoip):
11787     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11788       Country database.
11790   o Minor features (security, windows, backport from 0.3.1.1-alpha):
11791     - Enable a couple of pieces of Windows hardening: one
11792       (HeapEnableTerminationOnCorruption) that has been on-by-default
11793       since Windows 8, and unavailable before Windows 7; and one
11794       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
11795       affect us, but shouldn't do any harm. Closes ticket 21953.
11797   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
11798     - Avoid unnecessary calls to directory_fetches_from_authorities() on
11799       relays, to prevent spurious address resolutions and descriptor
11800       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
11801       bugfix on in 0.2.8.1-alpha.
11803   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
11804     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
11805       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
11807   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
11808     - When a circuit is marked for close, do not attempt to package any
11809       cells for channels on that circuit. Previously, we would detect
11810       this condition lower in the call stack, when we noticed that the
11811       circuit had no attached channel, and log an annoying message.
11812       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
11814   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
11815     - Avoid a crash when transitioning from client mode to bridge mode.
11816       Previously, we would launch the worker threads whenever our
11817       "public server" mode changed, but not when our "server" mode
11818       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
11820   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
11821     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11822       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11825 Changes in version 0.2.8.17 - 2017-12-01
11826   Tor 0.2.8.17 backports important security and stability bugfixes from
11827   later Tor releases. All Tor users should upgrade to this release, or
11828   to another of the releases coming out today.
11830   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
11831   2018. If you need a release with long-term support, please upgrade with
11832   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11834   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11835     - Fix a denial of service bug where an attacker could use a
11836       malformed directory object to cause a Tor instance to pause while
11837       OpenSSL would try to read a passphrase from the terminal. (Tor
11838       instances run without a terminal, which is the case for most Tor
11839       packages, are not impacted.) Fixes bug 24246; bugfix on every
11840       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11841       Found by OSS-Fuzz as testcase 6360145429790720.
11842     - When checking for replays in the INTRODUCE1 cell data for a
11843       (legacy) onion service, correctly detect replays in the RSA-
11844       encrypted part of the cell. We were previously checking for
11845       replays on the entire cell, but those can be circumvented due to
11846       the malleability of Tor's legacy hybrid encryption. This fix helps
11847       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11848       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11849       and CVE-2017-8819.
11851   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
11852     - Fix a use-after-free error that could crash v2 Tor onion services
11853       when they failed to open circuits while expiring introduction
11854       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
11855       also tracked as TROVE-2017-013 and CVE-2017-8823.
11857   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11858     - When running as a relay, make sure that we never build a path through
11859       ourselves, even in the case where we have somehow lost the version of
11860       our descriptor appearing in the consensus. Fixes part of bug 21534;
11861       bugfix on 0.2.0.1-alpha. This issue is also tracked as TROVE-2017-012
11862       and CVE-2017-8822.
11864   o Minor features (bridge, backport from 0.3.1.9):
11865     - Bridges now include notice in their descriptors that they are
11866       bridges, and notice of their distribution status, based on their
11867       publication settings. Implements ticket 18329. For more fine-
11868       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11869       or later.
11871   o Minor features (directory authority, backport from 0.3.2.6-alpha):
11872     - Add an IPv6 address for the "bastet" directory authority. Closes
11873       ticket 24394.
11875   o Minor features (geoip):
11876     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11877       Country database.
11879   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
11880     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
11881       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
11884 Changes in version 0.2.5.16 - 2017-12-01
11885   Tor 0.2.5.13 backports important security and stability bugfixes from
11886   later Tor releases. All Tor users should upgrade to this release, or
11887   to another of the releases coming out today.
11889   Note: the Tor 0.2.5 series will no longer be supported after 1 May
11890   2018. If you need a release with long-term support, please upgrade to
11891   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
11893   o Major bugfixes (security, backport from 0.3.2.6-alpha):
11894     - Fix a denial of service bug where an attacker could use a
11895       malformed directory object to cause a Tor instance to pause while
11896       OpenSSL would try to read a passphrase from the terminal. (Tor
11897       instances run without a terminal, which is the case for most Tor
11898       packages, are not impacted.) Fixes bug 24246; bugfix on every
11899       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
11900       Found by OSS-Fuzz as testcase 6360145429790720.
11901     - When checking for replays in the INTRODUCE1 cell data for a
11902       (legacy) onion service, correctly detect replays in the RSA-
11903       encrypted part of the cell. We were previously checking for
11904       replays on the entire cell, but those can be circumvented due to
11905       the malleability of Tor's legacy hybrid encryption. This fix helps
11906       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
11907       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
11908       and CVE-2017-8819.
11910   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
11911     - When running as a relay, make sure that we never build a path
11912       through ourselves, even in the case where we have somehow lost the
11913       version of our descriptor appearing in the consensus. Fixes part
11914       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
11915       as TROVE-2017-012 and CVE-2017-8822.
11917   o Minor features (bridge, backport from 0.3.1.9):
11918     - Bridges now include notice in their descriptors that they are
11919       bridges, and notice of their distribution status, based on their
11920       publication settings. Implements ticket 18329. For more fine-
11921       grained control of how a bridge is distributed, upgrade to 0.3.2.x
11922       or later.
11924   o Minor features (geoip):
11925     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11926       Country database.
11929 Changes in version 0.3.2.5-alpha - 2017-11-22
11930   Tor 0.3.2.5-alpha is the fifth alpha release in the 0.3.2.x series. It
11931   fixes several stability and reliability bugs, including a fix for
11932   intermittent bootstrapping failures that some people have been seeing
11933   since the 0.3.0.x series.
11935   Please test this alpha out -- many of these fixes will soon be
11936   backported to stable Tor versions if no additional bugs are found
11937   in them.
11939   o Major bugfixes (bootstrapping):
11940     - Fetch descriptors aggressively whenever we lack enough to build
11941       circuits, regardless of how many descriptors we are missing.
11942       Previously, we would delay launching the fetch when we had fewer
11943       than 15 missing descriptors, even if some of those descriptors
11944       were blocking circuits from building. Fixes bug 23985; bugfix on
11945       0.1.1.11-alpha. The effects of this bug became worse in
11946       0.3.0.3-alpha, when we began treating missing descriptors from our
11947       primary guards as a reason to delay circuits.
11948     - Don't try fetching microdescriptors from relays that have failed
11949       to deliver them in the past. Fixes bug 23817; bugfix
11950       on 0.3.0.1-alpha.
11952   o Minor features (directory authority):
11953     - Make the "Exit" flag assignment only depend on whether the exit
11954       policy allows connections to ports 80 and 443. Previously relays
11955       would get the Exit flag if they allowed connections to one of
11956       these ports and also port 6667. Resolves ticket 23637.
11958   o Minor features (geoip):
11959     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
11960       Country database.
11962   o Minor features (linux seccomp2 sandbox):
11963     - Update the sandbox rules so that they should now work correctly
11964       with Glibc 2.26. Closes ticket 24315.
11966   o Minor features (logging):
11967     - Downgrade a pair of log messages that could occur when an exit's
11968       resolver gave us an unusual (but not forbidden) response. Closes
11969       ticket 24097.
11970     - Improve the message we log when re-enabling circuit build timeouts
11971       after having received a consensus. Closes ticket 20963.
11973   o Minor bugfixes (compilation):
11974     - Fix a memory leak warning in one of the libevent-related
11975       configuration tests that could occur when manually specifying
11976       -fsanitize=address. Fixes bug 24279; bugfix on 0.3.0.2-alpha.
11977       Found and patched by Alex Xu.
11978     - When detecting OpenSSL on Windows from our configure script, make
11979       sure to try linking with the ws2_32 library. Fixes bug 23783;
11980       bugfix on 0.3.2.2-alpha.
11982   o Minor bugfixes (control port, linux seccomp2 sandbox):
11983     - Avoid a crash when attempting to use the seccomp2 sandbox together
11984       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
11985       on 0.2.5.1-alpha.
11987   o Minor bugfixes (control port, onion services):
11988     - Report "FAILED" instead of "UPLOAD_FAILED" "FAILED" for the
11989       HS_DESC event when a service is not able to upload a descriptor.
11990       Fixes bug 24230; bugfix on 0.2.7.1-alpha.
11992   o Minor bugfixes (directory cache):
11993     - Recover better from empty or corrupt files in the consensus cache
11994       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
11995     - When a consensus diff calculation is only partially successful,
11996       only record the successful parts as having succeeded. Partial
11997       success can happen if (for example) one compression method fails
11998       but the others succeed. Previously we misrecorded all the
11999       calculations as having succeeded, which would later cause a
12000       nonfatal assertion failure. Fixes bug 24086; bugfix
12001       on 0.3.1.1-alpha.
12003   o Minor bugfixes (logging):
12004     - Only log once if we notice that KIST support is gone. Fixes bug
12005       24158; bugfix on 0.3.2.1-alpha.
12006     - Suppress a log notice when relay descriptors arrive. We already
12007       have a bootstrap progress for this so no need to log notice
12008       everytime tor receives relay descriptors. Microdescriptors behave
12009       the same. Fixes bug 23861; bugfix on 0.2.8.2-alpha.
12011   o Minor bugfixes (network layer):
12012     - When closing a connection via close_connection_immediately(), we
12013       mark it as "not blocked on bandwidth", to prevent later calls from
12014       trying to unblock it, and give it permission to read. This fixes a
12015       backtrace warning that can happen on relays under various
12016       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
12018   o Minor bugfixes (onion services):
12019     - The introduction circuit was being timed out too quickly while
12020       waiting for the rendezvous circuit to complete. Keep the intro
12021       circuit around longer instead of timing out and reopening new ones
12022       constantly. Fixes bug 23681; bugfix on 0.2.4.8-alpha.
12023     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
12024       so it matches dir-spec.txt. Fixes bug 24262; bugfix
12025       on 0.3.1.1-alpha.
12026     - Silence a warning about failed v3 onion descriptor uploads that
12027       can happen naturally under certain edge cases. Fixes part of bug
12028       23662; bugfix on 0.3.2.1-alpha.
12030   o Minor bugfixes (tests):
12031     - Fix a memory leak in one of the bridge-distribution test cases.
12032       Fixes bug 24345; bugfix on 0.3.2.3-alpha.
12033     - Fix a bug in our fuzzing mock replacement for crypto_pk_checksig(),
12034       to correctly handle cases where a caller gives it an RSA key of
12035       under 160 bits. (This is not actually a bug in Tor itself, but
12036       rather in our fuzzing code.) Fixes bug 24247; bugfix on
12037       0.3.0.3-alpha. Found by OSS-Fuzz as issue 4177.
12039   o Documentation:
12040     - Add notes in man page regarding OS support for the various
12041       scheduler types. Attempt to use less jargon in the scheduler
12042       section. Closes ticket 24254.
12045 Changes in version 0.3.2.4-alpha - 2017-11-08
12046   Tor 0.3.2.4-alpha is the fourth alpha release in the 0.3.2.x series.
12047   It fixes several stability and reliability bugs, especially including
12048   a major reliability issue that has been plaguing fast exit relays in
12049   recent months.
12051   o Major bugfixes (exit relays, DNS):
12052     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
12053       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
12054       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
12055       identifying and finding a workaround to this bug and to Moritz,
12056       Arthur Edelstein, and Roger for helping to track it down and
12057       analyze it.
12059   o Major bugfixes (scheduler, channel):
12060     - Stop processing scheduled channels if they closed while flushing
12061       cells. This can happen if the write on the connection fails
12062       leading to the channel being closed while in the scheduler loop.
12063       Fixes bug 23751; bugfix on 0.3.2.1-alpha.
12065   o Minor features (logging, scheduler):
12066     - Introduce a SCHED_BUG() function to log extra information about
12067       the scheduler state if we ever catch a bug in the scheduler.
12068       Closes ticket 23753.
12070   o Minor features (removed deprecations):
12071     - The ClientDNSRejectInternalAddresses flag can once again be set in
12072       non-testing Tor networks, so long as they do not use the default
12073       directory authorities. This change also removes the deprecation of
12074       this flag from 0.2.9.2-alpha. Closes ticket 21031.
12076   o Minor features (testing):
12077     - Our fuzzing tests now test the encrypted portions of v3 onion
12078       service descriptors. Implements more of 21509.
12080   o Minor bugfixes (directory client):
12081     - On failure to download directory information, delay retry attempts
12082       by a random amount based on the "decorrelated jitter" algorithm.
12083       Our previous delay algorithm tended to produce extra-long delays
12084       too easily. Fixes bug 23816; bugfix on 0.2.9.1-alpha.
12086   o Minor bugfixes (IPv6, v3 single onion services):
12087     - Remove buggy code for IPv6-only v3 single onion services, and
12088       reject attempts to configure them. This release supports IPv4,
12089       dual-stack, and IPv6-only v3 onion services; and IPv4 and dual-
12090       stack v3 single onion services. Fixes bug 23820; bugfix
12091       on 0.3.2.1-alpha.
12093   o Minor bugfixes (logging, relay):
12094     - Give only a protocol warning when the ed25519 key is not
12095       consistent between the descriptor and microdescriptor of a relay.
12096       This can happen, for instance, if the relay has been flagged
12097       NoEdConsensus. Fixes bug 24025; bugfix on 0.3.2.1-alpha.
12099   o Minor bugfixes (manpage, onion service):
12100     - Document that the HiddenServiceNumIntroductionPoints option is
12101       0-10 for v2 services and 0-20 for v3 services. Fixes bug 24115;
12102       bugfix on 0.3.2.1-alpha.
12104   o Minor bugfixes (memory leaks):
12105     - Fix a minor memory leak at exit in the KIST scheduler. This bug
12106       should have no user-visible impact. Fixes bug 23774; bugfix
12107       on 0.3.2.1-alpha.
12108     - Fix a memory leak when decrypting a badly formatted v3 onion
12109       service descriptor. Fixes bug 24150; bugfix on 0.3.2.1-alpha.
12110       Found by OSS-Fuzz; this is OSS-Fuzz issue 3994.
12112   o Minor bugfixes (onion services):
12113     - Cache some needed onion service client information instead of
12114       constantly computing it over and over again. Fixes bug 23623;
12115       bugfix on 0.3.2.1-alpha.
12116     - Properly retry HSv3 descriptor fetches when missing required
12117       directory information. Fixes bug 23762; bugfix on 0.3.2.1-alpha.
12119   o Minor bugfixes (path selection):
12120     - When selecting relays by bandwidth, avoid a rounding error that
12121       could sometimes cause load to be imbalanced incorrectly.
12122       Previously, we would always round upwards; now, we round towards
12123       the nearest integer. This had the biggest effect when a relay's
12124       weight adjustments should have given it weight 0, but it got
12125       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
12126     - When calculating the fraction of nodes that have descriptors, and
12127       all nodes in the network have zero bandwidths, count the number of
12128       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
12129     - Actually log the total bandwidth in compute_weighted_bandwidths().
12130       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
12132   o Minor bugfixes (relay, crash):
12133     - Avoid a crash when transitioning from client mode to bridge mode.
12134       Previously, we would launch the worker threads whenever our
12135       "public server" mode changed, but not when our "server" mode
12136       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
12138   o Minor bugfixes (testing):
12139     - Fix a spurious fuzzing-only use of an uninitialized value. Found
12140       by Brian Carpenter. Fixes bug 24082; bugfix on 0.3.0.3-alpha.
12141     - Test that IPv6-only clients can use microdescriptors when running
12142       "make test-network-all". Requires chutney master 61c28b9 or later.
12143       Closes ticket 24109.
12146 Changes in version 0.3.2.3-alpha - 2017-10-27
12147   Tor 0.3.2.3-alpha is the third release in the 0.3.2 series. It fixes
12148   numerous small bugs in earlier versions of 0.3.2.x, and adds a new
12149   directory authority, Bastet.
12151   o Directory authority changes:
12152     - Add "Bastet" as a ninth directory authority to the default list.
12153       Closes ticket 23910.
12154     - The directory authority "Longclaw" has changed its IP address.
12155       Closes ticket 23592.
12157   o Minor features (bridge):
12158     - Bridge relays can now set the BridgeDistribution config option to
12159       add a "bridge-distribution-request" line to their bridge
12160       descriptor, which tells BridgeDB how they'd like their bridge
12161       address to be given out. (Note that as of Oct 2017, BridgeDB does
12162       not yet implement this feature.) As a side benefit, this feature
12163       provides a way to distinguish bridge descriptors from non-bridge
12164       descriptors. Implements tickets 18329.
12166   o Minor features (client, entry guards):
12167     - Improve log messages when missing descriptors for primary guards.
12168       Resolves ticket 23670.
12170   o Minor features (geoip):
12171     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12172       Country database.
12174   o Minor bugfixes (bridge):
12175     - Overwrite the bridge address earlier in the process of retrieving
12176       its descriptor, to make sure we reach it on the configured
12177       address. Fixes bug 20532; bugfix on 0.2.0.10-alpha.
12179   o Minor bugfixes (documentation):
12180     - Document better how to read gcov, and what our gcov postprocessing
12181       scripts do. Fixes bug 23739; bugfix on 0.2.9.1-alpha.
12183   o Minor bugfixes (entry guards):
12184     - Tor now updates its guard state when it reads a consensus
12185       regardless of whether it's missing descriptors. That makes tor use
12186       its primary guards to fetch descriptors in some edge cases where
12187       it would previously have used fallback directories. Fixes bug
12188       23862; bugfix on 0.3.0.1-alpha.
12190   o Minor bugfixes (hidden service client):
12191     - When handling multiple SOCKS request for the same .onion address,
12192       only fetch the service descriptor once.
12193     - When a descriptor fetch fails with a non-recoverable error, close
12194       all pending SOCKS requests for that .onion. Fixes bug 23653;
12195       bugfix on 0.3.2.1-alpha.
12197   o Minor bugfixes (hidden service):
12198     - Always regenerate missing hidden service public key files. Prior
12199       to this, if the public key was deleted from disk, it wouldn't get
12200       recreated. Fixes bug 23748; bugfix on 0.3.2.2-alpha. Patch
12201       from "cathugger".
12202     - Make sure that we have a usable ed25519 key when the intro point
12203       relay supports ed25519 link authentication. Fixes bug 24002;
12204       bugfix on 0.3.2.1-alpha.
12206   o Minor bugfixes (hidden service, v2):
12207     - When reloading configured hidden services, copy all information
12208       from the old service object. Previously, some data was omitted,
12209       causing delays in descriptor upload, and other bugs. Fixes bug
12210       23790; bugfix on 0.2.1.9-alpha.
12212   o Minor bugfixes (memory safety, defensive programming):
12213     - Clear the target address when node_get_prim_orport() returns
12214       early. Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12216   o Minor bugfixes (relay):
12217     - Avoid a BUG warning when receiving a dubious CREATE cell while an
12218       option transition is in progress. Fixes bug 23952; bugfix
12219       on 0.3.2.1-alpha.
12221   o Minor bugfixes (testing):
12222     - Adjust the GitLab CI configuration to more closely match that of
12223       Travis CI. Fixes bug 23757; bugfix on 0.3.2.2-alpha.
12224     - Prevent scripts/test/coverage from attempting to move gcov output
12225       to the root directory. Fixes bug 23741; bugfix on 0.2.5.1-alpha.
12226     - When running unit tests as root, skip a test that would fail
12227       because it expects a permissions error. This affects some
12228       continuous integration setups. Fixes bug 23758; bugfix
12229       on 0.3.2.2-alpha.
12230     - Stop unconditionally mirroring the tor repository in GitLab CI.
12231       This prevented developers from enabling GitLab CI on master. Fixes
12232       bug 23755; bugfix on 0.3.2.2-alpha.
12233     - Fix the hidden service v3 descriptor decoding fuzzing to use the
12234       latest decoding API correctly. Fixes bug 21509; bugfix
12235       on 0.3.2.1-alpha.
12237   o Minor bugfixes (warnings):
12238     - When we get an HTTP request on a SOCKS port, tell the user about
12239       the new HTTPTunnelPort option. Previously, we would give a "Tor is
12240       not an HTTP Proxy" message, which stopped being true when
12241       HTTPTunnelPort was introduced. Fixes bug 23678; bugfix
12242       on 0.3.2.1-alpha.
12245 Changes in version 0.2.5.15 - 2017-10-25
12246   Tor 0.2.5.15 backports a collection of bugfixes from later Tor release
12247   series. It also adds a new directory authority, Bastet.
12249   Note: the Tor 0.2.5 series will no longer be supported after 1 May
12250   2018. If you need a release with long-term support, please upgrade to
12251   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
12253   o Directory authority changes:
12254     - Add "Bastet" as a ninth directory authority to the default list.
12255       Closes ticket 23910.
12256     - The directory authority "Longclaw" has changed its IP address.
12257       Closes ticket 23592.
12259   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
12260     - Avoid an assertion failure bug affecting our implementation of
12261       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
12262       handling of "0xx" differs from what we had expected. Fixes bug
12263       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
12265   o Minor features (geoip):
12266     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12267       Country database.
12269   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
12270     - Fix a memset() off the end of an array when packing cells. This
12271       bug should be harmless in practice, since the corrupted bytes are
12272       still in the same structure, and are always padding bytes,
12273       ignored, or immediately overwritten, depending on compiler
12274       behavior. Nevertheless, because the memset()'s purpose is to make
12275       sure that any other cell-handling bugs can't expose bytes to the
12276       network, we need to fix it. Fixes bug 22737; bugfix on
12277       0.2.4.11-alpha. Fixes CID 1401591.
12279   o Build features (backport from 0.3.1.5-alpha):
12280     - Tor's repository now includes a Travis Continuous Integration (CI)
12281       configuration file (.travis.yml). This is meant to help new
12282       developers and contributors who fork Tor to a Github repository be
12283       better able to test their changes, and understand what we expect
12284       to pass. To use this new build feature, you must fork Tor to your
12285       Github account, then go into the "Integrations" menu in the
12286       repository settings for your fork and enable Travis, then push
12287       your changes. Closes ticket 22636.
12290 Changes in version 0.2.8.16 - 2017-10-25
12291   Tor 0.2.8.16 backports a collection of bugfixes from later Tor release
12292   series, including a bugfix for a crash issue that had affected relays
12293   under memory pressure. It also adds a new directory authority, Bastet.
12295   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
12296   2018. If you need a release with long-term support, please stick with
12297   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
12299   o Directory authority changes:
12300     - Add "Bastet" as a ninth directory authority to the default list.
12301       Closes ticket 23910.
12302     - The directory authority "Longclaw" has changed its IP address.
12303       Closes ticket 23592.
12305   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
12306     - Fix a timing-based assertion failure that could occur when the
12307       circuit out-of-memory handler freed a connection's output buffer.
12308       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12310   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
12311     - Remove longclaw's IPv6 address, as it will soon change. Authority
12312       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12313       3/8 directory authorities with IPv6 addresses, but there are also
12314       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12316   o Minor features (geoip):
12317     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12318       Country database.
12321 Changes in version 0.2.9.13 - 2017-10-25
12322   Tor 0.2.9.13 backports a collection of bugfixes from later Tor release
12323   series, including a bugfix for a crash issue that had affected relays
12324   under memory pressure. It also adds a new directory authority, Bastet.
12326   o Directory authority changes:
12327     - Add "Bastet" as a ninth directory authority to the default list.
12328       Closes ticket 23910.
12329     - The directory authority "Longclaw" has changed its IP address.
12330       Closes ticket 23592.
12332   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
12333     - Fix a timing-based assertion failure that could occur when the
12334       circuit out-of-memory handler freed a connection's output buffer.
12335       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12337   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
12338     - Remove longclaw's IPv6 address, as it will soon change. Authority
12339       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12340       3/8 directory authorities with IPv6 addresses, but there are also
12341       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12343   o Minor features (geoip):
12344     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12345       Country database.
12347   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
12348     - When a directory authority rejects a descriptor or extrainfo with
12349       a given digest, mark that digest as undownloadable, so that we do
12350       not attempt to download it again over and over. We previously
12351       tried to avoid downloading such descriptors by other means, but we
12352       didn't notice if we accidentally downloaded one anyway. This
12353       behavior became problematic in 0.2.7.2-alpha, when authorities
12354       began pinning Ed25519 keys. Fixes bug 22349; bugfix
12355       on 0.2.1.19-alpha.
12357   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
12358     - Clear the address when node_get_prim_orport() returns early.
12359       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12361   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
12362     - When running as a Windows service, set the ID of the main thread
12363       correctly. Failure to do so made us fail to send log messages to
12364       the controller in 0.2.1.16-rc, slowed down controller event
12365       delivery in 0.2.7.3-rc and later, and crash with an assertion
12366       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
12367       Patch and diagnosis from "Vort".
12370 Changes in version 0.3.0.12 - 2017-10-25
12371   Tor 0.3.0.12 backports a collection of bugfixes from later Tor release
12372   series, including a bugfix for a crash issue that had affected relays
12373   under memory pressure. It also adds a new directory authority, Bastet.
12375   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
12376   2018. If you need a release with long-term support, please stick with
12377   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
12379   o Directory authority changes:
12380     - Add "Bastet" as a ninth directory authority to the default list.
12381       Closes ticket 23910.
12382     - The directory authority "Longclaw" has changed its IP address.
12383       Closes ticket 23592.
12385   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
12386     - Fix a timing-based assertion failure that could occur when the
12387       circuit out-of-memory handler freed a connection's output buffer.
12388       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12390   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
12391     - Remove longclaw's IPv6 address, as it will soon change. Authority
12392       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12393       3/8 directory authorities with IPv6 addresses, but there are also
12394       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12396   o Minor features (geoip):
12397     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12398       Country database.
12400   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
12401     - When a directory authority rejects a descriptor or extrainfo with
12402       a given digest, mark that digest as undownloadable, so that we do
12403       not attempt to download it again over and over. We previously
12404       tried to avoid downloading such descriptors by other means, but we
12405       didn't notice if we accidentally downloaded one anyway. This
12406       behavior became problematic in 0.2.7.2-alpha, when authorities
12407       began pinning Ed25519 keys. Fixes bug 22349; bugfix
12408       on 0.2.1.19-alpha.
12410   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
12411     - Avoid a possible double close of a circuit by the intro point on
12412       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
12413       bugfix on 0.3.0.1-alpha.
12415   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
12416     - Clear the address when node_get_prim_orport() returns early.
12417       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12419   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
12420     - When running as a Windows service, set the ID of the main thread
12421       correctly. Failure to do so made us fail to send log messages to
12422       the controller in 0.2.1.16-rc, slowed down controller event
12423       delivery in 0.2.7.3-rc and later, and crash with an assertion
12424       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
12425       Patch and diagnosis from "Vort".
12428 Changes in version 0.3.1.8 - 2017-10-25
12429   Tor 0.3.1.8 is the second stable release in the 0.3.1 series.
12430   It includes several bugfixes, including a bugfix for a crash issue
12431   that had affected relays under memory pressure. It also adds
12432   a new directory authority, Bastet.
12434   o Directory authority changes:
12435     - Add "Bastet" as a ninth directory authority to the default list.
12436       Closes ticket 23910.
12437     - The directory authority "Longclaw" has changed its IP address.
12438       Closes ticket 23592.
12440   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
12441     - Fix a timing-based assertion failure that could occur when the
12442       circuit out-of-memory handler freed a connection's output buffer.
12443       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12445   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
12446     - Remove longclaw's IPv6 address, as it will soon change. Authority
12447       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12448       3/8 directory authorities with IPv6 addresses, but there are also
12449       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12451   o Minor features (geoip):
12452     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
12453       Country database.
12455   o Minor bugfixes (compilation, backport from 0.3.2.2-alpha):
12456     - Fix a compilation warning when building with zstd support on
12457       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
12458       and fixed by Andreas Stieger.
12460   o Minor bugfixes (compression, backport from 0.3.2.2-alpha):
12461     - Handle a pathological case when decompressing Zstandard data when
12462       the output buffer size is zero. Fixes bug 23551; bugfix
12463       on 0.3.1.1-alpha.
12465   o Minor bugfixes (directory authority, backport from 0.3.2.1-alpha):
12466     - Remove the length limit on HTTP status lines that authorities can
12467       send in their replies. Fixes bug 23499; bugfix on 0.3.1.6-rc.
12469   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
12470     - Avoid a possible double close of a circuit by the intro point on
12471       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
12472       bugfix on 0.3.0.1-alpha.
12474   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
12475     - Clear the address when node_get_prim_orport() returns early.
12476       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
12478   o Minor bugfixes (unit tests, backport from 0.3.2.2-alpha):
12479     - Fix additional channelpadding unit test failures by using mocked
12480       time instead of actual time for all tests. Fixes bug 23608; bugfix
12481       on 0.3.1.1-alpha.
12484 Changes in version 0.3.2.2-alpha - 2017-09-29
12485   Tor 0.3.2.2-alpha is the second release in the 0.3.2 series. This
12486   release fixes several minor bugs in the new scheduler and next-
12487   generation onion services; both features were newly added in the 0.3.2
12488   series. Other fixes in this alpha include several fixes for non-fatal
12489   tracebacks which would appear in logs.
12491   With the aim to stabilise the 0.3.2 series by 15 December 2017, this
12492   alpha does not contain any substantial new features. Minor features
12493   include better testing and logging.
12495   The following comprises the complete list of changes included
12496   in 0.3.2.2-alpha:
12498   o Major bugfixes (relay, crash, assertion failure):
12499     - Fix a timing-based assertion failure that could occur when the
12500       circuit out-of-memory handler freed a connection's output buffer.
12501       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
12503   o Major bugfixes (scheduler):
12504     - If a channel is put into the scheduler's pending list, then it
12505       starts closing, and then if the scheduler runs before it finishes
12506       closing, the scheduler will get stuck trying to flush its cells
12507       while the lower layers refuse to cooperate. Fix that race
12508       condition by giving the scheduler an escape method. Fixes bug
12509       23676; bugfix on 0.3.2.1-alpha.
12511   o Minor features (build, compilation):
12512     - The "check-changes" feature is now part of the "make check" tests;
12513       we'll use it to try to prevent misformed changes files from
12514       accumulating. Closes ticket 23564.
12515     - Tor builds should now fail if there are any mismatches between the
12516       C type representing a configuration variable and the C type the
12517       data-driven parser uses to store a value there. Previously, we
12518       needed to check these by hand, which sometimes led to mistakes.
12519       Closes ticket 23643.
12521   o Minor features (directory authorities):
12522     - Remove longclaw's IPv6 address, as it will soon change. Authority
12523       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
12524       3/8 directory authorities with IPv6 addresses, but there are also
12525       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
12527   o Minor features (hidden service, circuit, logging):
12528     - Improve logging of many callsite in the circuit subsystem to print
12529       the circuit identifier(s).
12530     - Log when we cleanup an intro point from a service so we know when
12531       and for what reason it happened. Closes ticket 23604.
12533   o Minor features (logging):
12534     - Log more circuit information whenever we are about to try to
12535       package a relay cell on a circuit with a nonexistent n_chan.
12536       Attempt to diagnose ticket 8185.
12537     - Improve info-level log identification of particular circuits, to
12538       help with debugging. Closes ticket 23645.
12540   o Minor features (relay):
12541     - When choosing which circuits can be expired as unused, consider
12542       circuits from clients even if those clients used regular CREATE
12543       cells to make them; and do not consider circuits from relays even
12544       if they were made with CREATE_FAST. Part of ticket 22805.
12546   o Minor features (robustness):
12547     - Change several fatal assertions when flushing buffers into non-
12548       fatal assertions, to prevent any recurrence of 23690.
12550   o Minor features (spec conformance, bridge, diagnostic):
12551     - When handling the USERADDR command on an ExtOrPort, warn when the
12552       transports provides a USERADDR with no port. In a future version,
12553       USERADDR commands of this format may be rejected. Detects problems
12554       related to ticket 23080.
12556   o Minor features (testing):
12557     - Add a unit test to make sure that our own generated platform
12558       string will be accepted by directory authorities. Closes
12559       ticket 22109.
12561   o Minor bugfixes (bootstrapping):
12562     - When warning about state file clock skew, report the correct
12563       direction for the detected skew. Fixes bug 23606; bugfix
12564       on 0.2.8.1-alpha.
12565     - Avoid an assertion failure when logging a state file clock skew
12566       very early in bootstrapping. Fixes bug 23607; bugfix
12567       on 0.3.2.1-alpha.
12569   o Minor bugfixes (build, compilation):
12570     - Fix a compilation warning when building with zstd support on
12571       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
12572       and fixed by Andreas Stieger.
12573     - When searching for OpenSSL, don't accept any OpenSSL library that
12574       lacks TLSv1_1_method(): Tor doesn't build with those versions.
12575       Additionally, look in /usr/local/opt/openssl, if it's present.
12576       These changes together repair the default build on OSX systems
12577       with Homebrew installed. Fixes bug 23602; bugfix on 0.2.7.2-alpha.
12579   o Minor bugfixes (compression):
12580     - Handle a pathological case when decompressing Zstandard data when
12581       the output buffer size is zero. Fixes bug 23551; bugfix
12582       on 0.3.1.1-alpha.
12584   o Minor bugfixes (documentation):
12585     - Fix manpage to not refer to the obsolete (and misspelled)
12586       UseEntryGuardsAsDirectoryGuards parameter in the description of
12587       NumDirectoryGuards. Fixes bug 23611; bugfix on 0.2.4.8-alpha.
12589   o Minor bugfixes (hidden service v3):
12590     - Don't log an assertion failure when we can't find the right
12591       information to extend to an introduction point. In rare cases,
12592       this could happen, causing a warning, even though tor would
12593       recover gracefully. Fixes bug 23159; bugfix on 0.3.2.1-alpha.
12594     - Pad RENDEZVOUS cell up to the size of the legacy cell which is
12595       much bigger so the rendezvous point can't distinguish which hidden
12596       service protocol is being used. Fixes bug 23420; bugfix
12597       on 0.3.2.1-alpha.
12599   o Minor bugfixes (hidden service, relay):
12600     - Avoid a possible double close of a circuit by the intro point on
12601       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
12602       bugfix on 0.3.0.1-alpha.
12604   o Minor bugfixes (logging, relay shutdown, annoyance):
12605     - When a circuit is marked for close, do not attempt to package any
12606       cells for channels on that circuit. Previously, we would detect
12607       this condition lower in the call stack, when we noticed that the
12608       circuit had no attached channel, and log an annoying message.
12609       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
12611   o Minor bugfixes (scheduler):
12612     - When switching schedulers due to a consensus change, we didn't
12613       give the new scheduler a chance to react to the consensus. Fix
12614       that. Fixes bug 23537; bugfix on 0.3.2.1-alpha.
12615     - Make the KISTSchedRunInterval option a non negative value. With
12616       this, the way to disable KIST through the consensus is to set it
12617       to 0. Fixes bug 23539; bugfix on 0.3.2.1-alpha.
12618     - Only notice log the selected scheduler when we switch scheduler
12619       types. Fixes bug 23552; bugfix on 0.3.2.1-alpha.
12620     - Avoid a compilation warning on macOS in scheduler_ev_add() caused
12621       by a different tv_usec data type. Fixes bug 23575; bugfix
12622       on 0.3.2.1-alpha.
12623     - Make a hard exit if tor is unable to pick a scheduler which can
12624       happen if the user specifies a scheduler type that is not
12625       supported and not other types in Schedulers. Fixes bug 23581;
12626       bugfix on 0.3.2.1-alpha.
12627     - Properly initialize the scheduler last run time counter so it is
12628       not 0 at the first tick. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
12630   o Minor bugfixes (testing):
12631     - Capture and detect several "Result does not fit" warnings in unit
12632       tests on platforms with 32-bit time_t. Fixes bug 21800; bugfix
12633       on 0.2.9.3-alpha.
12634     - Fix additional channelpadding unit test failures by using mocked
12635       time instead of actual time for all tests. Fixes bug 23608; bugfix
12636       on 0.3.1.1-alpha.
12637     - The removal of some old scheduler options caused some tests to
12638       fail on BSD systems. Assume current behavior is correct and make
12639       the tests pass again. Fixes bug 23566; bugfix on 0.3.2.1-alpha.
12641   o Code simplification and refactoring:
12642     - Remove various ways of testing circuits and connections for
12643       "clientness"; instead, favor channel_is_client(). Part of
12644       ticket 22805.
12646   o Deprecated features:
12647     - The ReachableDirAddresses and ClientPreferIPv6DirPort options are
12648       now deprecated; they do not apply to relays, and they have had no
12649       effect on clients since 0.2.8.x. Closes ticket 19704.
12651   o Documentation:
12652     - HiddenServiceVersion man page entry wasn't mentioning the now
12653       supported version 3. Fixes ticket 23580; bugfix on 0.3.2.1-alpha.
12654     - Clarify that the Address option is entirely about setting an
12655       advertised IPv4 address. Closes ticket 18891.
12656     - Clarify the manpage's use of the term "address" to clarify what
12657       kind of address is intended. Closes ticket 21405.
12658     - Document that onion service subdomains are allowed, and ignored.
12659       Closes ticket 18736.
12662 Changes in version 0.3.2.1-alpha - 2017-09-18
12663   Tor 0.3.2.1-alpha is the first release in the 0.3.2.x series. It
12664   includes support for our next-generation ("v3") onion service
12665   protocol, and adds a new circuit scheduler for more responsive
12666   forwarding decisions from relays. There are also numerous other small
12667   features and bugfixes here.
12669   Below are the changes since Tor 0.3.1.7.
12671   o Major feature (scheduler, channel):
12672     - Tor now uses new schedulers to decide which circuits should
12673       deliver cells first, in order to improve congestion at relays. The
12674       first type is called "KIST" ("Kernel Informed Socket Transport"),
12675       and is only available on Linux-like systems: it uses feedback from
12676       the kernel to prevent the kernel's TCP buffers from growing too
12677       full. The second new scheduler type is called "KISTLite": it
12678       behaves the same as KIST, but runs on systems without kernel
12679       support for inspecting TCP implementation details. The old
12680       scheduler is still available, under the name "Vanilla". To change
12681       the default scheduler preference order, use the new "Schedulers"
12682       option. (The default preference order is "KIST,KISTLite,Vanilla".)
12684       Matt Traudt implemented KIST, based on research by Rob Jansen,
12685       John Geddes, Christ Wacek, Micah Sherr, and Paul Syverson. For
12686       more information, see the design paper at
12687       http://www.robgjansen.com/publications/kist-sec2014.pdf and the
12688       followup implementation paper at https://arxiv.org/abs/1709.01044.
12689       Closes ticket 12541.
12691   o Major features (next-generation onion services):
12692     - Tor now supports the next-generation onion services protocol for
12693       clients and services! As part of this release, the core of
12694       proposal 224 has been implemented and is available for
12695       experimentation and testing by our users. This newer version of
12696       onion services ("v3") features many improvements over the legacy
12697       system, including:
12699       a) Better crypto (replaced SHA1/DH/RSA1024
12700       with SHA3/ed25519/curve25519)
12702       b) Improved directory protocol, leaking much less information to
12703       directory servers.
12705       c) Improved directory protocol, with smaller surface for
12706       targeted attacks.
12708       d) Better onion address security against impersonation.
12710       e) More extensible introduction/rendezvous protocol.
12712       f) A cleaner and more modular codebase.
12714       You can identify a next-generation onion address by its length:
12715       they are 56 characters long, as in
12716       "4acth47i6kxnvkewtm6q7ib2s3ufpo5sqbsnzjpbi7utijcltosqemad.onion".
12718       In the future, we will release more options and features for v3
12719       onion services, but we first need a testing period, so that the
12720       current codebase matures and becomes more robust. Planned features
12721       include: offline keys, advanced client authorization, improved
12722       guard algorithms, and statistics. For full details, see
12723       proposal 224.
12725       Legacy ("v2") onion services will still work for the foreseeable
12726       future, and will remain the default until this new codebase gets
12727       tested and hardened. Service operators who want to experiment with
12728       the new system can use the 'HiddenServiceVersion 3' torrc
12729       directive along with the regular onion service configuration
12730       options. We will publish a blog post about this new feature
12731       soon! Enjoy!
12733   o Major bugfixes (usability, control port):
12734     - Report trusted clock skew indications as bootstrap errors, so
12735       controllers can more easily alert users when their clocks are
12736       wrong. Fixes bug 23506; bugfix on 0.1.2.6-alpha.
12738   o Minor features (bug detection):
12739     - Log a warning message with a stack trace for any attempt to call
12740       get_options() during option validation. This pattern has caused
12741       subtle bugs in the past. Closes ticket 22281.
12743   o Minor features (client):
12744     - You can now use Tor as a tunneled HTTP proxy: use the new
12745       HTTPTunnelPort option to open a port that accepts HTTP CONNECT
12746       requests. Closes ticket 22407.
12747     - Add an extra check to make sure that we always use the newer guard
12748       selection code for picking our guards. Closes ticket 22779.
12749     - When downloading (micro)descriptors, don't split the list into
12750       multiple requests unless we want at least 32 descriptors.
12751       Previously, we split at 4, not 32, which led to significant
12752       overhead in HTTP request size and degradation in compression
12753       performance. Closes ticket 23220.
12755   o Minor features (command line):
12756     - Add a new commandline option, --key-expiration, which prints when
12757       the current signing key is going to expire. Implements ticket
12758       17639; patch by Isis Lovecruft.
12760   o Minor features (control port):
12761     - If an application tries to use the control port as an HTTP proxy,
12762       respond with a meaningful "This is the Tor control port" message,
12763       and log the event. Closes ticket 1667. Patch from Ravi
12764       Chandra Padmala.
12765     - Provide better error message for GETINFO desc/(id|name) when not
12766       fetching router descriptors. Closes ticket 5847. Patch by
12767       Kevin Butler.
12768     - Add GETINFO "{desc,md}/download-enabled", to inform the controller
12769       whether Tor will try to download router descriptors and
12770       microdescriptors respectively. Closes ticket 22684.
12771     - Added new GETINFO targets "ip-to-country/{ipv4,ipv6}-available",
12772       so controllers can tell whether the geoip databases are loaded.
12773       Closes ticket 23237.
12774     - Adds a timestamp field to the CIRC_BW and STREAM_BW bandwidth
12775       events. Closes ticket 19254. Patch by "DonnchaC".
12777   o Minor features (development support):
12778     - Developers can now generate a call-graph for Tor using the
12779       "calltool" python program, which post-processes object dumps. It
12780       should work okay on many Linux and OSX platforms, and might work
12781       elsewhere too. To run it, install calltool from
12782       https://gitweb.torproject.org/user/nickm/calltool.git and run
12783       "make callgraph". Closes ticket 19307.
12785   o Minor features (ed25519):
12786     - Add validation function to checks for torsion components in
12787       ed25519 public keys, used by prop224 client-side code. Closes
12788       ticket 22006. Math help by Ian Goldberg.
12790   o Minor features (exit relay, DNS):
12791     - Improve the clarity and safety of the log message from evdns when
12792       receiving an apparently spoofed DNS reply. Closes ticket 3056.
12794   o Minor features (integration, hardening):
12795     - Add a new NoExec option to prevent Tor from running other
12796       programs. When this option is set to 1, Tor will never try to run
12797       another program, regardless of the settings of
12798       PortForwardingHelper, ClientTransportPlugin, or
12799       ServerTransportPlugin. Once NoExec is set, it cannot be disabled
12800       without restarting Tor. Closes ticket 22976.
12802   o Minor features (logging):
12803     - Improve the warning message for specifying a relay by nickname.
12804       The previous message implied that nickname registration was still
12805       part of the Tor network design, which it isn't. Closes
12806       ticket 20488.
12807     - If the sandbox filter fails to load, suggest to the user that
12808       their kernel might not support seccomp2. Closes ticket 23090.
12810   o Minor features (portability):
12811     - Check at configure time whether uint8_t is the same type as
12812       unsigned char. Lots of existing code already makes this
12813       assumption, and there could be strict aliasing issues if the
12814       assumption is violated. Closes ticket 22410.
12816   o Minor features (relay, configuration):
12817     - Reject attempts to use relative file paths when RunAsDaemon is
12818       set. Previously, Tor would accept these, but the directory-
12819       changing step of RunAsDaemon would give strange and/or confusing
12820       results. Closes ticket 22731.
12822   o Minor features (startup, safety):
12823     - When configured to write a PID file, Tor now exits if it is unable
12824       to do so. Previously, it would warn and continue. Closes
12825       ticket 20119.
12827   o Minor features (static analysis):
12828     - The BUG() macro has been changed slightly so that Coverity no
12829       longer complains about dead code if the bug is impossible. Closes
12830       ticket 23054.
12832   o Minor features (testing):
12833     - The default chutney network tests now include tests for the v3
12834       hidden service design. Make sure you have the latest version of
12835       chutney if you want to run these. Closes ticket 22437.
12836     - Add a unit test to verify that we can parse a hardcoded v2 hidden
12837       service descriptor. Closes ticket 15554.
12839   o Minor bugfixes (certificate handling):
12840     - Fix a time handling bug in Tor certificates set to expire after
12841       the year 2106. Fixes bug 23055; bugfix on 0.3.0.1-alpha. Found by
12842       Coverity as CID 1415728.
12844   o Minor bugfixes (client, usability):
12845     - Refrain from needlessly rejecting SOCKS5-with-hostnames and
12846       SOCKS4a requests that contain IP address strings, even when
12847       SafeSocks in enabled, as this prevents user from connecting to
12848       known IP addresses without relying on DNS for resolving. SafeSocks
12849       still rejects SOCKS connections that connect to IP addresses when
12850       those addresses are _not_ encoded as hostnames. Fixes bug 22461;
12851       bugfix on Tor 0.2.6.2-alpha.
12853   o Minor bugfixes (code correctness):
12854     - Call htons() in extend_cell_format() for encoding a 16-bit value.
12855       Previously we used ntohs(), which happens to behave the same on
12856       all the platforms we support, but which isn't really correct.
12857       Fixes bug 23106; bugfix on 0.2.4.8-alpha.
12858     - For defense-in-depth, make the controller's write_escaped_data()
12859       function robust to extremely long inputs. Fixes bug 19281; bugfix
12860       on 0.1.1.1-alpha. Reported by Guido Vranken.
12862   o Minor bugfixes (compilation):
12863     - Fix unused-variable warnings in donna's Curve25519 SSE2 code.
12864       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
12866   o Minor bugfixes (consensus expiry):
12867     - Check for adequate directory information correctly. Previously, Tor
12868       would reconsider whether it had sufficient directory information
12869       every 2 minutes. Fixes bug 23091; bugfix on 0.2.0.19-alpha.
12871   o Minor bugfixes (directory protocol):
12872     - Directory servers now include a "Date:" http header for response
12873       codes other than 200. Clients starting with a skewed clock and a
12874       recent consensus were getting "304 Not modified" responses from
12875       directory authorities, so without the Date header, the client
12876       would never hear about a wrong clock. Fixes bug 23499; bugfix
12877       on 0.0.8rc1.
12878     - Make clients wait for 6 seconds before trying to download a
12879       consensus from an authority. Fixes bug 17750; bugfix
12880       on 0.2.8.1-alpha.
12882   o Minor bugfixes (DoS-resistance):
12883     - If future code asks if there are any running bridges, without
12884       checking if bridges are enabled, log a BUG warning rather than
12885       crashing. Fixes bug 23524; bugfix on 0.3.0.1-alpha.
12887   o Minor bugfixes (format strictness):
12888     - Restrict several data formats to decimal. Previously, the
12889       BuildTimeHistogram entries in the state file, the "bw=" entries in
12890       the bandwidth authority file, and the process IDs passed to the
12891       __OwningControllerProcess option could all be specified in hex or
12892       octal as well as in decimal. This was not an intentional feature.
12893       Fixes bug 22802; bugfixes on 0.2.2.1-alpha, 0.2.2.2-alpha,
12894       and 0.2.2.28-beta.
12896   o Minor bugfixes (heartbeat):
12897     - If we fail to write a heartbeat message, schedule a retry for the
12898       minimum heartbeat interval number of seconds in the future. Fixes
12899       bug 19476; bugfix on 0.2.3.1-alpha.
12901   o Minor bugfixes (linux seccomp2 sandbox, logging):
12902     - Fix some messages on unexpected errors from the seccomp2 library.
12903       Fixes bug 22750; bugfix on 0.2.5.1-alpha. Patch from "cypherpunks".
12905   o Minor bugfixes (logging):
12906     - Remove duplicate log messages regarding opening non-local
12907       SocksPorts upon parsing config and opening listeners at startup.
12908       Fixes bug 4019; bugfix on 0.2.3.3-alpha.
12909     - Use a more comprehensible log message when telling the user
12910       they've excluded every running exit node. Fixes bug 7890; bugfix
12911       on 0.2.2.25-alpha.
12912     - When logging the number of descriptors we intend to download per
12913       directory request, do not log a number higher than then the number
12914       of descriptors we're fetching in total. Fixes bug 19648; bugfix
12915       on 0.1.1.8-alpha.
12916     - When warning about a directory owned by the wrong user, log the
12917       actual name of the user owning the directory. Previously, we'd log
12918       the name of the process owner twice. Fixes bug 23487; bugfix
12919       on 0.2.9.1-alpha.
12920     - The tor specification says hop counts are 1-based, so fix two log
12921       messages that mistakenly logged 0-based hop counts. Fixes bug
12922       18982; bugfix on 0.2.6.2-alpha and 0.2.4.5-alpha. Patch by teor.
12923       Credit to Xiaofan Li for reporting this issue.
12925   o Minor bugfixes (portability):
12926     - Stop using the PATH_MAX variable, which is not defined on GNU
12927       Hurd. Fixes bug 23098; bugfix on 0.3.1.1-alpha.
12929   o Minor bugfixes (relay):
12930     - When uploading our descriptor for the first time after startup,
12931       report the reason for uploading as "Tor just started" rather than
12932       leaving it blank. Fixes bug 22885; bugfix on 0.2.3.4-alpha.
12933     - Avoid unnecessary calls to directory_fetches_from_authorities() on
12934       relays, to prevent spurious address resolutions and descriptor
12935       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
12936       bugfix on in 0.2.8.1-alpha.
12938   o Minor bugfixes (tests):
12939     - Fix a broken unit test for the OutboundAddress option: the parsing
12940       function was never returning an error on failure. Fixes bug 23366;
12941       bugfix on 0.3.0.3-alpha.
12942     - Fix a signed-integer overflow in the unit tests for
12943       dir/download_status_random_backoff, which was untriggered until we
12944       fixed bug 17750. Fixes bug 22924; bugfix on 0.2.9.1-alpha.
12946   o Minor bugfixes (usability, control port):
12947     - Stop making an unnecessary routerlist check in NETINFO clock skew
12948       detection; this was preventing clients from reporting NETINFO clock
12949       skew to controllers. Fixes bug 23532; bugfix on 0.2.4.4-alpha.
12951   o Code simplification and refactoring:
12952     - Extract the code for handling newly-open channels into a separate
12953       function from the general code to handle channel state
12954       transitions. This change simplifies our callgraph, reducing the
12955       size of the largest strongly connected component by roughly a
12956       factor of two. Closes ticket 22608.
12957     - Remove dead code for largely unused statistics on the number of
12958       times we've attempted various public key operations. Fixes bug
12959       19871; bugfix on 0.1.2.4-alpha. Fix by Isis Lovecruft.
12960     - Remove several now-obsolete functions for asking about old
12961       variants directory authority status. Closes ticket 22311; patch
12962       from "huyvq".
12963     - Remove some of the code that once supported "Named" and "Unnamed"
12964       routers. Authorities no longer vote for these flags. Closes
12965       ticket 22215.
12966     - Rename the obsolete malleable hybrid_encrypt functions used in TAP
12967       and old hidden services, to indicate that they aren't suitable for
12968       new protocols or formats. Closes ticket 23026.
12969     - Replace our STRUCT_OFFSET() macro with offsetof(). Closes ticket
12970       22521. Patch from Neel Chauhan.
12971     - Split the enormous circuit_send_next_onion_skin() function into
12972       multiple subfunctions. Closes ticket 22804.
12973     - Split the portions of the buffer.c module that handle particular
12974       protocols into separate modules. Part of ticket 23149.
12975     - Use our test macros more consistently, to produce more useful
12976       error messages when our unit tests fail. Add coccinelle patches to
12977       allow us to re-check for test macro uses. Closes ticket 22497.
12979   o Deprecated features:
12980     - Deprecate HTTPProxy/HTTPProxyAuthenticator config options. They
12981       only applies to direct unencrypted HTTP connections to your
12982       directory server, which your Tor probably isn't using. Closes
12983       ticket 20575.
12985   o Documentation:
12986     - Clarify in the manual that "Sandbox 1" is only supported on Linux
12987       kernels. Closes ticket 22677.
12988     - Document all values of PublishServerDescriptor in the manpage.
12989       Closes ticket 15645.
12990     - Improve the documentation for the directory port part of the
12991       DirAuthority line. Closes ticket 20152.
12992     - Restore documentation for the authorities' "approved-routers"
12993       file. Closes ticket 21148.
12995   o Removed features:
12996     - The AllowDotExit option has been removed as unsafe. It has been
12997       deprecated since 0.2.9.2-alpha. Closes ticket 23426.
12998     - The ClientDNSRejectInternalAddresses flag can no longer be set on
12999       non-testing networks. It has been deprecated since 0.2.9.2-alpha.
13000       Closes ticket 21031.
13001     - The controller API no longer includes an AUTHDIR_NEWDESCS event:
13002       nobody was using it any longer. Closes ticket 22377.
13005 Changes in version 0.2.8.15 - 2017-09-18
13006   Tor 0.2.8.15 backports a collection of bugfixes from later
13007   Tor series.
13009   Most significantly, it includes a fix for TROVE-2017-008, a
13010   security bug that affects hidden services running with the
13011   SafeLogging option disabled. For more information, see
13012   https://trac.torproject.org/projects/tor/ticket/23490
13014   Note that Tor 0.2.8.x will no longer be supported after 1 Jan
13015   2018.  We suggest that you upgrade to the latest stable release if
13016   possible.  If you can't, we recommend that you upgrade at least to
13017   0.2.9, which will be supported until 2020.
13019   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
13020     - Avoid an assertion failure bug affecting our implementation of
13021       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13022       handling of "0xx" differs from what we had expected. Fixes bug
13023       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13025   o Minor features:
13026     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
13027       Country database.
13029   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
13030     - Backport a fix for an "unused variable" warning that appeared
13031       in some versions of mingw. Fixes bug 22838; bugfix on
13032       0.2.8.1-alpha.
13034   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
13035     - Fix a memset() off the end of an array when packing cells. This
13036       bug should be harmless in practice, since the corrupted bytes are
13037       still in the same structure, and are always padding bytes,
13038       ignored, or immediately overwritten, depending on compiler
13039       behavior. Nevertheless, because the memset()'s purpose is to make
13040       sure that any other cell-handling bugs can't expose bytes to the
13041       network, we need to fix it. Fixes bug 22737; bugfix on
13042       0.2.4.11-alpha. Fixes CID 1401591.
13044   o Build features (backport from 0.3.1.5-alpha):
13045     - Tor's repository now includes a Travis Continuous Integration (CI)
13046       configuration file (.travis.yml). This is meant to help new
13047       developers and contributors who fork Tor to a Github repository be
13048       better able to test their changes, and understand what we expect
13049       to pass. To use this new build feature, you must fork Tor to your
13050       Github account, then go into the "Integrations" menu in the
13051       repository settings for your fork and enable Travis, then push
13052       your changes. Closes ticket 22636.
13055 Changes in version 0.2.9.12 - 2017-09-18
13056   Tor 0.2.9.12 backports a collection of bugfixes from later
13057   Tor series.
13059   Most significantly, it includes a fix for TROVE-2017-008, a
13060   security bug that affects hidden services running with the
13061   SafeLogging option disabled. For more information, see
13062   https://trac.torproject.org/projects/tor/ticket/23490
13064   o Major features (security, backport from 0.3.0.2-alpha):
13065     - Change the algorithm used to decide DNS TTLs on client and server
13066       side, to better resist DNS-based correlation attacks like the
13067       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
13068       Feamster. Now relays only return one of two possible DNS TTL
13069       values, and clients are willing to believe DNS TTL values up to 3
13070       hours long. Closes ticket 19769.
13072   o Major bugfixes (crash, directory connections, backport from 0.3.0.5-rc):
13073     - Fix a rare crash when sending a begin cell on a circuit whose
13074       linked directory connection had already been closed. Fixes bug
13075       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
13077   o Major bugfixes (DNS, backport from 0.3.0.2-alpha):
13078     - Fix a bug that prevented exit nodes from caching DNS records for
13079       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
13081   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
13082     - Fix a typo that had prevented TPROXY-based transparent proxying
13083       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
13084       Patch from "d4fq0fQAgoJ".
13086   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
13087     - Avoid an assertion failure bug affecting our implementation of
13088       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13089       handling of "0xx" differs from what we had expected. Fixes bug
13090       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13092   o Minor features (code style, backport from 0.3.1.3-alpha):
13093     - Add "Falls through" comments to our codebase, in order to silence
13094       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
13095       Stieger. Closes ticket 22446.
13097   o Minor features (geoip):
13098     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
13099       Country database.
13101   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.1-alpha):
13102     - Roll over monthly accounting at the configured hour and minute,
13103       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
13104       Found by Andrey Karpov with PVS-Studio.
13106   o Minor bugfixes (compilation, backport from 0.3.1.5-alpha):
13107     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
13108       bugfix on 0.2.8.1-alpha.
13109     - Fix warnings when building with libscrypt and openssl scrypt support
13110       on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
13111     - When building with certain versions the mingw C header files, avoid
13112       float-conversion warnings when calling the C functions isfinite(),
13113       isnan(), and signbit(). Fixes bug 22801; bugfix on 0.2.8.1-alpha.
13115   o Minor bugfixes (compilation, backport from 0.3.1.7):
13116     - Avoid compiler warnings in the unit tests for running tor_sscanf()
13117       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
13119   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
13120     - Backport a fix for an "unused variable" warning that appeared
13121       in some versions of mingw. Fixes bug 22838; bugfix on
13122       0.2.8.1-alpha.
13124   o Minor bugfixes (controller, backport from 0.3.1.7):
13125     - Do not crash when receiving a HSPOST command with an empty body.
13126       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
13127     - Do not crash when receiving a POSTDESCRIPTOR command with an
13128       empty body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
13130   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
13131     - Avoid Coverity build warnings related to our BUG() macro. By
13132       default, Coverity treats BUG() as the Linux kernel does: an
13133       instant abort(). We need to override that so our BUG() macro
13134       doesn't prevent Coverity from analyzing functions that use it.
13135       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
13137   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
13138     - Fix a memset() off the end of an array when packing cells. This
13139       bug should be harmless in practice, since the corrupted bytes are
13140       still in the same structure, and are always padding bytes,
13141       ignored, or immediately overwritten, depending on compiler
13142       behavior. Nevertheless, because the memset()'s purpose is to make
13143       sure that any other cell-handling bugs can't expose bytes to the
13144       network, we need to fix it. Fixes bug 22737; bugfix on
13145       0.2.4.11-alpha. Fixes CID 1401591.
13147   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
13148     - When setting the maximum number of connections allowed by the OS,
13149       always allow some extra file descriptors for other files. Fixes
13150       bug 22797; bugfix on 0.2.0.10-alpha.
13152   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
13153     - Avoid a sandbox failure when trying to re-bind to a socket and
13154       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
13156   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
13157     - Permit the fchmod system call, to avoid crashing on startup when
13158       starting with the seccomp2 sandbox and an unexpected set of
13159       permissions on the data directory or its contents. Fixes bug
13160       22516; bugfix on 0.2.5.4-alpha.
13162   o Minor bugfixes (relay, backport from 0.3.0.5-rc):
13163     - Avoid a double-marked-circuit warning that could happen when we
13164       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
13165       on 0.1.0.1-rc.
13167   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
13168     - Reject version numbers with non-numeric prefixes (such as +, -, or
13169       whitespace). Disallowing whitespace prevents differential version
13170       parsing between POSIX-based and Windows platforms. Fixes bug 21507
13171       and part of 21508; bugfix on 0.0.8pre1.
13173   o Build features (backport from 0.3.1.5-alpha):
13174     - Tor's repository now includes a Travis Continuous Integration (CI)
13175       configuration file (.travis.yml). This is meant to help new
13176       developers and contributors who fork Tor to a Github repository be
13177       better able to test their changes, and understand what we expect
13178       to pass. To use this new build feature, you must fork Tor to your
13179       Github account, then go into the "Integrations" menu in the
13180       repository settings for your fork and enable Travis, then push
13181       your changes. Closes ticket 22636.
13184 Changes in version 0.3.0.11 - 2017-09-18
13185   Tor 0.3.0.11 backports a collection of bugfixes from Tor the 0.3.1
13186   series.
13188   Most significantly, it includes a fix for TROVE-2017-008, a
13189   security bug that affects hidden services running with the
13190   SafeLogging option disabled. For more information, see
13191   https://trac.torproject.org/projects/tor/ticket/23490
13193   o Minor features (code style, backport from 0.3.1.7):
13194     - Add "Falls through" comments to our codebase, in order to silence
13195       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
13196       Stieger. Closes ticket 22446.
13198   o Minor features:
13199     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
13200       Country database.
13202   o Minor bugfixes (compilation, backport from 0.3.1.7):
13203     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
13204       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
13206   o Minor bugfixes (controller, backport from 0.3.1.7):
13207     - Do not crash when receiving a HSPOST command with an empty body.
13208       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
13209     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
13210       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
13212   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
13213     - When setting the maximum number of connections allowed by the OS,
13214       always allow some extra file descriptors for other files. Fixes
13215       bug 22797; bugfix on 0.2.0.10-alpha.
13217   o Minor bugfixes (logging, relay, backport from 0.3.1.6-rc):
13218     - Remove a forgotten debugging message when an introduction point
13219       successfully establishes a hidden service prop224 circuit with
13220       a client.
13221     - Change three other log_warn() for an introduction point to
13222       protocol warnings, because they can be failure from the network
13223       and are not relevant to the operator. Fixes bug 23078; bugfix on
13224       0.3.0.1-alpha and 0.3.0.2-alpha.
13227 Changes in version 0.3.1.7 - 2017-09-18
13228   Tor 0.3.1.7 is the first stable release in the 0.3.1 series.
13230   With the 0.3.1 series, Tor now serves and downloads directory
13231   information in more compact formats, to save on bandwidth overhead. It
13232   also contains a new padding system to resist netflow-based traffic
13233   analysis, and experimental support for building parts of Tor in Rust
13234   (though no parts of Tor are in Rust yet). There are also numerous
13235   small features, bugfixes on earlier release series, and groundwork for
13236   the hidden services revamp of 0.3.2.
13238   This release also includes a fix for TROVE-2017-008, a security bug
13239   that affects hidden services running with the SafeLogging option
13240   disabled. For more information, see
13241   https://trac.torproject.org/projects/tor/ticket/23490
13243   Per our stable release policy, we plan to support each stable release
13244   series for at least the next nine months, or for three months after
13245   the first stable release of the next series: whichever is longer. If
13246   you need a release with long-term support, we recommend that you stay
13247   with the 0.2.9 series.
13249   Below is a list of the changes since 0.3.1.6-rc. For a list of all
13250   changes since 0.3.0, see the ReleaseNotes file.
13252   o Major bugfixes (security, hidden services, loggging):
13253     - Fix a bug where we could log uninitialized stack when a certain
13254       hidden service error occurred while SafeLogging was disabled.
13255       Fixes bug #23490; bugfix on 0.2.7.2-alpha. This is also tracked as
13256       TROVE-2017-008 and CVE-2017-0380.
13258   o Minor features (defensive programming):
13259     - Create a pair of consensus parameters, nf_pad_tor2web and
13260       nf_pad_single_onion, to disable netflow padding in the consensus
13261       for non-anonymous connections in case the overhead is high. Closes
13262       ticket 17857.
13264   o Minor features (diagnostic):
13265     - Add a stack trace to the bug warnings that can be logged when
13266       trying to send an outgoing relay cell with n_chan == 0. Diagnostic
13267       attempt for bug 23105.
13269   o Minor features (geoip):
13270     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
13271       Country database.
13273   o Minor bugfixes (compilation):
13274     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
13275       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
13277   o Minor bugfixes (controller):
13278     - Do not crash when receiving a HSPOST command with an empty body.
13279       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
13280     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
13281       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
13283   o Minor bugfixes (relay):
13284     - Inform the geoip and rephist modules about all requests, even on
13285       relays that are only fetching microdescriptors. Fixes a bug
13286       related to 21585; bugfix on 0.3.0.1-alpha.
13288   o Minor bugfixes (unit tests):
13289     - Fix a channelpadding unit test failure on slow systems by using
13290       mocked time instead of actual time. Fixes bug 23077; bugfix
13291       on 0.3.1.1-alpha.
13294 Changes in version 0.3.1.6-rc - 2017-09-05
13295   Tor 0.3.1.6-rc fixes a few small bugs and annoyances in the 0.3.1
13296   release series, including a bug that produced weird behavior on
13297   Windows directory caches.
13299   This is the first release candidate in the Tor 0.3.1 series. If we
13300   find no new bugs or regressions here, the first stable 0.3.1 release
13301   will be nearly identical to it.
13303   o Major bugfixes (windows, directory cache):
13304     - On Windows, do not try to delete cached consensus documents and
13305       diffs before they are unmapped from memory--Windows won't allow
13306       that. Instead, allow the consensus cache directory to grow larger,
13307       to hold files that might need to stay around longer. Fixes bug
13308       22752; bugfix on 0.3.1.1-alpha.
13310   o Minor features (directory authority):
13311     - Improve the message that authorities report to relays that present
13312       RSA/Ed25519 keypairs that conflict with previously pinned keys.
13313       Closes ticket 22348.
13315   o Minor features (geoip):
13316     - Update geoip and geoip6 to the August 3 2017 Maxmind GeoLite2
13317       Country database.
13319   o Minor features (testing):
13320     - Add more tests for compression backend initialization. Closes
13321       ticket 22286.
13323   o Minor bugfixes (directory cache):
13324     - Fix a memory leak when recovering space in the consensus cache.
13325       Fixes bug 23139; bugfix on 0.3.1.1-alpha.
13327   o Minor bugfixes (hidden service):
13328     - Increase the number of circuits that a service is allowed to
13329       open over a specific period of time. The value was lower than it
13330       should be (8 vs 12) in the normal case of 3 introduction points.
13331       Fixes bug 22159; bugfix on 0.3.0.5-rc.
13332     - Fix a BUG warning during HSv3 descriptor decoding that could be
13333       cause by a specially crafted descriptor. Fixes bug 23233; bugfix
13334       on 0.3.0.1-alpha. Bug found by "haxxpop".
13335     - Rate-limit the log messages if we exceed the maximum number of
13336       allowed intro circuits. Fixes bug 22159; bugfix on 0.3.1.1-alpha.
13338   o Minor bugfixes (logging, relay):
13339     - Remove a forgotten debugging message when an introduction point
13340       successfully establishes a hidden service prop224 circuit with
13341       a client.
13342     - Change three other log_warn() for an introduction point to
13343       protocol warnings, because they can be failure from the network
13344       and are not relevant to the operator. Fixes bug 23078; bugfix on
13345       0.3.0.1-alpha and 0.3.0.2-alpha.
13347   o Minor bugfixes (relay):
13348     - When a relay is not running as a directory cache, it will no
13349       longer generate compressed consensuses and consensus diff
13350       information. Previously, this was a waste of disk and CPU. Fixes
13351       bug 23275; bugfix on 0.3.1.1-alpha.
13353   o Minor bugfixes (robustness, error handling):
13354     - Improve our handling of the cases where OpenSSL encounters a
13355       memory error while encoding keys and certificates. We haven't
13356       observed these errors in the wild, but if they do happen, we now
13357       detect and respond better. Fixes bug 19418; bugfix on all versions
13358       of Tor. Reported by Guido Vranken.
13360   o Minor bugfixes (stability):
13361     - Avoid crashing on a double-free when unable to load or process an
13362       included file. Fixes bug 23155; bugfix on 0.3.1.1-alpha. Found
13363       with the clang static analyzer.
13365   o Minor bugfixes (testing):
13366     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
13367       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
13368     - Port the hs_ntor handshake test to work correctly with recent
13369       versions of the pysha3 module. Fixes bug 23071; bugfix
13370       on 0.3.1.1-alpha.
13372   o Minor bugfixes (Windows service):
13373     - When running as a Windows service, set the ID of the main thread
13374       correctly. Failure to do so made us fail to send log messages to
13375       the controller in 0.2.1.16-rc, slowed down controller event
13376       delivery in 0.2.7.3-rc and later, and crash with an assertion
13377       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
13378       Patch and diagnosis from "Vort".
13381 Changes in version 0.3.0.10 - 2017-08-02
13382    Tor 0.3.0.10 backports a collection of small-to-medium bugfixes
13383    from the current Tor alpha series. OpenBSD users and TPROXY users
13384    should upgrade; others are probably okay sticking with 0.3.0.9.
13386   o Major features (build system, continuous integration, backport from 0.3.1.5-alpha):
13387     - Tor's repository now includes a Travis Continuous Integration (CI)
13388       configuration file (.travis.yml). This is meant to help new
13389       developers and contributors who fork Tor to a Github repository be
13390       better able to test their changes, and understand what we expect
13391       to pass. To use this new build feature, you must fork Tor to your
13392       Github account, then go into the "Integrations" menu in the
13393       repository settings for your fork and enable Travis, then push
13394       your changes. Closes ticket 22636.
13396   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
13397     - Fix a typo that had prevented TPROXY-based transparent proxying
13398       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
13399       Patch from "d4fq0fQAgoJ".
13401   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
13402     - Avoid an assertion failure bug affecting our implementation of
13403       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13404       handling of "0xbar" differs from what we had expected. Fixes bug
13405       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13407   o Minor features (backport from 0.3.1.5-alpha):
13408     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
13409       Country database.
13411   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.2-alpha):
13412     - Roll over monthly accounting at the configured hour and minute,
13413       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
13414       Found by Andrey Karpov with PVS-Studio.
13416   o Minor bugfixes (compilation warnings, backport from 0.3.1.5-alpha):
13417     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
13418       bugfix on 0.2.8.1-alpha.
13419     - Fix warnings when building with libscrypt and openssl scrypt
13420       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
13421     - When building with certain versions of the mingw C header files,
13422       avoid float-conversion warnings when calling the C functions
13423       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
13424       on 0.2.8.1-alpha.
13426   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
13427     - Backport a fix for an "unused variable" warning that appeared
13428       in some versions of mingw. Fixes bug 22838; bugfix on
13429       0.2.8.1-alpha.
13431   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
13432     - Avoid Coverity build warnings related to our BUG() macro. By
13433       default, Coverity treats BUG() as the Linux kernel does: an
13434       instant abort(). We need to override that so our BUG() macro
13435       doesn't prevent Coverity from analyzing functions that use it.
13436       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
13438   o Minor bugfixes (directory authority, backport from 0.3.1.1-alpha):
13439     - When rejecting a router descriptor for running an obsolete version
13440       of Tor without ntor support, warn about the obsolete tor version,
13441       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
13443   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
13444     - Avoid a sandbox failure when trying to re-bind to a socket and
13445       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
13447   o Minor bugfixes (unit tests, backport from 0.3.1.5-alpha)
13448     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
13449       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
13452 Changes in version 0.3.1.5-alpha - 2017-08-01
13453   Tor 0.3.1.5-alpha improves the performance of consensus diff
13454   calculation, fixes a crash bug on older versions of OpenBSD, and fixes
13455   several other bugs. If no serious bugs are found in this version, the
13456   next version will be a release candidate.
13458   This release also marks the end of support for the Tor 0.2.4.x,
13459   0.2.6.x, and 0.2.7.x release series. Those releases will receive no
13460   further bug or security fixes. Anyone still running or distributing
13461   one of those versions should upgrade.
13463   o Major features (build system, continuous integration):
13464     - Tor's repository now includes a Travis Continuous Integration (CI)
13465       configuration file (.travis.yml). This is meant to help new
13466       developers and contributors who fork Tor to a Github repository be
13467       better able to test their changes, and understand what we expect
13468       to pass. To use this new build feature, you must fork Tor to your
13469       Github account, then go into the "Integrations" menu in the
13470       repository settings for your fork and enable Travis, then push
13471       your changes. Closes ticket 22636.
13473   o Major bugfixes (openbsd, denial-of-service):
13474     - Avoid an assertion failure bug affecting our implementation of
13475       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13476       handling of "0xbar" differs from what we had expected. Fixes bug
13477       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13479   o Major bugfixes (relay, performance):
13480     - Perform circuit handshake operations at a higher priority than we
13481       use for consensus diff creation and compression. This should
13482       prevent circuits from starving when a relay or bridge receives a
13483       new consensus, especially on lower-powered machines. Fixes bug
13484       22883; bugfix on 0.3.1.1-alpha.
13486   o Minor features (bridge authority):
13487     - Add "fingerprint" lines to the networkstatus-bridges file produced
13488       by bridge authorities. Closes ticket 22207.
13490   o Minor features (directory cache, consensus diff):
13491     - Add a new MaxConsensusAgeForDiffs option to allow directory cache
13492       operators with low-resource environments to adjust the number of
13493       consensuses they'll store and generate diffs from. Most cache
13494       operators should leave it unchanged. Helps to work around
13495       bug 22883.
13497   o Minor features (geoip):
13498     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
13499       Country database.
13501   o Minor features (relay, performance):
13502     - Always start relays with at least two worker threads, to prevent
13503       priority inversion on slow tasks. Part of the fix for bug 22883.
13504     - Allow background work to be queued with different priorities, so
13505       that a big pile of slow low-priority jobs will not starve out
13506       higher priority jobs. This lays the groundwork for a fix for
13507       bug 22883.
13509   o Minor bugfixes (build system, rust):
13510     - Fix a problem where Rust toolchains were not being found when
13511       building without --enable-cargo-online-mode, due to setting the
13512       $HOME environment variable instead of $CARGO_HOME. Fixes bug
13513       22830; bugfix on 0.3.1.1-alpha. Fix by Chelsea Komlo.
13515   o Minor bugfixes (compatibility, zstd):
13516     - Write zstd epilogues correctly when the epilogue requires
13517       reallocation of the output buffer, even with zstd 1.3.0.
13518       (Previously, we worked on 1.2.0 and failed with 1.3.0). Fixes bug
13519       22927; bugfix on 0.3.1.1-alpha.
13521   o Minor bugfixes (compilation warnings):
13522     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug
13523       22915; bugfix on 0.2.8.1-alpha.
13524     - Fix warnings when building with libscrypt and openssl scrypt
13525       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
13526     - Compile correctly when both openssl 1.1.0 and libscrypt are
13527       detected. Previously this would cause an error. Fixes bug 22892;
13528       bugfix on 0.3.1.1-alpha.
13529     - When building with certain versions of the mingw C header files,
13530       avoid float-conversion warnings when calling the C functions
13531       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
13532       on 0.2.8.1-alpha.
13534   o Minor bugfixes (coverity build support):
13535     - Avoid Coverity build warnings related to our BUG() macro. By
13536       default, Coverity treats BUG() as the Linux kernel does: an
13537       instant abort(). We need to override that so our BUG() macro
13538       doesn't prevent Coverity from analyzing functions that use it.
13539       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
13541   o Minor bugfixes (directory authority):
13542     - When a directory authority rejects a descriptor or extrainfo with
13543       a given digest, mark that digest as undownloadable, so that we do
13544       not attempt to download it again over and over. We previously
13545       tried to avoid downloading such descriptors by other means, but we
13546       didn't notice if we accidentally downloaded one anyway. This
13547       behavior became problematic in 0.2.7.2-alpha, when authorities
13548       began pinning Ed25519 keys. Fixes bug 22349; bugfix
13549       on 0.2.1.19-alpha.
13551   o Minor bugfixes (error reporting, windows):
13552     - When formatting Windows error messages, use the English format to
13553       avoid codepage issues. Fixes bug 22520; bugfix on 0.1.2.8-alpha.
13554       Patch from "Vort".
13556   o Minor bugfixes (file limits, osx):
13557     - When setting the maximum number of connections allowed by the OS,
13558       always allow some extra file descriptors for other files. Fixes
13559       bug 22797; bugfix on 0.2.0.10-alpha.
13561   o Minor bugfixes (linux seccomp2 sandbox):
13562     - Avoid a sandbox failure when trying to re-bind to a socket and
13563       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
13565   o Minor bugfixes (memory leaks):
13566     - Fix a small memory leak when validating a configuration that uses
13567       two or more AF_UNIX sockets for the same port type. Fixes bug
13568       23053; bugfix on 0.2.6.3-alpha. This is CID 1415725.
13570   o Minor bugfixes (unit tests):
13571     - test_consdiff_base64cmp would fail on OS X because while OS X
13572       follows the standard of (less than zero/zero/greater than zero),
13573       it doesn't follow the convention of (-1/0/+1). Make the test
13574       comply with the standard. Fixes bug 22870; bugfix on 0.3.1.1-alpha.
13575     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
13576       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
13579 Changes in version 0.3.1.4-alpha - 2017-06-29
13580   Tor 0.3.1.4-alpha fixes a path selection bug that would allow a client
13581   to use a guard that was in the same network family as a chosen exit
13582   relay. This is a security regression; all clients running earlier
13583   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9
13584   or 0.3.1.4-alpha.
13586   This release also fixes several other bugs introduced in 0.3.0.x
13587   and 0.3.1.x, including others that can affect bandwidth usage
13588   and correctness.
13590   o New dependencies:
13591     - To build with zstd and lzma support, Tor now requires the
13592       pkg-config tool at build time. (This requirement was new in
13593       0.3.1.1-alpha, but was not noted at the time. Noting it here to
13594       close ticket 22623.)
13596   o Major bugfixes (path selection, security):
13597     - When choosing which guard to use for a circuit, avoid the exit's
13598       family along with the exit itself. Previously, the new guard
13599       selection logic avoided the exit, but did not consider its family.
13600       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
13601       006 and CVE-2017-0377.
13603   o Major bugfixes (compression, zstd):
13604     - Correctly detect a full buffer when decompressing a large zstd-
13605       compressed input. Previously, we would sometimes treat a full
13606       buffer as an error. Fixes bug 22628; bugfix on 0.3.1.1-alpha.
13608   o Major bugfixes (directory protocol):
13609     - Ensure that we send "304 Not modified" as HTTP status code when a
13610       client is attempting to fetch a consensus or consensus diff, and
13611       the best one we can send them is one they already have. Fixes bug
13612       22702; bugfix on 0.3.1.1-alpha.
13614   o Major bugfixes (entry guards):
13615     - When starting with an old consensus, do not add new entry guards
13616       unless the consensus is "reasonably live" (under 1 day old). Fixes
13617       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
13619   o Minor features (bug mitigation, diagnostics, logging):
13620     - Avoid an assertion failure, and log a better error message, when
13621       unable to remove a file from the consensus cache on Windows.
13622       Attempts to mitigate and diagnose bug 22752.
13624   o Minor features (geoip):
13625     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
13626       Country database.
13628   o Minor bugfixes (compression):
13629     - When compressing or decompressing a buffer, check for a failure to
13630       create a compression object. Fixes bug 22626; bugfix
13631       on 0.3.1.1-alpha.
13632     - When decompressing a buffer, check for extra data after the end of
13633       the compressed data. Fixes bug 22629; bugfix on 0.3.1.1-alpha.
13634     - When decompressing an object received over an anonymous directory
13635       connection, if we have already decompressed it using an acceptable
13636       compression method, do not reject it for looking like an
13637       unacceptable compression method. Fixes part of bug 22670; bugfix
13638       on 0.3.1.1-alpha.
13639     - When serving directory votes compressed with zlib, do not claim to
13640       have compressed them with zstd. Fixes bug 22669; bugfix
13641       on 0.3.1.1-alpha.
13642     - When spooling compressed data to an output buffer, don't try to
13643       spool more data when there is no more data to spool and we are not
13644       trying to flush the input. Previously, we would sometimes launch
13645       compression requests with nothing to do, which interferes with our
13646       22672 checks. Fixes bug 22719; bugfix on 0.2.0.16-alpha.
13648   o Minor bugfixes (defensive programming):
13649     - Detect and break out of infinite loops in our compression code. We
13650       don't think that any such loops exist now, but it's best to be
13651       safe. Closes ticket 22672.
13652     - Fix a memset() off the end of an array when packing cells. This
13653       bug should be harmless in practice, since the corrupted bytes are
13654       still in the same structure, and are always padding bytes,
13655       ignored, or immediately overwritten, depending on compiler
13656       behavior. Nevertheless, because the memset()'s purpose is to make
13657       sure that any other cell-handling bugs can't expose bytes to the
13658       network, we need to fix it. Fixes bug 22737; bugfix on
13659       0.2.4.11-alpha. Fixes CID 1401591.
13661   o Minor bugfixes (linux seccomp2 sandbox):
13662     - Permit the fchmod system call, to avoid crashing on startup when
13663       starting with the seccomp2 sandbox and an unexpected set of
13664       permissions on the data directory or its contents. Fixes bug
13665       22516; bugfix on 0.2.5.4-alpha.
13666     - Fix a crash in the LZMA module, when the sandbox was enabled, and
13667       liblzma would allocate more than 16 MB of memory. We solve this by
13668       bumping the mprotect() limit in the sandbox module from 16 MB to
13669       20 MB. Fixes bug 22751; bugfix on 0.3.1.1-alpha.
13671   o Minor bugfixes (logging):
13672     - When decompressing, do not warn if we fail to decompress using a
13673       compression method that we merely guessed. Fixes part of bug
13674       22670; bugfix on 0.1.1.14-alpha.
13675     - When decompressing, treat mismatch between content-encoding and
13676       actual compression type as a protocol warning. Fixes part of bug
13677       22670; bugfix on 0.1.1.9-alpha.
13678     - Downgrade "assigned_to_cpuworker failed" message to info-level
13679       severity. In every case that can reach it, either a better warning
13680       has already been logged, or no warning is warranted. Fixes bug
13681       22356; bugfix on 0.2.6.3-alpha.
13682     - Demote a warn that was caused by libevent delays to info if
13683       netflow padding is less than 4.5 seconds late, or to notice
13684       if it is more (4.5 seconds is the amount of time that a netflow
13685       record might be emitted after, if we chose the maximum timeout).
13686       Fixes bug 22212; bugfix on 0.3.1.1-alpha.
13688   o Minor bugfixes (process behavior):
13689     - When exiting because of an error, always exit with a nonzero exit
13690       status. Previously, we would fail to report an error in our exit
13691       status in cases related to __OwningControllerProcess failure,
13692       lockfile contention, and Ed25519 key initialization. Fixes bug
13693       22720; bugfix on versions 0.2.1.6-alpha, 0.2.2.28-beta, and
13694       0.2.7.2-alpha respectively. Reported by "f55jwk4f"; patch
13695       from "huyvq".
13697   o Documentation:
13698     - Add a manpage description for the key-pinning-journal file. Closes
13699       ticket 22347.
13700     - Correctly note that bandwidth accounting values are stored in the
13701       state file, and the bw_accounting file is now obsolete. Closes
13702       ticket 16082.
13703     - Document more of the files in the Tor data directory, including
13704       cached-extrainfo, secret_onion_key{,_ntor}.old, hidserv-stats,
13705       approved-routers, sr-random, and diff-cache. Found while fixing
13706       ticket 22347.
13709 Changes in version 0.3.0.9 - 2017-06-29
13710   Tor 0.3.0.9 fixes a path selection bug that would allow a client
13711   to use a guard that was in the same network family as a chosen exit
13712   relay. This is a security regression; all clients running earlier
13713   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9 or
13714   0.3.1.4-alpha.
13716   This release also backports several other bugfixes from the 0.3.1.x
13717   series.
13719   o Major bugfixes (path selection, security, backport from 0.3.1.4-alpha):
13720     - When choosing which guard to use for a circuit, avoid the exit's
13721       family along with the exit itself. Previously, the new guard
13722       selection logic avoided the exit, but did not consider its family.
13723       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
13724       006 and CVE-2017-0377.
13726   o Major bugfixes (entry guards, backport from 0.3.1.1-alpha):
13727     - Don't block bootstrapping when a primary bridge is offline and we
13728       can't get its descriptor. Fixes bug 22325; fixes one case of bug
13729       21969; bugfix on 0.3.0.3-alpha.
13731   o Major bugfixes (entry guards, backport from 0.3.1.4-alpha):
13732     - When starting with an old consensus, do not add new entry guards
13733       unless the consensus is "reasonably live" (under 1 day old). Fixes
13734       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
13736   o Minor features (geoip):
13737     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
13738       Country database.
13740   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
13741     - Reject version numbers with non-numeric prefixes (such as +, -, or
13742       whitespace). Disallowing whitespace prevents differential version
13743       parsing between POSIX-based and Windows platforms. Fixes bug 21507
13744       and part of 21508; bugfix on 0.0.8pre1.
13746   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
13747     - Permit the fchmod system call, to avoid crashing on startup when
13748       starting with the seccomp2 sandbox and an unexpected set of
13749       permissions on the data directory or its contents. Fixes bug
13750       22516; bugfix on 0.2.5.4-alpha.
13752   o Minor bugfixes (defensive programming, backport from 0.3.1.4-alpha):
13753     - Fix a memset() off the end of an array when packing cells. This
13754       bug should be harmless in practice, since the corrupted bytes are
13755       still in the same structure, and are always padding bytes,
13756       ignored, or immediately overwritten, depending on compiler
13757       behavior. Nevertheless, because the memset()'s purpose is to make
13758       sure that any other cell-handling bugs can't expose bytes to the
13759       network, we need to fix it. Fixes bug 22737; bugfix on
13760       0.2.4.11-alpha. Fixes CID 1401591.
13763 Changes in version 0.3.1.3-alpha - 2017-06-08
13764   Tor 0.3.1.3-alpha fixes a pair of bugs that would allow an attacker to
13765   remotely crash a hidden service with an assertion failure. Anyone
13766   running a hidden service should upgrade to this version, or to some
13767   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
13769   Tor 0.3.1.3-alpha also includes fixes for several key management bugs
13770   that sometimes made relays unreliable, as well as several other
13771   bugfixes described below.
13773   o Major bugfixes (hidden service, relay, security):
13774     - Fix a remotely triggerable assertion failure when a hidden service
13775       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
13776       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
13777     - Fix a remotely triggerable assertion failure caused by receiving a
13778       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13779       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13780       on 0.2.2.1-alpha.
13782   o Major bugfixes (relay, link handshake):
13783     - When performing the v3 link handshake on a TLS connection, report
13784       that we have the x509 certificate that we actually used on that
13785       connection, even if we have changed certificates since that
13786       connection was first opened. Previously, we would claim to have
13787       used our most recent x509 link certificate, which would sometimes
13788       make the link handshake fail. Fixes one case of bug 22460; bugfix
13789       on 0.2.3.6-alpha.
13791   o Major bugfixes (relays, key management):
13792     - Regenerate link and authentication certificates whenever the key
13793       that signs them changes; also, regenerate link certificates
13794       whenever the signed key changes. Previously, these processes were
13795       only weakly coupled, and we relays could (for minutes to hours)
13796       wind up with an inconsistent set of keys and certificates, which
13797       other relays would not accept. Fixes two cases of bug 22460;
13798       bugfix on 0.3.0.1-alpha.
13799     - When sending an Ed25519 signing->link certificate in a CERTS cell,
13800       send the certificate that matches the x509 certificate that we
13801       used on the TLS connection. Previously, there was a race condition
13802       if the TLS context rotated after we began the TLS handshake but
13803       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
13804       on 0.3.0.1-alpha.
13806   o Major bugfixes (torrc, crash):
13807     - Fix a crash bug when using %include in torrc. Fixes bug 22417;
13808       bugfix on 0.3.1.1-alpha. Patch by Daniel Pinto.
13810   o Minor features (code style):
13811     - Add "Falls through" comments to our codebase, in order to silence
13812       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
13813       Stieger. Closes ticket 22446.
13815   o Minor features (diagnostic):
13816     - Add logging messages to try to diagnose a rare bug that seems to
13817       generate RSA->Ed25519 cross-certificates dated in the 1970s. We
13818       think this is happening because of incorrect system clocks, but
13819       we'd like to know for certain. Diagnostic for bug 22466.
13821   o Minor bugfixes (correctness):
13822     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13823       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13825   o Minor bugfixes (directory protocol):
13826     - Check for libzstd >= 1.1, because older versions lack the
13827       necessary streaming API. Fixes bug 22413; bugfix on 0.3.1.1-alpha.
13829   o Minor bugfixes (link handshake):
13830     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
13831       months, and regenerate it when it is within one month of expiring.
13832       Previously, we had generated this certificate at startup with a
13833       ten-year lifetime, but that could lead to weird behavior when Tor
13834       was started with a grossly inaccurate clock. Mitigates bug 22466;
13835       mitigation on 0.3.0.1-alpha.
13837   o Minor bugfixes (storage directories):
13838     - Always check for underflows in the cached storage directory usage.
13839       If the usage does underflow, re-calculate it. Also, avoid a
13840       separate underflow when the usage is not known. Fixes bug 22424;
13841       bugfix on 0.3.1.1-alpha.
13843   o Minor bugfixes (unit tests):
13844     - The unit tests now pass on systems where localhost is misconfigured
13845       to some IPv4 address other than 127.0.0.1. Fixes bug 6298; bugfix
13846       on 0.0.9pre2.
13848   o Documentation:
13849     - Clarify the manpage for the (deprecated) torify script. Closes
13850       ticket 6892.
13852 Changes in version 0.3.0.8 - 2017-06-08
13853   Tor 0.3.0.8 fixes a pair of bugs that would allow an attacker to
13854   remotely crash a hidden service with an assertion failure. Anyone
13855   running a hidden service should upgrade to this version, or to some
13856   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
13858   Tor 0.3.0.8 also includes fixes for several key management bugs
13859   that sometimes made relays unreliable, as well as several other
13860   bugfixes described below.
13862   o Major bugfixes (hidden service, relay, security, backport
13863     from 0.3.1.3-alpha):
13864     - Fix a remotely triggerable assertion failure when a hidden service
13865       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
13866       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
13867     - Fix a remotely triggerable assertion failure caused by receiving a
13868       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13869       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13870       on 0.2.2.1-alpha.
13872   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
13873     - When performing the v3 link handshake on a TLS connection, report
13874       that we have the x509 certificate that we actually used on that
13875       connection, even if we have changed certificates since that
13876       connection was first opened. Previously, we would claim to have
13877       used our most recent x509 link certificate, which would sometimes
13878       make the link handshake fail. Fixes one case of bug 22460; bugfix
13879       on 0.2.3.6-alpha.
13881   o Major bugfixes (relays, key management, backport from 0.3.1.3-alpha):
13882     - Regenerate link and authentication certificates whenever the key
13883       that signs them changes; also, regenerate link certificates
13884       whenever the signed key changes. Previously, these processes were
13885       only weakly coupled, and we relays could (for minutes to hours)
13886       wind up with an inconsistent set of keys and certificates, which
13887       other relays would not accept. Fixes two cases of bug 22460;
13888       bugfix on 0.3.0.1-alpha.
13889     - When sending an Ed25519 signing->link certificate in a CERTS cell,
13890       send the certificate that matches the x509 certificate that we
13891       used on the TLS connection. Previously, there was a race condition
13892       if the TLS context rotated after we began the TLS handshake but
13893       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
13894       on 0.3.0.1-alpha.
13896   o Major bugfixes (hidden service v3, backport from 0.3.1.1-alpha):
13897     - Stop rejecting v3 hidden service descriptors because their size
13898       did not match an old padding rule. Fixes bug 22447; bugfix on
13899       0.3.0.1-alpha.
13901   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
13902     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
13903       December 2016 (of which ~126 were still functional) with a list of
13904       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
13905       2017. Resolves ticket 21564.
13907   o Minor bugfixes (configuration, backport from 0.3.1.1-alpha):
13908     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
13909       bug 22252; bugfix on 0.2.9.3-alpha.
13911   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
13912     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13913       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13915   o Minor bugfixes (link handshake, backport from 0.3.1.3-alpha):
13916     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
13917       months, and regenerate it when it is within one month of expiring.
13918       Previously, we had generated this certificate at startup with a
13919       ten-year lifetime, but that could lead to weird behavior when Tor
13920       was started with a grossly inaccurate clock. Mitigates bug 22466;
13921       mitigation on 0.3.0.1-alpha.
13923   o Minor bugfixes (memory leak, directory authority, backport from
13924     0.3.1.2-alpha):
13925     - When directory authorities reject a router descriptor due to
13926       keypinning, free the router descriptor rather than leaking the
13927       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
13930 Changes in version 0.2.9.11 - 2017-06-08
13931   Tor 0.2.9.11 backports a fix for a bug that would allow an attacker to
13932   remotely crash a hidden service with an assertion failure. Anyone
13933   running a hidden service should upgrade to this version, or to some
13934   other version with fixes for TROVE-2017-005. (Versions before 0.3.0
13935   are not affected by TROVE-2017-004.)
13937   Tor 0.2.9.11 also backports fixes for several key management bugs
13938   that sometimes made relays unreliable, as well as several other
13939   bugfixes described below.
13941   o Major bugfixes (hidden service, relay, security, backport
13942     from 0.3.1.3-alpha):
13943     - Fix a remotely triggerable assertion failure caused by receiving a
13944       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
13945       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
13946       on 0.2.2.1-alpha.
13948   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
13949     - When performing the v3 link handshake on a TLS connection, report
13950       that we have the x509 certificate that we actually used on that
13951       connection, even if we have changed certificates since that
13952       connection was first opened. Previously, we would claim to have
13953       used our most recent x509 link certificate, which would sometimes
13954       make the link handshake fail. Fixes one case of bug 22460; bugfix
13955       on 0.2.3.6-alpha.
13957   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
13958     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
13959       December 2016 (of which ~126 were still functional) with a list of
13960       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
13961       2017. Resolves ticket 21564.
13963   o Minor features (future-proofing, backport from 0.3.0.7):
13964     - Tor no longer refuses to download microdescriptors or descriptors if
13965       they are listed as "published in the future".  This change will
13966       eventually allow us to stop listing meaningful "published" dates
13967       in microdescriptor consensuses, and thereby allow us to reduce the
13968       resources required to download consensus diffs by over 50%.
13969       Implements part of ticket 21642; implements part of proposal 275.
13971   o Minor features (directory authorities, backport from 0.3.0.4-rc)
13972     - Directory authorities now reject relays running versions
13973       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
13974       suffer from bug 20499 and don't keep their consensus cache
13975       up-to-date. Resolves ticket 20509.
13977   o Minor features (geoip):
13978     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
13979       Country database.
13981   o Minor bugfixes (control port, backport from 0.3.0.6):
13982     - The GETINFO extra-info/digest/<digest> command was broken because
13983       of a wrong base16 decode return value check, introduced when
13984       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
13986   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
13987     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
13988       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
13990   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.0.7):
13991     - The getpid() system call is now permitted under the Linux seccomp2
13992       sandbox, to avoid crashing with versions of OpenSSL (and other
13993       libraries) that attempt to learn the process's PID by using the
13994       syscall rather than the VDSO code. Fixes bug 21943; bugfix
13995       on 0.2.5.1-alpha.
13997   o Minor bugfixes (memory leak, directory authority, backport
13998     from 0.3.1.2-alpha):
13999     - When directory authorities reject a router descriptor due to
14000       keypinning, free the router descriptor rather than leaking the
14001       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
14003 Changes in version 0.2.8.14 - 2017-06-08
14004   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
14005   remotely crash a hidden service with an assertion failure. Anyone
14006   running a hidden service should upgrade to this version, or to some
14007   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
14008   are not affected by TROVE-2017-004.)
14010   o Major bugfixes (hidden service, relay, security):
14011     - Fix a remotely triggerable assertion failure caused by receiving a
14012       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
14013       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
14014       on 0.2.2.1-alpha.
14016   o Minor features (geoip):
14017     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14018       Country database.
14020   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
14021     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
14022       December 2016 (of which ~126 were still functional) with a list of
14023       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
14024       2017. Resolves ticket 21564.
14026   o Minor bugfixes (correctness):
14027     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
14028       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
14030 Changes in version 0.2.7.8 - 2017-06-08
14031   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
14032   remotely crash a hidden service with an assertion failure. Anyone
14033   running a hidden service should upgrade to this version, or to some
14034   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
14035   are not affected by TROVE-2017-004.)
14037   o Major bugfixes (hidden service, relay, security):
14038     - Fix a remotely triggerable assertion failure caused by receiving a
14039       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
14040       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
14041       on 0.2.2.1-alpha.
14043   o Minor features (geoip):
14044     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14045       Country database.
14047   o Minor bugfixes (correctness):
14048     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
14049       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
14052 Changes in version 0.2.6.12 - 2017-06-08
14053   Tor 0.2.6.12 backports a fix for a bug that would allow an attacker to
14054   remotely crash a hidden service with an assertion failure. Anyone
14055   running a hidden service should upgrade to this version, or to some
14056   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
14057   are not affected by TROVE-2017-004.)
14059   o Major bugfixes (hidden service, relay, security):
14060     - Fix a remotely triggerable assertion failure caused by receiving a
14061       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
14062       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
14063       on 0.2.2.1-alpha.
14065   o Minor features (geoip):
14066     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14067       Country database.
14069   o Minor bugfixes (correctness):
14070     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
14071       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
14073 Changes in version 0.2.5.14 - 2017-06-08
14074   Tor 0.2.5.14 backports a fix for a bug that would allow an attacker to
14075   remotely crash a hidden service with an assertion failure. Anyone
14076   running a hidden service should upgrade to this version, or to some
14077   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
14078   are not affected by TROVE-2017-004.)
14080   o Major bugfixes (hidden service, relay, security):
14081     - Fix a remotely triggerable assertion failure caused by receiving a
14082       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
14083       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
14084       on 0.2.2.1-alpha.
14086   o Minor features (geoip):
14087     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14088       Country database.
14090   o Minor bugfixes (correctness):
14091     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
14092       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
14094 Changes in version 0.2.4.29 - 2017-06-08
14095   Tor 0.2.4.29 backports a fix for a bug that would allow an attacker to
14096   remotely crash a hidden service with an assertion failure. Anyone
14097   running a hidden service should upgrade to this version, or to some
14098   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
14099   are not affected by TROVE-2017-004.)
14101   o Major bugfixes (hidden service, relay, security):
14102     - Fix a remotely triggerable assertion failure caused by receiving a
14103       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
14104       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
14105       on 0.2.2.1-alpha.
14107   o Minor features (geoip):
14108     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14109       Country database.
14111   o Minor bugfixes (correctness):
14112     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
14113       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
14116 Changes in version 0.3.1.2-alpha - 2017-05-26
14117   Tor 0.3.1.2-alpha is the second release in the 0.3.1.x series. It
14118   fixes a few bugs found while testing 0.3.1.1-alpha, including a
14119   memory corruption bug that affected relay stability.
14121   o Major bugfixes (crash, relay):
14122     - Fix a memory-corruption bug in relays that set MyFamily.
14123       Previously, they would double-free MyFamily elements when making
14124       the next descriptor or when changing their configuration. Fixes
14125       bug 22368; bugfix on 0.3.1.1-alpha.
14127   o Minor bugfixes (logging):
14128     - Log a better message when a directory authority replies to an
14129       upload with an unexpected status code. Fixes bug 11121; bugfix
14130       on 0.1.0.1-rc.
14132   o Minor bugfixes (memory leak, directory authority):
14133     - When directory authorities reject a router descriptor due to
14134       keypinning, free the router descriptor rather than leaking the
14135       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
14138 Changes in version 0.3.1.1-alpha - 2017-05-22
14139   Tor 0.3.1.1-alpha is the first release in the 0.3.1.x series. It
14140   reduces the bandwidth usage for Tor's directory protocol, adds some
14141   basic padding to resist netflow-based traffic analysis and to serve as
14142   the basis of other padding in the future, and adds rust support to the
14143   build system.
14145   It also contains numerous other small features and improvements to
14146   security, correctness, and performance.
14148   Below are the changes since 0.3.0.7.
14150   o Major features (directory protocol):
14151     - Tor relays and authorities can now serve clients an abbreviated
14152       version of the consensus document, containing only the changes
14153       since an older consensus document that the client holds. Clients
14154       now request these documents when available. When both client and
14155       server use this new protocol, they will use far less bandwidth (up
14156       to 94% less) to keep the client's consensus up-to-date. Implements
14157       proposal 140; closes ticket 13339. Based on work by Daniel Martí.
14158     - Tor can now compress directory traffic with lzma or with zstd
14159       compression algorithms, which can deliver better bandwidth
14160       performance. Because lzma is computationally expensive, it's only
14161       used for documents that can be compressed once and served many
14162       times. Support for these algorithms requires that tor is built
14163       with the libzstd and/or liblzma libraries available. Implements
14164       proposal 278; closes ticket 21662.
14165     - Relays now perform the more expensive compression operations, and
14166       consensus diff generation, in worker threads. This separation
14167       avoids delaying the main thread when a new consensus arrives.
14169   o Major features (experimental):
14170     - Tor can now build modules written in Rust. To turn this on, pass
14171       the "--enable-rust" flag to the configure script. It's not time to
14172       get excited yet: currently, there is no actual Rust functionality
14173       beyond some simple glue code, and a notice at startup to tell you
14174       that Rust is running. Still, we hope that programmers and
14175       packagers will try building Tor with Rust support, so that we can
14176       find issues and solve portability problems. Closes ticket 22106.
14178   o Major features (traffic analysis resistance):
14179     - Connections between clients and relays now send a padding cell in
14180       each direction every 1.5 to 9.5 seconds (tunable via consensus
14181       parameters). This padding will not resist specialized
14182       eavesdroppers, but it should be enough to make many ISPs' routine
14183       network flow logging less useful in traffic analysis against
14184       Tor users.
14186       Padding is negotiated using Tor's link protocol, so both relays
14187       and clients must upgrade for this to take effect. Clients may
14188       still send padding despite the relay's version by setting
14189       ConnectionPadding 1 in torrc, and may disable padding by setting
14190       ConnectionPadding 0 in torrc. Padding may be minimized for mobile
14191       users with the torrc option ReducedConnectionPadding. Implements
14192       Proposal 251 and Section 2 of Proposal 254; closes ticket 16861.
14193     - Relays will publish 24 hour totals of padding and non-padding cell
14194       counts to their extra-info descriptors, unless PaddingStatistics 0
14195       is set in torrc. These 24 hour totals are also rounded to
14196       multiples of 10000.
14198   o Major bugfixes (connection usage):
14199     - We use NETINFO cells to try to determine if both relays involved
14200       in a connection will agree on the canonical status of that
14201       connection. We prefer the connections where this is the case for
14202       extend cells, and try to close connections where relays disagree
14203       on their canonical status early. Also, we now prefer the oldest
14204       valid connection for extend cells. These two changes should reduce
14205       the number of long-term connections that are kept open between
14206       relays. Fixes bug 17604; bugfix on 0.2.5.5-alpha.
14207     - Relays now log hourly statistics (look for
14208       "channel_check_for_duplicates" lines) on the total number of
14209       connections to other relays. If the number of connections per
14210       relay is unexpectedly large, this log message is at notice level.
14211       Otherwise it is at info.
14213   o Major bugfixes (entry guards):
14214     - Don't block bootstrapping when a primary bridge is offline and we
14215       can't get its descriptor. Fixes bug 22325; fixes one case of bug
14216       21969; bugfix on 0.3.0.3-alpha.
14218   o Major bugfixes (linux TPROXY support):
14219     - Fix a typo that had prevented TPROXY-based transparent proxying
14220       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
14221       Patch from "d4fq0fQAgoJ".
14223   o Minor features (security, windows):
14224     - Enable a couple of pieces of Windows hardening: one
14225       (HeapEnableTerminationOnCorruption) that has been on-by-default
14226       since Windows 8, and unavailable before Windows 7; and one
14227       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
14228       affect us, but shouldn't do any harm. Closes ticket 21953.
14230   o Minor features (config options):
14231     - Allow "%include" directives in torrc configuration files. These
14232       directives import the settings from other files, or from all the
14233       files in a directory. Closes ticket 1922. Code by Daniel Pinto.
14234     - Make SAVECONF return an error when overwriting a torrc that has
14235       includes. Using SAVECONF with the FORCE option will allow it to
14236       overwrite torrc even if includes are used. Related to ticket 1922.
14237     - Add "GETINFO config-can-saveconf" to tell controllers if SAVECONF
14238       will work without the FORCE option. Related to ticket 1922.
14240   o Minor features (controller):
14241     - Warn the first time that a controller requests data in the long-
14242       deprecated 'GETINFO network-status' format. Closes ticket 21703.
14244   o Minor features (defaults):
14245     - The default value for UseCreateFast is now 0: clients which
14246       haven't yet received a consensus document will now use a proper
14247       ntor handshake to talk to their directory servers whenever they
14248       can. Closes ticket 21407.
14249     - Onion key rotation and expiry intervals are now defined as a
14250       network consensus parameter, per proposal 274. The default
14251       lifetime of an onion key is increased from 7 to 28 days. Old onion
14252       keys will expire after 7 days by default. This change will make
14253       consensus diffs much smaller, and save significant bandwidth.
14254       Closes ticket 21641.
14256   o Minor features (fallback directory list):
14257     - Update the fallback directory mirror whitelist and blacklist based
14258       on operator emails. Closes task 21121.
14259     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
14260       December 2016 (of which ~126 were still functional) with a list of
14261       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
14262       2017. Resolves ticket 21564.
14264   o Minor features (hidden services, logging):
14265     - Log a message when a hidden service descriptor has fewer
14266       introduction points than specified in
14267       HiddenServiceNumIntroductionPoints. Closes tickets 21598.
14268     - Log a message when a hidden service reaches its introduction point
14269       circuit limit, and when that limit is reset. Follow up to ticket
14270       21594; closes ticket 21622.
14271     - Warn user if multiple entries in EntryNodes and at least one
14272       HiddenService are used together. Pinning EntryNodes along with a
14273       hidden service can be possibly harmful; for instance see ticket
14274       14917 or 21155. Closes ticket 21155.
14276   o Minor features (linux seccomp2 sandbox):
14277     - We now have a document storage backend compatible with the Linux
14278       seccomp2 sandbox. This backend is used for consensus documents and
14279       diffs between them; in the long term, we'd like to use it for
14280       unparseable directory material too. Closes ticket 21645
14281     - Increase the maximum allowed size passed to mprotect(PROT_WRITE)
14282       from 1MB to 16MB. This was necessary with the glibc allocator in
14283       order to allow worker threads to allocate more memory -- which in
14284       turn is necessary because of our new use of worker threads for
14285       compression. Closes ticket 22096.
14287   o Minor features (logging):
14288     - Log files are no longer created world-readable by default.
14289       (Previously, most distributors would store the logs in a non-
14290       world-readable location to prevent inappropriate access. This
14291       change is an extra precaution.) Closes ticket 21729; patch
14292       from toralf.
14294   o Minor features (performance):
14295     - Our Keccak (SHA-3) implementation now accesses memory more
14296       efficiently, especially on little-endian systems. Closes
14297       ticket 21737.
14298     - Add an O(1) implementation of channel_find_by_global_id(), to
14299       speed some controller functions.
14301   o Minor features (relay, configuration):
14302     - The MyFamily option may now be repeated as many times as desired,
14303       for relays that want to configure large families. Closes ticket
14304       4998; patch by Daniel Pinto.
14306   o Minor features (safety):
14307     - Add an explicit check to extrainfo_parse_entry_from_string() for
14308       NULL inputs. We don't believe this can actually happen, but it may
14309       help silence a warning from the Clang analyzer. Closes
14310       ticket 21496.
14312   o Minor features (testing):
14313     - Add a "--disable-memory-sentinels" feature to help with fuzzing.
14314       When Tor is compiled with this option, we disable a number of
14315       redundant memory-safety failsafes that are intended to stop bugs
14316       from becoming security issues. This makes it easier to hunt for
14317       bugs that would be security issues without the failsafes turned
14318       on. Closes ticket 21439.
14319     - Add a general event-tracing instrumentation support to Tor. This
14320       subsystem will enable developers and researchers to add fine-
14321       grained instrumentation to their Tor instances, for use when
14322       examining Tor network performance issues. There are no trace
14323       events yet, and event-tracing is off by default unless enabled at
14324       compile time. Implements ticket 13802.
14325     - Improve our version parsing tests: add tests for typical version
14326       components, add tests for invalid versions, including numeric
14327       range and non-numeric prefixes. Unit tests 21278, 21450, and
14328       21507. Partially implements 21470.
14330   o Minor bugfixes (bandwidth accounting):
14331     - Roll over monthly accounting at the configured hour and minute,
14332       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
14333       Found by Andrey Karpov with PVS-Studio.
14335   o Minor bugfixes (code correctness):
14336     - Accurately identify client connections by their lack of peer
14337       authentication. This means that we bail out earlier if asked to
14338       extend to a client. Follow-up to 21407. Fixes bug 21406; bugfix
14339       on 0.2.4.23.
14341   o Minor bugfixes (configuration):
14342     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
14343       bug 22252; bugfix on 0.2.9.3-alpha.
14345   o Minor bugfixes (connection lifespan):
14346     - Allow more control over how long TLS connections are kept open:
14347       unify CircuitIdleTimeout and PredictedPortsRelevanceTime into a
14348       single option called CircuitsAvailableTimeout. Also, allow the
14349       consensus to control the default values for both this preference
14350       and the lifespan of relay-to-relay connections. Fixes bug 17592;
14351       bugfix on 0.2.5.5-alpha.
14352     - Increase the initial circuit build timeout testing frequency, to
14353       help ensure that ReducedConnectionPadding clients finish learning
14354       a timeout before their orconn would expire. The initial testing
14355       rate was set back in the days of TAP and before the Tor Browser
14356       updater, when we had to be much more careful about new clients
14357       making lots of circuits. With this change, a circuit build timeout
14358       is learned in about 15-20 minutes, instead of 100-120 minutes.
14360   o Minor bugfixes (controller):
14361     - GETINFO onions/current and onions/detached no longer respond with
14362       551 on empty lists. Fixes bug 21329; bugfix on 0.2.7.1-alpha.
14363     - Trigger HS descriptor events on the control port when the client
14364       fails to pick a hidden service directory for a hidden service.
14365       This can happen if all the hidden service directories are in
14366       ExcludeNodes, or they have all been queried within the last 15
14367       minutes. Fixes bug 22042; bugfix on 0.2.5.2-alpha.
14369   o Minor bugfixes (directory authority):
14370     - When rejecting a router descriptor for running an obsolete version
14371       of Tor without ntor support, warn about the obsolete tor version,
14372       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
14373     - Prevent the shared randomness subsystem from asserting when
14374       initialized by a bridge authority with an incomplete configuration
14375       file. Fixes bug 21586; bugfix on 0.2.9.8.
14377   o Minor bugfixes (exit-side DNS):
14378     - Fix an untriggerable assertion that checked the output of a
14379       libevent DNS error, so that the assertion actually behaves as
14380       expected. Fixes bug 22244; bugfix on 0.2.0.20-rc. Found by Andrey
14381       Karpov using PVS-Studio.
14383   o Minor bugfixes (fallback directories):
14384     - Make the usage example in updateFallbackDirs.py actually work, and
14385       explain what it does. Fixes bug 22270; bugfix on 0.3.0.3-alpha.
14386     - Decrease the guard flag average required to be a fallback. This
14387       allows us to keep relays that have their guard flag removed when
14388       they restart. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
14389     - Decrease the minimum number of fallbacks to 100. Fixes bug 20913;
14390       bugfix on 0.2.8.1-alpha.
14391     - Make sure fallback directory mirrors have the same address, port,
14392       and relay identity key for at least 30 days before they are
14393       selected. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
14395   o Minor bugfixes (hidden services):
14396     - Stop printing a cryptic warning when a hidden service gets a
14397       request to connect to a virtual port that it hasn't configured.
14398       Fixes bug 16706; bugfix on 0.2.6.3-alpha.
14399     - Simplify hidden service descriptor creation by using an existing
14400       flag to check if an introduction point is established. Fixes bug
14401       21599; bugfix on 0.2.7.2-alpha.
14403   o Minor bugfixes (memory leak):
14404     - Fix a small memory leak at exit from the backtrace handler code.
14405       Fixes bug 21788; bugfix on 0.2.5.2-alpha. Patch from Daniel Pinto.
14407   o Minor bugfixes (protocol, logging):
14408     - Downgrade a log statement about unexpected relay cells from "bug"
14409       to "protocol warning", because there is at least one use case
14410       where it can be triggered by a buggy tor implementation. Fixes bug
14411       21293; bugfix on 0.1.1.14-alpha.
14413   o Minor bugfixes (testing):
14414     - Use unbuffered I/O for utility functions around the
14415       process_handle_t type. This fixes unit test failures reported on
14416       OpenBSD and FreeBSD. Fixes bug 21654; bugfix on 0.2.3.1-alpha.
14417     - Make display of captured unit test log messages consistent. Fixes
14418       bug 21510; bugfix on 0.2.9.3-alpha.
14419     - Make test-network.sh always call chutney's test-network.sh.
14420       Previously, this only worked on systems which had bash installed,
14421       due to some bash-specific code in the script. Fixes bug 19699;
14422       bugfix on 0.3.0.4-rc. Follow-up to ticket 21581.
14424   o Minor bugfixes (voting consistency):
14425     - Reject version numbers with non-numeric prefixes (such as +, -, or
14426       whitespace). Disallowing whitespace prevents differential version
14427       parsing between POSIX-based and Windows platforms. Fixes bug 21507
14428       and part of 21508; bugfix on 0.0.8pre1.
14430   o Minor bugfixes (windows, relay):
14431     - Resolve "Failure from drain_fd: No error" warnings on Windows
14432       relays. Fixes bug 21540; bugfix on 0.2.6.3-alpha.
14434   o Code simplification and refactoring:
14435     - Break up the 630-line function connection_dir_client_reached_eof()
14436       into a dozen smaller functions. This change should help
14437       maintainability and readability of the client directory code.
14438     - Isolate our use of the openssl headers so that they are only
14439       included from our crypto wrapper modules, and from tests that
14440       examine those modules' internals. Closes ticket 21841.
14441     - Simplify our API to launch directory requests, making it more
14442       extensible and less error-prone. Now it's easier to add extra
14443       headers to directory requests. Closes ticket 21646.
14444     - Our base64 decoding functions no longer overestimate the output
14445       space that they need when parsing unpadded inputs. Closes
14446       ticket 17868.
14447     - Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value.
14448       Resolves ticket 22213.
14449     - The logic that directory caches use to spool request to clients,
14450       serving them one part at a time so as not to allocate too much
14451       memory, has been refactored for consistency. Previously there was
14452       a separate spooling implementation per type of spoolable data. Now
14453       there is one common spooling implementation, with extensible data
14454       types. Closes ticket 21651.
14455     - Tor's compression module now supports multiple backends. Part of
14456       the implementation for proposal 278; closes ticket 21663.
14458   o Documentation:
14459     - Clarify the behavior of the KeepAliveIsolateSOCKSAuth sub-option.
14460       Closes ticket 21873.
14461     - Correct documentation about the default DataDirectory value.
14462       Closes ticket 21151.
14463     - Document the default behavior of NumEntryGuards and
14464       NumDirectoryGuards correctly. Fixes bug 21715; bugfix
14465       on 0.3.0.1-alpha.
14466     - Document key=value pluggable transport arguments for Bridge lines
14467       in torrc. Fixes bug 20341; bugfix on 0.2.5.1-alpha.
14468     - Note that bandwidth-limiting options don't affect TCP headers or
14469       DNS. Closes ticket 17170.
14471   o Removed features (configuration options, all in ticket 22060):
14472     - These configuration options are now marked Obsolete, and no longer
14473       have any effect: AllowInvalidNodes, AllowSingleHopCircuits,
14474       AllowSingleHopExits, ExcludeSingleHopRelays, FastFirstHopPK,
14475       TLSECGroup, WarnUnsafeSocks. They were first marked as deprecated
14476       in 0.2.9.2-alpha and have now been removed. The previous default
14477       behavior is now always chosen; the previous (less secure) non-
14478       default behavior is now unavailable.
14479     - CloseHSClientCircuitsImmediatelyOnTimeout and
14480       CloseHSServiceRendCircuitsImmediatelyOnTimeout were deprecated in
14481       0.2.9.2-alpha and now have been removed. HS circuits never close
14482       on circuit build timeout; they have a longer timeout period.
14483     - {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress were deprecated
14484       in 0.2.9.2-alpha and now have been removed. Use the ORPort option
14485       (and others) to configure listen-only and advertise-only addresses.
14487   o Removed features (tools):
14488     - We've removed the tor-checkkey tool from src/tools. Long ago, we
14489       used it to help people detect RSA keys that were generated by
14490       versions of Debian affected by CVE-2008-0166. But those keys have
14491       been out of circulation for ages, and this tool is no longer
14492       required. Closes ticket 21842.
14495 Changes in version 0.3.0.7 - 2017-05-15
14496   Tor 0.3.0.7 fixes a medium-severity security bug in earlier versions
14497   of Tor 0.3.0.x, where an attacker could cause a Tor relay process
14498   to exit. Relays running earlier versions of Tor 0.3.0.x should upgrade;
14499   clients are not affected.
14501   o Major bugfixes (hidden service directory, security):
14502     - Fix an assertion failure in the hidden service directory code, which
14503       could be used by an attacker to remotely cause a Tor relay process to
14504       exit. Relays running earlier versions of Tor 0.3.0.x should upgrade.
14505       should upgrade. This security issue is tracked as TROVE-2017-002.
14506       Fixes bug 22246; bugfix on 0.3.0.1-alpha.
14508   o Minor features:
14509     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
14510       Country database.
14512   o Minor features (future-proofing):
14513     - Tor no longer refuses to download microdescriptors or descriptors
14514       if they are listed as "published in the future". This change will
14515       eventually allow us to stop listing meaningful "published" dates
14516       in microdescriptor consensuses, and thereby allow us to reduce the
14517       resources required to download consensus diffs by over 50%.
14518       Implements part of ticket 21642; implements part of proposal 275.
14520   o Minor bugfixes (Linux seccomp2 sandbox):
14521     - The getpid() system call is now permitted under the Linux seccomp2
14522       sandbox, to avoid crashing with versions of OpenSSL (and other
14523       libraries) that attempt to learn the process's PID by using the
14524       syscall rather than the VDSO code. Fixes bug 21943; bugfix
14525       on 0.2.5.1-alpha.
14528 Changes in version 0.3.0.6 - 2017-04-26
14529   Tor 0.3.0.6 is the first stable release of the Tor 0.3.0 series.
14531   With the 0.3.0 series, clients and relays now use Ed25519 keys to
14532   authenticate their link connections to relays, rather than the old
14533   RSA1024 keys that they used before. (Circuit crypto has been
14534   Curve25519-authenticated since 0.2.4.8-alpha.) We have also replaced
14535   the guard selection and replacement algorithm to behave more robustly
14536   in the presence of unreliable networks, and to resist guard-
14537   capture attacks.
14539   This series also includes numerous other small features and bugfixes,
14540   along with more groundwork for the upcoming hidden-services revamp.
14542   Per our stable release policy, we plan to support the Tor 0.3.0
14543   release series for at least the next nine months, or for three months
14544   after the first stable release of the 0.3.1 series: whichever is
14545   longer. If you need a release with long-term support, we recommend
14546   that you stay with the 0.2.9 series.
14548   Below are the changes since 0.3.0.5-rc. For a list of all changes
14549   since 0.2.9, see the ReleaseNotes file.
14551   o Minor features (geoip):
14552     - Update geoip and geoip6 to the April 4 2017 Maxmind GeoLite2
14553       Country database.
14555   o Minor bugfixes (control port):
14556     - The GETINFO extra-info/digest/<digest> command was broken because
14557       of a wrong base16 decode return value check, introduced when
14558       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
14560   o Minor bugfixes (crash prevention):
14561     - Fix a (currently untriggerable, but potentially dangerous) crash
14562       bug when base32-encoding inputs whose sizes are not a multiple of
14563       5. Fixes bug 21894; bugfix on 0.2.9.1-alpha.
14566 Changes in version 0.3.0.5-rc - 2017-04-05
14567   Tor 0.3.0.5-rc fixes a few remaining bugs, large and small, in the
14568   0.3.0 release series.
14570   This is the second release candidate in the Tor 0.3.0 series, and has
14571   much fewer changes than the first. If we find no new bugs or
14572   regressions here, the first stable 0.3.0 release will be nearly
14573   identical to it.
14575   o Major bugfixes (crash, directory connections):
14576     - Fix a rare crash when sending a begin cell on a circuit whose
14577       linked directory connection had already been closed. Fixes bug
14578       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
14580   o Major bugfixes (guard selection):
14581     - Fix a guard selection bug where Tor would refuse to bootstrap in
14582       some cases if the user swapped a bridge for another bridge in
14583       their configuration file. Fixes bug 21771; bugfix on 0.3.0.1-alpha.
14584       Reported by "torvlnt33r".
14586   o Minor features (geoip):
14587     - Update geoip and geoip6 to the March 7 2017 Maxmind GeoLite2
14588       Country database.
14590   o Minor bugfix (compilation):
14591     - Fix a warning when compiling hs_service.c. Previously, it had no
14592       exported symbols when compiled for libor.a, resulting in a
14593       compilation warning from clang. Fixes bug 21825; bugfix
14594       on 0.3.0.1-alpha.
14596   o Minor bugfixes (hidden services):
14597     - Make hidden services check for failed intro point connections,
14598       even when they have exceeded their intro point creation limit.
14599       Fixes bug 21596; bugfix on 0.2.7.2-alpha. Reported by Alec Muffett.
14600     - Make hidden services with 8 to 10 introduction points check for
14601       failed circuits immediately after startup. Previously, they would
14602       wait for 5 minutes before performing their first checks. Fixes bug
14603       21594; bugfix on 0.2.3.9-alpha. Reported by Alec Muffett.
14605   o Minor bugfixes (memory leaks):
14606     - Fix a memory leak when using GETCONF on a port option. Fixes bug
14607       21682; bugfix on 0.3.0.3-alpha.
14609   o Minor bugfixes (relay):
14610     - Avoid a double-marked-circuit warning that could happen when we
14611       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
14612       on 0.1.0.1-rc.
14614   o Minor bugfixes (tests):
14615     - Run the entry_guard_parse_from_state_full() test with the time set
14616       to a specific date. (The guard state that this test was parsing
14617       contained guards that had expired since the test was first
14618       written.) Fixes bug 21799; bugfix on 0.3.0.1-alpha.
14620   o Documentation:
14621     - Update the description of the directory server options in the
14622       manual page, to clarify that a relay no longer needs to set
14623       DirPort in order to be a directory cache. Closes ticket 21720.
14627 Changes in version 0.2.8.13 - 2017-03-03
14628   Tor 0.2.8.13 backports a security fix from later Tor
14629   releases.  Anybody running Tor 0.2.8.12 or earlier should upgrade to this
14630   this release, if for some reason they cannot upgrade to a later
14631   release series, and if they build Tor with the --enable-expensive-hardening
14632   option.
14634   Note that support for Tor 0.2.8.x is ending next year: we will not issue
14635   any fixes for the Tor 0.2.8.x series after 1 Jan 2018.  If you need
14636   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14638   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14639     - Fix an integer underflow bug when comparing malformed Tor
14640       versions. This bug could crash Tor when built with
14641       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14642       0.2.9.8, which were built with -ftrapv by default. In other cases
14643       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14644       on 0.0.8pre1. Found by OSS-Fuzz.
14646   o Minor features (geoip):
14647     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14648       Country database.
14651 Changes in version 0.2.7.7 - 2017-03-03
14652   Tor 0.2.7.7 backports a number of security fixes from later Tor
14653   releases.  Anybody running Tor 0.2.7.6 or earlier should upgrade to
14654   this release, if for some reason they cannot upgrade to a later
14655   release series.
14657   Note that support for Tor 0.2.7.x is ending this year: we will not issue
14658   any fixes for the Tor 0.2.7.x series after 1 August 2017.  If you need
14659   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14661   o Directory authority changes (backport from 0.2.8.5-rc):
14662     - Urras is no longer a directory authority. Closes ticket 19271.
14664   o Directory authority changes (backport from 0.2.9.2-alpha):
14665     - The "Tonga" bridge authority has been retired; the new bridge
14666       authority is "Bifroest". Closes tickets 19728 and 19690.
14668   o Directory authority key updates (backport from 0.2.8.1-alpha):
14669     - Update the V3 identity key for the dannenberg directory authority:
14670       it was changed on 18 November 2015. Closes task 17906. Patch
14671       by "teor".
14673   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14674     - Fix a bug in parsing that could cause clients to read a single
14675       byte past the end of an allocated region. This bug could be used
14676       to cause hardened clients (built with --enable-expensive-hardening)
14677       to crash if they tried to visit a hostile hidden service. Non-
14678       hardened clients are only affected depending on the details of
14679       their platform's memory allocator. Fixes bug 21018; bugfix on
14680       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14681       2016-12-002 and as CVE-2016-1254.
14683   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
14684     - Stop a crash that could occur when a client running with DNSPort
14685       received a query with multiple address types, and the first
14686       address type was not supported. Found and fixed by Scott Dial.
14687       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14688     - Prevent a class of security bugs caused by treating the contents
14689       of a buffer chunk as if they were a NUL-terminated string. At
14690       least one such bug seems to be present in all currently used
14691       versions of Tor, and would allow an attacker to remotely crash
14692       most Tor instances, especially those compiled with extra compiler
14693       hardening. With this defense in place, such bugs can't crash Tor,
14694       though we should still fix them as they occur. Closes ticket
14695       20384 (TROVE-2016-10-001).
14697   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14698     - Avoid a difficult-to-trigger heap corruption attack when extending
14699       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14700       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14701       Reported by Guido Vranken.
14703   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14704     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14705       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14707   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14708     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14709       pointer to the previous (uninitialized) key value. The impact here
14710       should be limited to a difficult-to-trigger crash, if OpenSSL is
14711       running an engine that makes key generation failures possible, or
14712       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14713       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14714       Baishakhi Ray.
14716   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14717     - Fix an integer underflow bug when comparing malformed Tor
14718       versions. This bug could crash Tor when built with
14719       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14720       0.2.9.8, which were built with -ftrapv by default. In other cases
14721       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14722       on 0.0.8pre1. Found by OSS-Fuzz.
14724   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14725     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14726       zero size. Check size argument to memwipe() for underflow. Fixes
14727       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14728       patch by "teor".
14730   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14731     - Make Tor survive errors involving connections without a
14732       corresponding event object. Previously we'd fail with an
14733       assertion; now we produce a log message. Related to bug 16248.
14735   o Minor features (geoip):
14736     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14737       Country database.
14740 Changes in version 0.2.6.11 - 2017-03-03
14741   Tor 0.2.6.11 backports a number of security fixes from later Tor
14742   releases.  Anybody running Tor 0.2.6.10 or earlier should upgrade to
14743   this release, if for some reason they cannot upgrade to a later
14744   release series.
14746   Note that support for Tor 0.2.6.x is ending this year: we will not issue
14747   any fixes for the Tor 0.2.6.x series after 1 August 2017.  If you need
14748   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14750   o Directory authority changes (backport from 0.2.8.5-rc):
14751     - Urras is no longer a directory authority. Closes ticket 19271.
14753   o Directory authority changes (backport from 0.2.9.2-alpha):
14754     - The "Tonga" bridge authority has been retired; the new bridge
14755       authority is "Bifroest". Closes tickets 19728 and 19690.
14757   o Directory authority key updates (backport from 0.2.8.1-alpha):
14758     - Update the V3 identity key for the dannenberg directory authority:
14759       it was changed on 18 November 2015. Closes task 17906. Patch
14760       by "teor".
14762   o Major features (security fixes, backport from 0.2.9.4-alpha):
14763     - Prevent a class of security bugs caused by treating the contents
14764       of a buffer chunk as if they were a NUL-terminated string. At
14765       least one such bug seems to be present in all currently used
14766       versions of Tor, and would allow an attacker to remotely crash
14767       most Tor instances, especially those compiled with extra compiler
14768       hardening. With this defense in place, such bugs can't crash Tor,
14769       though we should still fix them as they occur. Closes ticket
14770       20384 (TROVE-2016-10-001).
14772   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14773     - Fix a bug in parsing that could cause clients to read a single
14774       byte past the end of an allocated region. This bug could be used
14775       to cause hardened clients (built with --enable-expensive-hardening)
14776       to crash if they tried to visit a hostile hidden service. Non-
14777       hardened clients are only affected depending on the details of
14778       their platform's memory allocator. Fixes bug 21018; bugfix on
14779       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14780       2016-12-002 and as CVE-2016-1254.
14782   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
14783     - Stop a crash that could occur when a client running with DNSPort
14784       received a query with multiple address types, and the first
14785       address type was not supported. Found and fixed by Scott Dial.
14786       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14788   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
14789     - Fix an error that could cause us to read 4 bytes before the
14790       beginning of an openssl string. This bug could be used to cause
14791       Tor to crash on systems with unusual malloc implementations, or
14792       systems with unusual hardening installed. Fixes bug 17404; bugfix
14793       on 0.2.3.6-alpha.
14795   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14796     - Avoid a difficult-to-trigger heap corruption attack when extending
14797       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14798       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14799       Reported by Guido Vranken.
14801   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14802     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14803       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14805   o Major bugfixes (guard selection, backport from 0.2.7.6):
14806     - Actually look at the Guard flag when selecting a new directory
14807       guard. When we implemented the directory guard design, we
14808       accidentally started treating all relays as if they have the Guard
14809       flag during guard selection, leading to weaker anonymity and worse
14810       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
14811       by Mohsen Imani.
14813   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14814     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14815       pointer to the previous (uninitialized) key value. The impact here
14816       should be limited to a difficult-to-trigger crash, if OpenSSL is
14817       running an engine that makes key generation failures possible, or
14818       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14819       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14820       Baishakhi Ray.
14822   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14823     - Fix an integer underflow bug when comparing malformed Tor
14824       versions. This bug could crash Tor when built with
14825       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14826       0.2.9.8, which were built with -ftrapv by default. In other cases
14827       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14828       on 0.0.8pre1. Found by OSS-Fuzz.
14830   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14831     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14832       zero size. Check size argument to memwipe() for underflow. Fixes
14833       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14834       patch by "teor".
14836   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14837     - Make Tor survive errors involving connections without a
14838       corresponding event object. Previously we'd fail with an
14839       assertion; now we produce a log message. Related to bug 16248.
14841   o Minor features (geoip):
14842     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14843       Country database.
14845   o Minor bugfixes (compilation, backport from 0.2.7.6):
14846     - Fix a compilation warning with Clang 3.6: Do not check the
14847       presence of an address which can never be NULL. Fixes bug 17781.
14850 Changes in version 0.2.5.13 - 2017-03-03
14851   Tor 0.2.5.13 backports a number of security fixes from later Tor
14852   releases.  Anybody running Tor 0.2.5.13 or earlier should upgrade to
14853   this release, if for some reason they cannot upgrade to a later
14854   release series.
14856   Note that support for Tor 0.2.5.x is ending next year: we will not issue
14857   any fixes for the Tor 0.2.5.x series after 1 May 2018.  If you need
14858   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
14860   o Directory authority changes (backport from 0.2.8.5-rc):
14861     - Urras is no longer a directory authority. Closes ticket 19271.
14863   o Directory authority changes (backport from 0.2.9.2-alpha):
14864     - The "Tonga" bridge authority has been retired; the new bridge
14865       authority is "Bifroest". Closes tickets 19728 and 19690.
14867   o Directory authority key updates (backport from 0.2.8.1-alpha):
14868     - Update the V3 identity key for the dannenberg directory authority:
14869       it was changed on 18 November 2015. Closes task 17906. Patch
14870       by "teor".
14872   o Major features (security fixes, backport from 0.2.9.4-alpha):
14873     - Prevent a class of security bugs caused by treating the contents
14874       of a buffer chunk as if they were a NUL-terminated string. At
14875       least one such bug seems to be present in all currently used
14876       versions of Tor, and would allow an attacker to remotely crash
14877       most Tor instances, especially those compiled with extra compiler
14878       hardening. With this defense in place, such bugs can't crash Tor,
14879       though we should still fix them as they occur. Closes ticket
14880       20384 (TROVE-2016-10-001).
14882   o Major bugfixes (parsing, security, backport from 0.2.9.8):
14883     - Fix a bug in parsing that could cause clients to read a single
14884       byte past the end of an allocated region. This bug could be used
14885       to cause hardened clients (built with --enable-expensive-hardening)
14886       to crash if they tried to visit a hostile hidden service. Non-
14887       hardened clients are only affected depending on the details of
14888       their platform's memory allocator. Fixes bug 21018; bugfix on
14889       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
14890       2016-12-002 and as CVE-2016-1254.
14892   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
14893     - Stop a crash that could occur when a client running with DNSPort
14894       received a query with multiple address types, and the first
14895       address type was not supported. Found and fixed by Scott Dial.
14896       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
14898   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
14899     - Fix an error that could cause us to read 4 bytes before the
14900       beginning of an openssl string. This bug could be used to cause
14901       Tor to crash on systems with unusual malloc implementations, or
14902       systems with unusual hardening installed. Fixes bug 17404; bugfix
14903       on 0.2.3.6-alpha.
14905   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
14906     - Avoid a difficult-to-trigger heap corruption attack when extending
14907       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
14908       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
14909       Reported by Guido Vranken.
14911   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
14912     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
14913       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
14915   o Major bugfixes (guard selection, backport from 0.2.7.6):
14916     - Actually look at the Guard flag when selecting a new directory
14917       guard. When we implemented the directory guard design, we
14918       accidentally started treating all relays as if they have the Guard
14919       flag during guard selection, leading to weaker anonymity and worse
14920       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
14921       by Mohsen Imani.
14923   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
14924     - If OpenSSL fails to generate an RSA key, do not retain a dangling
14925       pointer to the previous (uninitialized) key value. The impact here
14926       should be limited to a difficult-to-trigger crash, if OpenSSL is
14927       running an engine that makes key generation failures possible, or
14928       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
14929       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
14930       Baishakhi Ray.
14932   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
14933     - Fix an integer underflow bug when comparing malformed Tor
14934       versions. This bug could crash Tor when built with
14935       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
14936       0.2.9.8, which were built with -ftrapv by default. In other cases
14937       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
14938       on 0.0.8pre1. Found by OSS-Fuzz.
14940   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
14941     - Make memwipe() do nothing when passed a NULL pointer or buffer of
14942       zero size. Check size argument to memwipe() for underflow. Fixes
14943       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
14944       patch by "teor".
14946   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
14947     - Make Tor survive errors involving connections without a
14948       corresponding event object. Previously we'd fail with an
14949       assertion; now we produce a log message. Related to bug 16248.
14951   o Minor features (geoip):
14952     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
14953       Country database.
14955   o Minor bugfixes (compilation, backport from 0.2.7.6):
14956     - Fix a compilation warning with Clang 3.6: Do not check the
14957       presence of an address which can never be NULL. Fixes bug 17781.
14959   o Minor bugfixes (crypto error-handling, backport from 0.2.7.2-alpha):
14960     - Check for failures from crypto_early_init, and refuse to continue.
14961       A previous typo meant that we could keep going with an
14962       uninitialized crypto library, and would have OpenSSL initialize
14963       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
14964       when implementing ticket 4900. Patch by "teor".
14966   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
14967     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
14968       a client authorized hidden service. Fixes bug 15823; bugfix
14969       on 0.2.1.6-alpha.
14972 Changes in version 0.2.4.28 - 2017-03-03
14973   Tor 0.2.4.28 backports a number of security fixes from later Tor
14974   releases.  Anybody running Tor 0.2.4.27 or earlier should upgrade to
14975   this release, if for some reason they cannot upgrade to a later
14976   release series.
14978   Note that support for Tor 0.2.4.x is ending soon: we will not issue
14979   any fixes for the Tor 0.2.4.x series after 1 August 2017.  If you need
14980   a Tor release series with long-term support, we recommend Tor 0.2.9.x.
14982   o Directory authority changes (backport from 0.2.8.5-rc):
14983     - Urras is no longer a directory authority. Closes ticket 19271.
14985   o Directory authority changes (backport from 0.2.9.2-alpha):
14986     - The "Tonga" bridge authority has been retired; the new bridge
14987       authority is "Bifroest". Closes tickets 19728 and 19690.
14989   o Directory authority key updates (backport from 0.2.8.1-alpha):
14990     - Update the V3 identity key for the dannenberg directory authority:
14991       it was changed on 18 November 2015. Closes task 17906. Patch
14992       by "teor".
14994   o Major features (security fixes, backport from 0.2.9.4-alpha):
14995     - Prevent a class of security bugs caused by treating the contents
14996       of a buffer chunk as if they were a NUL-terminated string. At
14997       least one such bug seems to be present in all currently used
14998       versions of Tor, and would allow an attacker to remotely crash
14999       most Tor instances, especially those compiled with extra compiler
15000       hardening. With this defense in place, such bugs can't crash Tor,
15001       though we should still fix them as they occur. Closes ticket
15002       20384 (TROVE-2016-10-001).
15004   o Major bugfixes (parsing, security, backport from 0.2.9.8):
15005     - Fix a bug in parsing that could cause clients to read a single
15006       byte past the end of an allocated region. This bug could be used
15007       to cause hardened clients (built with --enable-expensive-hardening)
15008       to crash if they tried to visit a hostile hidden service. Non-
15009       hardened clients are only affected depending on the details of
15010       their platform's memory allocator. Fixes bug 21018; bugfix on
15011       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
15012       2016-12-002 and as CVE-2016-1254.
15014   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
15015     - Fix an error that could cause us to read 4 bytes before the
15016       beginning of an openssl string. This bug could be used to cause
15017       Tor to crash on systems with unusual malloc implementations, or
15018       systems with unusual hardening installed. Fixes bug 17404; bugfix
15019       on 0.2.3.6-alpha.
15021   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
15022     - Avoid a difficult-to-trigger heap corruption attack when extending
15023       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
15024       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
15025       Reported by Guido Vranken.
15027   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
15028     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
15029       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
15031   o Major bugfixes (guard selection, backport from 0.2.7.6):
15032     - Actually look at the Guard flag when selecting a new directory
15033       guard. When we implemented the directory guard design, we
15034       accidentally started treating all relays as if they have the Guard
15035       flag during guard selection, leading to weaker anonymity and worse
15036       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
15037       by Mohsen Imani.
15039   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
15040     - If OpenSSL fails to generate an RSA key, do not retain a dangling
15041       pointer to the previous (uninitialized) key value. The impact here
15042       should be limited to a difficult-to-trigger crash, if OpenSSL is
15043       running an engine that makes key generation failures possible, or
15044       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
15045       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
15046       Baishakhi Ray.
15048   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
15049     - Fix an integer underflow bug when comparing malformed Tor
15050       versions. This bug could crash Tor when built with
15051       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
15052       0.2.9.8, which were built with -ftrapv by default. In other cases
15053       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
15054       on 0.0.8pre1. Found by OSS-Fuzz.
15056   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
15057     - Make memwipe() do nothing when passed a NULL pointer or buffer of
15058       zero size. Check size argument to memwipe() for underflow. Fixes
15059       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
15060       patch by "teor".
15062   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
15063     - Make Tor survive errors involving connections without a
15064       corresponding event object. Previously we'd fail with an
15065       assertion; now we produce a log message. Related to bug 16248.
15067   o Minor features (DoS-resistance, backport from 0.2.7.1-alpha):
15068     - Make it harder for attackers to overload hidden services with
15069       introductions, by blocking multiple introduction requests on the
15070       same circuit. Resolves ticket 15515.
15072   o Minor features (geoip):
15073     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
15074       Country database.
15076   o Minor bugfixes (compilation, backport from 0.2.7.6):
15077     - Fix a compilation warning with Clang 3.6: Do not check the
15078       presence of an address which can never be NULL. Fixes bug 17781.
15080   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
15081     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
15082       a client authorized hidden service. Fixes bug 15823; bugfix
15083       on 0.2.1.6-alpha.
15086 Changes in version 0.3.0.4-rc - 2017-03-01
15087   Tor 0.3.0.4-rc fixes some remaining bugs, large and small, in the
15088   0.3.0 release series, and introduces a few reliability features to
15089   keep them from coming back.
15091   This is the first release candidate in the Tor 0.3.0 series. If we
15092   find no new bugs or regressions here, the first stable 0.3.0 release
15093   will be nearly identical to it.
15095   o Major bugfixes (bridges):
15096     - When the same bridge is configured multiple times with the same
15097       identity, but at different address:port combinations, treat those
15098       bridge instances as separate guards. This fix restores the ability
15099       of clients to configure the same bridge with multiple pluggable
15100       transports. Fixes bug 21027; bugfix on 0.3.0.1-alpha.
15102   o Major bugfixes (hidden service directory v3):
15103     - Stop crashing on a failed v3 hidden service descriptor lookup
15104       failure. Fixes bug 21471; bugfixes on 0.3.0.1-alpha.
15106   o Major bugfixes (parsing):
15107     - When parsing a malformed content-length field from an HTTP
15108       message, do not read off the end of the buffer. This bug was a
15109       potential remote denial-of-service attack against Tor clients and
15110       relays. A workaround was released in October 2016, to prevent this
15111       bug from crashing Tor. This is a fix for the underlying issue,
15112       which should no longer matter (if you applied the earlier patch).
15113       Fixes bug 20894; bugfix on 0.2.0.16-alpha. Bug found by fuzzing
15114       using AFL (http://lcamtuf.coredump.cx/afl/).
15115     - Fix an integer underflow bug when comparing malformed Tor
15116       versions. This bug could crash Tor when built with
15117       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
15118       0.2.9.8, which were built with -ftrapv by default. In other cases
15119       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
15120       on 0.0.8pre1. Found by OSS-Fuzz.
15122   o Minor feature (protocol versioning):
15123     - Add new protocol version for proposal 224. HSIntro now advertises
15124       version "3-4" and HSDir version "1-2". Fixes ticket 20656.
15126   o Minor features (directory authorities):
15127     - Directory authorities now reject descriptors that claim to be
15128       malformed versions of Tor. Helps prevent exploitation of
15129       bug 21278.
15130     - Reject version numbers with components that exceed INT32_MAX.
15131       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
15132       Fixes bug 21450; bugfix on 0.0.8pre1.
15133     - Directory authorities now reject relays running versions
15134       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
15135       suffer from bug 20499 and don't keep their consensus cache
15136       up-to-date. Resolves ticket 20509.
15138   o Minor features (geoip):
15139     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
15140       Country database.
15142   o Minor features (reliability, crash):
15143     - Try better to detect problems in buffers where they might grow (or
15144       think they have grown) over 2 GB in size. Diagnostic for
15145       bug 21369.
15147   o Minor features (testing):
15148     - During 'make test-network-all', if tor logs any warnings, ask
15149       chutney to output them. Requires a recent version of chutney with
15150       the 21572 patch. Implements 21570.
15152   o Minor bugfixes (certificate expiration time):
15153     - Avoid using link certificates that don't become valid till some
15154       time in the future. Fixes bug 21420; bugfix on 0.2.4.11-alpha
15156   o Minor bugfixes (code correctness):
15157     - Repair a couple of (unreachable or harmless) cases of the risky
15158       comparison-by-subtraction pattern that caused bug 21278.
15159     - Remove a redundant check for the UseEntryGuards option from the
15160       options_transition_affects_guards() function. Fixes bug 21492;
15161       bugfix on 0.3.0.1-alpha.
15163   o Minor bugfixes (directory mirrors):
15164     - Allow relays to use directory mirrors without a DirPort: these
15165       relays need to be contacted over their ORPorts using a begindir
15166       connection. Fixes one case of bug 20711; bugfix on 0.2.8.2-alpha.
15167     - Clarify the message logged when a remote relay is unexpectedly
15168       missing an ORPort or DirPort: users were confusing this with a
15169       local port. Fixes another case of bug 20711; bugfix
15170       on 0.2.8.2-alpha.
15172   o Minor bugfixes (guards):
15173     - Don't warn about a missing guard state on timeout-measurement
15174       circuits: they aren't supposed to be using guards. Fixes an
15175       instance of bug 21007; bugfix on 0.3.0.1-alpha.
15176     - Silence a BUG() warning when attempting to use a guard whose
15177       descriptor we don't know, and make this scenario less likely to
15178       happen. Fixes bug 21415; bugfix on 0.3.0.1-alpha.
15180   o Minor bugfixes (hidden service):
15181     - Pass correct buffer length when encoding legacy ESTABLISH_INTRO
15182       cells. Previously, we were using sizeof() on a pointer, instead of
15183       the real destination buffer. Fortunately, that value was only used
15184       to double-check that there was enough room--which was already
15185       enforced elsewhere. Fixes bug 21553; bugfix on 0.3.0.1-alpha.
15187   o Minor bugfixes (testing):
15188     - Fix Raspbian build issues related to missing socket errno in
15189       test_util.c. Fixes bug 21116; bugfix on 0.2.8.2. Patch
15190       by "hein".
15191     - Rename "make fuzz" to "make test-fuzz-corpora", since it doesn't
15192       actually fuzz anything. Fixes bug 21447; bugfix on 0.3.0.3-alpha.
15193     - Use bash in src/test/test-network.sh. This ensures we reliably
15194       call chutney's newer tools/test-network.sh when available. Fixes
15195       bug 21562; bugfix on 0.2.9.1-alpha.
15197   o Documentation:
15198     - Small fixes to the fuzzing documentation. Closes ticket 21472.
15201 Changes in version 0.2.9.10 - 2017-03-01
15202   Tor 0.2.9.10 backports a security fix from later Tor release.  It also
15203   includes fixes for some major issues affecting directory authorities,
15204   LibreSSL compatibility, and IPv6 correctness.
15206   The Tor 0.2.9.x release series is now marked as a long-term-support
15207   series.  We intend to backport security fixes to 0.2.9.x until at
15208   least January of 2020.
15210   o Major bugfixes (directory authority, 0.3.0.3-alpha):
15211     - During voting, when marking a relay as a probable sybil, do not
15212       clear its BadExit flag: sybils can still be bad in other ways
15213       too. (We still clear the other flags.) Fixes bug 21108; bugfix
15214       on 0.2.0.13-alpha.
15216   o Major bugfixes (IPv6 Exits, backport from 0.3.0.3-alpha):
15217     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
15218       any IPv6 addresses. Instead, only reject a port over IPv6 if the
15219       exit policy rejects that port on more than an IPv6 /16 of
15220       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
15221       which rejected a relay's own IPv6 address by default. Fixes bug
15222       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
15224   o Major bugfixes (parsing, also in 0.3.0.4-rc):
15225     - Fix an integer underflow bug when comparing malformed Tor
15226       versions. This bug could crash Tor when built with
15227       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
15228       0.2.9.8, which were built with -ftrapv by default. In other cases
15229       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
15230       on 0.0.8pre1. Found by OSS-Fuzz.
15232   o Minor features (directory authorities, also in 0.3.0.4-rc):
15233     - Directory authorities now reject descriptors that claim to be
15234       malformed versions of Tor. Helps prevent exploitation of
15235       bug 21278.
15236     - Reject version numbers with components that exceed INT32_MAX.
15237       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
15238       Fixes bug 21450; bugfix on 0.0.8pre1.
15240   o Minor features (geoip):
15241     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
15242       Country database.
15244   o Minor features (portability, compilation, backport from 0.3.0.3-alpha):
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 bugfixes (code correctness, also in 0.3.0.4-rc):
15252     - Repair a couple of (unreachable or harmless) cases of the risky
15253       comparison-by-subtraction pattern that caused bug 21278.
15255   o Minor bugfixes (tor-resolve, backport from 0.3.0.3-alpha):
15256     - The tor-resolve command line tool now rejects hostnames over 255
15257       characters in length. Previously, it would silently truncate them,
15258       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
15259       Patch by "junglefowl".
15262 Changes in version 0.3.0.3-alpha - 2017-02-03
15263   Tor 0.3.0.3-alpha fixes a few significant bugs introduced over the
15264   0.3.0.x development series, including some that could cause
15265   authorities to behave badly. There is also a fix for a longstanding
15266   bug that could prevent IPv6 exits from working. Tor 0.3.0.3-alpha also
15267   includes some smaller features and bugfixes.
15269   The Tor 0.3.0.x release series is now in patch-freeze: no additional
15270   features will be considered for inclusion in 0.3.0.x. We suspect that
15271   some bugs will probably remain, however, and we encourage people to
15272   test this release.
15274   o Major bugfixes (directory authority):
15275     - During voting, when marking a relay as a probable sybil, do not
15276       clear its BadExit flag: sybils can still be bad in other ways
15277       too. (We still clear the other flags.) Fixes bug 21108; bugfix
15278       on 0.2.0.13-alpha.
15279     - When deciding whether we have just found a router to be reachable,
15280       do not penalize it for not having performed an Ed25519 link
15281       handshake if it does not claim to support an Ed25519 handshake.
15282       Previously, we would treat such relays as non-running. Fixes bug
15283       21107; bugfix on 0.3.0.1-alpha.
15285   o Major bugfixes (entry guards):
15286     - Stop trying to build circuits through entry guards for which we
15287       have no descriptor. Also, stop crashing in the case that we *do*
15288       accidentally try to build a circuit in such a state. Fixes bug
15289       21242; bugfix on 0.3.0.1-alpha.
15291   o Major bugfixes (IPv6 Exits):
15292     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
15293       any IPv6 addresses. Instead, only reject a port over IPv6 if the
15294       exit policy rejects that port on more than an IPv6 /16 of
15295       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
15296       which rejected a relay's own IPv6 address by default. Fixes bug
15297       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
15299   o Minor feature (client):
15300     - Enable IPv6 traffic on the SocksPort by default. To disable this,
15301       a user will have to specify "NoIPv6Traffic". Closes ticket 21269.
15303   o Minor feature (fallback scripts):
15304     - Add a check_existing mode to updateFallbackDirs.py, which checks
15305       if fallbacks in the hard-coded list are working. Closes ticket
15306       20174. Patch by haxxpop.
15308   o Minor features (ciphersuite selection):
15309     - Clients now advertise a list of ciphersuites closer to the ones
15310       preferred by Firefox. Closes part of ticket 15426.
15311     - Allow relays to accept a wider range of ciphersuites, including
15312       chacha20-poly1305 and AES-CCM. Closes the other part of 15426.
15314   o Minor features (controller, configuration):
15315     - Each of the *Port options, such as SocksPort, ORPort, ControlPort,
15316       and so on, now comes with a __*Port variant that will not be saved
15317       to the torrc file by the controller's SAVECONF command. This
15318       change allows TorBrowser to set up a single-use domain socket for
15319       each time it launches Tor. Closes ticket 20956.
15320     - The GETCONF command can now query options that may only be
15321       meaningful in context-sensitive lists. This allows the controller
15322       to query the mixed SocksPort/__SocksPort style options introduced
15323       in feature 20956. Implements ticket 21300.
15325   o Minor features (portability, compilation):
15326     - Autoconf now checks to determine if OpenSSL structures are opaque,
15327       instead of explicitly checking for OpenSSL version numbers. Part
15328       of ticket 21359.
15329     - Support building with recent LibreSSL code that uses opaque
15330       structures. Closes ticket 21359.
15332   o Minor features (relay):
15333     - We now allow separation of exit and relay traffic to different
15334       source IP addresses, using the OutboundBindAddressExit and
15335       OutboundBindAddressOR options respectively. Closes ticket 17975.
15336       Written by Michael Sonntag.
15338   o Minor bugfix (logging):
15339     - Don't recommend the use of Tor2web in non-anonymous mode.
15340       Recommending Tor2web is a bad idea because the client loses all
15341       anonymity. Tor2web should only be used in specific cases by users
15342       who *know* and understand the issues. Fixes bug 21294; bugfix
15343       on 0.2.9.3-alpha.
15345   o Minor bugfixes (client):
15346     - Always recover from failures in extend_info_from_node(), in an
15347       attempt to prevent any recurrence of bug 21242. Fixes bug 21372;
15348       bugfix on 0.2.3.1-alpha.
15350   o Minor bugfixes (client, entry guards):
15351     - Fix a bug warning (with backtrace) when we fail a channel that
15352       circuits to fallback directories on it. Fixes bug 21128; bugfix
15353       on 0.3.0.1-alpha.
15354     - Fix a spurious bug warning (with backtrace) when removing an
15355       expired entry guard. Fixes bug 21129; bugfix on 0.3.0.1-alpha.
15356     - Fix a bug of the new guard algorithm where tor could stall for up
15357       to 10 minutes before retrying a guard after a long period of no
15358       network. Fixes bug 21052; bugfix on 0.3.0.1-alpha.
15359     - Do not try to build circuits until we have descriptors for our
15360       primary entry guards. Related to fix for bug 21242.
15362   o Minor bugfixes (configure, autoconf):
15363     - Rename the configure option --enable-expensive-hardening to
15364       --enable-fragile-hardening. Expensive hardening makes the tor
15365       daemon abort when some kinds of issues are detected. Thus, it
15366       makes tor more at risk of remote crashes but safer against RCE or
15367       heartbleed bug category. We now try to explain this issue in a
15368       message from the configure script. Fixes bug 21290; bugfix
15369       on 0.2.5.4-alpha.
15371   o Minor bugfixes (controller):
15372     - Restore the (deprecated) DROPGUARDS controller command. Fixes bug
15373       20824; bugfix on 0.3.0.1-alpha.
15375   o Minor bugfixes (hidden service):
15376     - Clean up the code for expiring intro points with no associated
15377       circuits. It was causing, rarely, a service with some expiring
15378       introduction points to not open enough additional introduction
15379       points. Fixes part of bug 21302; bugfix on 0.2.7.2-alpha.
15380     - Stop setting the torrc option HiddenServiceStatistics to "0" just
15381       because we're not a bridge or relay. Instead, we preserve whatever
15382       value the user set (or didn't set). Fixes bug 21150; bugfix
15383       on 0.2.6.2-alpha.
15384     - Resolve two possible underflows which could lead to creating and
15385       closing a lot of introduction point circuits in a non-stop loop.
15386       Fixes bug 21302; bugfix on 0.2.7.2-alpha.
15388   o Minor bugfixes (portability):
15389     - Use "OpenBSD" compiler macro instead of "OPENBSD" or "__OpenBSD__".
15390       It is supported by OpenBSD itself, and also by most OpenBSD
15391       variants (such as Bitrig). Fixes bug 20980; bugfix
15392       on 0.1.2.1-alpha.
15393     - When mapping a file of length greater than SIZE_MAX, do not
15394       silently truncate its contents. This issue could occur on 32 bit
15395       systems with large file support and files which are larger than 4
15396       GB. Fixes bug 21134; bugfix on 0.3.0.1-alpha.
15398   o Minor bugfixes (tor-resolve):
15399     - The tor-resolve command line tool now rejects hostnames over 255
15400       characters in length. Previously, it would silently truncate them,
15401       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
15402       Patch by "junglefowl".
15404   o Minor bugfixes (Windows services):
15405     - Be sure to initialize the monotonic time subsystem before using
15406       it, even when running as an NT service. Fixes bug 21356; bugfix
15407       on 0.2.9.1-alpha.
15410 Changes in version 0.3.0.2-alpha - 2017-01-23
15411   Tor 0.3.0.2-alpha fixes a denial-of-service bug where an attacker could
15412   cause relays and clients to crash, even if they were not built with
15413   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
15414   versions, and also affects 0.3.0.1-alpha: all relays running an affected
15415   version should upgrade.
15417   Tor 0.3.0.2-alpha also improves how exit relays and clients handle DNS
15418   time-to-live values, makes directory authorities enforce the 1-to-1
15419   mapping of relay RSA identity keys to ED25519 identity keys, fixes a
15420   client-side onion service reachability bug, does better at selecting
15421   the set of fallback directories, and more.
15423   o Major bugfixes (security, also in 0.2.9.9):
15424     - Downgrade the "-ftrapv" option from "always on" to "only on when
15425       --enable-expensive-hardening is provided."  This hardening option, like
15426       others, can turn survivable bugs into crashes--and having it on by
15427       default made a (relatively harmless) integer overflow bug into a
15428       denial-of-service bug. Fixes bug 21278 (TROVE-2017-001); bugfix on
15429       0.2.9.1-alpha.
15431   o Major features (security):
15432     - Change the algorithm used to decide DNS TTLs on client and server
15433       side, to better resist DNS-based correlation attacks like the
15434       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
15435       Feamster. Now relays only return one of two possible DNS TTL
15436       values, and clients are willing to believe DNS TTL values up to 3
15437       hours long. Closes ticket 19769.
15439   o Major features (directory authority, security):
15440     - The default for AuthDirPinKeys is now 1: directory authorities
15441       will reject relays where the RSA identity key matches a previously
15442       seen value, but the Ed25519 key has changed. Closes ticket 18319.
15444   o Major bugfixes (client, guard, crash):
15445     - In circuit_get_global_origin_list(), return the actual list of
15446       origin circuits. The previous version of this code returned the
15447       list of all the circuits, and could have caused strange bugs,
15448       including possible crashes. Fixes bug 21118; bugfix
15449       on 0.3.0.1-alpha.
15451   o Major bugfixes (client, onion service, also in 0.2.9.9):
15452     - Fix a client-side onion service reachability bug, where multiple
15453       socks requests to an onion service (or a single slow request)
15454       could cause us to mistakenly mark some of the service's
15455       introduction points as failed, and we cache that failure so
15456       eventually we run out and can't reach the service. Also resolves a
15457       mysterious "Remote server sent bogus reason code 65021" log
15458       warning. The bug was introduced in ticket 17218, where we tried to
15459       remember the circuit end reason as a uint16_t, which mangled
15460       negative values. Partially fixes bug 21056 and fixes bug 20307;
15461       bugfix on 0.2.8.1-alpha.
15463   o Major bugfixes (DNS):
15464     - Fix a bug that prevented exit nodes from caching DNS records for
15465       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
15467   o Minor features (controller):
15468     - Add "GETINFO sr/current" and "GETINFO sr/previous" keys, to expose
15469       shared-random values to the controller. Closes ticket 19925.
15471   o Minor features (entry guards):
15472     - Add UseEntryGuards to TEST_OPTIONS_DEFAULT_VALUES in order to not
15473       break regression tests.
15474     - Require UseEntryGuards when UseBridges is set, in order to make
15475       sure bridges aren't bypassed. Resolves ticket 20502.
15477   o Minor features (fallback directories):
15478     - Select 200 fallback directories for each release. Closes
15479       ticket 20881.
15480     - Allow 3 fallback relays per operator, which is safe now that we
15481       are choosing 200 fallback relays. Closes ticket 20912.
15482     - Exclude relays affected by bug 20499 from the fallback list.
15483       Exclude relays from the fallback list if they are running versions
15484       known to be affected by bug 20499, or if in our tests they deliver
15485       a stale consensus (i.e. one that expired more than 24 hours ago).
15486       Closes ticket 20539.
15487     - Reduce the minimum fallback bandwidth to 1 MByte/s. Part of
15488       ticket 18828.
15489     - Require fallback directories to have the same address and port for
15490       7 days (now that we have enough relays with this stability).
15491       Relays whose OnionOO stability timer is reset on restart by bug
15492       18050 should upgrade to Tor 0.2.8.7 or later, which has a fix for
15493       this issue. Closes ticket 20880; maintains short-term fix
15494       in 0.2.8.2-alpha.
15495     - Require fallbacks to have flags for 90% of the time (weighted
15496       decaying average), rather than 95%. This allows at least 73% of
15497       clients to bootstrap in the first 5 seconds without contacting an
15498       authority. Part of ticket 18828.
15499     - Annotate updateFallbackDirs.py with the bandwidth and consensus
15500       weight for each candidate fallback. Closes ticket 20878.
15501     - Make it easier to change the output sort order of fallbacks.
15502       Closes ticket 20822.
15503     - Display the relay fingerprint when downloading consensuses from
15504       fallbacks. Closes ticket 20908.
15506   o Minor features (geoip, also in 0.2.9.9):
15507     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
15508       Country database.
15510   o Minor features (next-gen onion service directories):
15511     - Remove the "EnableOnionServicesV3" consensus parameter that we
15512       introduced in 0.3.0.1-alpha: relays are now always willing to act
15513       as v3 onion service directories. Resolves ticket 19899.
15515   o Minor features (linting):
15516     - Enhance the changes file linter to warn on Tor versions that are
15517       prefixed with "tor-". Closes ticket 21096.
15519   o Minor features (logging):
15520     - In several places, describe unset ed25519 keys as "<unset>",
15521       rather than the scary "AAAAAAAA...AAA". Closes ticket 21037.
15523   o Minor bugfix (control protocol):
15524     - The reply to a "GETINFO config/names" request via the control
15525       protocol now spells the type "Dependent" correctly. This is a
15526       breaking change in the control protocol. (The field seems to be
15527       ignored by the most common known controllers.) Fixes bug 18146;
15528       bugfix on 0.1.1.4-alpha.
15530   o Minor bugfixes (bug resilience):
15531     - Fix an unreachable size_t overflow in base64_decode(). Fixes bug
15532       19222; bugfix on 0.2.0.9-alpha. Found by Guido Vranken; fixed by
15533       Hans Jerry Illikainen.
15535   o Minor bugfixes (build):
15536     - Replace obsolete Autoconf macros with their modern equivalent and
15537       prevent similar issues in the future. Fixes bug 20990; bugfix
15538       on 0.1.0.1-rc.
15540   o Minor bugfixes (client, guards):
15541     - Fix bug where Tor would think that there are circuits waiting for
15542       better guards even though those circuits have been freed. Fixes
15543       bug 21142; bugfix on 0.3.0.1-alpha.
15545   o Minor bugfixes (config):
15546     - Don't assert on startup when trying to get the options list and
15547       LearnCircuitBuildTimeout is set to 0: we are currently parsing the
15548       options so of course they aren't ready yet. Fixes bug 21062;
15549       bugfix on 0.2.9.3-alpha.
15551   o Minor bugfixes (controller):
15552     - Make the GETINFO interface for inquiring about entry guards
15553       support the new guards backend. Fixes bug 20823; bugfix
15554       on 0.3.0.1-alpha.
15556   o Minor bugfixes (dead code):
15557     - Remove a redundant check for PidFile changes at runtime in
15558       options_transition_allowed(): this check is already performed
15559       regardless of whether the sandbox is active. Fixes bug 21123;
15560       bugfix on 0.2.5.4-alpha.
15562   o Minor bugfixes (documentation):
15563     - Update the tor manual page to document every option that can not
15564       be changed while tor is running. Fixes bug 21122.
15566   o Minor bugfixes (fallback directories):
15567     - Stop failing when a relay has no uptime data in
15568       updateFallbackDirs.py. Fixes bug 20945; bugfix on 0.2.8.1-alpha.
15569     - Avoid checking fallback candidates' DirPorts if they are down in
15570       OnionOO. When a relay operator has multiple relays, this
15571       prioritizes relays that are up over relays that are down. Fixes
15572       bug 20926; bugfix on 0.2.8.3-alpha.
15573     - Stop failing when OUTPUT_COMMENTS is True in updateFallbackDirs.py.
15574       Fixes bug 20877; bugfix on 0.2.8.3-alpha.
15576   o Minor bugfixes (guards, bootstrapping):
15577     - When connecting to a directory guard during bootstrap, do not mark
15578       the guard as successful until we receive a good-looking directory
15579       response from it. Fixes bug 20974; bugfix on 0.3.0.1-alpha.
15581   o Minor bugfixes (onion services):
15582     - Fix the config reload pruning of old vs new services so it
15583       actually works when both ephemeral and non-ephemeral services are
15584       configured. Fixes bug 21054; bugfix on 0.3.0.1-alpha.
15585     - Allow the number of introduction points to be as low as 0, rather
15586       than as low as 3. Fixes bug 21033; bugfix on 0.2.7.2-alpha.
15588   o Minor bugfixes (IPv6):
15589     - Make IPv6-using clients try harder to find an IPv6 directory
15590       server. Fixes bug 20999; bugfix on 0.2.8.2-alpha.
15591     - When IPv6 addresses have not been downloaded yet (microdesc
15592       consensus documents don't list relay IPv6 addresses), use hard-
15593       coded addresses for authorities, fallbacks, and configured
15594       bridges. Now IPv6-only clients can use microdescriptors. Fixes bug
15595       20996; bugfix on b167e82 from 19608 in 0.2.8.5-alpha.
15597   o Minor bugfixes (memory leaks):
15598     - Fix a memory leak when configuring hidden services. Fixes bug
15599       20987; bugfix on 0.3.0.1-alpha.
15601   o Minor bugfixes (portability, also in 0.2.9.9):
15602     - Avoid crashing when Tor is built using headers that contain
15603       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
15604       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
15605       on 0.2.9.1-alpha.
15606     - Fix Libevent detection on platforms without Libevent 1 headers
15607       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
15609   o Minor bugfixes (relay):
15610     - Honor DataDirectoryGroupReadable when tor is a relay. Previously,
15611       initializing the keys would reset the DataDirectory to 0700
15612       instead of 0750 even if DataDirectoryGroupReadable was set to 1.
15613       Fixes bug 19953; bugfix on 0.0.2pre16. Patch by "redfish".
15615   o Minor bugfixes (testing):
15616     - Remove undefined behavior from the backtrace generator by removing
15617       its signal handler. Fixes bug 21026; bugfix on 0.2.5.2-alpha.
15619   o Minor bugfixes (unit tests):
15620     - Allow the unit tests to pass even when DNS lookups of bogus
15621       addresses do not fail as expected. Fixes bug 20862 and 20863;
15622       bugfix on unit tests introduced in 0.2.8.1-alpha
15623       through 0.2.9.4-alpha.
15625   o Code simplification and refactoring:
15626     - Refactor code to manipulate global_origin_circuit_list into
15627       separate functions. Closes ticket 20921.
15629   o Documentation (formatting):
15630     - Clean up formatting of tor.1 man page and HTML doc, where <pre>
15631       blocks were incorrectly appearing. Closes ticket 20885.
15633   o Documentation (man page):
15634     - Clarify many options in tor.1 and add some min/max values for
15635       HiddenService options. Closes ticket 21058.
15638 Changes in version 0.2.9.9 - 2017-01-23
15639   Tor 0.2.9.9 fixes a denial-of-service bug where an attacker could
15640   cause relays and clients to crash, even if they were not built with
15641   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
15642   versions, and also affects 0.3.0.1-alpha: all relays running an affected
15643   version should upgrade.
15645   This release also resolves a client-side onion service reachability
15646   bug, and resolves a pair of small portability issues.
15648   o Major bugfixes (security):
15649     - Downgrade the "-ftrapv" option from "always on" to "only on when
15650       --enable-expensive-hardening is provided." This hardening option,
15651       like others, can turn survivable bugs into crashes -- and having
15652       it on by default made a (relatively harmless) integer overflow bug
15653       into a denial-of-service bug. Fixes bug 21278 (TROVE-2017-001);
15654       bugfix on 0.2.9.1-alpha.
15656   o Major bugfixes (client, onion service):
15657     - Fix a client-side onion service reachability bug, where multiple
15658       socks requests to an onion service (or a single slow request)
15659       could cause us to mistakenly mark some of the service's
15660       introduction points as failed, and we cache that failure so
15661       eventually we run out and can't reach the service. Also resolves a
15662       mysterious "Remote server sent bogus reason code 65021" log
15663       warning. The bug was introduced in ticket 17218, where we tried to
15664       remember the circuit end reason as a uint16_t, which mangled
15665       negative values. Partially fixes bug 21056 and fixes bug 20307;
15666       bugfix on 0.2.8.1-alpha.
15668   o Minor features (geoip):
15669     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
15670       Country database.
15672   o Minor bugfixes (portability):
15673     - Avoid crashing when Tor is built using headers that contain
15674       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
15675       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
15676       on 0.2.9.1-alpha.
15677     - Fix Libevent detection on platforms without Libevent 1 headers
15678       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
15681 Changes in version 0.3.0.1-alpha - 2016-12-19
15682   Tor 0.3.0.1-alpha is the first alpha release in the 0.3.0 development
15683   series. It strengthens Tor's link and circuit handshakes by
15684   identifying relays by their Ed25519 keys, improves the algorithm that
15685   clients use to choose and maintain their list of guards, and includes
15686   additional backend support for the next-generation hidden service
15687   design. It also contains numerous other small features and
15688   improvements to security, correctness, and performance.
15690   Below are the changes since 0.2.9.8.
15692   o Major features (guard selection algorithm):
15693     - Tor's guard selection algorithm has been redesigned from the
15694       ground up, to better support unreliable networks and restrictive
15695       sets of entry nodes, and to better resist guard-capture attacks by
15696       hostile local networks. Implements proposal 271; closes
15697       ticket 19877.
15699   o Major features (next-generation hidden services):
15700     - Relays can now handle v3 ESTABLISH_INTRO cells as specified by
15701       prop224 aka "Next Generation Hidden Services". Service and clients
15702       don't use this functionality yet. Closes ticket 19043. Based on
15703       initial code by Alec Heifetz.
15704     - Relays now support the HSDir version 3 protocol, so that they can
15705       can store and serve v3 descriptors. This is part of the next-
15706       generation onion service work detailed in proposal 224. Closes
15707       ticket 17238.
15709   o Major features (protocol, ed25519 identity keys):
15710     - Relays now use Ed25519 to prove their Ed25519 identities and to
15711       one another, and to clients. This algorithm is faster and more
15712       secure than the RSA-based handshake we've been doing until now.
15713       Implements the second big part of proposal 220; Closes
15714       ticket 15055.
15715     - Clients now support including Ed25519 identity keys in the EXTEND2
15716       cells they generate. By default, this is controlled by a consensus
15717       parameter, currently disabled. You can turn this feature on for
15718       testing by setting ExtendByEd25519ID in your configuration. This
15719       might make your traffic appear different than the traffic
15720       generated by other users, however. Implements part of ticket
15721       15056; part of proposal 220.
15722     - Relays now understand requests to extend to other relays by their
15723       Ed25519 identity keys. When an Ed25519 identity key is included in
15724       an EXTEND2 cell, the relay will only extend the circuit if the
15725       other relay can prove ownership of that identity. Implements part
15726       of ticket 15056; part of proposal 220.
15728   o Major bugfixes (scheduler):
15729     - Actually compare circuit policies in ewma_cmp_cmux(). This bug
15730       caused the channel scheduler to behave more or less randomly,
15731       rather than preferring channels with higher-priority circuits.
15732       Fixes bug 20459; bugfix on 0.2.6.2-alpha.
15734   o Minor features (controller):
15735     - When HSFETCH arguments cannot be parsed, say "Invalid argument"
15736       rather than "unrecognized." Closes ticket 20389; patch from
15737       Ivan Markin.
15739   o Minor features (diagnostic, directory client):
15740     - Warn when we find an unexpected inconsistency in directory
15741       download status objects. Prevents some negative consequences of
15742       bug 20593.
15744   o Minor features (directory authority):
15745     - Add a new authority-only AuthDirTestEd25519LinkKeys option (on by
15746       default) to control whether authorities should try to probe relays
15747       by their Ed25519 link keys. This option will go away in a few
15748       releases--unless we encounter major trouble in our ed25519 link
15749       protocol rollout, in which case it will serve as a safety option.
15751   o Minor features (directory cache):
15752     - Relays and bridges will now refuse to serve the consensus they
15753       have if they know it is too old for a client to use. Closes
15754       ticket 20511.
15756   o Minor features (ed25519 link handshake):
15757     - Advertise support for the ed25519 link handshake using the
15758       subprotocol-versions mechanism, so that clients can tell which
15759       relays can identity themselves by Ed25519 ID. Closes ticket 20552.
15761   o Minor features (fingerprinting resistance, authentication):
15762     - Extend the length of RSA keys used for TLS link authentication to
15763       2048 bits. (These weren't used for forward secrecy; for forward
15764       secrecy, we used P256.) Closes ticket 13752.
15766   o Minor features (infrastructure):
15767     - Implement smartlist_add_strdup() function. Replaces the use of
15768       smartlist_add(sl, tor_strdup(str)). Closes ticket 20048.
15770   o Minor bugfixes (client):
15771     - When clients that use bridges start up with a cached consensus on
15772       disk, they were ignoring it and downloading a new one. Now they
15773       use the cached one. Fixes bug 20269; bugfix on 0.2.3.12-alpha.
15775   o Minor bugfixes (configuration):
15776     - Accept non-space whitespace characters after the severity level in
15777       the `Log` option. Fixes bug 19965; bugfix on 0.2.1.1-alpha.
15778     - Support "TByte" and "TBytes" units in options given in bytes.
15779       "TB", "terabyte(s)", "TBit(s)" and "terabit(s)" were already
15780       supported. Fixes bug 20622; bugfix on 0.2.0.14-alpha.
15782   o Minor bugfixes (consensus weight):
15783     - Add new consensus method that initializes bw weights to 1 instead
15784       of 0. This prevents a zero weight from making it all the way to
15785       the end (happens in small testing networks) and causing an error.
15786       Fixes bug 14881; bugfix on 0.2.2.17-alpha.
15788   o Minor bugfixes (descriptors):
15789     - Correctly recognise downloaded full descriptors as valid, even
15790       when using microdescriptors as circuits. This affects clients with
15791       FetchUselessDescriptors set, and may affect directory authorities.
15792       Fixes bug 20839; bugfix on 0.2.3.2-alpha.
15794   o Minor bugfixes (directory system):
15795     - Download all consensus flavors, descriptors, and authority
15796       certificates when FetchUselessDescriptors is set, regardless of
15797       whether tor is a directory cache or not. Fixes bug 20667; bugfix
15798       on all recent tor versions.
15799     - Bridges and relays now use microdescriptors (like clients do)
15800       rather than old-style router descriptors. Now bridges will blend
15801       in with clients in terms of the circuits they build. Fixes bug
15802       6769; bugfix on 0.2.3.2-alpha.
15804   o Minor bugfixes (ed25519 certificates):
15805     - Correctly interpret ed25519 certificates that would expire some
15806       time after 19 Jan 2038. Fixes bug 20027; bugfix on 0.2.7.2-alpha.
15808   o Minor bugfixes (hidden services):
15809     - Stop ignoring misconfigured hidden services. Instead, refuse to
15810       start tor until the misconfigurations have been corrected. Fixes
15811       bug 20559; bugfix on multiple commits in 0.2.7.1-alpha
15812       and earlier.
15814   o Minor bugfixes (memory leak at exit):
15815     - Fix a small harmless memory leak at exit of the previously unused
15816       RSA->Ed identity cross-certificate. Fixes bug 17779; bugfix
15817       on 0.2.7.2-alpha.
15819   o Minor bugfixes (util):
15820     - When finishing writing a file to disk, if we were about to replace
15821       the file with the temporary file created before and we fail to
15822       replace it, remove the temporary file so it doesn't stay on disk.
15823       Fixes bug 20646; bugfix on 0.2.0.7-alpha. Patch by fk.
15825   o Minor bugfixes (Windows):
15826     - Check for getpagesize before using it to mmap files. This fixes
15827       compilation in some MinGW environments. Fixes bug 20530; bugfix on
15828       0.1.2.1-alpha. Reported by "ice".
15830   o Code simplification and refactoring:
15831     - Abolish all global guard context in entrynodes.c; replace with new
15832       guard_selection_t structure as preparation for proposal 271.
15833       Closes ticket 19858.
15834     - Introduce rend_service_is_ephemeral() that tells if given onion
15835       service is ephemeral. Replace unclear NULL-checkings for service
15836       directory with this function. Closes ticket 20526.
15837     - Extract magic numbers in circuituse.c into defined variables.
15838     - Refactor circuit_is_available_for_use to remove unnecessary check.
15839     - Refactor circuit_predict_and_launch_new for readability and
15840       testability. Closes ticket 18873.
15841     - Refactor large if statement in purpose_needs_anonymity to use
15842       switch statement instead. Closes part of ticket 20077.
15843     - Refactor the hashing API to return negative values for errors, as
15844       is done as throughout the codebase. Closes ticket 20717.
15845     - Remove data structures that were used to index or_connection
15846       objects by their RSA identity digests. These structures are fully
15847       redundant with the similar structures used in the
15848       channel abstraction.
15849     - Remove duplicate code in the channel_write_*cell() functions.
15850       Closes ticket 13827; patch from Pingl.
15851     - Remove redundant behavior of is_sensitive_dir_purpose, refactor to
15852       use only purpose_needs_anonymity. Closes part of ticket 20077.
15853     - The code to generate and parse EXTEND and EXTEND2 cells has been
15854       replaced with code automatically generated by the
15855       "trunnel" utility.
15857   o Documentation:
15858     - Include the "TBits" unit in Tor's man page. Fixes part of bug
15859       20622; bugfix on 0.2.5.1-alpha.
15860     - Change '1' to 'weight_scale' in consensus bw weights calculation
15861       comments, as that is reality. Closes ticket 20273. Patch
15862       from pastly.
15863     - Correct the value for AuthDirGuardBWGuarantee in the manpage, from
15864       250 KBytes to 2 MBytes. Fixes bug 20435; bugfix
15865       on 0.2.5.6-alpha.
15866     - Stop the man page from incorrectly stating that HiddenServiceDir
15867       must already exist. Fixes 20486.
15868     - Clarify that when ClientRejectInternalAddresses is enabled (which
15869       is the default), multicast DNS hostnames for machines on the local
15870       network (of the form *.local) are also rejected. Closes
15871       ticket 17070.
15873   o Removed features:
15874     - The AuthDirMaxServersPerAuthAddr option no longer exists: The same
15875       limit for relays running on a single IP applies to authority IP
15876       addresses as well as to non-authority IP addresses. Closes
15877       ticket 20960.
15878     - The UseDirectoryGuards torrc option no longer exists: all users
15879       that use entry guards will also use directory guards. Related to
15880       proposal 271; implements part of ticket 20831.
15882   o Testing:
15883     - New unit tests for tor_htonll(). Closes ticket 19563. Patch
15884       from "overcaffeinated".
15885     - Perform the coding style checks when running the tests and fail
15886       when coding style violations are found. Closes ticket 5500.
15887     - Add tests for networkstatus_compute_bw_weights_v10.
15888     - Add unit tests circuit_predict_and_launch_new.
15889     - Extract dummy_origin_circuit_new so it can be used by other
15890       test functions.
15893 Changes in version 0.2.8.12 - 2016-12-19
15894   Tor 0.2.8.12 backports a fix for a medium-severity issue (bug 21018
15895   below) where Tor clients could crash when attempting to visit a
15896   hostile hidden service. Clients are recommended to upgrade as packages
15897   become available for their systems.
15899   It also includes an updated list of fallback directories, backported
15900   from 0.2.9.
15902   Now that the Tor 0.2.9 series is stable, only major bugfixes will be
15903   backported to 0.2.8 in the future.
15905   o Major bugfixes (parsing, security, backported from 0.2.9.8):
15906     - Fix a bug in parsing that could cause clients to read a single
15907       byte past the end of an allocated region. This bug could be used
15908       to cause hardened clients (built with --enable-expensive-hardening)
15909       to crash if they tried to visit a hostile hidden service. Non-
15910       hardened clients are only affected depending on the details of
15911       their platform's memory allocator. Fixes bug 21018; bugfix on
15912       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
15913       2016-12-002 and as CVE-2016-1254.
15915   o Minor features (fallback directory list, backported from 0.2.9.8):
15916     - Replace the 81 remaining fallbacks of the 100 originally
15917       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
15918       fallbacks (123 new, 54 existing, 27 removed) generated in December
15919       2016. Resolves ticket 20170.
15921   o Minor features (geoip, backported from 0.2.9.7-rc):
15922     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
15923       Country database.
15926 Changes in version 0.2.9.8 - 2016-12-19
15927   Tor 0.2.9.8 is the first stable release of the Tor 0.2.9 series.
15929   The Tor 0.2.9 series makes mandatory a number of security features
15930   that were formerly optional. It includes support for a new shared-
15931   randomness protocol that will form the basis for next generation
15932   hidden services, includes a single-hop hidden service mode for
15933   optimizing .onion services that don't actually want to be hidden,
15934   tries harder not to overload the directory authorities with excessive
15935   downloads, and supports a better protocol versioning scheme for
15936   improved compatibility with other implementations of the Tor protocol.
15938   And of course, there are numerous other bugfixes and improvements.
15940   This release also includes a fix for a medium-severity issue (bug
15941   21018 below) where Tor clients could crash when attempting to visit a
15942   hostile hidden service. Clients are recommended to upgrade as packages
15943   become available for their systems.
15945   Below are the changes since 0.2.9.7-rc. For a list of all changes
15946   since 0.2.8, see the ReleaseNotes file.
15948   o Major bugfixes (parsing, security):
15949     - Fix a bug in parsing that could cause clients to read a single
15950       byte past the end of an allocated region. This bug could be used
15951       to cause hardened clients (built with --enable-expensive-hardening)
15952       to crash if they tried to visit a hostile hidden service. Non-
15953       hardened clients are only affected depending on the details of
15954       their platform's memory allocator. Fixes bug 21018; bugfix on
15955       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
15956       2016-12-002 and as CVE-2016-1254.
15958   o Minor features (fallback directory list):
15959     - Replace the 81 remaining fallbacks of the 100 originally
15960       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
15961       fallbacks (123 new, 54 existing, 27 removed) generated in December
15962       2016. Resolves ticket 20170.
15965 Changes in version 0.2.9.7-rc - 2016-12-12
15966   Tor 0.2.9.7-rc fixes a few small bugs remaining in Tor 0.2.9.6-rc,
15967   including a few that had prevented tests from passing on
15968   some platforms.
15970   o Minor features (geoip):
15971     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
15972       Country database.
15974   o Minor bugfix (build):
15975     - The current Git revision when building from a local repository is
15976       now detected correctly when using git worktrees. Fixes bug 20492;
15977       bugfix on 0.2.3.9-alpha.
15979   o Minor bugfixes (directory authority):
15980     - When computing old Tor protocol line version in protover, we were
15981       looking at 0.2.7.5 twice instead of a specific case for
15982       0.2.9.1-alpha. Fixes bug 20810; bugfix on 0.2.9.4-alpha.
15984   o Minor bugfixes (download scheduling):
15985     - Resolve a "bug" warning when considering a download schedule whose
15986       delay had approached INT_MAX. Fixes 20875; bugfix on 0.2.9.5-alpha.
15988   o Minor bugfixes (logging):
15989     - Downgrade a harmless log message about the
15990       pending_entry_connections list from "warn" to "info". Mitigates
15991       bug 19926.
15993   o Minor bugfixes (memory leak):
15994     - Fix a small memory leak when receiving AF_UNIX connections on a
15995       SocksPort. Fixes bug 20716; bugfix on 0.2.6.3-alpha.
15996     - When moving a signed descriptor object from a source to an
15997       existing destination, free the allocated memory inside that
15998       destination object. Fixes bug 20715; bugfix on 0.2.8.3-alpha.
16000   o Minor bugfixes (memory leak, use-after-free, linux seccomp2 sandbox):
16001     - Fix a memory leak and use-after-free error when removing entries
16002       from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on
16003       0.2.5.5-alpha. Patch from "cypherpunks".
16005   o Minor bugfixes (portability):
16006     - Use the correct spelling of MAC_OS_X_VERSION_10_12 on configure.ac
16007       Fixes bug 20935; bugfix on 0.2.9.6-rc.
16009   o Minor bugfixes (unit tests):
16010     - Stop expecting NetBSD unit tests to report success for ipfw. Part
16011       of a fix for bug 19960; bugfix on 0.2.9.5-alpha.
16012     - Fix tolerances in unit tests for monotonic time comparisons
16013       between nanoseconds and microseconds. Previously, we accepted a 10
16014       us difference only, which is not realistic on every platform's
16015       clock_gettime(). Fixes bug 19974; bugfix on 0.2.9.1-alpha.
16016     - Remove a double-free in the single onion service unit test. Stop
16017       ignoring a return value. Make future changes less error-prone.
16018       Fixes bug 20864; bugfix on 0.2.9.6-rc.
16021 Changes in version 0.2.8.11 - 2016-12-08
16022   Tor 0.2.8.11 backports fixes for additional portability issues that
16023   could prevent Tor from building correctly on OSX Sierra, or with
16024   OpenSSL 1.1. Affected users should upgrade; others can safely stay
16025   with 0.2.8.10.
16027   o Minor bugfixes (portability):
16028     - Avoid compilation errors when building on OSX Sierra. Sierra began
16029       to support the getentropy() and clock_gettime() APIs, but created
16030       a few problems in doing so. Tor 0.2.9 has a more thorough set of
16031       workarounds; in 0.2.8, we are just using the /dev/urandom and mach
16032       monotonic time interfaces. Fixes bug 20865. Bugfix
16033       on 0.2.8.1-alpha.
16035   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
16036     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
16037       architectures. Closes ticket 20588.
16040 Changes in version 0.2.8.10 - 2016-12-02
16041   Tor 0.2.8.10 backports a fix for a bug that would sometimes make clients
16042   unusable after they left standby mode. It also backports fixes for
16043   a few portability issues and a small but problematic memory leak.
16045   o Major bugfixes (client reliability, backport from 0.2.9.5-alpha):
16046     - When Tor leaves standby because of a new application request, open
16047       circuits as needed to serve that request. Previously, we would
16048       potentially wait a very long time. Fixes part of bug 19969; bugfix
16049       on 0.2.8.1-alpha.
16051   o Major bugfixes (client performance, backport from 0.2.9.5-alpha):
16052     - Clients now respond to new application stream requests immediately
16053       when they arrive, rather than waiting up to one second before
16054       starting to handle them. Fixes part of bug 19969; bugfix
16055       on 0.2.8.1-alpha.
16057   o Minor bugfixes (portability, backport from 0.2.9.6-rc):
16058     - Work around a bug in the OSX 10.12 SDK that would prevent us from
16059       successfully targeting earlier versions of OSX. Resolves
16060       ticket 20235.
16062   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
16063     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
16064       20551; bugfix on 0.2.1.1-alpha.
16066   o Minor bugfixes (relay, backport from 0.2.9.5-alpha):
16067     - Work around a memory leak in OpenSSL 1.1 when encoding public
16068       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
16070   o Minor features (geoip):
16071     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
16072       Country database.
16074 Changes in version 0.2.9.6-rc - 2016-12-02
16075   Tor 0.2.9.6-rc fixes a few remaining bugs found in the previous alpha
16076   version. We hope that it will be ready to become stable soon, and we
16077   encourage everyone to test this release. If no showstopper bugs are
16078   found here, the next 0.2.9 release will be stable.
16080   o Major bugfixes (relay, resolver, logging):
16081     - For relays that don't know their own address, avoid attempting a
16082       local hostname resolve for each descriptor we download. This
16083       will cut down on the number of "Success: chose address 'x.x.x.x'"
16084       log lines, and also avoid confusing clock jumps if the resolver
16085       is slow. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
16087   o Minor bugfixes (client, fascistfirewall):
16088     - Avoid spurious warnings when ReachableAddresses or FascistFirewall
16089       is set. Fixes bug 20306; bugfix on 0.2.8.2-alpha.
16091   o Minor bugfixes (hidden services):
16092     - Stop ignoring the anonymity status of saved keys for hidden
16093       services and single onion services when first starting tor.
16094       Instead, refuse to start tor if any hidden service key has been
16095       used in a different hidden service anonymity mode. Fixes bug
16096       20638; bugfix on 17178 in 0.2.9.3-alpha; reported by ahf.
16098   o Minor bugfixes (portability):
16099     - Work around a bug in the OSX 10.12 SDK that would prevent us from
16100       successfully targeting earlier versions of OSX. Resolves
16101       ticket 20235.
16102     - Run correctly when built on Windows build environments that
16103       require _vcsprintf(). Fixes bug 20560; bugfix on 0.2.2.11-alpha.
16105   o Minor bugfixes (single onion services, Tor2web):
16106     - Stop complaining about long-term one-hop circuits deliberately
16107       created by single onion services and Tor2web. These log messages
16108       are intended to diagnose issue 8387, which relates to circuits
16109       hanging around forever for no reason. Fixes bug 20613; bugfix on
16110       0.2.9.1-alpha. Reported by "pastly".
16112   o Minor bugfixes (unit tests):
16113     - Stop spurious failures in the local interface address discovery
16114       unit tests. Fixes bug 20634; bugfix on 0.2.8.1-alpha; patch by
16115       Neel Chauhan.
16117   o Documentation:
16118     - Correct the minimum bandwidth value in torrc.sample, and queue a
16119       corresponding change for torrc.minimal. Closes ticket 20085.
16122 Changes in version 0.2.9.5-alpha - 2016-11-08
16123   Tor 0.2.9.5-alpha fixes numerous bugs discovered in the previous alpha
16124   version. We believe one or two probably remain, and we encourage
16125   everyone to test this release.
16127   o Major bugfixes (client performance):
16128     - Clients now respond to new application stream requests immediately
16129       when they arrive, rather than waiting up to one second before
16130       starting to handle them. Fixes part of bug 19969; bugfix
16131       on 0.2.8.1-alpha.
16133   o Major bugfixes (client reliability):
16134     - When Tor leaves standby because of a new application request, open
16135       circuits as needed to serve that request. Previously, we would
16136       potentially wait a very long time. Fixes part of bug 19969; bugfix
16137       on 0.2.8.1-alpha.
16139   o Major bugfixes (download scheduling):
16140     - When using an exponential backoff schedule, do not give up on
16141       downloading just because we have failed a bunch of times. Since
16142       each delay is longer than the last, retrying indefinitely won't
16143       hurt. Fixes bug 20536; bugfix on 0.2.9.1-alpha.
16144     - If a consensus expires while we are waiting for certificates to
16145       download, stop waiting for certificates.
16146     - If we stop waiting for certificates less than a minute after we
16147       started downloading them, do not consider the certificate download
16148       failure a separate failure. Fixes bug 20533; bugfix
16149       on 0.2.0.9-alpha.
16150     - Remove the maximum delay on exponential-backoff scheduling. Since
16151       we now allow an infinite number of failures (see ticket 20536), we
16152       must now allow the time to grow longer on each failure. Fixes part
16153       of bug 20534; bugfix on 0.2.9.1-alpha.
16154     - Make our initial download delays closer to those from 0.2.8. Fixes
16155       another part of bug 20534; bugfix on 0.2.9.1-alpha.
16156     - When determining when to download a directory object, handle times
16157       after 2038 if the operating system supports them. (Someday this
16158       will be important!) Fixes bug 20587; bugfix on 0.2.8.1-alpha.
16159     - When using exponential backoff in test networks, use a lower
16160       exponent, so the delays do not vary as much. This helps test
16161       networks bootstrap consistently. Fixes bug 20597; bugfix on 20499.
16163   o Minor features (geoip):
16164     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
16165       Country database.
16167   o Minor bugfixes (client directory scheduling):
16168     - Treat "relay too busy to answer request" as a failed request and a
16169       reason to back off on our retry frequency. This is safe now that
16170       exponential backoffs retry indefinitely, and avoids a bug where we
16171       would reset our download schedule erroneously. Fixes bug 20593;
16172       bugfix on 0.2.9.1-alpha.
16174   o Minor bugfixes (client, logging):
16175     - Remove a BUG warning in circuit_pick_extend_handshake(). Instead,
16176       assume all nodes support EXTEND2. Use ntor whenever a key is
16177       available. Fixes bug 20472; bugfix on 0.2.9.3-alpha.
16178     - On DNSPort, stop logging a BUG warning on a failed hostname
16179       lookup. Fixes bug 19869; bugfix on 0.2.9.1-alpha.
16181   o Minor bugfixes (hidden services):
16182     - When configuring hidden services, check every hidden service
16183       directory's permissions. Previously, we only checked the last
16184       hidden service. Fixes bug 20529; bugfix the work to fix 13942
16185       in 0.2.6.2-alpha.
16187   o Minor bugfixes (portability):
16188     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
16189       architectures. Closes ticket 20588.
16190     - Use ECDHE ciphers instead of ECDH in tortls tests. LibreSSL has
16191       removed the ECDH ciphers which caused the tests to fail on
16192       platforms which use it. Fixes bug 20460; bugfix on 0.2.8.1-alpha.
16193     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
16194       20551; bugfix on 0.2.1.1-alpha.
16196   o Minor bugfixes (relay bootstrap):
16197     - Ensure relays don't make multiple connections during bootstrap.
16198       Fixes bug 20591; bugfix on 0.2.8.1-alpha.
16200   o Minor bugfixes (relay):
16201     - Work around a memory leak in OpenSSL 1.1 when encoding public
16202       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
16203     - Avoid a small memory leak when informing worker threads about
16204       rotated onion keys. Fixes bug 20401; bugfix on 0.2.6.3-alpha.
16205     - Do not try to parallelize workers more than 16x without the user
16206       explicitly configuring us to do so, even if we do detect more than
16207       16 CPU cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
16209   o Minor bugfixes (single onion services):
16210     - Start correctly when creating a single onion service in a
16211       directory that did not previously exist. Fixes bug 20484; bugfix
16212       on 0.2.9.3-alpha.
16214   o Minor bugfixes (testing):
16215     - Avoid a unit test failure on systems with over 16 detectable CPU
16216       cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
16218   o Documentation:
16219     - Clarify that setting HiddenServiceNonAnonymousMode requires you to
16220       also set "SOCKSPort 0". Fixes bug 20487; bugfix on 0.2.9.3-alpha.
16221     - Module-level documentation for several more modules. Closes
16222       tickets 19287 and 19290.
16225 Changes in version 0.2.8.9 - 2016-10-17
16226   Tor 0.2.8.9 backports a fix for a security hole in previous versions
16227   of Tor that would allow a remote attacker to crash a Tor client,
16228   hidden service, relay, or authority. All Tor users should upgrade to
16229   this version, or to 0.2.9.4-alpha. Patches will be released for older
16230   versions of Tor.
16232   o Major features (security fixes, also in 0.2.9.4-alpha):
16233     - Prevent a class of security bugs caused by treating the contents
16234       of a buffer chunk as if they were a NUL-terminated string. At
16235       least one such bug seems to be present in all currently used
16236       versions of Tor, and would allow an attacker to remotely crash
16237       most Tor instances, especially those compiled with extra compiler
16238       hardening. With this defense in place, such bugs can't crash Tor,
16239       though we should still fix them as they occur. Closes ticket
16240       20384 (TROVE-2016-10-001).
16242   o Minor features (geoip):
16243     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
16244       Country database.
16247 Changes in version 0.2.9.4-alpha - 2016-10-17
16248   Tor 0.2.9.4-alpha fixes a security hole in previous versions of Tor
16249   that would allow a remote attacker to crash a Tor client, hidden
16250   service, relay, or authority. All Tor users should upgrade to this
16251   version, or to 0.2.8.9. Patches will be released for older versions
16252   of Tor.
16254   Tor 0.2.9.4-alpha also adds numerous small features and fix-ups to
16255   previous versions of Tor, including the implementation of a feature to
16256   future- proof the Tor ecosystem against protocol changes, some bug
16257   fixes necessary for Tor Browser to use unix domain sockets correctly,
16258   and several portability improvements. We anticipate that this will be
16259   the last alpha in the Tor 0.2.9 series, and that the next release will
16260   be a release candidate.
16262   o Major features (security fixes):
16263     - Prevent a class of security bugs caused by treating the contents
16264       of a buffer chunk as if they were a NUL-terminated string. At
16265       least one such bug seems to be present in all currently used
16266       versions of Tor, and would allow an attacker to remotely crash
16267       most Tor instances, especially those compiled with extra compiler
16268       hardening. With this defense in place, such bugs can't crash Tor,
16269       though we should still fix them as they occur. Closes ticket
16270       20384 (TROVE-2016-10-001).
16272   o Major features (subprotocol versions):
16273     - Tor directory authorities now vote on a set of recommended
16274       subprotocol versions, and on a set of required subprotocol
16275       versions. Clients and relays that lack support for a _required_
16276       subprotocol version will not start; those that lack support for a
16277       _recommended_ subprotocol version will warn the user to upgrade.
16278       Closes ticket 19958; implements part of proposal 264.
16279     - Tor now uses "subprotocol versions" to indicate compatibility.
16280       Previously, versions of Tor looked at the declared Tor version of
16281       a relay to tell whether they could use a given feature. Now, they
16282       should be able to rely on its declared subprotocol versions. This
16283       change allows compatible implementations of the Tor protocol(s) to
16284       exist without pretending to be 100% bug-compatible with particular
16285       releases of Tor itself. Closes ticket 19958; implements part of
16286       proposal 264.
16288   o Minor feature (fallback directories):
16289     - Remove broken fallbacks from the hard-coded fallback directory
16290       list. Closes ticket 20190; patch by teor.
16292   o Minor features (client, directory):
16293     - Since authorities now omit all routers that lack the Running and
16294       Valid flags, we assume that any relay listed in the consensus must
16295       have those flags. Closes ticket 20001; implements part of
16296       proposal 272.
16298   o Minor features (compilation, portability):
16299     - Compile correctly on MacOS 10.12 (aka "Sierra"). Closes
16300       ticket 20241.
16302   o Minor features (development tools, etags):
16303     - Teach the "make tags" Makefile target how to correctly find
16304       "MOCK_IMPL" function definitions. Patch from nherring; closes
16305       ticket 16869.
16307   o Minor features (geoip):
16308     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
16309       Country database.
16311   o Minor features (unix domain sockets):
16312     - When configuring a unix domain socket for a SocksPort,
16313       ControlPort, or Hidden service, you can now wrap the address in
16314       quotes, using C-style escapes inside the quotes. This allows unix
16315       domain socket paths to contain spaces.
16317   o Minor features (virtual addresses):
16318     - Increase the maximum number of bits for the IPv6 virtual network
16319       prefix from 16 to 104. In this way, the condition for address
16320       allocation is less restrictive. Closes ticket 20151; feature
16321       on 0.2.4.7-alpha.
16323   o Minor bugfixes (address discovery):
16324     - Stop reordering IP addresses returned by the OS. This makes it
16325       more likely that Tor will guess the same relay IP address every
16326       time. Fixes issue 20163; bugfix on 0.2.7.1-alpha, ticket 17027.
16327       Reported by René Mayrhofer, patch by "cypherpunks".
16329   o Minor bugfixes (client, unix domain sockets):
16330     - Disable IsolateClientAddr when using AF_UNIX backed SocksPorts as
16331       the client address is meaningless. Fixes bug 20261; bugfix
16332       on 0.2.6.3-alpha.
16334   o Minor bugfixes (compilation, OpenBSD):
16335     - Detect Libevent2 functions correctly on systems that provide
16336       libevent2, but where libevent1 is linked with -levent. Fixes bug
16337       19904; bugfix on 0.2.2.24-alpha. Patch from Rubiate.
16339   o Minor bugfixes (configuration):
16340     - When parsing quoted configuration values from the torrc file,
16341       handle windows line endings correctly. Fixes bug 19167; bugfix on
16342       0.2.0.16-alpha. Patch from "Pingl".
16344   o Minor bugfixes (getpass):
16345     - Defensively fix a non-triggerable heap corruption at do_getpass()
16346       to protect ourselves from mistakes in the future. Fixes bug
16347       19223; bugfix on 0.2.7.3-rc. Bug found by Guido Vranken, patch
16348       by nherring.
16350   o Minor bugfixes (hidden service):
16351     - Allow hidden services to run on IPv6 addresses even when the
16352       IPv6Exit option is not set. Fixes bug 18357; bugfix
16353       on 0.2.4.7-alpha.
16355   o Documentation:
16356     - Add module-level internal documentation for 36 C files that
16357       previously didn't have a high-level overview. Closes ticket #20385.
16359   o Required libraries:
16360     - When building with OpenSSL, Tor now requires version 1.0.1 or
16361       later. OpenSSL 1.0.0 and earlier are no longer supported by the
16362       OpenSSL team, and should not be used. Closes ticket 20303.
16365 Changes in version 0.2.9.3-alpha - 2016-09-23
16366   Tor 0.2.9.3-alpha adds improved support for entities that want to make
16367   high-performance services available through the Tor .onion mechanism
16368   without themselves receiving anonymity as they host those services. It
16369   also tries harder to ensure that all steps on a circuit are using the
16370   strongest crypto possible, strengthens some TLS properties, and
16371   resolves several bugs -- including a pair of crash bugs from the 0.2.8
16372   series. Anybody running an earlier version of 0.2.9.x should upgrade.
16374   o Major bugfixes (crash, also in 0.2.8.8):
16375     - Fix a complicated crash bug that could affect Tor clients
16376       configured to use bridges when replacing a networkstatus consensus
16377       in which one of their bridges was mentioned. OpenBSD users saw
16378       more crashes here, but all platforms were potentially affected.
16379       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
16381   o Major bugfixes (relay, OOM handler, also in 0.2.8.8):
16382     - Fix a timing-dependent assertion failure that could occur when we
16383       tried to flush from a circuit after having freed its cells because
16384       of an out-of-memory condition. Fixes bug 20203; bugfix on
16385       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
16386       this one.
16388   o Major features (circuit building, security):
16389     - Authorities, relays and clients now require ntor keys in all
16390       descriptors, for all hops (except for rare hidden service protocol
16391       cases), for all circuits, and for all other roles. Part of
16392       ticket 19163.
16393     - Tor authorities, relays, and clients only use ntor, except for
16394       rare cases in the hidden service protocol. Part of ticket 19163.
16396   o Major features (single-hop "hidden" services):
16397     - Add experimental HiddenServiceSingleHopMode and
16398       HiddenServiceNonAnonymousMode options. When both are set to 1,
16399       every hidden service on a Tor instance becomes a non-anonymous
16400       Single Onion Service. Single Onions make one-hop (direct)
16401       connections to their introduction and rendezvous points. One-hop
16402       circuits make Single Onion servers easily locatable, but clients
16403       remain location-anonymous. This is compatible with the existing
16404       hidden service implementation, and works on the current tor
16405       network without any changes to older relays or clients. Implements
16406       proposal 260, completes ticket 17178. Patch by teor and asn.
16408   o Major features (resource management):
16409     - Tor can now notice it is about to run out of sockets, and
16410       preemptively close connections of lower priority. (This feature is
16411       off by default for now, since the current prioritizing method is
16412       yet not mature enough. You can enable it by setting
16413       "DisableOOSCheck 0", but watch out: it might close some sockets
16414       you would rather have it keep.) Closes ticket 18640.
16416   o Major bugfixes (circuit building):
16417     - Hidden service client-to-intro-point and service-to-rendezvous-
16418       point circuits use the TAP key supplied by the protocol, to avoid
16419       epistemic attacks. Fixes bug 19163; bugfix on 0.2.4.18-rc.
16421   o Major bugfixes (compilation, OpenBSD):
16422     - Fix a Libevent-detection bug in our autoconf script that would
16423       prevent Tor from linking successfully on OpenBSD. Patch from
16424       rubiate. Fixes bug 19902; bugfix on 0.2.9.1-alpha.
16426   o Major bugfixes (hidden services):
16427     - Clients now require hidden services to include the TAP keys for
16428       their intro points in the hidden service descriptor. This prevents
16429       an inadvertent upgrade to ntor, which a malicious hidden service
16430       could use to distinguish clients by consensus version. Fixes bug
16431       20012; bugfix on 0.2.4.8-alpha. Patch by teor.
16433   o Minor features (security, TLS):
16434     - Servers no longer support clients that without AES ciphersuites.
16435       (3DES is no longer considered an acceptable cipher.) We believe
16436       that no such Tor clients currently exist, since Tor has required
16437       OpenSSL 0.9.7 or later since 2009. Closes ticket 19998.
16439   o Minor feature (fallback directories):
16440     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
16441       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
16442       2016. Closes ticket 20190; patch by teor.
16444   o Minor features (geoip, also in 0.2.8.8):
16445     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
16446       Country database.
16448   o Minor feature (port flags):
16449     - Add new flags to the *Port options to finer control over which
16450       requests are allowed. The flags are NoDNSRequest, NoOnionTraffic,
16451       and the synthetic flag OnionTrafficOnly, which is equivalent to
16452       NoDNSRequest, NoIPv4Traffic, and NoIPv6Traffic. Closes enhancement
16453       18693; patch by "teor".
16455   o Minor features (directory authority):
16456     - After voting, if the authorities decide that a relay is not
16457       "Valid", they no longer include it in the consensus at all. Closes
16458       ticket 20002; implements part of proposal 272.
16460   o Minor features (testing):
16461     - Disable memory protections on OpenBSD when performing our unit
16462       tests for memwipe(). The test deliberately invokes undefined
16463       behavior, and the OpenBSD protections interfere with this. Patch
16464       from "rubiate". Closes ticket 20066.
16466   o Minor features (testing, ipv6):
16467     - Add the single-onion and single-onion-ipv6 chutney targets to
16468       "make test-network-all". This requires a recent chutney version
16469       with the single onion network flavours (git c72a652 or later).
16470       Closes ticket 20072; patch by teor.
16471     - Add the hs-ipv6 chutney target to make test-network-all's IPv6
16472       tests. Remove bridges+hs, as it's somewhat redundant. This
16473       requires a recent chutney version that supports IPv6 clients,
16474       relays, and authorities. Closes ticket 20069; patch by teor.
16476   o Minor features (Tor2web):
16477     - Make Tor2web clients respect ReachableAddresses. This feature was
16478       inadvertently enabled in 0.2.8.6, then removed by bugfix 19973 on
16479       0.2.8.7. Implements feature 20034. Patch by teor.
16481   o Minor features (unit tests):
16482     - We've done significant work to make the unit tests run faster.
16483     - Our link-handshake unit tests now check that when invalid
16484       handshakes fail, they fail with the error messages we expected.
16485     - Our unit testing code that captures log messages no longer
16486       prevents them from being written out if the user asked for them
16487       (by passing --debug or --info or or --notice --warn to the "test"
16488       binary). This change prevents us from missing unexpected log
16489       messages simply because we were looking for others. Related to
16490       ticket 19999.
16491     - The unit tests now log all warning messages with the "BUG" flag.
16492       Previously, they only logged errors by default. This change will
16493       help us make our testing code more correct, and make sure that we
16494       only hit this code when we mean to. In the meantime, however,
16495       there will be more warnings in the unit test logs than before.
16496       This is preparatory work for ticket 19999.
16497     - The unit tests now treat any failure of a "tor_assert_nonfatal()"
16498       assertion as a test failure.
16500   o Minor bug fixes (circuits):
16501     - Use the CircuitBuildTimeout option whenever
16502       LearnCircuitBuildTimeout is disabled. Previously, we would respect
16503       the option when a user disabled it, but not when it was disabled
16504       because some other option was set. Fixes bug 20073; bugfix on
16505       0.2.4.12-alpha. Patch by teor.
16507   o Minor bugfixes (allocation):
16508     - Change how we allocate memory for large chunks on buffers, to
16509       avoid a (currently impossible) integer overflow, and to waste less
16510       space when allocating unusually large chunks. Fixes bug 20081;
16511       bugfix on 0.2.0.16-alpha. Issue identified by Guido Vranken.
16512     - Always include orconfig.h before including any other C headers.
16513       Sometimes, it includes macros that affect the behavior of the
16514       standard headers. Fixes bug 19767; bugfix on 0.2.9.1-alpha (the
16515       first version to use AC_USE_SYSTEM_EXTENSIONS).
16516     - Fix a syntax error in the IF_BUG_ONCE__() macro in non-GCC-
16517       compatible compilers. Fixes bug 20141; bugfix on 0.2.9.1-alpha.
16518       Patch from Gisle Vanem.
16519     - Stop trying to build with Clang 4.0's -Wthread-safety warnings.
16520       They apparently require a set of annotations that we aren't
16521       currently using, and they create false positives in our pthreads
16522       wrappers. Fixes bug 20110; bugfix on 0.2.9.1-alpha.
16524   o Minor bugfixes (directory authority):
16525     - Die with a more useful error when the operator forgets to place
16526       the authority_signing_key file into the keys directory. This
16527       avoids an uninformative assert & traceback about having an invalid
16528       key. Fixes bug 20065; bugfix on 0.2.0.1-alpha.
16529     - When allowing private addresses, mark Exits that only exit to
16530       private locations as such. Fixes bug 20064; bugfix
16531       on 0.2.2.9-alpha.
16533   o Minor bugfixes (documentation):
16534     - Document the default PathsNeededToBuildCircuits value that's used
16535       by clients when the directory authorities don't set
16536       min_paths_for_circs_pct. Fixes bug 20117; bugfix on 02c320916e02
16537       in 0.2.4.10-alpha. Patch by teor, reported by Jesse V.
16538     - Fix manual for the User option: it takes a username, not a UID.
16539       Fixes bug 19122; bugfix on 0.0.2pre16 (the first version to have
16540       a manpage!).
16542   o Minor bugfixes (hidden services):
16543     - Stop logging intro point details to the client log on certain
16544       error conditions. Fixed as part of bug 20012; bugfix on
16545       0.2.4.8-alpha. Patch by teor.
16547   o Minor bugfixes (IPv6, testing):
16548     - Check for IPv6 correctly on Linux when running test networks.
16549       Fixes bug 19905; bugfix on 0.2.7.3-rc; patch by teor.
16551   o Minor bugfixes (Linux seccomp2 sandbox):
16552     - Add permission to run the sched_yield() and sigaltstack() system
16553       calls, in order to support versions of Tor compiled with asan or
16554       ubsan code that use these calls. Now "sandbox 1" and
16555       "--enable-expensive-hardening" should be compatible on more
16556       systems. Fixes bug 20063; bugfix on 0.2.5.1-alpha.
16558   o Minor bugfixes (logging):
16559     - When logging a message from the BUG() macro, be explicit about
16560       what we were asserting. Previously we were confusing what we were
16561       asserting with what the bug was. Fixes bug 20093; bugfix
16562       on 0.2.9.1-alpha.
16563     - When we are unable to remove the bw_accounting file, do not warn
16564       if the reason we couldn't remove it was that it didn't exist.
16565       Fixes bug 19964; bugfix on 0.2.5.4-alpha. Patch from 'pastly'.
16567   o Minor bugfixes (option parsing):
16568     - Count unix sockets when counting client listeners (SOCKS, Trans,
16569       NATD, and DNS). This has no user-visible behaviour changes: these
16570       options are set once, and never read. Required for correct
16571       behaviour in ticket 17178. Fixes bug 19677; bugfix on
16572       0.2.6.3-alpha. Patch by teor.
16574   o Minor bugfixes (options):
16575     - Check the consistency of UseEntryGuards and EntryNodes more
16576       reliably. Fixes bug 20074; bugfix on 0.2.4.12-alpha. Patch
16577       by teor.
16578     - Stop changing the configured value of UseEntryGuards on
16579       authorities and Tor2web clients. Fixes bug 20074; bugfix on
16580       commits 51fc6799 in 0.1.1.16-rc and acda1735 in 0.2.4.3-alpha.
16581       Patch by teor.
16583   o Minor bugfixes (Tor2web):
16584     - Prevent Tor2web clients running hidden services, these services
16585       are not anonymous due to the one-hop client paths. Fixes bug
16586       19678. Patch by teor.
16588   o Minor bugfixes (unit tests):
16589     - Fix a shared-random unit test that was failing on big endian
16590       architectures due to internal representation of a integer copied
16591       to a buffer. The test is changed to take a full 32 bytes of data
16592       and use the output of a python script that make the COMMIT and
16593       REVEAL calculation according to the spec. Fixes bug 19977; bugfix
16594       on 0.2.9.1-alpha.
16595     - The tor_tls_server_info_callback unit test no longer crashes when
16596       debug-level logging is turned on. Fixes bug 20041; bugfix
16597       on 0.2.8.1-alpha.
16600 Changes in version 0.2.8.8 - 2016-09-23
16601   Tor 0.2.8.8 fixes two crash bugs present in previous versions of the
16602   0.2.8.x series. Relays running 0.2.8.x should upgrade, as should users
16603   who select public relays as their bridges.
16605   o Major bugfixes (crash):
16606     - Fix a complicated crash bug that could affect Tor clients
16607       configured to use bridges when replacing a networkstatus consensus
16608       in which one of their bridges was mentioned. OpenBSD users saw
16609       more crashes here, but all platforms were potentially affected.
16610       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
16612   o Major bugfixes (relay, OOM handler):
16613     - Fix a timing-dependent assertion failure that could occur when we
16614       tried to flush from a circuit after having freed its cells because
16615       of an out-of-memory condition. Fixes bug 20203; bugfix on
16616       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
16617       this one.
16619   o Minor feature (fallback directories):
16620     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
16621       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
16622       2016. Closes ticket 20190; patch by teor.
16624   o Minor features (geoip):
16625     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
16626       Country database.
16629 Changes in version 0.2.9.2-alpha - 2016-08-24
16630   Tor 0.2.9.2-alpha continues development of the 0.2.9 series with
16631   several new features and bugfixes. It also includes an important
16632   authority update and an important bugfix from 0.2.8.7. Everyone who
16633   sets the ReachableAddresses option, and all bridges, are strongly
16634   encouraged to upgrade to 0.2.8.7, or to 0.2.9.2-alpha.
16636   o Directory authority changes (also in 0.2.8.7):
16637     - The "Tonga" bridge authority has been retired; the new bridge
16638       authority is "Bifroest". Closes tickets 19728 and 19690.
16640   o Major bugfixes (client, security, also in 0.2.8.7):
16641     - Only use the ReachableAddresses option to restrict the first hop
16642       in a path. In earlier versions of 0.2.8.x, it would apply to
16643       every hop in the path, with a possible degradation in anonymity
16644       for anyone using an uncommon ReachableAddress setting. Fixes bug
16645       19973; bugfix on 0.2.8.2-alpha.
16647   o Major features (user interface):
16648     - Tor now supports the ability to declare options deprecated, so
16649       that we can recommend that people stop using them. Previously,
16650       this was done in an ad-hoc way. Closes ticket 19820.
16652   o Major bugfixes (directory downloads):
16653     - Avoid resetting download status for consensuses hourly, since we
16654       already have another, smarter retry mechanism. Fixes bug 8625;
16655       bugfix on 0.2.0.9-alpha.
16657   o Minor features (config):
16658     - Warn users when descriptor and port addresses are inconsistent.
16659       Mitigates bug 13953; patch by teor.
16661   o Minor features (geoip):
16662     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
16663       Country database.
16665   o Minor features (user interface):
16666     - There is a new --list-deprecated-options command-line option to
16667       list all of the deprecated options. Implemented as part of
16668       ticket 19820.
16670   o Minor bugfixes (code style):
16671     - Fix an integer signedness conversion issue in the case conversion
16672       tables. Fixes bug 19168; bugfix on 0.2.1.11-alpha.
16674   o Minor bugfixes (compilation):
16675     - Build correctly on versions of libevent2 without support for
16676       evutil_secure_rng_add_bytes(). Fixes bug 19904; bugfix
16677       on 0.2.5.4-alpha.
16678     - Fix a compilation warning on GCC versions before 4.6. Our
16679       ENABLE_GCC_WARNING macro used the word "warning" as an argument,
16680       when it is also required as an argument to the compiler pragma.
16681       Fixes bug 19901; bugfix on 0.2.9.1-alpha.
16683   o Minor bugfixes (compilation, also in 0.2.8.7):
16684     - Remove an inappropriate "inline" in tortls.c that was causing
16685       warnings on older versions of GCC. Fixes bug 19903; bugfix
16686       on 0.2.8.1-alpha.
16688   o Minor bugfixes (fallback directories, also in 0.2.8.7):
16689     - Avoid logging a NULL string pointer when loading fallback
16690       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
16691       and 0.2.8.1-alpha. Report and patch by "rubiate".
16693   o Minor bugfixes (logging):
16694     - Log a more accurate message when we fail to dump a microdescriptor.
16695       Fixes bug 17758; bugfix on 0.2.2.8-alpha. Patch from Daniel Pinto.
16697   o Minor bugfixes (memory leak):
16698     - Fix a series of slow memory leaks related to parsing torrc files
16699       and options. Fixes bug 19466; bugfix on 0.2.1.6-alpha.
16701   o Deprecated features:
16702     - A number of DNS-cache-related sub-options for client ports are now
16703       deprecated for security reasons, and may be removed in a future
16704       version of Tor. (We believe that client-side DNS caching is a bad
16705       idea for anonymity, and you should not turn it on.) The options
16706       are: CacheDNS, CacheIPv4DNS, CacheIPv6DNS, UseDNSCache,
16707       UseIPv4Cache, and UseIPv6Cache.
16708     - A number of options are deprecated for security reasons, and may
16709       be removed in a future version of Tor. The options are:
16710       AllowDotExit, AllowInvalidNodes, AllowSingleHopCircuits,
16711       AllowSingleHopExits, ClientDNSRejectInternalAddresses,
16712       CloseHSClientCircuitsImmediatelyOnTimeout,
16713       CloseHSServiceRendCircuitsImmediatelyOnTimeout,
16714       ExcludeSingleHopRelays, FastFirstHopPK, TLSECGroup,
16715       UseNTorHandshake, and WarnUnsafeSocks.
16716     - The *ListenAddress options are now deprecated as unnecessary: the
16717       corresponding *Port options should be used instead. These options
16718       may someday be removed. The affected options are:
16719       ControlListenAddress, DNSListenAddress, DirListenAddress,
16720       NATDListenAddress, ORListenAddress, SocksListenAddress,
16721       and TransListenAddress.
16723   o Documentation:
16724     - Correct the IPv6 syntax in our documentation for the
16725       VirtualAddrNetworkIPv6 torrc option. Closes ticket 19743.
16727   o Removed code:
16728     - We no longer include the (dead, deprecated) bufferevent code in
16729       Tor. Closes ticket 19450. Based on a patch from U+039b.
16732 Changes in version 0.2.8.7 - 2016-08-24
16733   Tor 0.2.8.7 fixes an important bug related to the ReachableAddresses
16734   option in 0.2.8.6, and replaces a retiring bridge authority. Everyone
16735   who sets the ReachableAddresses option, and all bridges, are strongly
16736   encouraged to upgrade.
16738   o Directory authority changes:
16739     - The "Tonga" bridge authority has been retired; the new bridge
16740       authority is "Bifroest". Closes tickets 19728 and 19690.
16742   o Major bugfixes (client, security):
16743     - Only use the ReachableAddresses option to restrict the first hop
16744       in a path. In earlier versions of 0.2.8.x, it would apply to
16745       every hop in the path, with a possible degradation in anonymity
16746       for anyone using an uncommon ReachableAddress setting. Fixes bug
16747       19973; bugfix on 0.2.8.2-alpha.
16749   o Minor features (geoip):
16750     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
16751       Country database.
16753   o Minor bugfixes (compilation):
16754     - Remove an inappropriate "inline" in tortls.c that was causing
16755       warnings on older versions of GCC. Fixes bug 19903; bugfix
16756       on 0.2.8.1-alpha.
16758   o Minor bugfixes (fallback directories):
16759     - Avoid logging a NULL string pointer when loading fallback
16760       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
16761       and 0.2.8.1-alpha. Report and patch by "rubiate".
16764 Changes in version 0.2.9.1-alpha - 2016-08-08
16765   Tor 0.2.9.1-alpha is the first alpha release in the 0.2.9 development
16766   series. It improves our support for hardened builds and compiler
16767   warnings, deploys some critical infrastructure for improvements to
16768   hidden services, includes a new timing backend that we hope to use for
16769   better support for traffic padding, makes it easier for programmers to
16770   log unexpected events, and contains other small improvements to
16771   security, correctness, and performance.
16773   Below are the changes since 0.2.8.6.
16775   o New system requirements:
16776     - Tor now requires Libevent version 2.0.10-stable or later. Older
16777       versions of Libevent have less efficient backends for several
16778       platforms, and lack the DNS code that we use for our server-side
16779       DNS support. This implements ticket 19554.
16780     - Tor now requires zlib version 1.2 or later, for security,
16781       efficiency, and (eventually) gzip support. (Back when we started,
16782       zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was
16783       released in 2003. We recommend the latest version.)
16785   o Major features (build, hardening):
16786     - Tor now builds with -ftrapv by default on compilers that support
16787       it. This option detects signed integer overflow (which C forbids),
16788       and turns it into a hard-failure. We do not apply this option to
16789       code that needs to run in constant time to avoid side-channels;
16790       instead, we use -fwrapv in that code. Closes ticket 17983.
16791     - When --enable-expensive-hardening is selected, stop applying the
16792       clang/gcc sanitizers to code that needs to run in constant time.
16793       Although we are aware of no introduced side-channels, we are not
16794       able to prove that there are none. Related to ticket 17983.
16796   o Major features (compilation):
16797     - Our big list of extra GCC warnings is now enabled by default when
16798       building with GCC (or with anything like Clang that claims to be
16799       GCC-compatible). To make all warnings into fatal compilation
16800       errors, pass --enable-fatal-warnings to configure. Closes
16801       ticket 19044.
16802     - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically
16803       turn on C and POSIX extensions. (Previously, we attempted to do
16804       this on an ad hoc basis.) Closes ticket 19139.
16806   o Major features (directory authorities, hidden services):
16807     - Directory authorities can now perform the shared randomness
16808       protocol specified by proposal 250. Using this protocol, directory
16809       authorities generate a global fresh random value every day. In the
16810       future, this value will be used by hidden services to select
16811       HSDirs. This release implements the directory authority feature;
16812       the hidden service side will be implemented in the future as part
16813       of proposal 224. Resolves ticket 16943; implements proposal 250.
16815   o Major features (downloading, random exponential backoff):
16816     - When we fail to download an object from a directory service, wait
16817       for an (exponentially increasing) randomized amount of time before
16818       retrying, rather than a fixed interval as we did before. This
16819       prevents a group of Tor instances from becoming too synchronized,
16820       or a single Tor instance from becoming too predictable, in its
16821       download schedule. Closes ticket 15942.
16823   o Major bugfixes (exit policies):
16824     - Avoid disclosing exit outbound bind addresses, configured port
16825       bind addresses, and local interface addresses in relay descriptors
16826       by default under ExitPolicyRejectPrivate. Instead, only reject
16827       these (otherwise unlisted) addresses if
16828       ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on
16829       0.2.7.2-alpha. Patch by teor.
16831   o Major bugfixes (hidden service client):
16832     - Allow Tor clients with appropriate controllers to work with
16833       FetchHidServDescriptors set to 0. Previously, this option also
16834       disabled descriptor cache lookup, thus breaking hidden services
16835       entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim".
16837   o Minor features (build, hardening):
16838     - Detect and work around a libclang_rt problem that would prevent
16839       clang from finding __mulodi4() on some 32-bit platforms, and thus
16840       keep -ftrapv from linking on those systems. Closes ticket 19079.
16841     - When building on a system without runtime support for the runtime
16842       hardening options, try to log a useful warning at configuration
16843       time, rather than an incomprehensible warning at link time. If
16844       expensive hardening was requested, this warning becomes an error.
16845       Closes ticket 18895.
16847   o Minor features (code safety):
16848     - In our integer-parsing functions, ensure that maxiumum value we
16849       give is no smaller than the minimum value. Closes ticket 19063;
16850       patch from U+039b.
16852   o Minor features (controller):
16853     - Implement new GETINFO queries for all downloads that use
16854       download_status_t to schedule retries. This allows controllers to
16855       examine the schedule for pending downloads. Closes ticket 19323.
16856     - Allow controllers to configure basic client authorization on
16857       hidden services when they create them with the ADD_ONION control
16858       command. Implements ticket 15588. Patch by "special".
16859     - Fire a STATUS_SERVER controller event whenever the hibernation
16860       status changes between "awake"/"soft"/"hard". Closes ticket 18685.
16862   o Minor features (directory authority):
16863     - Directory authorities now only give the Guard flag to a relay if
16864       they are also giving it the Stable flag. This change allows us to
16865       simplify path selection for clients. It should have minimal effect
16866       in practice, since >99% of Guards already have the Stable flag.
16867       Implements ticket 18624.
16868     - Directory authorities now write their v3-status-votes file out to
16869       disk earlier in the consensus process, so we have a record of the
16870       votes even if we abort the consensus process. Resolves
16871       ticket 19036.
16873   o Minor features (hidden service):
16874     - Stop being so strict about the payload length of "rendezvous1"
16875       cells. We used to be locked in to the "TAP" handshake length, and
16876       now we can handle better handshakes like "ntor". Resolves
16877       ticket 18998.
16879   o Minor features (infrastructure, time):
16880     - Tor now uses the operating system's monotonic timers (where
16881       available) for internal fine-grained timing. Previously we would
16882       look at the system clock, and then attempt to compensate for the
16883       clock running backwards. Closes ticket 18908.
16884     - Tor now includes an improved timer backend, so that we can
16885       efficiently support tens or hundreds of thousands of concurrent
16886       timers, as will be needed for some of our planned anti-traffic-
16887       analysis work. This code is based on William Ahern's "timeout.c"
16888       project, which implements a "tickless hierarchical timing wheel".
16889       Closes ticket 18365.
16891   o Minor features (logging):
16892     - Provide a more useful warning message when configured with an
16893       invalid Nickname. Closes ticket 18300; patch from "icanhasaccount".
16894     - When dumping unparseable router descriptors, optionally store them
16895       in separate files, named by digest, up to a configurable size
16896       limit. You can change the size limit by setting the
16897       MaxUnparseableDescSizeToLog option, and disable this feature by
16898       setting that option to 0. Closes ticket 18322.
16899     - Add a set of macros to check nonfatal assertions, for internal
16900       use. Migrating more of our checks to these should help us avoid
16901       needless crash bugs. Closes ticket 18613.
16903   o Minor features (performance):
16904     - Change the "optimistic data" extension from "off by default" to
16905       "on by default". The default was ordinarily overridden by a
16906       consensus option, but when clients were bootstrapping for the
16907       first time, they would not have a consensus to get the option
16908       from. Changing this default saves a round-trip during startup.
16909       Closes ticket 18815.
16911   o Minor features (relay, usability):
16912     - When the directory authorities refuse a bad relay's descriptor,
16913       encourage the relay operator to contact us. Many relay operators
16914       won't notice this line in their logs, but it's a win if even a few
16915       learn why we don't like what their relay was doing. Resolves
16916       ticket 18760.
16918   o Minor features (testing):
16919     - Let backtrace tests work correctly under AddressSanitizer. Fixes
16920       part of bug 18934; bugfix on 0.2.5.2-alpha.
16921     - Move the test-network.sh script to chutney, and modify tor's test-
16922       network.sh to call the (newer) chutney version when available.
16923       Resolves ticket 19116. Patch by teor.
16924     - Use the lcov convention for marking lines as unreachable, so that
16925       we don't count them when we're generating test coverage data.
16926       Update our coverage tools to understand this convention. Closes
16927       ticket 16792.
16929   o Minor bugfixes (bootstrap):
16930     - Remember the directory we fetched the consensus or previous
16931       certificates from, and use it to fetch future authority
16932       certificates. This change improves bootstrapping performance.
16933       Fixes bug 18963; bugfix on 0.2.8.1-alpha.
16935   o Minor bugfixes (build):
16936     - The test-stem and test-network makefile targets now depend only on
16937       the tor binary that they are testing. Previously, they depended on
16938       "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a
16939       patch from "cypherpunks".
16941   o Minor bugfixes (circuits):
16942     - Make sure extend_info_from_router() is only called on servers.
16943       Fixes bug 19639; bugfix on 0.2.8.1-alpha.
16945   o Minor bugfixes (compilation):
16946     - When building with Clang, use a full set of GCC warnings.
16947       (Previously, we included only a subset, because of the way we
16948       detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha.
16950   o Minor bugfixes (directory authority):
16951     - Authorities now sort the "package" lines in their votes, for ease
16952       of debugging. (They are already sorted in consensus documents.)
16953       Fixes bug 18840; bugfix on 0.2.6.3-alpha.
16954     - When parsing a detached signature, make sure we use the length of
16955       the digest algorithm instead of an hardcoded DIGEST256_LEN in
16956       order to avoid comparing bytes out-of-bounds with a smaller digest
16957       length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha.
16959   o Minor bugfixes (documentation):
16960     - Document the --passphrase-fd option in the tor manpage. Fixes bug
16961       19504; bugfix on 0.2.7.3-rc.
16962     - Fix the description of the --passphrase-fd option in the
16963       tor-gencert manpage. The option is used to pass the number of a
16964       file descriptor to read the passphrase from, not to read the file
16965       descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha.
16967   o Minor bugfixes (ephemeral hidden service):
16968     - When deleting an ephemeral hidden service, close its intro points
16969       even if they are not completely open. Fixes bug 18604; bugfix
16970       on 0.2.7.1-alpha.
16972   o Minor bugfixes (guard selection):
16973     - Use a single entry guard even if the NumEntryGuards consensus
16974       parameter is not provided. Fixes bug 17688; bugfix
16975       on 0.2.5.6-alpha.
16976     - Don't mark guards as unreachable if connection_connect() fails.
16977       That function fails for local reasons, so it shouldn't reveal
16978       anything about the status of the guard. Fixes bug 14334; bugfix
16979       on 0.2.3.10-alpha.
16981   o Minor bugfixes (hidden service client):
16982     - Increase the minimum number of internal circuits we preemptively
16983       build from 2 to 3, so a circuit is available when a client
16984       connects to another onion service. Fixes bug 13239; bugfix
16985       on 0.1.0.1-rc.
16987   o Minor bugfixes (logging):
16988     - When logging a directory ownership mismatch, log the owning
16989       username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta.
16991   o Minor bugfixes (memory leaks):
16992     - Fix a small, uncommon memory leak that could occur when reading a
16993       truncated ed25519 key file. Fixes bug 18956; bugfix
16994       on 0.2.6.1-alpha.
16996   o Minor bugfixes (testing):
16997     - Allow clients to retry HSDirs much faster in test networks. Fixes
16998       bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor.
16999     - Disable ASAN's detection of segmentation faults while running
17000       test_bt.sh, so that we can make sure that our own backtrace
17001       generation code works. Fixes another aspect of bug 18934; bugfix
17002       on 0.2.5.2-alpha. Patch from "cypherpunks".
17003     - Fix the test-network-all target on out-of-tree builds by using the
17004       correct path to the test driver script. Fixes bug 19421; bugfix
17005       on 0.2.7.3-rc.
17007   o Minor bugfixes (time):
17008     - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483;
17009       bugfix on all released tor versions.
17010     - When computing the difference between two times in milliseconds,
17011       we now round to the nearest millisecond correctly. Previously, we
17012       could sometimes round in the wrong direction. Fixes bug 19428;
17013       bugfix on 0.2.2.2-alpha.
17015   o Minor bugfixes (user interface):
17016     - Display a more accurate number of suppressed messages in the log
17017       rate-limiter. Previously, there was a potential integer overflow
17018       in the counter. Now, if the number of messages hits a maximum, the
17019       rate-limiter doesn't count any further. Fixes bug 19435; bugfix
17020       on 0.2.4.11-alpha.
17021     - Fix a typo in the passphrase prompt for the ed25519 identity key.
17022       Fixes bug 19503; bugfix on 0.2.7.2-alpha.
17024   o Code simplification and refactoring:
17025     - Remove redundant declarations of the MIN macro. Closes
17026       ticket 18889.
17027     - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion.
17028       Closes ticket 18462; patch from "icanhasaccount".
17029     - Split the 600-line directory_handle_command_get function into
17030       separate functions for different URL types. Closes ticket 16698.
17032   o Documentation:
17033     - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes
17034       ticket 19153. Patch from "U+039b".
17036   o Removed features:
17037     - Remove support for "GET /tor/bytes.txt" DirPort request, and
17038       "GETINFO dir-usage" controller request, which were only available
17039       via a compile-time option in Tor anyway. Feature was added in
17040       0.2.2.1-alpha. Resolves ticket 19035.
17041     - There is no longer a compile-time option to disable support for
17042       TransPort. (If you don't want TransPort; just don't use it.) Patch
17043       from "U+039b". Closes ticket 19449.
17045   o Testing:
17046     - Run more workqueue tests as part of "make check". These had
17047       previously been implemented, but you needed to know special
17048       command-line options to enable them.
17049     - We now have unit tests for our code to reject zlib "compression
17050       bombs". (Fortunately, the code works fine.)
17053 Changes in version 0.2.8.6 - 2016-08-02
17055   Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series.
17057   The Tor 0.2.8 series improves client bootstrapping performance,
17058   completes the authority-side implementation of improved identity
17059   keys for relays, and includes numerous bugfixes and performance
17060   improvements throughout the program. This release continues to
17061   improve the coverage of Tor's test suite.  For a full list of
17062   changes since Tor 0.2.7, see the ReleaseNotes file.
17064   Changes since 0.2.8.5-rc:
17066   o Minor features (geoip):
17067     - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2
17068       Country database.
17070   o Minor bugfixes (compilation):
17071     - Fix a compilation warning in the unit tests on systems where char
17072       is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha.
17074   o Minor bugfixes (fallback directories):
17075     - Remove 1 fallback that was on the hardcoded list, then opted-out,
17076       leaving 89 of the 100 fallbacks originally introduced in Tor
17077       0.2.8.2-alpha in March 2016. Closes ticket 19782; patch by teor.
17079   o Minor bugfixes (Linux seccomp2 sandbox):
17080     - Allow more syscalls when running with "Sandbox 1" enabled:
17081       sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On
17082       some systems, these are required for Tor to start. Fixes bug
17083       18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto.
17084     - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1",
17085       so that get_interface_address6_via_udp_socket_hack() can work.
17086       Fixes bug 19660; bugfix on 0.2.5.1-alpha.
17089 Changes in version 0.2.8.5-rc - 2016-07-07
17090   Tor 0.2.8.5-rc is the second release candidate in the Tor 0.2.8
17091   series. If we find no new bugs or regressions here, the first stable
17092   0.2.8 release will be identical to it. It has a few small bugfixes
17093   against previous versions.
17095   o Directory authority changes:
17096     - Urras is no longer a directory authority. Closes ticket 19271.
17098   o Major bugfixes (heartbeat):
17099     - Fix a regression that would crash Tor when the periodic
17100       "heartbeat" log messages were disabled. Fixes bug 19454; bugfix on
17101       0.2.8.1-alpha. Reported by "kubaku".
17103   o Minor features (build):
17104     - Tor now again builds with the recent OpenSSL 1.1 development
17105       branch (tested against 1.1.0-pre6-dev). Closes ticket 19499.
17106     - When building manual pages, set the timezone to "UTC", so that the
17107       output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
17108       Patch from intrigeri.
17110   o Minor bugfixes (fallback directory selection):
17111     - Avoid errors during fallback selection if there are no eligible
17112       fallbacks. Fixes bug 19480; bugfix on 0.2.8.3-alpha. Patch
17113       by teor.
17115   o Minor bugfixes (IPv6, microdescriptors):
17116     - Don't check node addresses when we only have a routerstatus. This
17117       allows IPv6-only clients to bootstrap by fetching microdescriptors
17118       from fallback directory mirrors. (The microdescriptor consensus
17119       has no IPv6 addresses in it.) Fixes bug 19608; bugfix
17120       on 0.2.8.2-alpha.
17122   o Minor bugfixes (logging):
17123     - Reduce pointlessly verbose log messages when directory servers
17124       can't be found. Fixes bug 18849; bugfix on 0.2.8.3-alpha and
17125       0.2.8.1-alpha. Patch by teor.
17126     - When a fallback directory changes its fingerprint from the hard-
17127       coded fingerprint, log a less severe, more explanatory log
17128       message. Fixes bug 18812; bugfix on 0.2.8.1-alpha. Patch by teor.
17130   o Minor bugfixes (Linux seccomp2 sandboxing):
17131     - Allow statistics to be written to disk when "Sandbox 1" is
17132       enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and
17133       0.2.6.1-alpha respectively.
17135   o Minor bugfixes (user interface):
17136     - Remove a warning message "Service [scrubbed] not found after
17137       descriptor upload". This message appears when one uses HSPOST
17138       control command to upload a service descriptor. Since there is
17139       only a descriptor and no service, showing this message is
17140       pointless and confusing. Fixes bug 19464; bugfix on 0.2.7.2-alpha.
17142   o Fallback directory list:
17143     - Add a comment to the generated fallback directory list that
17144       explains how to comment out unsuitable fallbacks in a way that's
17145       compatible with the stem fallback parser.
17146     - Update fallback whitelist and blacklist based on relay operator
17147       emails. Blacklist unsuitable (non-working, over-volatile)
17148       fallbacks. Resolves ticket 19071. Patch by teor.
17149     - Remove 10 unsuitable fallbacks, leaving 90 of the 100 fallbacks
17150       originally introduced in Tor 0.2.8.2-alpha in March 2016. Closes
17151       ticket 19071; patch by teor.
17154 Changes in version 0.2.8.4-rc - 2016-06-15
17155   Tor 0.2.8.4-rc is the first release candidate in the Tor 0.2.8 series.
17156   If we find no new bugs or regressions here, the first stable 0.2.8
17157   release will be identical to it. It has a few small bugfixes against
17158   previous versions.
17160   o Major bugfixes (user interface):
17161     - Correctly give a warning in the cases where a relay is specified
17162       by nickname, and one such relay is found, but it is not officially
17163       Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha.
17165   o Minor features (build):
17166     - Tor now builds once again with the recent OpenSSL 1.1 development
17167       branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev).
17169   o Minor features (geoip):
17170     - Update geoip and geoip6 to the June 7 2016 Maxmind GeoLite2
17171       Country database.
17173   o Minor bugfixes (compilation):
17174     - Cause the unit tests to compile correctly on mingw64 versions that
17175       lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha.
17177   o Minor bugfixes (downloading):
17178     - Predict more correctly whether we'll be downloading over HTTP when
17179       we determine the maximum length of a URL. This should avoid a
17180       "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes
17181       bug 19191.
17184 Changes in version 0.2.8.3-alpha - 2016-05-26
17185   Tor 0.2.8.3-alpha resolves several bugs, most of them introduced over
17186   the course of the 0.2.8 development cycle. It improves the behavior of
17187   directory clients, fixes several crash bugs, fixes a gap in compiler
17188   hardening, and allows the full integration test suite to run on
17189   more platforms.
17191   o Major bugfixes (security, client, DNS proxy):
17192     - Stop a crash that could occur when a client running with DNSPort
17193       received a query with multiple address types, and the first
17194       address type was not supported. Found and fixed by Scott Dial.
17195       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
17197   o Major bugfixes (security, compilation):
17198     - Correctly detect compiler flags on systems where _FORTIFY_SOURCE
17199       is predefined. Previously, our use of -D_FORTIFY_SOURCE would
17200       cause a compiler warning, thereby making other checks fail, and
17201       needlessly disabling compiler-hardening support. Fixes one case of
17202       bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal".
17204   o Major bugfixes (security, directory authorities):
17205     - Fix a crash and out-of-bounds write during authority voting, when
17206       the list of relays includes duplicate ed25519 identity keys. Fixes
17207       bug 19032; bugfix on 0.2.8.2-alpha.
17209   o Major bugfixes (client, bootstrapping):
17210     - Check if bootstrap consensus downloads are still needed when the
17211       linked connection attaches. This prevents tor making unnecessary
17212       begindir-style connections, which are the only directory
17213       connections tor clients make since the fix for 18483 was merged.
17214     - Fix some edge cases where consensus download connections may not
17215       have been closed, even though they were not needed. Related to fix
17216       for 18809.
17217     - Make relays retry consensus downloads the correct number of times,
17218       rather than the more aggressive client retry count. Fixes part of
17219       ticket 18809.
17220     - Stop downloading consensuses when we have a consensus, even if we
17221       don't have all the certificates for it yet. Fixes bug 18809;
17222       bugfix on 0.2.8.1-alpha. Patches by arma and teor.
17224   o Major bugfixes (directory mirrors):
17225     - Decide whether to advertise begindir support in the the same way
17226       we decide whether to advertise our DirPort. Allowing these
17227       decisions to become out-of-sync led to surprising behavior like
17228       advertising begindir support when hibernation made us not
17229       advertise a DirPort. Resolves bug 18616; bugfix on 0.2.8.1-alpha.
17230       Patch by teor.
17232   o Major bugfixes (IPv6 bridges, client):
17233     - Actually use IPv6 addresses when selecting directory addresses for
17234       IPv6 bridges. Fixes bug 18921; bugfix on 0.2.8.1-alpha. Patch
17235       by "teor".
17237   o Major bugfixes (key management):
17238     - If OpenSSL fails to generate an RSA key, do not retain a dangling
17239       pointer to the previous (uninitialized) key value. The impact here
17240       should be limited to a difficult-to-trigger crash, if OpenSSL is
17241       running an engine that makes key generation failures possible, or
17242       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
17243       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
17244       Baishakhi Ray.
17246   o Major bugfixes (testing):
17247     - Fix a bug that would block 'make test-network-all' on systems where
17248       IPv6 packets were lost. Fixes bug 19008; bugfix on 0.2.7.3-rc.
17249     - Avoid "WSANOTINITIALISED" warnings in the unit tests. Fixes bug 18668;
17250       bugfix on 0.2.8.1-alpha.
17252   o Minor features (clients):
17253     - Make clients, onion services, and bridge relays always use an
17254       encrypted begindir connection for directory requests. Resolves
17255       ticket 18483. Patch by "teor".
17257   o Minor features (fallback directory mirrors):
17258     - Give each fallback the same weight for client selection; restrict
17259       fallbacks to one per operator; report fallback directory detail
17260       changes when rebuilding list; add new fallback directory mirrors
17261       to the whitelist; and many other minor simplifications and fixes.
17262       Closes tasks 17905, 18749, bug 18689, and fixes part of bug 18812 on
17263       0.2.8.1-alpha; patch by "teor".
17264     - Replace the 21 fallbacks generated in January 2016 and included in
17265       Tor 0.2.8.1-alpha, with a list of 100 fallbacks generated in March
17266       2016. Closes task 17158; patch by "teor".
17268   o Minor features (geoip):
17269     - Update geoip and geoip6 to the May 4 2016 Maxmind GeoLite2
17270       Country database.
17272   o Minor bugfixes (assert, portability):
17273     - Fix an assertion failure in memarea.c on systems where "long" is
17274       shorter than the size of a pointer. Fixes bug 18716; bugfix
17275       on 0.2.1.1-alpha.
17277   o Minor bugfixes (bootstrap):
17278     - Consistently use the consensus download schedule for authority
17279       certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha.
17281   o Minor bugfixes (build):
17282     - Remove a pair of redundant AM_CONDITIONAL declarations from
17283       configure.ac. Fixes one final case of bug 17744; bugfix
17284       on 0.2.8.2-alpha.
17285     - Resolve warnings when building on systems that are concerned with
17286       signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha
17287       and 0.2.6.1-alpha.
17288     - When libscrypt.h is found, but no libscrypt library can be linked,
17289       treat libscrypt as absent. Fixes bug 19161; bugfix
17290       on 0.2.6.1-alpha.
17292   o Minor bugfixes (client):
17293     - Turn all TestingClientBootstrap* into non-testing torrc options.
17294       This changes simply renames them by removing "Testing" in front of
17295       them and they do not require TestingTorNetwork to be enabled
17296       anymore. Fixes bug 18481; bugfix on 0.2.8.1-alpha.
17297     - Make directory node selection more reliable, mainly for IPv6-only
17298       clients and clients with few reachable addresses. Fixes bug 18929;
17299       bugfix on 0.2.8.1-alpha. Patch by "teor".
17301   o Minor bugfixes (controller, microdescriptors):
17302     - Make GETINFO dir/status-vote/current/consensus conform to the
17303       control specification by returning "551 Could not open cached
17304       consensus..." when not caching consensuses. Fixes bug 18920;
17305       bugfix on 0.2.2.6-alpha.
17307   o Minor bugfixes (crypto, portability):
17308     - The SHA3 and SHAKE routines now produce the correct output on Big
17309       Endian systems. No code calls either algorithm yet, so this is
17310       primarily a build fix. Fixes bug 18943; bugfix on 0.2.8.1-alpha.
17311     - Tor now builds again with the recent OpenSSL 1.1 development
17312       branch (tested against 1.1.0-pre4 and 1.1.0-pre5-dev). Closes
17313       ticket 18286.
17315   o Minor bugfixes (directories):
17316     - When fetching extrainfo documents, compare their SHA256 digests
17317       and Ed25519 signing key certificates with the routerinfo that led
17318       us to fetch them, rather than with the most recent routerinfo.
17319       Otherwise we generate many spurious warnings about mismatches.
17320       Fixes bug 17150; bugfix on 0.2.7.2-alpha.
17322   o Minor bugfixes (logging):
17323     - When we can't generate a signing key because OfflineMasterKey is
17324       set, do not imply that we should have been able to load it. Fixes
17325       bug 18133; bugfix on 0.2.7.2-alpha.
17326     - Stop periodic_event_dispatch() from blasting twelve lines per
17327       second at loglevel debug. Fixes bug 18729; fix on 0.2.8.1-alpha.
17328     - When rejecting a misformed INTRODUCE2 cell, only log at
17329       PROTOCOL_WARN severity. Fixes bug 18761; bugfix on 0.2.8.2-alpha.
17331   o Minor bugfixes (pluggable transports):
17332     - Avoid reporting a spurious error when we decide that we don't need
17333       to terminate a pluggable transport because it has already exited.
17334       Fixes bug 18686; bugfix on 0.2.5.5-alpha.
17336   o Minor bugfixes (pointer arithmetic):
17337     - Fix a bug in memarea_alloc() that could have resulted in remote
17338       heap write access, if Tor had ever passed an unchecked size to
17339       memarea_alloc(). Fortunately, all the sizes we pass to
17340       memarea_alloc() are pre-checked to be less than 128 kilobytes.
17341       Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by
17342       Guido Vranken.
17344   o Minor bugfixes (relays):
17345     - Consider more config options when relays decide whether to
17346       regenerate their descriptor. Fixes more of bug 12538; bugfix
17347       on 0.2.8.1-alpha.
17348     - Resolve some edge cases where we might launch an ORPort
17349       reachability check even when DisableNetwork is set. Noticed while
17350       fixing bug 18616; bugfix on 0.2.3.9-alpha.
17352   o Minor bugfixes (statistics):
17353     - We now include consensus downloads via IPv6 in our directory-
17354       request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha.
17356   o Minor bugfixes (testing):
17357     - Allow directories in small networks to bootstrap by skipping
17358       DirPort checks when the consensus has no exits. Fixes bug 19003;
17359       bugfix on 0.2.8.1-alpha. Patch by teor.
17360     - Fix a small memory leak that would occur when the
17361       TestingEnableCellStatsEvent option was turned on. Fixes bug 18673;
17362       bugfix on 0.2.5.2-alpha.
17364   o Minor bugfixes (time handling):
17365     - When correcting a corrupt 'struct tm' value, fill in the tm_wday
17366       field. Otherwise, our unit tests crash on Windows. Fixes bug
17367       18977; bugfix on 0.2.2.25-alpha.
17369   o Documentation:
17370     - Document the contents of the 'datadir/keys' subdirectory in the
17371       manual page. Closes ticket 17621.
17372     - Stop recommending use of nicknames to identify relays in our
17373       MapAddress documentation. Closes ticket 18312.
17376 Changes in version 0.2.8.2-alpha - 2016-03-28
17377   Tor 0.2.8.2-alpha is the second alpha in its series. It fixes numerous
17378   bugs in earlier versions of Tor, including some that prevented
17379   authorities using Tor 0.2.7.x from running correctly. IPv6 and
17380   directory support should also be much improved.
17382   o New system requirements:
17383     - Tor no longer supports versions of OpenSSL with a broken
17384       implementation of counter mode. (This bug was present in OpenSSL
17385       1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no
17386       longer runs with, these versions.
17387     - Tor no longer attempts to support platforms where the "time_t"
17388       type is unsigned. (To the best of our knowledge, only OpenVMS does
17389       this, and Tor has never actually built on OpenVMS.) Closes
17390       ticket 18184.
17391     - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or
17392       later (released in 2008 and 2009 respectively). If you are
17393       building Tor from the git repository instead of from the source
17394       distribution, and your tools are older than this, you will need to
17395       upgrade. Closes ticket 17732.
17397   o Major bugfixes (security, pointers):
17398     - Avoid a difficult-to-trigger heap corruption attack when extending
17399       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
17400       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
17401       Reported by Guido Vranken.
17403   o Major bugfixes (bridges, pluggable transports):
17404     - Modify the check for OR connections to private addresses. Allow
17405       bridges on private addresses, including pluggable transports that
17406       ignore the (potentially private) address in the bridge line. Fixes
17407       bug 18517; bugfix on 0.2.8.1-alpha. Reported by gk, patch by teor.
17409   o Major bugfixes (compilation):
17410     - Repair hardened builds under the clang compiler. Previously, our
17411       use of _FORTIFY_SOURCE would conflict with clang's address
17412       sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha.
17414   o Major bugfixes (crash on shutdown):
17415     - Correctly handle detaching circuits from muxes when shutting down.
17416       Fixes bug 18116; bugfix on 0.2.8.1-alpha.
17417     - Fix an assert-on-exit bug related to counting memory usage in
17418       rephist.c. Fixes bug 18651; bugfix on 0.2.8.1-alpha.
17420   o Major bugfixes (crash on startup):
17421     - Fix a segfault during startup: If a Unix domain socket was
17422       configured as listener (such as a ControlSocket or a SocksPort
17423       "unix:" socket), and tor was started as root but not configured to
17424       switch to another user, tor would segfault while trying to string
17425       compare a NULL value. Fixes bug 18261; bugfix on 0.2.8.1-alpha.
17426       Patch by weasel.
17428   o Major bugfixes (dns proxy mode, crash):
17429     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
17430       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
17432   o Major bugfixes (relays, bridge clients):
17433     - Ensure relays always allow IPv4 OR and Dir connections. Ensure
17434       bridge clients use the address configured in the bridge line.
17435       Fixes bug 18348; bugfix on 0.2.8.1-alpha. Reported by sysrqb,
17436       patch by teor.
17438   o Major bugfixes (voting):
17439     - Actually enable support for authorities to match routers by their
17440       Ed25519 identities. Previously, the code had been written, but
17441       some debugging code that had accidentally been left in the
17442       codebase made it stay turned off. Fixes bug 17702; bugfix
17443       on 0.2.7.2-alpha.
17444     - When collating votes by Ed25519 identities, authorities now
17445       include a "NoEdConsensus" flag if the ed25519 value (or lack
17446       thereof) for a server does not reflect the majority consensus.
17447       Related to bug 17668; bugfix on 0.2.7.2-alpha.
17448     - When generating a vote with keypinning disabled, never include two
17449       entries for the same ed25519 identity. This bug was causing
17450       authorities to generate votes that they could not parse when a
17451       router violated key pinning by changing its RSA identity but
17452       keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug
17453       18318. Bugfix on 0.2.7.2-alpha.
17455   o Minor features (security, win32):
17456     - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing
17457       attack. Fixes bug 18123; bugfix on all tor versions. Patch
17458       by teor.
17460   o Minor features (bug-resistance):
17461     - Make Tor survive errors involving connections without a
17462       corresponding event object. Previously we'd fail with an
17463       assertion; now we produce a log message. Related to bug 16248.
17465   o Minor features (build):
17466     - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD)
17467       as having possible IPFW support. Closes ticket 18448. Patch from
17468       Steven Chamberlain.
17470   o Minor features (code hardening):
17471     - Use tor_snprintf() and tor_vsnprintf() even in external and low-
17472       level code, to harden against accidental failures to NUL-
17473       terminate. Part of ticket 17852. Patch from jsturgix. Found
17474       with Flawfinder.
17476   o Minor features (crypto):
17477     - Validate the hard-coded Diffie-Hellman parameters and ensure that
17478       p is a safe prime, and g is a suitable generator. Closes
17479       ticket 18221.
17481   o Minor features (geoip):
17482     - Update geoip and geoip6 to the March 3 2016 Maxmind GeoLite2
17483       Country database.
17485   o Minor features (hidden service directory):
17486     - Streamline relay-side hsdir handling: when relays consider whether
17487       to accept an uploaded hidden service descriptor, they no longer
17488       check whether they are one of the relays in the network that is
17489       "supposed" to handle that descriptor. Implements ticket 18332.
17491   o Minor features (IPv6):
17492     - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
17493       to 1, tor prefers IPv6 directory addresses.
17494     - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
17495       avoids using IPv4 for client OR and directory connections.
17496     - Try harder to obey the IP version restrictions "ClientUseIPv4 0",
17497       "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and
17498       "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor.
17500   o Minor features (linux seccomp2 sandbox):
17501     - Reject attempts to change our Address with "Sandbox 1" enabled.
17502       Changing Address with Sandbox turned on would never actually work,
17503       but previously it would fail in strange and confusing ways. Found
17504       while fixing 18548.
17506   o Minor features (robustness):
17507     - Exit immediately with an error message if the code attempts to use
17508       Libevent without having initialized it. This should resolve some
17509       frequently-made mistakes in our unit tests. Closes ticket 18241.
17511   o Minor features (unix domain sockets):
17512     - Add a new per-socket option, RelaxDirModeCheck, to allow creating
17513       Unix domain sockets without checking the permissions on the parent
17514       directory. (Tor checks permissions by default because some
17515       operating systems only check permissions on the parent directory.
17516       However, some operating systems do look at permissions on the
17517       socket, and tor's default check is unneeded.) Closes ticket 18458.
17518       Patch by weasel.
17520   o Minor bugfixes (exit policies, security):
17521     - Refresh an exit relay's exit policy when interface addresses
17522       change. Previously, tor only refreshed the exit policy when the
17523       configured external address changed. Fixes bug 18208; bugfix on
17524       0.2.7.3-rc. Patch by teor.
17526   o Minor bugfixes (security, hidden services):
17527     - Prevent hidden services connecting to client-supplied rendezvous
17528       addresses that are reserved as internal or multicast. Fixes bug
17529       8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor.
17531   o Minor bugfixes (build):
17532     - Do not link the unit tests against both the testing and non-
17533       testing versions of the static libraries. Fixes bug 18490; bugfix
17534       on 0.2.7.1-alpha.
17535     - Avoid spurious failures from configure files related to calling
17536       exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18626; bugfix on
17537       0.2.0.1-alpha. Patch from "cypherpunks".
17538     - Silence spurious clang-scan warnings in the ed25519_donna code by
17539       explicitly initializing some objects. Fixes bug 18384; bugfix on
17540       0.2.7.2-alpha. Patch by teor.
17542   o Minor bugfixes (client, bootstrap):
17543     - Count receipt of new microdescriptors as progress towards
17544       bootstrapping. Previously, with EntryNodes set, Tor might not
17545       successfully repopulate the guard set on bootstrapping. Fixes bug
17546       16825; bugfix on 0.2.3.1-alpha.
17548   o Minor bugfixes (code correctness):
17549     - Update to the latest version of Trunnel, which tries harder to
17550       avoid generating code that can invoke memcpy(p,NULL,0). Bug found
17551       by clang address sanitizer. Fixes bug 18373; bugfix
17552       on 0.2.7.2-alpha.
17554   o Minor bugfixes (configuration):
17555     - Fix a tiny memory leak when parsing a port configuration ending in
17556       ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
17558   o Minor bugfixes (containers):
17559     - If we somehow attempt to construct a heap with more than
17560       1073741822 elements, avoid an integer overflow when maintaining
17561       the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha.
17563   o Minor bugfixes (correctness):
17564     - Fix a bad memory handling bug that would occur if we had queued a
17565       cell on a channel's incoming queue. Fortunately, we can't actually
17566       queue a cell like that as our code is constructed today, but it's
17567       best to avoid this kind of error, even if there isn't any code
17568       that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha.
17570   o Minor bugfixes (directory):
17571     - When generating a URL for a directory server on an IPv6 address,
17572       wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix
17573       on 0.2.3.9-alpha. Patch from Malek.
17575   o Minor bugfixes (fallback directory mirrors):
17576     - When requesting extrainfo descriptors from a trusted directory
17577       server, check whether it is an authority or a fallback directory
17578       which supports extrainfo descriptors. Fixes bug 18489; bugfix on
17579       0.2.4.7-alpha. Reported by atagar, patch by teor.
17581   o Minor bugfixes (hidden service, client):
17582     - Handle the case where the user makes several fast consecutive
17583       requests to the same .onion address. Previously, the first six
17584       requests would each trigger a descriptor fetch, each picking a
17585       directory (there are 6 overall) and the seventh one would fail
17586       because no directories were left, thereby triggering a close on
17587       all current directory connections asking for the hidden service.
17588       The solution here is to not close the connections if we have
17589       pending directory fetches. Fixes bug 15937; bugfix
17590       on 0.2.7.1-alpha.
17592   o Minor bugfixes (hidden service, control port):
17593     - Add the onion address to the HS_DESC event for the UPLOADED action
17594       both on success or failure. It was previously hardcoded with
17595       UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha.
17597   o Minor bugfixes (hidden service, directory):
17598     - Bridges now refuse "rendezvous2" (hidden service descriptor)
17599       publish attempts. Suggested by ticket 18332.
17601   o Minor bugfixes (linux seccomp2 sandbox):
17602     - Allow the setrlimit syscall, and the prlimit and prlimit64
17603       syscalls, which some libc implementations use under the hood.
17604       Fixes bug 15221; bugfix on 0.2.5.1-alpha.
17605     - Avoid a 10-second delay when starting as a client with "Sandbox 1"
17606       enabled and no DNS resolvers configured. This should help TAILS
17607       start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
17608     - Fix the sandbox's interoperability with unix domain sockets under
17609       setuid. Fixes bug 18253; bugfix on 0.2.8.1-alpha.
17611   o Minor bugfixes (logging):
17612     - When logging information about an unparsable networkstatus vote or
17613       consensus, do not say "vote" when we mean consensus. Fixes bug
17614       18368; bugfix on 0.2.0.8-alpha.
17615     - Scrub service name in "unrecognized service ID" log messages.
17616       Fixes bug 18600; bugfix on 0.2.4.11-alpha.
17617     - Downgrade logs and backtraces about IP versions to info-level.
17618       Only log backtraces once each time tor runs. Assists in diagnosing
17619       bug 18351; bugfix on 0.2.8.1-alpha. Reported by sysrqb and
17620       Christian, patch by teor.
17622   o Minor bugfixes (memory safety):
17623     - Avoid freeing an uninitialized pointer when opening a socket fails
17624       in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on
17625       0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch
17626       by teor.
17627     - Correctly duplicate addresses in get_interface_address6_list().
17628       Fixes bug 18454; bugfix on 0.2.8.1-alpha. Reported by toralf,
17629       patch by "cypherpunks".
17630     - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix
17631       on 0.2.0.1-alpha.
17632     - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug
17633       18672; bugfix on 0.2.5.1-alpha.
17635   o Minor bugfixes (private directory):
17636     - Prevent a race condition when creating private directories. Fixes
17637       part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852.
17638       Patch from jsturgix. Found with Flawfinder.
17640   o Minor bugfixes (test networks, IPv6):
17641     - Allow internal IPv6 addresses in descriptors in test networks.
17642       Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported
17643       by karsten.
17645   o Minor bugfixes (testing):
17646     - We no longer disable assertions in the unit tests when coverage is
17647       enabled. Instead, we require you to say --disable-asserts-in-tests
17648       to the configure script if you need assertions disabled in the
17649       unit tests (for example, if you want to perform branch coverage).
17650       Fixes bug 18242; bugfix on 0.2.7.1-alpha.
17652   o Minor bugfixes (time parsing):
17653     - Avoid overflow in tor_timegm when parsing dates in and after 2038
17654       on platforms with 32-bit time_t. Fixes bug 18479; bugfix on
17655       0.0.2pre14. Patch by teor.
17657   o Minor bugfixes (tor-gencert):
17658     - Correctly handle the case where an authority operator enters a
17659       passphrase but sends an EOF before sending a newline. Fixes bug
17660       17443; bugfix on 0.2.0.20-rc. Found by junglefowl.
17662   o Code simplification and refactoring:
17663     - Quote all the string interpolations in configure.ac -- even those
17664       which we are pretty sure can't contain spaces. Closes ticket
17665       17744. Patch from zerosion.
17666     - Remove specialized code for non-inplace AES_CTR. 99% of our AES is
17667       inplace, so there's no need to have a separate implementation for
17668       the non-inplace code. Closes ticket 18258. Patch from Malek.
17669     - Simplify return types for some crypto functions that can't
17670       actually fail. Patch from Hassan Alsibyani. Closes ticket 18259.
17672   o Documentation:
17673     - Change build messages to refer to "Fedora" instead of "Fedora
17674       Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426.
17675       Patches from "icanhasaccount" and "cypherpunks".
17677   o Removed features:
17678     - We no longer maintain an internal freelist in memarea.c.
17679       Allocators should be good enough to make this code unnecessary,
17680       and it's doubtful that it ever had any performance benefit.
17682   o Testing:
17683     - Fix several warnings from clang's address sanitizer produced in
17684       the unit tests.
17685     - Treat backtrace test failures as expected on FreeBSD until we
17686       solve bug 17808. Closes ticket 18204.
17689 Changes in version 0.2.8.1-alpha - 2016-02-04
17690   Tor 0.2.8.1-alpha is the first alpha release in its series. It
17691   includes numerous small features and bugfixes against previous Tor
17692   versions, and numerous small infrastructure improvements. The most
17693   notable features are a set of improvements to the directory subsystem.
17695   o Major features (security, Linux):
17696     - When Tor starts as root on Linux and is told to switch user ID, it
17697       can now retain the capability to bind to low ports. By default,
17698       Tor will do this only when it's switching user ID and some low
17699       ports have been configured. You can change this behavior with the
17700       new option KeepBindCapabilities. Closes ticket 8195.
17702   o Major features (directory system):
17703     - When bootstrapping multiple consensus downloads at a time, use the
17704       first one that starts downloading, and close the rest. This
17705       reduces failures when authorities or fallback directories are slow
17706       or down. Together with the code for feature 15775, this feature
17707       should reduces failures due to fallback churn. Implements ticket
17708       4483. Patch by "teor". Implements IPv4 portions of proposal 210 by
17709       "mikeperry" and "teor".
17710     - Include a trial list of 21 default fallback directories, generated
17711       in January 2016, based on an opt-in survey of suitable relays.
17712       Doing this should make clients bootstrap more quickly and reliably,
17713       and reduce the load on the directory authorities. Closes ticket
17714       15775. Patch by "teor".
17715       Candidates identified using an OnionOO script by "weasel", "teor",
17716       "gsathya", and "karsten".
17717     - Previously only relays that explicitly opened a directory port
17718       (DirPort) accepted directory requests from clients. Now all
17719       relays, with and without a DirPort, accept and serve tunneled
17720       directory requests that they receive through their ORPort. You can
17721       disable this behavior using the new DirCache option. Closes
17722       ticket 12538.
17724   o Major key updates:
17725     - Update the V3 identity key for the dannenberg directory authority:
17726       it was changed on 18 November 2015. Closes task 17906. Patch
17727       by "teor".
17729   o Minor features (security, clock):
17730     - Warn when the system clock appears to move back in time (when the
17731       state file was last written in the future). Tor doesn't know that
17732       consensuses have expired if the clock is in the past. Patch by
17733       "teor". Implements ticket 17188.
17735   o Minor features (security, exit policies):
17736     - ExitPolicyRejectPrivate now rejects more private addresses by
17737       default. Specifically, it now rejects the relay's outbound bind
17738       addresses (if configured), and the relay's configured port
17739       addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on
17740       0.2.0.11-alpha. Patch by "teor".
17742   o Minor features (security, memory erasure):
17743     - Set the unused entries in a smartlist to NULL. This helped catch
17744       a (harmless) bug, and shouldn't affect performance too much.
17745       Implements ticket 17026.
17746     - Use SecureMemoryWipe() function to securely clean memory on
17747       Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function.
17748       Implements feature 17986.
17749     - Use explicit_bzero or memset_s when present. Previously, we'd use
17750       OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches
17751       from <logan@hackers.mu> and <selven@hackers.mu>.
17752     - Make memwipe() do nothing when passed a NULL pointer or buffer of
17753       zero size. Check size argument to memwipe() for underflow. Fixes
17754       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
17755       patch by "teor".
17757   o Minor features (security, RNG):
17758     - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely,
17759       positively are not allowed to fail. Previously we depended on
17760       internal details of OpenSSL's behavior. Closes ticket 17686.
17761     - Never use the system entropy output directly for anything besides
17762       seeding the PRNG. When we want to generate important keys, instead
17763       of using system entropy directly, we now hash it with the PRNG
17764       stream. This may help resist certain attacks based on broken OS
17765       entropy implementations. Closes part of ticket 17694.
17766     - Use modern system calls (like getentropy() or getrandom()) to
17767       generate strong entropy on platforms that have them. Closes
17768       ticket 13696.
17770   o Minor features (accounting):
17771     - Added two modes to the AccountingRule option: One for limiting
17772       only the number of bytes sent ("AccountingRule out"), and one for
17773       limiting only the number of bytes received ("AccountingRule in").
17774       Closes ticket 15989; patch from "unixninja92".
17776   o Minor features (build):
17777     - Since our build process now uses "make distcheck", we no longer
17778       force "make dist" to depend on "make check". Closes ticket 17893;
17779       patch from "cypherpunks."
17780     - Tor now builds successfully with the recent OpenSSL 1.1
17781       development branch, and with the latest LibreSSL. Closes tickets
17782       17549, 17921, and 17984.
17784   o Minor features (controller):
17785     - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes
17786       tickets 16774 and 17817. Patch by George Tankersley.
17787     - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden
17788       service descriptor from a service's local hidden service
17789       descriptor cache. Closes ticket 14846.
17790     - Add 'GETINFO exit-policy/reject-private/[default,relay]', so
17791       controllers can examine the the reject rules added by
17792       ExitPolicyRejectPrivate. This makes it easier for stem to display
17793       exit policies.
17795   o Minor features (crypto):
17796     - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
17797       George Tankersley.
17798     - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783.
17799     - When allocating a digest state object, allocate no more space than
17800       we actually need. Previously, we would allocate as much space as
17801       the state for the largest algorithm would need. This change saves
17802       up to 672 bytes per circuit. Closes ticket 17796.
17803     - Improve performance when hashing non-multiple of 8 sized buffers,
17804       based on Andrew Moon's public domain SipHash-2-4 implementation.
17805       Fixes bug 17544; bugfix on 0.2.5.3-alpha.
17807   o Minor features (directory downloads):
17808     - Wait for busy authorities and fallback directories to become non-
17809       busy when bootstrapping. (A similar change was made in 6c443e987d
17810       for directory caches chosen from the consensus.) Closes ticket
17811       17864; patch by "teor".
17812     - Add UseDefaultFallbackDirs, which enables any hard-coded fallback
17813       directory mirrors. The default is 1; set it to 0 to disable
17814       fallbacks. Implements ticket 17576. Patch by "teor".
17816   o Minor features (geoip):
17817     - Update geoip and geoip6 to the January 5 2016 Maxmind GeoLite2
17818       Country database.
17820   o Minor features (IPv6):
17821     - Add an argument 'ipv6=address:orport' to the DirAuthority and
17822       FallbackDir torrc options, to specify an IPv6 address for an
17823       authority or fallback directory. Add hard-coded ipv6 addresses for
17824       directory authorities that have them. Closes ticket 17327; patch
17825       from Nick Mathewson and "teor".
17826     - Add address policy assume_action support for IPv6 addresses.
17827     - Limit IPv6 mask bits to 128.
17828     - Warn when comparing against an AF_UNSPEC address in a policy, it's
17829       almost always a bug. Closes ticket 17863; patch by "teor".
17830     - Allow users to configure directory authorities and fallback
17831       directory servers with IPv6 addresses and ORPorts. Resolves
17832       ticket 6027.
17833     - routerset_parse now accepts IPv6 literal addresses. Fixes bug
17834       17060; bugfix on 0.2.1.3-alpha. Patch by "teor".
17835     - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug
17836       17638; bugfix on 0.0.2pre8. Patch by "teor".
17838   o Minor features (logging):
17839     - When logging to syslog, allow a tag to be added to the syslog
17840       identity (the string prepended to every log message). The tag can
17841       be configured with SyslogIdentityTag and defaults to none. Setting
17842       it to "foo" will cause logs to be tagged as "Tor-foo". Closes
17843       ticket 17194.
17845   o Minor features (portability):
17846     - Use timingsafe_memcmp() where available. Closes ticket 17944;
17847       patch from <logan@hackers.mu>.
17849   o Minor features (relay, address discovery):
17850     - Add a family argument to get_interface_addresses_raw() and
17851       subfunctions to make network interface address interogation more
17852       efficient. Now Tor can specifically ask for IPv4, IPv6 or both
17853       types of interfaces from the operating system. Resolves
17854       ticket 17950.
17855     - When get_interface_address6_list(.,AF_UNSPEC,.) is called and
17856       fails to enumerate interface addresses using the platform-specific
17857       API, have it rely on the UDP socket fallback technique to try and
17858       find out what IP addresses (both IPv4 and IPv6) our machine has.
17859       Resolves ticket 17951.
17861   o Minor features (replay cache):
17862     - The replay cache now uses SHA256 instead of SHA1. Implements
17863       feature 8961. Patch by "teor", issue reported by "rransom".
17865   o Minor features (unix file permissions):
17866     - Defer creation of Unix sockets until after setuid. This avoids
17867       needing CAP_CHOWN and CAP_FOWNER when using systemd's
17868       CapabilityBoundingSet, or chown and fowner when using SELinux.
17869       Implements part of ticket 17562. Patch from Jamie Nguyen.
17870     - If any directory created by Tor is marked as group readable, the
17871       filesystem group is allowed to be either the default GID or the
17872       root user. Allowing root to read the DataDirectory prevents the
17873       need for CAP_READ_SEARCH when using systemd's
17874       CapabilityBoundingSet, or dac_read_search when using SELinux.
17875       Implements part of ticket 17562. Patch from Jamie Nguyen.
17876     - Introduce a new DataDirectoryGroupReadable option. If it is set to
17877       1, the DataDirectory will be made readable by the default GID.
17878       Implements part of ticket 17562. Patch from Jamie Nguyen.
17880   o Minor bugfixes (accounting):
17881     - The max bandwidth when using 'AccountRule sum' is now correctly
17882       logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch
17883       from "unixninja92".
17885   o Minor bugfixes (code correctness):
17886     - When closing an entry connection, generate a warning if we should
17887       have sent an end cell for it but we haven't. Fixes bug 17876;
17888       bugfix on 0.2.3.2-alpha.
17889     - Assert that allocated memory held by the reputation code is freed
17890       according to its internal counters. Fixes bug 17753; bugfix
17891       on 0.1.1.1-alpha.
17892     - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
17893       bugfix on 0.0.6.
17895   o Minor bugfixes (compilation):
17896     - Mark all object files that include micro-revision.i as depending
17897       on it, so as to make parallel builds more reliable. Fixes bug
17898       17826; bugfix on 0.2.5.1-alpha.
17899     - Don't try to use the pthread_condattr_setclock() function unless
17900       it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
17901       17819; bugfix on 0.2.6.3-alpha.
17902     - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix
17903       on 0.2.5.2-alpha.
17904     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
17905       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
17906     - Fix search for libevent libraries on OpenBSD (and other systems
17907       that install libevent 1 and libevent 2 in parallel). Fixes bug
17908       16651; bugfix on 0.1.0.7-rc. Patch from "rubiate".
17909     - Isolate environment variables meant for tests from the rest of the
17910       build system. Fixes bug 17818; bugfix on 0.2.7.3-rc.
17911     - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix
17912       on 0.0.2pre8.
17913     - Remove config.log only from make distclean, not from make clean.
17914       Fixes bug 17924; bugfix on 0.2.4.1-alpha.
17916   o Minor bugfixes (crypto):
17917     - Check the return value of HMAC() and assert on failure. Fixes bug
17918       17658; bugfix on 0.2.3.6-alpha. Patch by "teor".
17920   o Minor bugfixes (fallback directories):
17921     - Mark fallbacks as "too busy" when they return a 503 response,
17922       rather than just marking authorities. Fixes bug 17572; bugfix on
17923       0.2.4.7-alpha. Patch by "teor".
17925   o Minor bugfixes (IPv6):
17926     - Update the limits in max_dl_per_request for IPv6 address length.
17927       Fixes bug 17573; bugfix on 0.2.1.5-alpha.
17929   o Minor bugfixes (linux seccomp2 sandbox):
17930     - Fix a crash when using offline master ed25519 keys with the Linux
17931       seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc.
17933   o Minor bugfixes (logging):
17934     - In log messages that include a function name, use __FUNCTION__
17935       instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but
17936       with clang __PRETTY_FUNCTION__ has extra information we don't
17937       need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van
17938       der Woerdt.
17939     - Remove needless quotes from a log message about unparseable
17940       addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha.
17942   o Minor bugfixes (portability):
17943     - Remove an #endif from configure.ac so that we correctly detect the
17944       presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix
17945       on 0.2.0.13-alpha.
17947   o Minor bugfixes (relays):
17948     - Check that both the ORPort and DirPort (if present) are reachable
17949       before publishing a relay descriptor. Otherwise, relays publish a
17950       descriptor with DirPort 0 when the DirPort reachability test takes
17951       longer than the ORPort reachability test. Fixes bug 18050; bugfix
17952       on 0.1.0.1-rc. Reported by "starlight", patch by "teor".
17954   o Minor bugfixes (relays, hidden services):
17955     - Refuse connection requests to private OR addresses unless
17956       ExtendAllowPrivateAddresses is set. Previously, tor would connect,
17957       then refuse to send any cells to a private address. Fixes bugs
17958       17674 and 8976; bugfix on 0.2.3.21-rc. Patch by "teor".
17960   o Minor bugfixes (safe logging):
17961     - When logging a malformed hostname received through socks4, scrub
17962       it if SafeLogging says we should. Fixes bug 17419; bugfix
17963       on 0.1.1.16-rc.
17965   o Minor bugfixes (statistics code):
17966     - Consistently check for overflow in round_*_to_next_multiple_of
17967       functions, and add unit tests with additional and maximal values.
17968       Fixes part of bug 13192; bugfix on 0.2.2.1-alpha.
17969     - Handle edge cases in the laplace functions: avoid division by
17970       zero, avoid taking the log of zero, and silence clang type
17971       conversion warnings using round and trunc. Add unit tests for edge
17972       cases with maximal values. Fixes part of bug 13192; bugfix
17973       on 0.2.6.2-alpha.
17975   o Minor bugfixes (testing):
17976     - The test for log_heartbeat was incorrectly failing in timezones
17977       with non-integer offsets. Instead of comparing the end of the time
17978       string against a constant, compare it to the output of
17979       format_local_iso_time when given the correct input. Fixes bug
17980       18039; bugfix on 0.2.5.4-alpha.
17981     - Make unit tests pass on IPv6-only systems, and systems without
17982       localhost addresses (like some FreeBSD jails). Fixes bug 17632;
17983       bugfix on 0.2.7.3-rc. Patch by "teor".
17984     - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix
17985       on 0.2.4.8-alpha.
17986     - Check the full results of SHA256 and SHA512 digests in the unit
17987       tests. Bugfix on 0.2.2.4-alpha. Patch by "teor".
17989   o Code simplification and refactoring:
17990     - Move logging of redundant policy entries in
17991       policies_parse_exit_policy_internal into its own function. Closes
17992       ticket 17608; patch from "juce".
17993     - Extract the more complicated parts of circuit_mark_for_close()
17994       into a new function that we run periodically before circuits are
17995       freed. This change removes more than half of the functions
17996       currently in the "blob". Closes ticket 17218.
17997     - Clean up a little duplicated code in
17998       crypto_expand_key_material_TAP(). Closes ticket 17587; patch
17999       from "pfrankw".
18000     - Decouple the list of streams waiting to be attached to circuits
18001       from the overall connection list. This change makes it possible to
18002       attach streams quickly while simplifying Tor's callgraph and
18003       avoiding O(N) scans of the entire connection list. Closes
18004       ticket 17590.
18005     - When a direct directory request fails immediately on launch,
18006       instead of relaunching that request from inside the code that
18007       launches it, instead mark the connection for teardown. This change
18008       simplifies Tor's callback and prevents the directory-request
18009       launching code from invoking itself recursively. Closes
18010       ticket 17589
18011     - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't
18012       use them. Closes ticket 17926.
18014   o Documentation:
18015     - Add a description of the correct use of the '--keygen' command-
18016       line option. Closes ticket 17583; based on text by 's7r'.
18017     - Document the minimum HeartbeatPeriod value. Closes ticket 15638.
18018     - Explain actual minima for BandwidthRate. Closes ticket 16382.
18019     - Fix a minor formatting typo in the manpage. Closes ticket 17791.
18020     - Mention torspec URL in the manpage and point the reader to it
18021       whenever we mention a document that belongs in torspce. Fixes
18022       issue 17392.
18024   o Removed features:
18025     - Remove client-side support for connecting to Tor relays running
18026       versions of Tor before 0.2.3.6-alpha. These relays didn't support
18027       the v3 TLS handshake protocol, and are no longer allowed on the
18028       Tor network. Implements the client side of ticket 11150. Based on
18029       patches by Tom van der Woerdt.
18031   o Testing:
18032     - Add unit tests to check for common RNG failure modes, such as
18033       returning all zeroes, identical values, or incrementing values
18034       (OpenSSL's rand_predictable feature). Patch by "teor".
18035     - Log more information when the backtrace tests fail. Closes ticket
18036       17892. Patch from "cypherpunks."
18037     - Always test both ed25519 backends, so that we can be sure that our
18038       batch-open replacement code works. Part of ticket 16794.
18039     - Cover dns_resolve_impl() in dns.c with unit tests. Implements a
18040       portion of ticket 16831.
18041     - More unit tests for compat_libevent.c, procmon.c, tortls.c,
18042       util_format.c, directory.c, and options_validate.c. Closes tickets
18043       17075, 17082, 17084, 17003, and 17076 respectively. Patches from
18044       Ola Bini.
18045     - Unit tests for directory_handle_command_get. Closes ticket 17004.
18046       Patch from Reinaldo de Souza Jr.
18049 Changes in version 0.2.7.6 - 2015-12-10
18050   Tor version 0.2.7.6 fixes a major bug in entry guard selection, as
18051   well as a minor bug in hidden service reliability.
18053   o Major bugfixes (guard selection):
18054     - Actually look at the Guard flag when selecting a new directory
18055       guard. When we implemented the directory guard design, we
18056       accidentally started treating all relays as if they have the Guard
18057       flag during guard selection, leading to weaker anonymity and worse
18058       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
18059       by Mohsen Imani.
18061   o Minor features (geoip):
18062     - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2
18063       Country database.
18065   o Minor bugfixes (compilation):
18066     - When checking for net/pfvar.h, include netinet/in.h if possible.
18067       This fixes transparent proxy detection on OpenBSD. Fixes bug
18068       17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
18069     - Fix a compilation warning with Clang 3.6: Do not check the
18070       presence of an address which can never be NULL. Fixes bug 17781.
18072   o Minor bugfixes (correctness):
18073     - When displaying an IPv6 exit policy, include the mask bits
18074       correctly even when the number is greater than 31. Fixes bug
18075       16056; bugfix on 0.2.4.7-alpha. Patch from "gturner".
18076     - The wrong list was used when looking up expired intro points in a
18077       rend service object, causing what we think could be reachability
18078       issues for hidden services, and triggering a BUG log. Fixes bug
18079       16702; bugfix on 0.2.7.2-alpha.
18080     - Fix undefined behavior in the tor_cert_checksig function. Fixes
18081       bug 17722; bugfix on 0.2.7.2-alpha.
18084 Changes in version 0.2.7.5 - 2015-11-20
18085   The Tor 0.2.7 release series is dedicated to the memory of Tor user
18086   and privacy advocate Caspar Bowden (1961-2015). Caspar worked
18087   tirelessly to advocate human rights regardless of national borders,
18088   and oppose the encroachments of mass surveillance. He opposed national
18089   exceptionalism, he brought clarity to legal and policy debates, he
18090   understood and predicted the impact of mass surveillance on the world,
18091   and he laid the groundwork for resisting it. While serving on the Tor
18092   Project's board of directors, he brought us his uncompromising focus
18093   on technical excellence in the service of humankind. Caspar was an
18094   inimitable force for good and a wonderful friend. He was kind,
18095   humorous, generous, gallant, and believed we should protect one
18096   another without exception. We honor him here for his ideals, his
18097   efforts, and his accomplishments. Please honor his memory with works
18098   that would make him proud.
18100   Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series.
18102   The 0.2.7 series adds a more secure identity key type for relays,
18103   improves cryptography performance, resolves several longstanding
18104   hidden-service performance issues, improves controller support for
18105   hidden services, and includes small bugfixes and performance
18106   improvements throughout the program. This release series also includes
18107   more tests than before, and significant simplifications to which parts
18108   of Tor invoke which others.
18110   (This release contains no code changes since 0.2.7.4-rc.)
18113 Changes in version 0.2.7.4-rc - 2015-10-21
18114   Tor 0.2.7.4-rc is the second release candidate in the 0.2.7 series. It
18115   fixes some important memory leaks, and a scary-looking (but mostly
18116   harmless in practice) invalid-read bug. It also has a few small
18117   bugfixes, notably fixes for compilation and portability on different
18118   platforms. If no further significant bounds are found, the next
18119   release will the the official stable release.
18121   o Major bugfixes (security, correctness):
18122     - Fix an error that could cause us to read 4 bytes before the
18123       beginning of an openssl string. This bug could be used to cause
18124       Tor to crash on systems with unusual malloc implementations, or
18125       systems with unusual hardening installed. Fixes bug 17404; bugfix
18126       on 0.2.3.6-alpha.
18128   o Major bugfixes (correctness):
18129     - Fix a use-after-free bug in validate_intro_point_failure(). Fixes
18130       bug 17401; bugfix on 0.2.7.3-rc.
18132   o Major bugfixes (memory leaks):
18133     - Fix a memory leak in ed25519 batch signature checking. Fixes bug
18134       17398; bugfix on 0.2.6.1-alpha.
18135     - Fix a memory leak in rend_cache_failure_entry_free(). Fixes bug
18136       17402; bugfix on 0.2.7.3-rc.
18137     - Fix a memory leak when reading an expired signing key from disk.
18138       Fixes bug 17403; bugfix on 0.2.7.2-rc.
18140   o Minor features (geoIP):
18141     - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2
18142       Country database.
18144   o Minor bugfixes (compilation):
18145     - Repair compilation with the most recent (unreleased, alpha)
18146       vesions of OpenSSL 1.1. Fixes part of ticket 17237.
18147     - Fix an integer overflow warning in test_crypto_slow.c. Fixes bug
18148       17251; bugfix on 0.2.7.2-alpha.
18149     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
18150       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
18152   o Minor bugfixes (portability):
18153     - Use libexecinfo on FreeBSD to enable backtrace support. Fixes
18154       part of bug 17151; bugfix on 0.2.5.2-alpha. Patch from
18155       Marcin Cieślak.
18157   o Minor bugfixes (sandbox):
18158     - Add the "hidserv-stats" filename to our sandbox filter for the
18159       HiddenServiceStatistics option to work properly. Fixes bug 17354;
18160       bugfix on 0.2.6.2-alpha. Patch from David Goulet.
18162   o Minor bugfixes (testing):
18163     - Add unit tests for get_interface_address* failure cases. Fixes bug
18164       17173; bugfix on 0.2.7.3-rc. Patch by fk/teor.
18165     - Fix breakage when running 'make check' with BSD make. Fixes bug
18166       17154; bugfix on 0.2.7.3-rc. Patch by Marcin Cieślak.
18167     - Make the get_ifaddrs_* unit tests more tolerant of different
18168       network configurations. (Don't assume every test box has an IPv4
18169       address, and don't assume every test box has a non-localhost
18170       address.) Fixes bug 17255; bugfix on 0.2.7.3-rc. Patch by "teor".
18171     - Skip backtrace tests when backtrace support is not compiled in.
18172       Fixes part of bug 17151; bugfix on 0.2.7.1-alpha. Patch from
18173       Marcin Cieślak.
18175   o Documentation:
18176     - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609.
18177     - Note that HiddenServicePorts can take a unix domain socket. Closes
18178       ticket 17364.
18181 Changes in version 0.2.7.3-rc - 2015-09-25
18182   Tor 0.2.7.3-rc is the first release candidate in the 0.2.7 series. It
18183   contains numerous usability fixes for Ed25519 keys, safeguards against
18184   several misconfiguration problems, significant simplifications to
18185   Tor's callgraph, and numerous bugfixes and small features.
18187   This is the most tested release of Tor to date. The unit tests cover
18188   39.40% of the code, and the integration tests (accessible with "make
18189   test-full-online", requiring stem and chutney and a network
18190   connection) raise the coverage to 64.49%.
18192   o Major features (security, hidden services):
18193     - Hidden services, if using the EntryNodes option, are required to
18194       use more than one EntryNode, in order to avoid a guard discovery
18195       attack. (This would only affect people who had configured hidden
18196       services and manually specified the EntryNodes option with a
18197       single entry-node. The impact was that it would be easy to
18198       remotely identify the guard node used by such a hidden service.
18199       See ticket for more information.) Fixes ticket 14917.
18201   o Major features (Ed25519 keys, keypinning):
18202     - The key-pinning option on directory authorities is now advisory-
18203       only by default. In a future version, or when the AuthDirPinKeys
18204       option is set, pins are enforced again. Disabling key-pinning
18205       seemed like a good idea so that we can survive the fallout of any
18206       usability problems associated with Ed25519 keys. Closes
18207       ticket 17135.
18209   o Major features (Ed25519 performance):
18210     - Improve the speed of Ed25519 operations and Curve25519 keypair
18211       generation when built targeting 32 bit x86 platforms with SSE2
18212       available. Implements ticket 16535.
18213     - Improve the runtime speed of Ed25519 signature verification by
18214       using Ed25519-donna's batch verification support. Implements
18215       ticket 16533.
18217   o Major features (performance testing):
18218     - The test-network.sh script now supports performance testing.
18219       Requires corresponding chutney performance testing changes. Patch
18220       by "teor". Closes ticket 14175.
18222   o Major features (relay, Ed25519):
18223     - Significant usability improvements for Ed25519 key management. Log
18224       messages are better, and the code can recover from far more
18225       failure conditions. Thanks to "s7r" for reporting and diagnosing
18226       so many of these!
18227     - Add a new OfflineMasterKey option to tell Tor never to try loading
18228       or generating a secret Ed25519 identity key. You can use this in
18229       combination with tor --keygen to manage offline and/or encrypted
18230       Ed25519 keys. Implements ticket 16944.
18231     - Add a --newpass option to allow changing or removing the
18232       passphrase of an encrypted key with tor --keygen. Implements part
18233       of ticket 16769.
18234     - On receiving a HUP signal, check to see whether the Ed25519
18235       signing key has changed, and reload it if so. Closes ticket 16790.
18237   o Major bugfixes (relay, Ed25519):
18238     - Avoid crashing on 'tor --keygen'. Fixes bug 16679; bugfix on
18239       0.2.7.2-alpha. Reported by "s7r".
18240     - Improve handling of expired signing keys with offline master keys.
18241       Fixes bug 16685; bugfix on 0.2.7.2-alpha. Reported by "s7r".
18243   o Minor features (client-side privacy):
18244     - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit
18245       lifespan when IsolateSOCKSAuth and streams with SOCKS
18246       authentication are attached to the circuit. This allows
18247       applications like TorBrowser to manage circuit lifetime on their
18248       own. Implements feature 15482.
18249     - When logging malformed hostnames from SOCKS5 requests, respect
18250       SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc.
18252   o Minor features (compilation):
18253     - Give a warning as early as possible when trying to build with an
18254       unsupported OpenSSL version. Closes ticket 16901.
18255     - Fail during configure if we're trying to build against an OpenSSL
18256       built without ECC support. Fixes bug 17109, bugfix on 0.2.7.1-alpha
18257       which started requiring ECC.
18259   o Minor features (geoip):
18260     - Update geoip and geoip6 to the September 3 2015 Maxmind GeoLite2
18261       Country database.
18263   o Minor features (hidden services):
18264     - Relays need to have the Fast flag to get the HSDir flag. As this
18265       is being written, we'll go from 2745 HSDirs down to 2342, a ~14%
18266       drop. This change should make some attacks against the hidden
18267       service directory system harder. Fixes ticket 15963.
18268     - Turn on hidden service statistics collection by setting the torrc
18269       option HiddenServiceStatistics to "1" by default. (This keeps
18270       track only of the fraction of traffic used by hidden services, and
18271       the total number of hidden services in existence.) Closes
18272       ticket 15254.
18273     - Client now uses an introduction point failure cache to know when
18274       to fetch or keep a descriptor in their cache. Previously, failures
18275       were recorded implicitly, but not explicitly remembered. Closes
18276       ticket 16389.
18278   o Minor features (testing, authorities, documentation):
18279     - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to
18280       explicitly manage consensus flags in testing networks. Patch by
18281       "robgjansen", modified by "teor". Implements part of ticket 14882.
18283   o Minor bugfixes (security, exit policies):
18284     - ExitPolicyRejectPrivate now also rejects the relay's published
18285       IPv6 address (if any), and any publicly routable IPv4 or IPv6
18286       addresses on any local interfaces. ticket 17027. Patch by "teor".
18287       Fixes bug 17027; bugfix on 0.2.0.11-alpha.
18289   o Minor bug fixes (torrc exit policies):
18290     - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only
18291       produce IPv6 wildcard addresses. Previously they would produce
18292       both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part
18293       of bug 16069; bugfix on 0.2.4.7-alpha.
18294     - When parsing torrc ExitPolicies, we now warn for a number of cases
18295       where the user's intent is likely to differ from Tor's actual
18296       behavior. These include: using an IPv4 address with an accept6 or
18297       reject6 line; using "private" on an accept6 or reject6 line; and
18298       including any ExitPolicy lines after accept *:* or reject *:*.
18299       Related to ticket 16069.
18300     - When parsing torrc ExitPolicies, we now issue an info-level
18301       message when expanding an "accept/reject *" line to include both
18302       IPv4 and IPv6 wildcard addresses. Related to ticket 16069.
18303     - In each instance above, usage advice is provided to avoid the
18304       message. Resolves ticket 16069. Patch by "teor". Fixes part of bug
18305       16069; bugfix on 0.2.4.7-alpha.
18307   o Minor bugfixes (authority):
18308     - Don't assign "HSDir" to a router if it isn't Valid and Running.
18309       Fixes bug 16524; bugfix on 0.2.7.2-alpha.
18310     - Downgrade log messages about Ed25519 key issues if they are in old
18311       cached router descriptors. Fixes part of bug 16286; bugfix
18312       on 0.2.7.2-alpha.
18313     - When we find an Ed25519 key issue in a cached descriptor, stop
18314       saying the descriptor was just "uploaded". Fixes another part of
18315       bug 16286; bugfix on 0.2.7.2-alpha.
18317   o Minor bugfixes (control port):
18318     - Repair a warning and a spurious result when getting the maximum
18319       number of file descriptors from the controller. Fixes bug 16697;
18320       bugfix on 0.2.7.2-alpha.
18322   o Minor bugfixes (correctness):
18323     - When calling channel_free_list(), avoid calling smartlist_remove()
18324       while inside a FOREACH loop. This partially reverts commit
18325       17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
18326       incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha.
18328   o Minor bugfixes (documentation):
18329     - Advise users on how to configure separate IPv4 and IPv6 exit
18330       policies in the manpage and sample torrcs. Related to ticket 16069.
18331     - Fix the usage message of tor-resolve(1) so that it no longer lists
18332       the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta.
18333     - Fix an error in the manual page and comments for
18334       TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir
18335       required "ORPort connectivity". While this is true, it is in no
18336       way unique to the HSDir flag. Of all the flags, only HSDirs need a
18337       DirPort configured in order for the authorities to assign that
18338       particular flag. Patch by "teor". Fixed as part of 14882; bugfix
18339       on 0.2.6.3-alpha.
18341   o Minor bugfixes (Ed25519):
18342     - Fix a memory leak when reading router descriptors with expired
18343       Ed25519 certificates. Fixes bug 16539; bugfix on 0.2.7.2-alpha.
18345   o Minor bugfixes (linux seccomp2 sandbox):
18346     - Allow bridge authorities to run correctly under the seccomp2
18347       sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha.
18348     - Allow routers with ed25519 keys to run correctly under the
18349       seccomp2 sandbox. Fixes bug 16965; bugfix on 0.2.7.2-alpha.
18351   o Minor bugfixes (open file limit):
18352     - Fix set_max_file_descriptors() to set by default the max open file
18353       limit to the current limit when setrlimit() fails. Fixes bug
18354       16274; bugfix on 0.2.0.10-alpha. Patch by dgoulet.
18356   o Minor bugfixes (portability):
18357     - Try harder to normalize the exit status of the Tor process to the
18358       standard-provided range. Fixes bug 16975; bugfix on every version
18359       of Tor ever.
18360     - Check correctly for Windows socket errors in the workqueue
18361       backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha.
18362     - Fix the behavior of crypto_rand_time_range() when told to consider
18363       times before 1970. (These times were possible when running in a
18364       simulated network environment where time()'s output starts at
18365       zero.) Fixes bug 16980; bugfix on 0.2.7.1-alpha.
18366     - Restore correct operation of TLS client-cipher detection on
18367       OpenSSL 1.1. Fixes bug 14047; bugfix on 0.2.7.2-alpha.
18369   o Minor bugfixes (relay):
18370     - Ensure that worker threads actually exit when a fatal error or
18371       shutdown is indicated. This fix doesn't currently affect the
18372       behavior of Tor, because Tor workers never indicates fatal error
18373       or shutdown except in the unit tests. Fixes bug 16868; bugfix
18374       on 0.2.6.3-alpha.
18375     - Unblock threads before releasing the work queue mutex to ensure
18376       predictable scheduling behavior. Fixes bug 16644; bugfix
18377       on 0.2.6.3-alpha.
18379   o Code simplification and refactoring:
18380     - Change the function that's called when we need to retry all
18381       downloads so that it only reschedules the downloads to happen
18382       immediately, rather than launching them all at once itself. This
18383       further simplifies Tor's callgraph.
18384     - Move some format-parsing functions out of crypto.c and
18385       crypto_curve25519.c into crypto_format.c and/or util_format.c.
18386     - Move the client-only parts of init_keys() into a separate
18387       function. Closes ticket 16763.
18388     - Simplify the microdesc_free() implementation so that it no longer
18389       appears (to code analysis tools) to potentially invoke a huge
18390       suite of other microdesc functions.
18391     - Simply the control graph further by deferring the inner body of
18392       directory_all_unreachable() into a callback. Closes ticket 16762.
18393     - Treat the loss of an owning controller as equivalent to a SIGTERM
18394       signal. This removes a tiny amount of duplicated code, and
18395       simplifies our callgraph. Closes ticket 16788.
18396     - When generating an event to send to the controller, we no longer
18397       put the event over the network immediately. Instead, we queue
18398       these events, and use a Libevent callback to deliver them. This
18399       change simplifies Tor's callgraph by reducing the number of
18400       functions from which all other Tor functions are reachable. Closes
18401       ticket 16695.
18402     - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools
18403       that try to scan or compile every file on Unix won't decide that
18404       they are broken.
18405     - Remove the unused "nulterminate" argument from buf_pullup().
18407   o Documentation:
18408     - Recommend a 40 GB example AccountingMax in torrc.sample rather
18409       than a 4 GB max. Closes ticket 16742.
18410     - Include the TUNING document in our source tarball. It is referred
18411       to in the ChangeLog and an error message. Fixes bug 16929; bugfix
18412       on 0.2.6.1-alpha.
18414   o Removed code:
18415     - The internal pure-C tor-fw-helper tool is now removed from the Tor
18416       distribution, in favor of the pure-Go clone available from
18417       https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries
18418       used by the C tor-fw-helper are not, in our opinion, very
18419       confidence- inspiring in their secure-programming techniques.
18420       Closes ticket 13338.
18421     - Remove the code that would try to aggressively flush controller
18422       connections while writing to them. This code was introduced in
18423       0.1.2.7-alpha, in order to keep output buffers from exceeding
18424       their limits. But there is no longer a maximum output buffer size,
18425       and flushing data in this way caused some undesirable recursions
18426       in our call graph. Closes ticket 16480.
18428   o Testing:
18429     - Make "bridges+hs" the default test network. This tests almost all
18430       tor functionality during make test-network, while allowing tests
18431       to succeed on non-IPv6 systems. Requires chutney commit 396da92 in
18432       test-network-bridges-hs. Closes tickets 16945 (tor) and 16946
18433       (chutney). Patches by "teor".
18434     - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side-
18435       by-side in the same parent directory. Closes ticket 16903. Patch
18436       by "teor".
18437     - Use environment variables rather than autoconf substitutions to
18438       send variables from the build system to the test scripts. This
18439       change should be easier to maintain, and cause 'make distcheck' to
18440       work better than before. Fixes bug 17148.
18441     - Add a new set of callgraph analysis scripts that use clang to
18442       produce a list of which Tor functions are reachable from which
18443       other Tor functions. We're planning to use these to help simplify
18444       our code structure by identifying illogical dependencies.
18445     - Add new 'test-full' and 'test-full-online' targets to run all
18446       tests, including integration tests with stem and chutney.
18447     - Make the test-workqueue test work on Windows by initializing the
18448       network before we begin.
18449     - New make target (make test-network-all) to run multiple applicable
18450       chutney test cases. Patch from Teor; closes 16953.
18451     - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl()
18452       functions in dns.c. Implements a portion of ticket 16831.
18453     - When building Tor with testing coverage enabled, run Chutney tests
18454       (if any) using the 'tor-cov' coverage binary.
18455     - When running test-network or test-stem, check for the absence of
18456       stem/chutney before doing any build operations.
18459 Changes in version 0.2.7.2-alpha - 2015-07-27
18460   This, the second alpha in the Tor 0.2.7 series, has a number of new
18461   features, including a way to manually pick the number of introduction
18462   points for hidden services, and the much stronger Ed25519 signing key
18463   algorithm for regular Tor relays (including support for encrypted
18464   offline identity keys in the new algorithm).
18466   Support for Ed25519 on relays is currently limited to signing router
18467   descriptors; later alphas in this series will extend Ed25519 key
18468   support to more parts of the Tor protocol.
18470   o Major features (Ed25519 identity keys, Proposal 220):
18471     - All relays now maintain a stronger identity key, using the Ed25519
18472       elliptic curve signature format. This master key is designed so
18473       that it can be kept offline. Relays also generate an online
18474       signing key, and a set of other Ed25519 keys and certificates.
18475       These are all automatically regenerated and rotated as needed.
18476       Implements part of ticket 12498.
18477     - Directory authorities now vote on Ed25519 identity keys along with
18478       RSA1024 keys. Implements part of ticket 12498.
18479     - Directory authorities track which Ed25519 identity keys have been
18480       used with which RSA1024 identity keys, and do not allow them to
18481       vary freely. Implements part of ticket 12498.
18482     - Microdescriptors now include Ed25519 identity keys. Implements
18483       part of ticket 12498.
18484     - Add support for offline encrypted Ed25519 master keys. To use this
18485       feature on your tor relay, run "tor --keygen" to make a new master
18486       key (or to make a new signing key if you already have a master
18487       key). Closes ticket 13642.
18489   o Major features (Hidden services):
18490     - Add the torrc option HiddenServiceNumIntroductionPoints, to
18491       specify a fixed number of introduction points. Its maximum value
18492       is 10 and default is 3. Using this option can increase a hidden
18493       service's reliability under load, at the cost of making it more
18494       visible that the hidden service is facing extra load. Closes
18495       ticket 4862.
18496     - Remove the adaptive algorithm for choosing the number of
18497       introduction points, which used to change the number of
18498       introduction points (poorly) depending on the number of
18499       connections the HS sees. Closes ticket 4862.
18501   o Major features (onion key cross-certification):
18502     - Relay descriptors now include signatures of their own identity
18503       keys, made using the TAP and ntor onion keys. These signatures
18504       allow relays to prove ownership of their own onion keys. Because
18505       of this change, microdescriptors will no longer need to include
18506       RSA identity keys. Implements proposal 228; closes ticket 12499.
18508   o Major features (performance):
18509     - Improve the runtime speed of Ed25519 operations by using the
18510       public-domain Ed25519-donna by Andrew M. ("floodyberry").
18511       Implements ticket 16467.
18512     - Improve the runtime speed of the ntor handshake by using an
18513       optimized curve25519 basepoint scalarmult implementation from the
18514       public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on
18515       ideas by Adam Langley. Implements ticket 9663.
18517   o Major bugfixes (client-side privacy, also in 0.2.6.9):
18518     - Properly separate out each SOCKSPort when applying stream
18519       isolation. The error occurred because each port's session group
18520       was being overwritten by a default value when the listener
18521       connection was initialized. Fixes bug 16247; bugfix on
18522       0.2.6.3-alpha. Patch by "jojelino".
18524   o Major bugfixes (hidden service clients, stability, also in 0.2.6.10):
18525     - Stop refusing to store updated hidden service descriptors on a
18526       client. This reverts commit 9407040c59218 (which indeed fixed bug
18527       14219, but introduced a major hidden service reachability
18528       regression detailed in bug 16381). This is a temporary fix since
18529       we can live with the minor issue in bug 14219 (it just results in
18530       some load on the network) but the regression of 16381 is too much
18531       of a setback. First-round fix for bug 16381; bugfix
18532       on 0.2.6.3-alpha.
18534   o Major bugfixes (hidden services):
18535     - When cannibalizing a circuit for an introduction point, always
18536       extend to the chosen exit node (creating a 4 hop circuit).
18537       Previously Tor would use the current circuit exit node, which
18538       changed the original choice of introduction point, and could cause
18539       the hidden service to skip excluded introduction points or
18540       reconnect to a skipped introduction point. Fixes bug 16260; bugfix
18541       on 0.1.0.1-rc.
18543   o Major bugfixes (open file limit):
18544     - The open file limit wasn't checked before calling
18545       tor_accept_socket_nonblocking(), which would make Tor exceed the
18546       limit. Now, before opening a new socket, Tor validates the open
18547       file limit just before, and if the max has been reached, return an
18548       error. Fixes bug 16288; bugfix on 0.1.1.1-alpha.
18550   o Major bugfixes (stability, also in 0.2.6.10):
18551     - Stop crashing with an assertion failure when parsing certain kinds
18552       of malformed or truncated microdescriptors. Fixes bug 16400;
18553       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
18554       by "cypherpunks_backup".
18555     - Stop random client-side assertion failures that could occur when
18556       connecting to a busy hidden service, or connecting to a hidden
18557       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
18558       on 0.1.0.1-rc.
18560   o Minor features (directory authorities, security, also in 0.2.6.9):
18561     - The HSDir flag given by authorities now requires the Stable flag.
18562       For the current network, this results in going from 2887 to 2806
18563       HSDirs. Also, it makes it harder for an attacker to launch a sybil
18564       attack by raising the effort for a relay to become Stable to
18565       require at the very least 7 days, while maintaining the 96 hours
18566       uptime requirement for HSDir. Implements ticket 8243.
18568   o Minor features (client):
18569     - Relax the validation of hostnames in SOCKS5 requests, allowing the
18570       character '_' to appear, in order to cope with domains observed in
18571       the wild that are serving non-RFC compliant records. Resolves
18572       ticket 16430.
18573     - Relax the validation done to hostnames in SOCKS5 requests, and
18574       allow a single trailing '.' to cope with clients that pass FQDNs
18575       using that syntax to explicitly indicate that the domain name is
18576       fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
18577     - Add GroupWritable and WorldWritable options to unix-socket based
18578       SocksPort and ControlPort options. These options apply to a single
18579       socket, and override {Control,Socks}SocketsGroupWritable. Closes
18580       ticket 15220.
18582   o Minor features (control protocol):
18583     - Support network-liveness GETINFO key and NETWORK_LIVENESS event in
18584       the control protocol. Resolves ticket 15358.
18586   o Minor features (directory authorities):
18587     - Directory authorities no longer vote against the "Fast", "Stable",
18588       and "HSDir" flags just because they were going to vote against
18589       "Running": if the consensus turns out to be that the router was
18590       running, then the authority's vote should count. Patch from Peter
18591       Retzlaff; closes issue 8712.
18593   o Minor features (geoip, also in 0.2.6.10):
18594     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
18595     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
18597   o Minor features (hidden services):
18598     - Add the new options "HiddenServiceMaxStreams" and
18599       "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to
18600       limit the maximum number of simultaneous streams per circuit, and
18601       optionally tear down the circuit when the limit is exceeded. Part
18602       of ticket 16052.
18604   o Minor features (portability):
18605     - Use C99 variadic macros when the compiler is not GCC. This avoids
18606       failing compilations on MSVC, and fixes a log-file-based race
18607       condition in our old workarounds. Original patch from Gisle Vanem.
18609   o Minor bugfixes (compilation, also in 0.2.6.9):
18610     - Build with --enable-systemd correctly when libsystemd is
18611       installed, but systemd is not. Fixes bug 16164; bugfix on
18612       0.2.6.3-alpha. Patch from Peter Palfrader.
18614   o Minor bugfixes (controller):
18615     - Add the descriptor ID in each HS_DESC control event. It was
18616       missing, but specified in control-spec.txt. Fixes bug 15881;
18617       bugfix on 0.2.5.2-alpha.
18619   o Minor bugfixes (crypto error-handling, also in 0.2.6.10):
18620     - Check for failures from crypto_early_init, and refuse to continue.
18621       A previous typo meant that we could keep going with an
18622       uninitialized crypto library, and would have OpenSSL initialize
18623       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
18624       when implementing ticket 4900. Patch by "teor".
18626   o Minor bugfixes (hidden services):
18627     - Fix a crash when reloading configuration while at least one
18628       configured and one ephemeral hidden service exists. Fixes bug
18629       16060; bugfix on 0.2.7.1-alpha.
18630     - Avoid crashing with a double-free bug when we create an ephemeral
18631       hidden service but adding it fails for some reason. Fixes bug
18632       16228; bugfix on 0.2.7.1-alpha.
18634   o Minor bugfixes (Linux seccomp2 sandbox):
18635     - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is
18636       defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha.
18638   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10):
18639     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
18640       these when eventfd2() support is missing. Fixes bug 16363; bugfix
18641       on 0.2.6.3-alpha. Patch from "teor".
18643   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9):
18644     - Fix sandboxing to work when running as a relay, by allowing the
18645       renaming of secret_id_key, and allowing the eventfd2 and futex
18646       syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by
18647       Peter Palfrader.
18648     - Allow systemd connections to work with the Linux seccomp2 sandbox
18649       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
18650       Peter Palfrader.
18652   o Minor bugfixes (relay):
18653     - Fix a rarely-encountered memory leak when failing to initialize
18654       the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch
18655       from "cypherpunks".
18657   o Minor bugfixes (systemd):
18658     - Fix an accidental formatting error that broke the systemd
18659       configuration file. Fixes bug 16152; bugfix on 0.2.7.1-alpha.
18660     - Tor's systemd unit file no longer contains extraneous spaces.
18661       These spaces would sometimes confuse tools like deb-systemd-
18662       helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha.
18664   o Minor bugfixes (tests):
18665     - Use the configured Python executable when running test-stem-full.
18666       Fixes bug 16470; bugfix on 0.2.7.1-alpha.
18668   o Minor bugfixes (tests, also in 0.2.6.9):
18669     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
18670       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
18672   o Minor bugfixes (threads, comments):
18673     - Always initialize return value in compute_desc_id in rendcommon.c
18674       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
18675     - Check for NULL values in getinfo_helper_onions(). Patch by "teor".
18676       Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
18677     - Remove undefined directive-in-macro in test_util_writepid clang
18678       3.7 complains that using a preprocessor directive inside a macro
18679       invocation in test_util_writepid in test_util.c is undefined.
18680       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
18682   o Code simplification and refactoring:
18683     - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order
18684       to ensure they remain consistent and visible everywhere.
18685     - Remove some vestigial workarounds for the MSVC6 compiler. We
18686       haven't supported that in ages.
18687     - The link authentication code has been refactored for better
18688       testability and reliability. It now uses code generated with the
18689       "trunnel" binary encoding generator, to reduce the risk of bugs
18690       due to programmer error. Done as part of ticket 12498.
18692   o Documentation:
18693     - Include a specific and (hopefully) accurate documentation of the
18694       torrc file's meta-format in doc/torrc_format.txt. This is mainly
18695       of interest to people writing programs to parse or generate torrc
18696       files. This document is not a commitment to long-term
18697       compatibility; some aspects of the current format are a bit
18698       ridiculous. Closes ticket 2325.
18700   o Removed features:
18701     - Tor no longer supports copies of OpenSSL that are missing support
18702       for Elliptic Curve Cryptography. (We began using ECC when
18703       available in 0.2.4.8-alpha, for more safe and efficient key
18704       negotiation.) In particular, support for at least one of P256 or
18705       P224 is now required, with manual configuration needed if only
18706       P224 is available. Resolves ticket 16140.
18707     - Tor no longer supports versions of OpenSSL before 1.0. (If you are
18708       on an operating system that has not upgraded to OpenSSL 1.0 or
18709       later, and you compile Tor from source, you will need to install a
18710       more recent OpenSSL to link Tor against.) These versions of
18711       OpenSSL are still supported by the OpenSSL, but the numerous
18712       cryptographic improvements in later OpenSSL releases makes them a
18713       clear choice. Resolves ticket 16034.
18714     - Remove the HidServDirectoryV2 option. Now all relays offer to
18715       store hidden service descriptors. Related to 16543.
18716     - Remove the VoteOnHidServDirectoriesV2 option, since all
18717       authorities have long set it to 1. Closes ticket 16543.
18719   o Testing:
18720     - Document use of coverity, clang static analyzer, and clang dynamic
18721       undefined behavior and address sanitizers in doc/HACKING. Include
18722       detailed usage instructions in the blacklist. Patch by "teor".
18723       Closes ticket 15817.
18724     - The link authentication protocol code now has extensive tests.
18725     - The relay descriptor signature testing code now has
18726       extensive tests.
18727     - The test_workqueue program now runs faster, and is enabled by
18728       default as a part of "make check".
18729     - Now that OpenSSL has its own scrypt implementation, add an unit
18730       test that checks for interoperability between libscrypt_scrypt()
18731       and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt
18732       and rely on EVP_PBE_scrypt() whenever possible. Resolves
18733       ticket 16189.
18736 Changes in version 0.2.6.10 - 2015-07-12
18737   Tor version 0.2.6.10 fixes some significant stability and hidden
18738   service client bugs, bulletproofs the cryptography init process, and
18739   fixes a bug when using the sandbox code with some older versions of
18740   Linux. Everyone running an older version, especially an older version
18741   of 0.2.6, should upgrade.
18743   o Major bugfixes (hidden service clients, stability):
18744     - Stop refusing to store updated hidden service descriptors on a
18745       client. This reverts commit 9407040c59218 (which indeed fixed bug
18746       14219, but introduced a major hidden service reachability
18747       regression detailed in bug 16381). This is a temporary fix since
18748       we can live with the minor issue in bug 14219 (it just results in
18749       some load on the network) but the regression of 16381 is too much
18750       of a setback. First-round fix for bug 16381; bugfix
18751       on 0.2.6.3-alpha.
18753   o Major bugfixes (stability):
18754     - Stop crashing with an assertion failure when parsing certain kinds
18755       of malformed or truncated microdescriptors. Fixes bug 16400;
18756       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
18757       by "cypherpunks_backup".
18758     - Stop random client-side assertion failures that could occur when
18759       connecting to a busy hidden service, or connecting to a hidden
18760       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
18761       on 0.1.0.1-rc.
18763   o Minor features (geoip):
18764     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
18765     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
18767   o Minor bugfixes (crypto error-handling):
18768     - Check for failures from crypto_early_init, and refuse to continue.
18769       A previous typo meant that we could keep going with an
18770       uninitialized crypto library, and would have OpenSSL initialize
18771       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
18772       when implementing ticket 4900. Patch by "teor".
18774   o Minor bugfixes (Linux seccomp2 sandbox):
18775     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
18776       these when eventfd2() support is missing. Fixes bug 16363; bugfix
18777       on 0.2.6.3-alpha. Patch from "teor".
18780 Changes in version 0.2.6.9 - 2015-06-11
18781   Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the
18782   requirements for receiving an HSDir flag, and addresses some other small
18783   bugs in the systemd and sandbox code. Clients using circuit isolation
18784   should upgrade; all directory authorities should upgrade.
18786   o Major bugfixes (client-side privacy):
18787     - Properly separate out each SOCKSPort when applying stream
18788       isolation. The error occurred because each port's session group was
18789       being overwritten by a default value when the listener connection
18790       was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch
18791       by "jojelino".
18793   o Minor feature (directory authorities, security):
18794     - The HSDir flag given by authorities now requires the Stable flag.
18795       For the current network, this results in going from 2887 to 2806
18796       HSDirs. Also, it makes it harder for an attacker to launch a sybil
18797       attack by raising the effort for a relay to become Stable which
18798       takes at the very least 7 days to do so and by keeping the 96
18799       hours uptime requirement for HSDir. Implements ticket 8243.
18801   o Minor bugfixes (compilation):
18802     - Build with --enable-systemd correctly when libsystemd is
18803       installed, but systemd is not. Fixes bug 16164; bugfix on
18804       0.2.6.3-alpha. Patch from Peter Palfrader.
18806   o Minor bugfixes (Linux seccomp2 sandbox):
18807     - Fix sandboxing to work when running as a relaymby renaming of
18808       secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes
18809       bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader.
18810     - Allow systemd connections to work with the Linux seccomp2 sandbox
18811       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
18812       Peter Palfrader.
18814   o Minor bugfixes (tests):
18815     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
18816       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
18819 Changes in version 0.2.6.8 - 2015-05-21
18820   Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and
18821   fixes an authority-side bug in assigning the HSDir flag. All directory
18822   authorities should upgrade.
18824   o Major bugfixes (hidden services, backport from 0.2.7.1-alpha):
18825     - Revert commit that made directory authorities assign the HSDir
18826       flag to relays without a DirPort; this was bad because such relays
18827       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
18828       on 0.2.6.3-alpha.
18830   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
18831     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
18832       a client authorized hidden service. Fixes bug 15823; bugfix
18833       on 0.2.1.6-alpha.
18835   o Minor features (geoip):
18836     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
18837     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
18838       Country database.
18841 Changes in version 0.2.7.1-alpha - 2015-05-12
18842   Tor 0.2.7.1-alpha is the first alpha release in its series. It
18843   includes numerous small features and bugfixes against previous Tor
18844   versions, and numerous small infrastructure improvements. The most
18845   notable features are several new ways for controllers to interact with
18846   the hidden services subsystem.
18848   o New system requirements:
18849     - Tor no longer includes workarounds to support Libevent versions
18850       before 1.3e. Libevent 2.0 or later is recommended. Closes
18851       ticket 15248.
18853   o Major features (controller):
18854     - Add the ADD_ONION and DEL_ONION commands that allow the creation
18855       and management of hidden services via the controller. Closes
18856       ticket 6411.
18857     - New "GETINFO onions/current" and "GETINFO onions/detached"
18858       commands to get information about hidden services created via the
18859       controller. Part of ticket 6411.
18860     - New HSFETCH command to launch a request for a hidden service
18861       descriptor. Closes ticket 14847.
18862     - New HSPOST command to upload a hidden service descriptor. Closes
18863       ticket 3523. Patch by "DonnchaC".
18865   o Major bugfixes (hidden services):
18866     - Revert commit that made directory authorities assign the HSDir
18867       flag to relays without a DirPort; this was bad because such relays
18868       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
18869       on 0.2.6.3-alpha.
18871   o Minor features (clock-jump tolerance):
18872     - Recover better when our clock jumps back many hours, like might
18873       happen for Tails or Whonix users who start with a very wrong
18874       hardware clock, use Tor to discover a more accurate time, and then
18875       fix their clock. Resolves part of ticket 8766.
18877   o Minor features (command-line interface):
18878     - Make --hash-password imply --hush to prevent unnecessary noise.
18879       Closes ticket 15542. Patch from "cypherpunks".
18880     - Print a warning whenever we find a relative file path being used
18881       as torrc option. Resolves issue 14018.
18883   o Minor features (controller):
18884     - Add DirAuthority lines for default directory authorities to the
18885       output of the "GETINFO config/defaults" command if not already
18886       present. Implements ticket 14840.
18887     - Controllers can now use "GETINFO hs/client/desc/id/..." to
18888       retrieve items from the client's hidden service descriptor cache.
18889       Closes ticket 14845.
18890     - Implement a new controller command "GETINFO status/fresh-relay-
18891       descs" to fetch a descriptor/extrainfo pair that was generated on
18892       demand just for the controller's use. Implements ticket 14784.
18894   o Minor features (DoS-resistance):
18895     - Make it harder for attackers to overload hidden services with
18896       introductions, by blocking multiple introduction requests on the
18897       same circuit. Resolves ticket 15515.
18899   o Minor features (geoip):
18900     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
18901     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
18902       Country database.
18904   o Minor features (HS popularity countermeasure):
18905     - To avoid leaking HS popularity, don't cycle the introduction point
18906       when we've handled a fixed number of INTRODUCE2 cells but instead
18907       cycle it when a random number of introductions is reached, thus
18908       making it more difficult for an attacker to find out the amount of
18909       clients that have used the introduction point for a specific HS.
18910       Closes ticket 15745.
18912   o Minor features (logging):
18913     - Include the Tor version in all LD_BUG log messages, since people
18914       tend to cut and paste those into the bugtracker. Implements
18915       ticket 15026.
18917   o Minor features (pluggable transports):
18918     - When launching managed pluggable transports on Linux systems,
18919       attempt to have the kernel deliver a SIGTERM on tor exit if the
18920       pluggable transport process is still running. Resolves
18921       ticket 15471.
18922     - When launching managed pluggable transports, setup a valid open
18923       stdin in the child process that can be used to detect if tor has
18924       terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable
18925       can be used by implementations to detect this new behavior.
18926       Resolves ticket 15435.
18928   o Minor features (testing):
18929     - Add a test to verify that the compiler does not eliminate our
18930       memwipe() implementation. Closes ticket 15377.
18931     - Add make rule `check-changes` to verify the format of changes
18932       files. Closes ticket 15180.
18933     - Add unit tests for control_event_is_interesting(). Add a compile-
18934       time check that the number of events doesn't exceed the capacity
18935       of control_event_t.event_mask. Closes ticket 15431, checks for
18936       bugs similar to 13085. Patch by "teor".
18937     - Command-line argument tests moved to Stem. Resolves ticket 14806.
18938     - Integrate the ntor, backtrace, and zero-length keys tests into the
18939       automake test suite. Closes ticket 15344.
18940     - Remove assertions during builds to determine Tor's test coverage.
18941       We don't want to trigger these even in assertions, so including
18942       them artificially makes our branch coverage look worse than it is.
18943       This patch provides the new test-stem-full and coverage-html-full
18944       configure options. Implements ticket 15400.
18946   o Minor bugfixes (build):
18947     - Improve out-of-tree builds by making non-standard rules work and
18948       clean up additional files and directories. Fixes bug 15053; bugfix
18949       on 0.2.7.0-alpha.
18951   o Minor bugfixes (command-line interface):
18952     - When "--quiet" is provided along with "--validate-config", do not
18953       write anything to stdout on success. Fixes bug 14994; bugfix
18954       on 0.2.3.3-alpha.
18955     - When complaining about bad arguments to "--dump-config", use
18956       stderr, not stdout.
18958   o Minor bugfixes (configuration, unit tests):
18959     - Only add the default fallback directories when the DirAuthorities,
18960       AlternateDirAuthority, and FallbackDir directory config options
18961       are set to their defaults. The default fallback directory list is
18962       currently empty, this fix will only change tor's behavior when it
18963       has default fallback directories. Includes unit tests for
18964       consider_adding_dir_servers(). Fixes bug 15642; bugfix on
18965       90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
18967   o Minor bugfixes (correctness):
18968     - For correctness, avoid modifying a constant string in
18969       handle_control_postdescriptor. Fixes bug 15546; bugfix
18970       on 0.1.1.16-rc.
18971     - Remove side-effects from tor_assert() calls. This was harmless,
18972       because we never disable assertions, but it is bad style and
18973       unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36,
18974       and 0.2.0.10.
18976   o Minor bugfixes (hidden service):
18977     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
18978       a client authorized hidden service. Fixes bug 15823; bugfix
18979       on 0.2.1.6-alpha.
18980     - Remove an extraneous newline character from the end of hidden
18981       service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha.
18983   o Minor bugfixes (interface):
18984     - Print usage information for --dump-config when it is used without
18985       an argument. Also, fix the error message to use different wording
18986       and add newline at the end. Fixes bug 15541; bugfix
18987       on 0.2.5.1-alpha.
18989   o Minor bugfixes (logs):
18990     - When building Tor under Clang, do not include an extra set of
18991       parentheses in log messages that include function names. Fixes bug
18992       15269; bugfix on every released version of Tor when compiled with
18993       recent enough Clang.
18995   o Minor bugfixes (network):
18996     - When attempting to use fallback technique for network interface
18997       lookup, disregard loopback and multicast addresses since they are
18998       unsuitable for public communications.
19000   o Minor bugfixes (statistics):
19001     - Disregard the ConnDirectionStatistics torrc options when Tor is
19002       not a relay since in that mode of operation no sensible data is
19003       being collected and because Tor might run into measurement hiccups
19004       when running as a client for some time, then becoming a relay.
19005       Fixes bug 15604; bugfix on 0.2.2.35.
19007   o Minor bugfixes (test networks):
19008     - When self-testing reachability, use ExtendAllowPrivateAddresses to
19009       determine if local/private addresses imply reachability. The
19010       previous fix used TestingTorNetwork, which implies
19011       ExtendAllowPrivateAddresses, but this excluded rare configurations
19012       where ExtendAllowPrivateAddresses is set but TestingTorNetwork is
19013       not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor",
19014       issue discovered by CJ Ess.
19016   o Minor bugfixes (testing):
19017     - Check for matching value in server response in ntor_ref.py. Fixes
19018       bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
19019       by "joelanders".
19020     - Set the severity correctly when testing
19021       get_interface_addresses_ifaddrs() and
19022       get_interface_addresses_win32(), so that the tests fail gracefully
19023       instead of triggering an assertion. Fixes bug 15759; bugfix on
19024       0.2.6.3-alpha. Reported by Nicolas Derive.
19026   o Code simplification and refactoring:
19027     - Move the hacky fallback code out of get_interface_address6() into
19028       separate function and get it covered with unit-tests. Resolves
19029       ticket 14710.
19030     - Refactor hidden service client-side cache lookup to intelligently
19031       report its various failure cases, and disentangle failure cases
19032       involving a lack of introduction points. Closes ticket 14391.
19033     - Use our own Base64 encoder instead of OpenSSL's, to allow more
19034       control over the output. Part of ticket 15652.
19036   o Documentation:
19037     - Improve the descriptions of statistics-related torrc options in
19038       the manpage to describe rationale and possible uses cases. Fixes
19039       issue 15550.
19040     - Improve the layout and formatting of ./configure --help messages.
19041       Closes ticket 15024. Patch from "cypherpunks".
19042     - Standardize on the term "server descriptor" in the manual page.
19043       Previously, we had used "router descriptor", "server descriptor",
19044       and "relay descriptor" interchangeably. Part of ticket 14987.
19046   o Removed code:
19047     - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code
19048       and always use the internal Base64 decoder. The internal decoder
19049       has been part of tor since 0.2.0.10-alpha, and no one should
19050       be using the OpenSSL one. Part of ticket 15652.
19051     - Remove the 'tor_strclear()' function; use memwipe() instead.
19052       Closes ticket 14922.
19054   o Removed features:
19055     - Remove the (seldom-used) DynamicDHGroups feature. For anti-
19056       fingerprinting we now recommend pluggable transports; for forward-
19057       secrecy in TLS, we now use the P-256 group. Closes ticket 13736.
19058     - Remove the undocumented "--digests" command-line option. It
19059       complicated our build process, caused subtle build issues on
19060       multiple platforms, and is now redundant since we started
19061       including git version identifiers. Closes ticket 14742.
19062     - Tor no longer contains checks for ancient directory cache versions
19063       that didn't know about microdescriptors.
19064     - Tor no longer contains workarounds for stat files generated by
19065       super-old versions of Tor that didn't choose guards sensibly.
19068 Changes in version 0.2.4.27 - 2015-04-06
19069   Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that
19070   could be used by an attacker to crash hidden services, or crash clients
19071   visiting hidden services. Hidden services should upgrade as soon as
19072   possible; clients should upgrade whenever packages become available.
19074   This release also backports a simple improvement to make hidden
19075   services a bit less vulnerable to denial-of-service attacks.
19077   o Major bugfixes (security, hidden service):
19078     - Fix an issue that would allow a malicious client to trigger an
19079       assertion failure and halt a hidden service. Fixes bug 15600;
19080       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
19081     - Fix a bug that could cause a client to crash with an assertion
19082       failure when parsing a malformed hidden service descriptor. Fixes
19083       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
19085   o Minor features (DoS-resistance, hidden service):
19086     - Introduction points no longer allow multiple INTRODUCE1 cells to
19087       arrive on the same circuit. This should make it more expensive for
19088       attackers to overwhelm hidden services with introductions.
19089       Resolves ticket 15515.
19092 Changes in version 0.2.5.12 - 2015-04-06
19093   Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
19094   could be used by an attacker to crash hidden services, or crash clients
19095   visiting hidden services. Hidden services should upgrade as soon as
19096   possible; clients should upgrade whenever packages become available.
19098   This release also backports a simple improvement to make hidden
19099   services a bit less vulnerable to denial-of-service attacks.
19101   o Major bugfixes (security, hidden service):
19102     - Fix an issue that would allow a malicious client to trigger an
19103       assertion failure and halt a hidden service. Fixes bug 15600;
19104       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
19105     - Fix a bug that could cause a client to crash with an assertion
19106       failure when parsing a malformed hidden service descriptor. Fixes
19107       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
19109   o Minor features (DoS-resistance, hidden service):
19110     - Introduction points no longer allow multiple INTRODUCE1 cells to
19111       arrive on the same circuit. This should make it more expensive for
19112       attackers to overwhelm hidden services with introductions.
19113       Resolves ticket 15515.
19116 Changes in version 0.2.6.7 - 2015-04-06
19117   Tor 0.2.6.7 fixes two security issues that could be used by an
19118   attacker to crash hidden services, or crash clients visiting hidden
19119   services. Hidden services should upgrade as soon as possible; clients
19120   should upgrade whenever packages become available.
19122   This release also contains two simple improvements to make hidden
19123   services a bit less vulnerable to denial-of-service attacks.
19125   o Major bugfixes (security, hidden service):
19126     - Fix an issue that would allow a malicious client to trigger an
19127       assertion failure and halt a hidden service. Fixes bug 15600;
19128       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
19129     - Fix a bug that could cause a client to crash with an assertion
19130       failure when parsing a malformed hidden service descriptor. Fixes
19131       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
19133   o Minor features (DoS-resistance, hidden service):
19134     - Introduction points no longer allow multiple INTRODUCE1 cells to
19135       arrive on the same circuit. This should make it more expensive for
19136       attackers to overwhelm hidden services with introductions.
19137       Resolves ticket 15515.
19138     - Decrease the amount of reattempts that a hidden service performs
19139       when its rendezvous circuits fail. This reduces the computational
19140       cost for running a hidden service under heavy load. Resolves
19141       ticket 11447.
19144 Changes in version 0.2.6.6 - 2015-03-24
19145   Tor 0.2.6.6 is the first stable release in the 0.2.6 series.
19147   It adds numerous safety, security, correctness, and performance
19148   improvements. Client programs can be configured to use more kinds of
19149   sockets, AutomapHosts works better, the multithreading backend is
19150   improved, cell transmission is refactored, test coverage is much
19151   higher, more denial-of-service attacks are handled, guard selection is
19152   improved to handle long-term guards better, pluggable transports
19153   should work a bit better, and some annoying hidden service performance
19154   bugs should be addressed.
19156   o Minor bugfixes (portability):
19157     - Use the correct datatype in the SipHash-2-4 function to prevent
19158       compilers from assuming any sort of alignment. Fixes bug 15436;
19159       bugfix on 0.2.5.3-alpha.
19161 Changes in version 0.2.6.5-rc - 2015-03-18
19162   Tor 0.2.6.5-rc is the second and (hopefully) last release candidate in
19163   the 0.2.6. It fixes a small number of bugs found in 0.2.6.4-rc.
19165   o Major bugfixes (client):
19166     - Avoid crashing when making certain configuration option changes on
19167       clients. Fixes bug 15245; bugfix on 0.2.6.3-alpha. Reported
19168       by "anonym".
19170   o Major bugfixes (pluggable transports):
19171     - Initialize the extended OR Port authentication cookie before
19172       launching pluggable transports. This prevents a race condition
19173       that occurred when server-side pluggable transports would cache the
19174       authentication cookie before it has been (re)generated. Fixes bug
19175       15240; bugfix on 0.2.5.1-alpha.
19177   o Major bugfixes (portability):
19178     - Do not crash on startup when running on Solaris. Fixes a bug
19179       related to our fix for 9495; bugfix on 0.2.6.1-alpha. Reported
19180       by "ruebezahl".
19182   o Minor features (heartbeat):
19183     - On relays, report how many connections we negotiated using each
19184       version of the Tor link protocols. This information will let us
19185       know if removing support for very old versions of the Tor
19186       protocols is harming the network. Closes ticket 15212.
19188   o Code simplification and refactoring:
19189     - Refactor main loop to extract the 'loop' part. This makes it
19190       easier to run Tor under Shadow. Closes ticket 15176.
19193 Changes in version 0.2.5.11 - 2015-03-17
19194   Tor 0.2.5.11 is the second stable release in the 0.2.5 series.
19196   It backports several bugfixes from the 0.2.6 branch, including a
19197   couple of medium-level security fixes for relays and exit nodes.
19198   It also updates the list of directory authorities.
19200   o Directory authority changes:
19201     - Remove turtles as a directory authority.
19202     - Add longclaw as a new (v3) directory authority. This implements
19203       ticket 13296. This keeps the directory authority count at 9.
19204     - The directory authority Faravahar has a new IP address. This
19205       closes ticket 14487.
19207   o Major bugfixes (crash, OSX, security):
19208     - Fix a remote denial-of-service opportunity caused by a bug in
19209       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
19210       in OSX 10.9.
19212   o Major bugfixes (relay, stability, possible security):
19213     - Fix a bug that could lead to a relay crashing with an assertion
19214       failure if a buffer of exactly the wrong layout was passed to
19215       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
19216       0.2.0.10-alpha. Patch from 'cypherpunks'.
19217     - Do not assert if the 'data' pointer on a buffer is advanced to the
19218       very end of the buffer; log a BUG message instead. Only assert if
19219       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
19221   o Major bugfixes (exit node stability):
19222     - Fix an assertion failure that could occur under high DNS load.
19223       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
19224       diagnosed and fixed by "cypherpunks".
19226   o Major bugfixes (Linux seccomp2 sandbox):
19227     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
19228       crash during attempts to call wait4. Fixes bug 15088; bugfix on
19229       0.2.5.1-alpha. Patch from "sanic".
19231   o Minor features (controller):
19232     - New "GETINFO bw-event-cache" to get information about recent
19233       bandwidth events. Closes ticket 14128. Useful for controllers to
19234       get recent bandwidth history after the fix for ticket 13988.
19236   o Minor features (geoip):
19237     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
19238     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
19239       Country database.
19241   o Minor bugfixes (client, automapping):
19242     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
19243       no value follows the option. Fixes bug 14142; bugfix on
19244       0.2.4.7-alpha. Patch by "teor".
19245     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
19246       14195; bugfix on 0.1.0.1-rc.
19248   o Minor bugfixes (compilation):
19249     - Build without warnings with the stock OpenSSL srtp.h header, which
19250       has a duplicate declaration of SSL_get_selected_srtp_profile().
19251       Fixes bug 14220; this is OpenSSL's bug, not ours.
19253   o Minor bugfixes (directory authority):
19254     - Allow directory authorities to fetch more data from one another if
19255       they find themselves missing lots of votes. Previously, they had
19256       been bumping against the 10 MB queued data limit. Fixes bug 14261;
19257       bugfix on 0.1.2.5-alpha.
19258     - Enlarge the buffer to read bwauth generated files to avoid an
19259       issue when parsing the file in dirserv_read_measured_bandwidths().
19260       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
19262   o Minor bugfixes (statistics):
19263     - Increase period over which bandwidth observations are aggregated
19264       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
19266   o Minor bugfixes (preventative security, C safety):
19267     - When reading a hexadecimal, base-32, or base-64 encoded value from
19268       a string, always overwrite the whole output buffer. This prevents
19269       some bugs where we would look at (but fortunately, not reveal)
19270       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
19271       versions of Tor.
19274 Changes in version 0.2.4.26 - 2015-03-17
19275   Tor 0.2.4.26 includes an updated list of directory authorities.  It
19276   also backports a couple of stability and security bugfixes from 0.2.5
19277   and beyond.
19279   o Directory authority changes:
19280     - Remove turtles as a directory authority.
19281     - Add longclaw as a new (v3) directory authority. This implements
19282       ticket 13296. This keeps the directory authority count at 9.
19283     - The directory authority Faravahar has a new IP address. This
19284       closes ticket 14487.
19286   o Major bugfixes (exit node stability, also in 0.2.6.3-alpha):
19287     - Fix an assertion failure that could occur under high DNS load.
19288       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
19289       diagnosed and fixed by "cypherpunks".
19291   o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc):
19292     - Fix a bug that could lead to a relay crashing with an assertion
19293       failure if a buffer of exactly the wrong layout was passed to
19294       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
19295       0.2.0.10-alpha. Patch from 'cypherpunks'.
19296     - Do not assert if the 'data' pointer on a buffer is advanced to the
19297       very end of the buffer; log a BUG message instead. Only assert if
19298       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
19300   o Minor features (geoip):
19301     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
19302     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
19303       Country database.
19305 Changes in version 0.2.6.4-rc - 2015-03-09
19306   Tor 0.2.6.4-alpha fixes an issue in the directory code that an
19307   attacker might be able to use in order to crash certain Tor
19308   directories. It also resolves some minor issues left over from, or
19309   introduced in, Tor 0.2.6.3-alpha or earlier.
19311   o Major bugfixes (crash, OSX, security):
19312     - Fix a remote denial-of-service opportunity caused by a bug in
19313       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
19314       in OSX 10.9.
19316   o Major bugfixes (relay, stability, possible security):
19317     - Fix a bug that could lead to a relay crashing with an assertion
19318       failure if a buffer of exactly the wrong layout is passed to
19319       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
19320       0.2.0.10-alpha. Patch from "cypherpunks".
19321     - Do not assert if the 'data' pointer on a buffer is advanced to the
19322       very end of the buffer; log a BUG message instead. Only assert if
19323       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
19325   o Major bugfixes (FreeBSD IPFW transparent proxy):
19326     - Fix address detection with FreeBSD transparent proxies, when
19327       "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix
19328       on 0.2.5.4-alpha.
19330   o Major bugfixes (Linux seccomp2 sandbox):
19331     - Pass IPPROTO_TCP rather than 0 to socket(), so that the Linux
19332       seccomp2 sandbox doesn't fail. Fixes bug 14989; bugfix
19333       on 0.2.6.3-alpha.
19334     - Allow AF_UNIX hidden services to be used with the seccomp2
19335       sandbox. Fixes bug 15003; bugfix on 0.2.6.3-alpha.
19336     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
19337       crash during attempts to call wait4. Fixes bug 15088; bugfix on
19338       0.2.5.1-alpha. Patch from "sanic".
19340   o Minor features (controller):
19341     - Messages about problems in the bootstrap process now include
19342       information about the server we were trying to connect to when we
19343       noticed the problem. Closes ticket 15006.
19345   o Minor features (geoip):
19346     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
19347     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
19348       Country database.
19350   o Minor features (logs):
19351     - Quiet some log messages in the heartbeat and at startup. Closes
19352       ticket 14950.
19354   o Minor bugfixes (certificate handling):
19355     - If an authority operator accidentally makes a signing certificate
19356       with a future publication time, do not discard its real signing
19357       certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.
19358     - Remove any old authority certificates that have been superseded
19359       for at least two days. Previously, we would keep superseded
19360       certificates until they expired, if they were published close in
19361       time to the certificate that superseded them. Fixes bug 11454;
19362       bugfix on 0.2.1.8-alpha.
19364   o Minor bugfixes (compilation):
19365     - Fix a compilation warning on s390. Fixes bug 14988; bugfix
19366       on 0.2.5.2-alpha.
19367     - Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix
19368       on 0.2.6.2-alpha.
19370   o Minor bugfixes (testing):
19371     - Fix endianness issues in unit test for resolve_my_address() to
19372       have it pass on big endian systems. Fixes bug 14980; bugfix on
19373       Tor 0.2.6.3-alpha.
19374     - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug
19375       15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt.
19376     - When running the new 'make test-stem' target, use the configured
19377       python binary. Fixes bug 15037; bugfix on 0.2.6.3-alpha. Patch
19378       from "cypherpunks".
19379     - When running the zero-length-keys tests, do not use the default
19380       torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
19381       by "reezer".
19383   o Directory authority IP change:
19384     - The directory authority Faravahar has a new IP address. This
19385       closes ticket 14487.
19387   o Removed code:
19388     - Remove some lingering dead code that once supported mempools.
19389       Mempools were disabled by default in 0.2.5, and removed entirely
19390       in 0.2.6.3-alpha. Closes more of ticket 14848; patch
19391       by "cypherpunks".
19394 Changes in version 0.2.6.3-alpha - 2015-02-19
19395   Tor 0.2.6.3-alpha is the third (and hopefully final) alpha release in
19396   the 0.2.6.x series. It introduces support for more kinds of sockets,
19397   makes it harder to accidentally run an exit, improves our
19398   multithreading backend, incorporates several fixes for the
19399   AutomapHostsOnResolve option, and fixes numerous other bugs besides.
19401   If no major regressions or security holes are found in this version,
19402   the next version will be a release candidate.
19404   o Deprecated versions:
19405     - Tor relays older than 0.2.4.18-rc are no longer allowed to
19406       advertise themselves on the network. Closes ticket 13555.
19408   o Major features (security, unix domain sockets):
19409     - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk
19410       applications can reach Tor without having to create AF_INET or
19411       AF_INET6 sockets, meaning they can completely disable their
19412       ability to make non-Tor network connections. To create a socket of
19413       this type, use "SocksPort unix:/path/to/socket". Implements
19414       ticket 12585.
19415     - Support mapping hidden service virtual ports to AF_UNIX sockets.
19416       The syntax is "HiddenServicePort 80 unix:/path/to/socket".
19417       Implements ticket 11485.
19419   o Major features (changed defaults):
19420     - Prevent relay operators from unintentionally running exits: When a
19421       relay is configured as an exit node, we now warn the user unless
19422       the "ExitRelay" option is set to 1. We warn even more loudly if
19423       the relay is configured with the default exit policy, since this
19424       can indicate accidental misconfiguration. Setting "ExitRelay 0"
19425       stops Tor from running as an exit relay. Closes ticket 10067.
19427   o Major features (directory system):
19428     - When downloading server- or microdescriptors from a directory
19429       server, we no longer launch multiple simultaneous requests to the
19430       same server. This reduces load on the directory servers,
19431       especially when directory guards are in use. Closes ticket 9969.
19432     - When downloading server- or microdescriptors over a tunneled
19433       connection, do not limit the length of our requests to what the
19434       Squid proxy is willing to handle. Part of ticket 9969.
19435     - Authorities can now vote on the correct digests and latest
19436       versions for different software packages. This allows packages
19437       that include Tor to use the Tor authority system as a way to get
19438       notified of updates and their correct digests. Implements proposal
19439       227. Closes ticket 10395.
19441   o Major features (guards):
19442     - Introduce the Guardfraction feature to improves load balancing on
19443       guard nodes. Specifically, it aims to reduce the traffic gap that
19444       guard nodes experience when they first get the Guard flag. This is
19445       a required step if we want to increase the guard lifetime to 9
19446       months or greater.  Closes ticket 9321.
19448   o Major features (performance):
19449     - Make the CPU worker implementation more efficient by avoiding the
19450       kernel and lengthening pipelines. The original implementation used
19451       sockets to transfer data from the main thread to the workers, and
19452       didn't allow any thread to be assigned more than a single piece of
19453       work at once. The new implementation avoids communications
19454       overhead by making requests in shared memory, avoiding kernel IO
19455       where possible, and keeping more requests in flight at once.
19456       Implements ticket 9682.
19458   o Major features (relay):
19459     - Raise the minimum acceptable configured bandwidth rate for bridges
19460       to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were
19461       20 KiB/sec.) Closes ticket 13822.
19463   o Major bugfixes (exit node stability):
19464     - Fix an assertion failure that could occur under high DNS load.
19465       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
19466       diagnosed and fixed by "cypherpunks".
19468   o Major bugfixes (mixed relay-client operation):
19469     - When running as a relay and client at the same time (not
19470       recommended), if we decide not to use a new guard because we want
19471       to retry older guards, only close the locally-originating circuits
19472       passing through that guard. Previously we would close all the
19473       circuits through that guard. Fixes bug 9819; bugfix on
19474       0.2.1.1-alpha. Reported by "skruffy".
19476   o Minor features (build):
19477     - New --disable-system-torrc compile-time option to prevent Tor from
19478       looking for the system-wide torrc or torrc-defaults files.
19479       Resolves ticket 13037.
19481   o Minor features (controller):
19482     - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller
19483       events so controllers can observe circuit isolation inputs. Closes
19484       ticket 8405.
19485     - ControlPort now supports the unix:/path/to/socket syntax as an
19486       alternative to the ControlSocket option, for consistency with
19487       SocksPort and HiddenServicePort. Closes ticket 14451.
19488     - New "GETINFO bw-event-cache" to get information about recent
19489       bandwidth events. Closes ticket 14128. Useful for controllers to
19490       get recent bandwidth history after the fix for ticket 13988.
19492   o Minor features (Denial of service resistance):
19493     - Count the total number of bytes used storing hidden service
19494       descriptors against the value of MaxMemInQueues. If we're low on
19495       memory, and more than 20% of our memory is used holding hidden
19496       service descriptors, free them until no more than 10% of our
19497       memory holds hidden service descriptors. Free the least recently
19498       fetched descriptors first. Resolves ticket 13806.
19499     - When we have recently been under memory pressure (over 3/4 of
19500       MaxMemInQueues is allocated), then allocate smaller zlib objects
19501       for small requests. Closes ticket 11791.
19503   o Minor features (geoip):
19504     - Update geoip and geoip6 files to the January 7 2015 Maxmind
19505       GeoLite2 Country database.
19507   o Minor features (guard nodes):
19508     - Reduce the time delay before saving guard status to disk from 10
19509       minutes to 30 seconds (or from one hour to 10 minutes if
19510       AvoidDiskWrites is set). Closes ticket 12485.
19512   o Minor features (hidden service):
19513     - Make Sybil attacks against hidden services harder by changing the
19514       minimum time required to get the HSDir flag from 25 hours up to 96
19515       hours. Addresses ticket 14149.
19516     - New option "HiddenServiceAllowUnknownPorts" to allow hidden
19517       services to disable the anti-scanning feature introduced in
19518       0.2.6.2-alpha. With this option not set, a connection to an
19519       unlisted port closes the circuit. With this option set, only a
19520       RELAY_DONE cell is sent. Closes ticket 14084.
19522   o Minor features (interface):
19523     - Implement "-f -" command-line option to read torrc configuration
19524       from standard input, if you don't want to store the torrc file in
19525       the file system. Implements feature 13865.
19527   o Minor features (logging):
19528     - Add a count of unique clients to the bridge heartbeat message.
19529       Resolves ticket 6852.
19530     - Suppress "router info incompatible with extra info" message when
19531       reading extrainfo documents from cache. (This message got loud
19532       around when we closed bug 9812 in 0.2.6.2-alpha.) Closes
19533       ticket 13762.
19534     - Elevate hidden service authorized-client message from DEBUG to
19535       INFO. Closes ticket 14015.
19537   o Minor features (stability):
19538     - Add assertions in our hash-table iteration code to check for
19539       corrupted values that could cause infinite loops. Closes
19540       ticket 11737.
19542   o Minor features (systemd):
19543     - Various improvements and modernizations in systemd hardening
19544       support. Closes ticket 13805. Patch from Craig Andrews.
19546   o Minor features (testing networks):
19547     - Drop the minimum RendPostPeriod on a testing network to 5 seconds,
19548       and the default on a testing network to 2 minutes. Drop the
19549       MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but
19550       keep the default on a testing network at 30 seconds. This reduces
19551       HS bootstrap time to around 25 seconds. Also, change the default
19552       time in test-network.sh to match. Closes ticket 13401. Patch
19553       by "teor".
19554     - Create TestingDirAuthVoteHSDir to correspond to
19555       TestingDirAuthVoteExit/Guard. Ensures that authorities vote the
19556       HSDir flag for the listed relays regardless of uptime or ORPort
19557       connectivity. Respects the value of VoteOnHidServDirectoriesV2.
19558       Partial implementation for ticket 14067. Patch by "teor".
19560   o Minor features (tor2web mode):
19561     - Introduce the config option Tor2webRendezvousPoints, which allows
19562       clients in Tor2webMode to select a specific Rendezvous Point to be
19563       used in HS circuits. This might allow better performance for
19564       Tor2Web nodes. Implements ticket 12844.
19566   o Minor bugfixes (client DNS):
19567     - Report the correct cached DNS expiration times on SOCKS port or in
19568       DNS replies. Previously, we would report everything as "never
19569       expires." Fixes bug 14193; bugfix on 0.2.3.17-beta.
19570     - Avoid a small memory leak when we find a cached answer for a
19571       reverse DNS lookup in a client-side DNS cache. (Remember, client-
19572       side DNS caching is off by default, and is not recommended.) Fixes
19573       bug 14259; bugfix on 0.2.0.1-alpha.
19575   o Minor bugfixes (client, automapping):
19576     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
19577       no value follows the option. Fixes bug 14142; bugfix on
19578       0.2.4.7-alpha. Patch by "teor".
19579     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
19580       14195; bugfix on 0.1.0.1-rc.
19581     - Prevent changes to other options from removing the wildcard value
19582       "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix
19583       on 0.2.0.1-alpha.
19584     - Allow MapAddress and AutomapHostsOnResolve to work together when
19585       an address is mapped into another address type (like .onion) that
19586       must be automapped at resolve time. Fixes bug 7555; bugfix
19587       on 0.2.0.1-alpha.
19589   o Minor bugfixes (client, bridges):
19590     - When we are using bridges and we had a network connectivity
19591       problem, only retry connecting to our currently configured
19592       bridges, not all bridges we know about and remember using. Fixes
19593       bug 14216; bugfix on 0.2.2.17-alpha.
19595   o Minor bugfixes (client, IPv6):
19596     - Reject socks requests to literal IPv6 addresses when IPv6Traffic
19597       flag is not set; and not because the NoIPv4Traffic flag was set.
19598       Previously we'd looked at the NoIPv4Traffic flag for both types of
19599       literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha.
19601   o Minor bugfixes (compilation):
19602     - The address of an array in the middle of a structure will always
19603       be non-NULL. clang recognises this and complains. Disable the
19604       tautologous and redundant check to silence this warning. Fixes bug
19605       14001; bugfix on 0.2.1.2-alpha.
19606     - Avoid warnings when building with systemd 209 or later. Fixes bug
19607       14072; bugfix on 0.2.6.2-alpha. Patch from "h.venev".
19608     - Compile correctly with (unreleased) OpenSSL 1.1.0 headers.
19609       Addresses ticket 14188.
19610     - Build without warnings with the stock OpenSSL srtp.h header, which
19611       has a duplicate declaration of SSL_get_selected_srtp_profile().
19612       Fixes bug 14220; this is OpenSSL's bug, not ours.
19613     - Do not compile any code related to Tor2Web mode when Tor2Web mode
19614       is not enabled at compile time. Previously, this code was included
19615       in a disabled state. See discussion on ticket 12844.
19616     - Remove the --disable-threads configure option again. It was
19617       accidentally partially reintroduced in 29ac883606d6d. Fixes bug
19618       14819; bugfix on 0.2.6.2-alpha.
19620   o Minor bugfixes (controller):
19621     - Report "down" in response to the "GETINFO entry-guards" command
19622       when relays are down with an unreachable_since value. Previously,
19623       we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha.
19624     - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug
19625       14116; bugfix on 0.2.2.9-alpha.
19626     - Add a code for the END_CIRC_REASON_IP_NOW_REDUNDANT circuit close
19627       reason. Fixes bug 14207; bugfix on 0.2.6.2-alpha.
19629   o Minor bugfixes (directory authority):
19630     - Allow directory authorities to fetch more data from one another if
19631       they find themselves missing lots of votes. Previously, they had
19632       been bumping against the 10 MB queued data limit. Fixes bug 14261;
19633       bugfix on 0.1.2.5-alpha.
19634     - Do not attempt to download extrainfo documents which we will be
19635       unable to validate with a matching server descriptor. Fixes bug
19636       13762; bugfix on 0.2.0.1-alpha.
19637     - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the
19638       control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha.
19639     - Enlarge the buffer to read bwauth generated files to avoid an
19640       issue when parsing the file in dirserv_read_measured_bandwidths().
19641       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
19643   o Minor bugfixes (file handling):
19644     - Stop failing when key files are zero-length. Instead, generate new
19645       keys, and overwrite the empty key files. Fixes bug 13111; bugfix
19646       on all versions of Tor. Patch by "teor".
19647     - Stop generating a fresh .old RSA onion key file when the .old file
19648       is missing. Fixes part of 13111; bugfix on 0.0.6rc1.
19649     - Avoid overwriting .old key files with empty key files.
19650     - Skip loading zero-length extrainfo store, router store, stats,
19651       state, and key files.
19652     - Avoid crashing when trying to reload a torrc specified as a
19653       relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix
19654       on 0.2.3.11-alpha.
19656   o Minor bugfixes (hidden services):
19657     - Close the introduction circuit when we have no more usable intro
19658       points, instead of waiting for it to time out. This also ensures
19659       that no follow-up HS descriptor fetch is triggered when the
19660       circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6.
19661     - When fetching a hidden service descriptor for a down service that
19662       was recently up, do not keep refetching until we try the same
19663       replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha.
19664     - Successfully launch Tor with a nonexistent hidden service
19665       directory. Our fix for bug 13942 didn't catch this case. Fixes bug
19666       14106; bugfix on 0.2.6.2-alpha.
19668   o Minor bugfixes (logging):
19669     - Avoid crashing when there are more log domains than entries in
19670       domain_list. Bugfix on 0.2.3.1-alpha.
19671     - Add a string representation for LD_SCHED. Fixes bug 14740; bugfix
19672       on 0.2.6.1-alpha.
19673     - Don't log messages to stdout twice when starting up. Fixes bug
19674       13993; bugfix on 0.2.6.1-alpha.
19676   o Minor bugfixes (parsing):
19677     - Stop accepting milliseconds (or other junk) at the end of
19678       descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25.
19679     - Support two-number and three-number version numbers correctly, in
19680       case we change the Tor versioning system in the future. Fixes bug
19681       13661; bugfix on 0.0.8pre1.
19683   o Minor bugfixes (path counting):
19684     - When deciding whether the consensus lists any exit nodes, count
19685       the number listed in the consensus, not the number we have
19686       descriptors for. Fixes part of bug 14918; bugfix on 0.2.6.2-alpha.
19687     - When deciding whether we have any exit nodes, only examine
19688       ExitNodes when the ExitNodes option is actually set. Fixes part of
19689       bug 14918; bugfix on 0.2.6.2-alpha.
19690     - Get rid of redundant and possibly scary warnings that we are
19691       missing directory information while we bootstrap. Fixes part of
19692       bug 14918; bugfix on 0.2.6.2-alpha.
19694   o Minor bugfixes (portability):
19695     - Fix the ioctl()-based network interface lookup code so that it
19696       will work on systems that have variable-length struct ifreq, for
19697       example Mac OS X.
19698     - Fix scheduler compilation on targets where char is unsigned. Fixes
19699       bug 14764; bugfix on 0.2.6.2-alpha. Reported by Christian Kujau.
19701   o Minor bugfixes (sandbox):
19702     - Allow glibc fatal errors to be sent to stderr before Tor exits.
19703       Previously, glibc would try to write them to /dev/tty, and the
19704       sandbox would trap the call and make Tor exit prematurely. Fixes
19705       bug 14759; bugfix on 0.2.5.1-alpha.
19707   o Minor bugfixes (shutdown):
19708     - When shutting down, always call event_del() on lingering read or
19709       write events before freeing them. Otherwise, we risk double-frees
19710       or read-after-frees in event_base_free(). Fixes bug 12985; bugfix
19711       on 0.1.0.2-rc.
19713   o Minor bugfixes (small memory leaks):
19714     - Avoid leaking memory when using IPv6 virtual address mappings.
19715       Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van
19716       der Woerdt.
19718   o Minor bugfixes (statistics):
19719     - Increase period over which bandwidth observations are aggregated
19720       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
19722   o Minor bugfixes (systemd support):
19723     - Fix detection and operation of systemd watchdog. Fixes part of bug
19724       14141; bugfix on 0.2.6.2-alpha. Patch from Tomasz Torcz.
19725     - Run correctly under systemd with the RunAsDaemon option set. Fixes
19726       part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz.
19727     - Inform the systemd supervisor about more changes in the Tor
19728       process status. Implements part of ticket 14141. Patch from
19729       Tomasz Torcz.
19730     - Cause the "--disable-systemd" option to actually disable systemd
19731       support. Fixes bug 14350; bugfix on 0.2.6.2-alpha. Patch
19732       from "blueness".
19734   o Minor bugfixes (TLS):
19735     - Check more thoroughly throughout the TLS code for possible
19736       unlogged TLS errors. Possible diagnostic or fix for bug 13319.
19738   o Minor bugfixes (transparent proxy):
19739     - Use getsockname, not getsockopt, to retrieve the address for a
19740       TPROXY-redirected connection. Fixes bug 13796; bugfix
19741       on 0.2.5.2-alpha.
19743   o Code simplification and refactoring:
19744     - Move fields related to isolating and configuring client ports into
19745       a shared structure. Previously, they were duplicated across
19746       port_cfg_t, listener_connection_t, and edge_connection_t. Failure
19747       to copy them correctly had been the cause of at least one bug in
19748       the past. Closes ticket 8546.
19749     - Refactor the get_interface_addresses_raw() doom-function into
19750       multiple smaller and simpler subfunctions. Cover the resulting
19751       subfunctions with unit-tests. Fixes a significant portion of
19752       issue 12376.
19753     - Remove workaround in dirserv_thinks_router_is_hs_dir() that was
19754       only for version <= 0.2.2.24 which is now deprecated. Closes
19755       ticket 14202.
19756     - Remove a test for a long-defunct broken version-one
19757       directory server.
19759   o Documentation:
19760     - Adding section on OpenBSD to our TUNING document. Thanks to mmcc
19761       for writing the OpenBSD-specific tips. Resolves ticket 13702.
19762     - Make the tor-resolve documentation match its help string and its
19763       options. Resolves part of ticket 14325.
19764     - Log a more useful error message from tor-resolve when failing to
19765       look up a hidden service address. Resolves part of ticket 14325.
19767   o Downgraded warnings:
19768     - Don't warn when we've attempted to contact a relay using the wrong
19769       ntor onion key. Closes ticket 9635.
19771   o Removed features:
19772     - To avoid confusion with the "ExitRelay" option, "ExitNode" is no
19773       longer silently accepted as an alias for "ExitNodes".
19774     - The --enable-mempool and --enable-buf-freelists options, which
19775       were originally created to work around bad malloc implementations,
19776       no longer exist. They were off-by-default in 0.2.5. Closes
19777       ticket 14848.
19779   o Testing:
19780     - Make the checkdir/perms test complete successfully even if the
19781       global umask is not 022. Fixes bug 14215; bugfix on 0.2.6.2-alpha.
19782     - Test that tor does not fail when key files are zero-length. Check
19783       that tor generates new keys, and overwrites the empty key files.
19784     - Test that tor generates new keys when keys are missing
19785       (existing behavior).
19786     - Test that tor does not overwrite key files that already contain
19787       data (existing behavior). Tests bug 13111. Patch by "teor".
19788     - New "make test-stem" target to run stem integration tests.
19789       Requires that the "STEM_SOURCE_DIR" environment variable be set.
19790       Closes ticket 14107.
19791     - Make the test_cmdline_args.py script work correctly on Windows.
19792       Patch from Gisle Vanem.
19793     - Move the slower unit tests into a new "./src/test/test-slow"
19794       binary that can be run independently of the other tests. Closes
19795       ticket 13243.
19796     - Avoid undefined behavior when sampling huge values from the
19797       Laplace distribution. This made unittests fail on Raspberry Pi.
19798       Bug found by Device. Fixes bug 14090; bugfix on 0.2.6.2-alpha.
19801 Changes in version 0.2.6.2-alpha - 2014-12-31
19802   Tor 0.2.6.2-alpha is the second alpha release in the 0.2.6.x series.
19803   It introduces a major new backend for deciding when to send cells on
19804   channels, which should lead down the road to big performance
19805   increases. It contains security and statistics features for better
19806   work on hidden services, and numerous bugfixes.
19808   This release contains many new unit tests, along with major
19809   performance improvements for running testing networks using Chutney.
19810   Thanks to a series of patches contributed by "teor", testing networks
19811   should now bootstrap in seconds, rather than minutes.
19813   o Major features (relay, infrastructure):
19814     - Complete revision of the code that relays use to decide which cell
19815       to send next. Formerly, we selected the best circuit to write on
19816       each channel, but we didn't select among channels in any
19817       sophisticated way. Now, we choose the best circuits globally from
19818       among those whose channels are ready to deliver traffic.
19820       This patch implements a new inter-cmux comparison API, a global
19821       high/low watermark mechanism and a global scheduler loop for
19822       transmission prioritization across all channels as well as among
19823       circuits on one channel. This schedule is currently tuned to
19824       (tolerantly) avoid making changes in network performance, but it
19825       should form the basis for major circuit performance increases in
19826       the future. Code by Andrea; tuning by Rob Jansen; implements
19827       ticket 9262.
19829   o Major features (hidden services):
19830     - Make HS port scanning more difficult by immediately closing the
19831       circuit when a user attempts to connect to a nonexistent port.
19832       Closes ticket 13667.
19833     - Add a HiddenServiceStatistics option that allows Tor relays to
19834       gather and publish statistics about the overall size and volume of
19835       hidden service usage. Specifically, when this option is turned on,
19836       an HSDir will publish an approximate number of hidden services
19837       that have published descriptors to it the past 24 hours. Also, if
19838       a relay has acted as a hidden service rendezvous point, it will
19839       publish the approximate amount of rendezvous cells it has relayed
19840       the past 24 hours. The statistics themselves are obfuscated so
19841       that the exact values cannot be derived. For more details see
19842       proposal 238, "Better hidden service stats from Tor relays". This
19843       feature is currently disabled by default. Implements feature 13192.
19845   o Major bugfixes (client, automap):
19846     - Repair automapping with IPv6 addresses. This automapping should
19847       have worked previously, but one piece of debugging code that we
19848       inserted to detect a regression actually caused the regression to
19849       manifest itself again. Fixes bug 13811 and bug 12831; bugfix on
19850       0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas
19851       Izquierdo Riera.
19853   o Major bugfixes (hidden services):
19854     - When closing an introduction circuit that was opened in parallel
19855       with others, don't mark the introduction point as unreachable.
19856       Previously, the first successful connection to an introduction
19857       point would make the other introduction points get marked as
19858       having timed out. Fixes bug 13698; bugfix on 0.0.6rc2.
19860   o Directory authority changes:
19861     - Remove turtles as a directory authority.
19862     - Add longclaw as a new (v3) directory authority. This implements
19863       ticket 13296. This keeps the directory authority count at 9.
19865   o Major removed features:
19866     - Tor clients no longer support connecting to hidden services
19867       running on Tor 0.2.2.x and earlier; the Support022HiddenServices
19868       option has been removed. (There shouldn't be any hidden services
19869       running these versions on the network.) Closes ticket 7803.
19871   o Minor features (client):
19872     - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks
19873       is enabled, reject requests with IP addresses as hostnames.
19874       Resolves ticket 13315.
19876   o Minor features (controller):
19877     - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to
19878       write an unscheduled heartbeat message to the log. Implements
19879       feature 9503.
19881   o Minor features (geoip):
19882     - Update geoip and geoip6 to the November 15 2014 Maxmind GeoLite2
19883       Country database.
19885   o Minor features (hidden services):
19886     - When re-enabling the network, don't try to build introduction
19887       circuits until we have successfully built a circuit. This makes
19888       hidden services come up faster when the network is re-enabled.
19889       Patch from "akwizgran". Closes ticket 13447.
19890     - When we fail to retrieve a hidden service descriptor, send the
19891       controller an "HS_DESC FAILED" controller event. Implements
19892       feature 13212.
19893     - New HiddenServiceDirGroupReadable option to cause hidden service
19894       directories and hostname files to be created group-readable. Patch
19895       from "anon", David Stainton, and "meejah". Closes ticket 11291.
19897   o Minor features (systemd):
19898     - Where supported, when running with systemd, report successful
19899       startup to systemd. Part of ticket 11016. Patch by Michael Scherer.
19900     - When running with systemd, support systemd watchdog messages. Part
19901       of ticket 11016. Patch by Michael Scherer.
19903   o Minor features (transparent proxy):
19904     - Update the transparent proxy option checks to allow for both ipfw
19905       and pf on OS X. Closes ticket 14002.
19906     - Use the correct option when using IPv6 with transparent proxy
19907       support on Linux. Resolves 13808. Patch by Francisco Blas
19908       Izquierdo Riera.
19910   o Minor bugfixes (preventative security, C safety):
19911     - When reading a hexadecimal, base-32, or base-64 encoded value from
19912       a string, always overwrite the whole output buffer. This prevents
19913       some bugs where we would look at (but fortunately, not reveal)
19914       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
19915       versions of Tor.
19916     - Clear all memory targeted by tor_addr_{to,from}_sockaddr(), not
19917       just the part that's used. This makes it harder for data leak bugs
19918       to occur in the event of other programming failures. Resolves
19919       ticket 14041.
19921   o Minor bugfixes (client, microdescriptors):
19922     - Use a full 256 bits of the SHA256 digest of a microdescriptor when
19923       computing which microdescriptors to download. This keeps us from
19924       erroneous download behavior if two microdescriptor digests ever
19925       have the same first 160 bits. Fixes part of bug 13399; bugfix
19926       on 0.2.3.1-alpha.
19927     - Reset a router's status if its microdescriptor digest changes,
19928       even if the first 160 bits remain the same. Fixes part of bug
19929       13399; bugfix on 0.2.3.1-alpha.
19931   o Minor bugfixes (compilation):
19932     - Silence clang warnings under --enable-expensive-hardening,
19933       including implicit truncation of 64 bit values to 32 bit, const
19934       char assignment to self, tautological compare, and additional
19935       parentheses around equality tests. Fixes bug 13577; bugfix
19936       on 0.2.5.4-alpha.
19937     - Fix a clang warning about checking whether an address in the
19938       middle of a structure is NULL. Fixes bug 14001; bugfix
19939       on 0.2.1.2-alpha.
19941   o Minor bugfixes (hidden services):
19942     - Correctly send a controller event when we find that a rendezvous
19943       circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha.
19944     - Pre-check directory permissions for new hidden-services to avoid
19945       at least one case of "Bug: Acting on config options left us in a
19946       broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1.
19947     - When adding a new hidden service (for example, via SETCONF), Tor
19948       no longer congratulates the user for running a relay. Fixes bug
19949       13941; bugfix on 0.2.6.1-alpha.
19950     - When fetching hidden service descriptors, we now check not only
19951       for whether we got the hidden service we had in mind, but also
19952       whether we got the particular descriptors we wanted. This prevents
19953       a class of inefficient but annoying DoS attacks by hidden service
19954       directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported
19955       by "special".
19957   o Minor bugfixes (Linux seccomp2 sandbox):
19958     - Make transparent proxy support work along with the seccomp2
19959       sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch
19960       by Francisco Blas Izquierdo Riera.
19961     - Fix a memory leak in tor-resolve when running with the sandbox
19962       enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc.
19964   o Minor bugfixes (logging):
19965     - Downgrade warnings about RSA signature failures to info log level.
19966       Emit a warning when an extra info document is found incompatible
19967       with a corresponding router descriptor. Fixes bug 9812; bugfix
19968       on 0.0.6rc3.
19969     - Make connection_ap_handshake_attach_circuit() log the circuit ID
19970       correctly. Fixes bug 13701; bugfix on 0.0.6.
19972   o Minor bugfixes (misc):
19973     - Stop allowing invalid address patterns like "*/24" that contain
19974       both a wildcard address and a bit prefix length. This affects all
19975       our address-range parsing code. Fixes bug 7484; bugfix
19976       on 0.0.2pre14.
19978   o Minor bugfixes (testing networks, fast startup):
19979     - Allow Tor to build circuits using a consensus with no exits. If
19980       the consensus has no exits (typical of a bootstrapping test
19981       network), allow Tor to build circuits once enough descriptors have
19982       been downloaded. This assists in bootstrapping a testing Tor
19983       network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch
19984       by "teor".
19985     - When V3AuthVotingInterval is low, give a lower If-Modified-Since
19986       header to directory servers. This allows us to obtain consensuses
19987       promptly when the consensus interval is very short. This assists
19988       in bootstrapping a testing Tor network. Fixes parts of bugs 13718
19989       and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor".
19990     - Stop assuming that private addresses are local when checking
19991       reachability in a TestingTorNetwork. Instead, when testing, assume
19992       all OR connections are remote. (This is necessary due to many test
19993       scenarios running all relays on localhost.) This assists in
19994       bootstrapping a testing Tor network. Fixes bug 13924; bugfix on
19995       0.1.0.1-rc. Patch by "teor".
19996     - Avoid building exit circuits from a consensus with no exits. Now
19997       thanks to our fix for 13718, we accept a no-exit network as not
19998       wholly lost, but we need to remember not to try to build exit
19999       circuits on it. Closes ticket 13814; patch by "teor".
20000     - Stop requiring exits to have non-zero bandwithcapacity in a
20001       TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
20002       ignore exit bandwidthcapacity. This assists in bootstrapping a
20003       testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix
20004       on 0.2.0.3-alpha. Patch by "teor".
20005     - Add "internal" to some bootstrap statuses when no exits are
20006       available. If the consensus does not contain Exits, Tor will only
20007       build internal circuits. In this case, relevant statuses will
20008       contain the word "internal" as indicated in the Tor control-
20009        spec.txt. When bootstrap completes, Tor will be ready to build
20010       internal circuits. If a future consensus contains Exits, exit
20011       circuits may become available. Fixes part of bug 13718; bugfix on
20012       0.2.4.10-alpha. Patch by "teor".
20013     - Decrease minimum consensus interval to 10 seconds when
20014       TestingTorNetwork is set, or 5 seconds for the first consensus.
20015       Fix assumptions throughout the code that assume larger intervals.
20016       Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch
20017       by "teor".
20018     - Avoid excluding guards from path building in minimal test
20019       networks, when we're in a test network and excluding guards would
20020       exclude all relays. This typically occurs in incredibly small tor
20021       networks, and those using "TestingAuthVoteGuard *". Fixes part of
20022       bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor".
20024   o Code simplification and refactoring:
20025     - Stop using can_complete_circuits as a global variable; access it
20026       with a function instead.
20027     - Avoid using operators directly as macro arguments: this lets us
20028       apply coccinelle transformations to our codebase more directly.
20029       Closes ticket 13172.
20030     - Combine the functions used to parse ClientTransportPlugin and
20031       ServerTransportPlugin into a single function. Closes ticket 6456.
20032     - Add inline functions and convenience macros for inspecting channel
20033       state. Refactor the code to use convenience macros instead of
20034       checking channel state directly. Fixes issue 7356.
20035     - Document all members of was_router_added_t and rename
20036       ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less
20037       confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644.
20038     - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL
20039       constant instead of hardcoded value. Fixes issue 13840.
20040     - Refactor our generic strmap and digestmap types into a single
20041       implementation, so that we can add a new digest256map
20042       type trivially.
20044   o Documentation:
20045     - Document the bridge-authority-only 'networkstatus-bridges' file.
20046       Closes ticket 13713; patch from "tom".
20047     - Fix typo in PredictedPortsRelevanceTime option description in
20048       manpage. Resolves issue 13707.
20049     - Stop suggesting that users specify relays by nickname: it isn't a
20050       good idea. Also, properly cross-reference how to specify relays in
20051       all parts of manual documenting options that take a list of
20052       relays. Closes ticket 13381.
20053     - Clarify the HiddenServiceDir option description in manpage to make
20054       it clear that relative paths are taken with respect to the current
20055       working directory. Also clarify that this behavior is not
20056       guaranteed to remain indefinitely. Fixes issue 13913.
20058   o Testing:
20059     - New tests for many parts of channel, relay, and circuitmux
20060       functionality. Code by Andrea; part of 9262.
20061     - New tests for parse_transport_line(). Part of ticket 6456.
20062     - In the unit tests, use chgrp() to change the group of the unit
20063       test temporary directory to the current user, so that the sticky
20064       bit doesn't interfere with tests that check directory groups.
20065       Closes 13678.
20066     - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch
20067       by 'rl1987'.
20070 Changes in version 0.2.6.1-alpha - 2014-10-30
20071   Tor 0.2.6.1-alpha is the first release in the Tor 0.2.6.x series. It
20072   includes numerous code cleanups and new tests, and fixes a large
20073   number of annoying bugs. Out-of-memory conditions are handled better
20074   than in 0.2.5, pluggable transports have improved proxy support, and
20075   clients now use optimistic data for contacting hidden services. Also,
20076   we are now more robust to changes in what we consider a parseable
20077   directory object, so that tightening restrictions does not have a risk
20078   of introducing infinite download loops.
20080   This is the first alpha release in a new series, so expect there to be
20081   bugs. Users who would rather test out a more stable branch should stay
20082   with 0.2.5.x for now.
20084   o New compiler and system requirements:
20085     - Tor 0.2.6.x requires that your compiler support more of the C99
20086       language standard than before. The 'configure' script now detects
20087       whether your compiler supports C99 mid-block declarations and
20088       designated initializers. If it does not, Tor will not compile.
20090       We may revisit this requirement if it turns out that a significant
20091       number of people need to build Tor with compilers that don't
20092       bother implementing a 15-year-old standard. Closes ticket 13233.
20093     - Tor no longer supports systems without threading support. When we
20094       began working on Tor, there were several systems that didn't have
20095       threads, or where the thread support wasn't able to run the
20096       threads of a single process on multiple CPUs. That no longer
20097       holds: every system where Tor needs to run well now has threading
20098       support. Resolves ticket 12439.
20100   o Removed platform support:
20101     - We no longer include special code to build on Windows CE; as far
20102       as we know, nobody has used Tor on Windows CE in a very long time.
20103       Closes ticket 11446.
20105   o Major features (bridges):
20106     - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
20107       transports if they are configured via the "TOR_PT_PROXY"
20108       environment variable. Implements proposal 232. Resolves
20109       ticket 8402.
20111   o Major features (client performance, hidden services):
20112     - Allow clients to use optimistic data when connecting to a hidden
20113       service, which should remove a round-trip from hidden service
20114       initialization. See proposal 181 for details. Implements
20115       ticket 13211.
20117   o Major features (directory system):
20118     - Upon receiving an unparseable directory object, if its digest
20119       matches what we expected, then don't try to download it again.
20120       Previously, when we got a descriptor we didn't like, we would keep
20121       trying to download it over and over. Closes ticket 11243.
20123   o Major features (sample torrc):
20124     - Add a new, infrequently-changed "torrc.minimal". This file is
20125       similar to torrc.sample, but it will change as infrequently as
20126       possible, for the benefit of users whose systems prompt them for
20127       intervention whenever a default configuration file is changed.
20128       Making this change allows us to update torrc.sample to be a more
20129       generally useful "sample torrc".
20131   o Major bugfixes (directory authorities):
20132     - Do not assign the HSDir flag to relays if they are not Valid, or
20133       currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha.
20135   o Major bugfixes (directory bandwidth performance):
20136     - Don't flush the zlib buffer aggressively when compressing
20137       directory information for clients. This should save about 7% of
20138       the bandwidth currently used for compressed descriptors and
20139       microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23.
20141   o Minor features (security, memory wiping):
20142     - Ensure we securely wipe keys from memory after
20143       crypto_digest_get_digest and init_curve25519_keypair_from_file
20144       have finished using them. Resolves ticket 13477.
20146   o Minor features (security, out-of-memory handling):
20147     - When handling an out-of-memory condition, allocate less memory for
20148       temporary data structures. Fixes issue 10115.
20149     - When handling an out-of-memory condition, consider more types of
20150       buffers, including those on directory connections, and zlib
20151       buffers. Resolves ticket 11792.
20153   o Minor features:
20154     - When identity keypair is generated for first time, log a
20155       congratulatory message that links to the new relay lifecycle
20156       document. Implements feature 10427.
20158   o Minor features (client):
20159     - Clients are now willing to send optimistic data (before they
20160       receive a 'connected' cell) to relays of any version. (Relays
20161       without support for optimistic data are no longer supported on the
20162       Tor network.) Resolves ticket 13153.
20164   o Minor features (directory authorities):
20165     - Don't list relays with a bandwidth estimate of 0 in the consensus.
20166       Implements a feature proposed during discussion of bug 13000.
20167     - In tor-gencert, report an error if the user provides the same
20168       argument more than once.
20169     - If a directory authority can't find a best consensus method in the
20170       votes that it holds, it now falls back to its favorite consensus
20171       method. Previously, it fell back to method 1. Neither of these is
20172       likely to get enough signatures, but "fall back to favorite"
20173       doesn't require us to maintain support an obsolete consensus
20174       method. Implements part of proposal 215.
20176   o Minor features (logging):
20177     - On Unix-like systems, you can now use named pipes as the target of
20178       the Log option, and other options that try to append to files.
20179       Closes ticket 12061. Patch from "carlo von lynX".
20180     - When opening a log file at startup, send it every log message that
20181       we generated between startup and opening it. Previously, log
20182       messages that were generated before opening the log file were only
20183       logged to stdout. Closes ticket 6938.
20184     - Add a TruncateLogFile option to overwrite logs instead of
20185       appending to them. Closes ticket 5583.
20187   o Minor features (portability, Solaris):
20188     - Threads are no longer disabled by default on Solaris; we believe
20189       that the versions of Solaris with broken threading support are all
20190       obsolete by now. Resolves ticket 9495.
20192   o Minor features (relay):
20193     - Re-check our address after we detect a changed IP address from
20194       getsockname(). This ensures that the controller command "GETINFO
20195       address" will report the correct value. Resolves ticket 11582.
20196       Patch from "ra".
20197     - A new AccountingRule option lets Relays set whether they'd like
20198       AccountingMax to be applied separately to inbound and outbound
20199       traffic, or applied to the sum of inbound and outbound traffic.
20200       Resolves ticket 961. Patch by "chobe".
20202   o Minor features (testing networks):
20203     - Add the TestingDirAuthVoteExit option, which lists nodes to assign
20204       the "Exit" flag regardless of their uptime, bandwidth, or exit
20205       policy. TestingTorNetwork must be set for this option to have any
20206       effect. Previously, authorities would take up to 35 minutes to
20207       give nodes the Exit flag in a test network. Partially implements
20208       ticket 13161.
20210   o Minor features (validation):
20211     - Check all date/time values passed to tor_timegm and
20212       parse_rfc1123_time for validity, taking leap years into account.
20213       Improves HTTP header validation. Implemented with bug 13476.
20214     - In correct_tm(), limit the range of values returned by system
20215       localtime(_r) and gmtime(_r) to be between the years 1 and 8099.
20216       This means we don't have to deal with negative or too large dates,
20217       even if a clock is wrong. Otherwise we might fail to read a file
20218       written by us which includes such a date. Fixes bug 13476.
20220   o Minor bugfixes (bridge clients):
20221     - When configured to use a bridge without an identity digest (not
20222       recommended), avoid launching an extra channel to it when
20223       bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha.
20225   o Minor bugfixes (bridges):
20226     - When DisableNetwork is set, do not launch pluggable transport
20227       plugins, and if any are running, terminate them. Fixes bug 13213;
20228       bugfix on 0.2.3.6-alpha.
20230   o Minor bugfixes (C correctness):
20231     - Fix several instances of possible integer overflow/underflow/NaN.
20232       Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches
20233       from "teor".
20234     - In circuit_build_times_calculate_timeout() in circuitstats.c,
20235       avoid dividing by zero in the pareto calculations. This traps
20236       under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix
20237       on 0.2.2.2-alpha.
20238     - Fix an integer overflow in format_time_interval(). Fixes bug
20239       13393; bugfix on 0.2.0.10-alpha.
20240     - Set the correct day of year value when the system's localtime(_r)
20241       or gmtime(_r) functions fail to set struct tm. Not externally
20242       visible. Fixes bug 13476; bugfix on 0.0.2pre14.
20243     - Avoid unlikely signed integer overflow in tor_timegm on systems
20244       with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14.
20246   o Minor bugfixes (client):
20247     - Fix smartlist_choose_node_by_bandwidth() so that relays with the
20248       BadExit flag are not considered worthy candidates. Fixes bug
20249       13066; bugfix on 0.1.2.3-alpha.
20250     - Use the consensus schedule for downloading consensuses, and not
20251       the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
20252     - Handle unsupported or malformed SOCKS5 requests properly by
20253       responding with the appropriate error message before closing the
20254       connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13.
20256   o Minor bugfixes (client, torrc):
20257     - Stop modifying the value of our DirReqStatistics torrc option just
20258       because we're not a bridge or relay. This bug was causing Tor
20259       Browser users to write "DirReqStatistics 0" in their torrc files
20260       as if they had chosen to change the config. Fixes bug 4244; bugfix
20261       on 0.2.3.1-alpha.
20262     - When GeoIPExcludeUnknown is enabled, do not incorrectly decide
20263       that our options have changed every time we SIGHUP. Fixes bug
20264       9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1".
20266   o Minor bugfixes (controller):
20267     - Return an error when the second or later arguments of the
20268       "setevents" controller command are invalid events. Previously we
20269       would return success while silently skipping invalid events. Fixes
20270       bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
20272   o Minor bugfixes (directory system):
20273     - Always believe that v3 directory authorities serve extra-info
20274       documents, whether they advertise "caches-extra-info" or not.
20275       Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
20276     - When running as a v3 directory authority, advertise that you serve
20277       extra-info documents so that clients who want them can find them
20278       from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
20279     - Check the BRIDGE_DIRINFO flag bitwise rather than using equality.
20280       Previously, directories offering BRIDGE_DIRINFO and some other
20281       flag (i.e. microdescriptors or extrainfo) would be ignored when
20282       looking for bridges. Partially fixes bug 13163; bugfix
20283       on 0.2.0.7-alpha.
20285   o Minor bugfixes (networking):
20286     - Check for orconns and use connection_or_close_for_error() rather
20287       than connection_mark_for_close() directly in the getsockopt()
20288       failure case of connection_handle_write_impl(). Fixes bug 11302;
20289       bugfix on 0.2.4.4-alpha.
20291   o Minor bugfixes (relay):
20292     - When generating our family list, remove spaces from around the
20293       entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
20294     - If our previous bandwidth estimate was 0 bytes, allow publishing a
20295       new relay descriptor immediately. Fixes bug 13000; bugfix
20296       on 0.1.1.6-alpha.
20298   o Minor bugfixes (testing networks):
20299     - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a
20300       testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha.
20301     - Stop using the default authorities in networks which provide both
20302       AlternateDirAuthority and AlternateBridgeAuthority. Partially
20303       fixes bug 13163; bugfix on 0.2.0.13-alpha.
20305   o Minor bugfixes (testing):
20306     - Stop spawn test failures due to a race condition between the
20307       SIGCHLD handler updating the process status, and the test reading
20308       it. Fixes bug 13291; bugfix on 0.2.3.3-alpha.
20310   o Minor bugfixes (testing, Windows):
20311     - Avoid passing an extra backslash when creating a temporary
20312       directory for running the unit tests on Windows. Fixes bug 12392;
20313       bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem.
20315   o Minor bugfixes (windows):
20316     - Remove code to special-case handling of NTE_BAD_KEYSET when
20317       acquiring windows CryptoAPI context. This error can't actually
20318       occur for the parameters we're providing. Fixes bug 10816; bugfix
20319       on 0.0.2pre26.
20321   o Minor bugfixes (zlib):
20322     - Avoid truncating a zlib stream when trying to finalize it with an
20323       empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23.
20325   o Build fixes:
20326     - Allow our configure script to build correctly with autoconf 2.62
20327       again. Fixes bug 12693; bugfix on 0.2.5.2-alpha.
20328     - Improve the error message from ./configure to make it clear that
20329       when asciidoc has not been found, the user will have to either add
20330       --disable-asciidoc argument or install asciidoc. Resolves
20331       ticket 13228.
20333   o Code simplification and refactoring:
20334     - Change the entry_is_live() function to take named bitfield
20335       elements instead of an unnamed list of booleans. Closes
20336       ticket 12202.
20337     - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c.
20338       Resolves ticket 12205.
20339     - Use calloc and reallocarray functions instead of multiply-
20340       then-malloc. This makes it less likely for us to fall victim to an
20341       integer overflow attack when allocating. Resolves ticket 12855.
20342     - Use the standard macro name SIZE_MAX, instead of our
20343       own SIZE_T_MAX.
20344     - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in
20345       functions which take them as arguments. Replace 0 with NO_DIRINFO
20346       in a function call for clarity. Seeks to prevent future issues
20347       like 13163.
20348     - Avoid 4 null pointer errors under clang static analysis by using
20349       tor_assert() to prove that the pointers aren't null. Fixes
20350       bug 13284.
20351     - Rework the API of policies_parse_exit_policy() to use a bitmask to
20352       represent parsing options, instead of a confusing mess of
20353       booleans. Resolves ticket 8197.
20354     - Introduce a helper function to parse ExitPolicy in
20355       or_options_t structure.
20357   o Documentation:
20358     - Add a doc/TUNING document with tips for handling large numbers of
20359       TCP connections when running busy Tor relay. Update the warning
20360       message to point to this file when running out of sockets
20361       operating system is allowing to use simultaneously. Resolves
20362       ticket 9708.
20364   o Removed features:
20365     - We no longer remind the user about configuration options that have
20366       been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak.
20367     - Remove our old, non-weighted bandwidth-based node selection code.
20368       Previously, we used it as a fallback when we couldn't perform
20369       weighted bandwidth-based node selection. But that would only
20370       happen in the cases where we had no consensus, or when we had a
20371       consensus generated by buggy or ancient directory authorities. In
20372       either case, it's better to use the more modern, better maintained
20373       algorithm, with reasonable defaults for the weights. Closes
20374       ticket 13126.
20375     - Remove the --disable-curve25519 configure option. Relays and
20376       clients now are required to support curve25519 and the
20377       ntor handshake.
20378     - The old "StrictEntryNodes" and "StrictExitNodes" options, which
20379       used to be deprecated synonyms for "StrictNodes", are now marked
20380       obsolete. Resolves ticket 12226.
20381     - Clients don't understand the BadDirectory flag in the consensus
20382       anymore, and ignore it.
20384   o Testing:
20385     - Refactor the function that chooses guard nodes so that it can more
20386       easily be tested; write some tests for it.
20387     - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503;
20388       bugfix on 0.2.3.1-alpha. Patch from "cypherpunks."
20389     - Create unit tests for format_time_interval(). With bug 13393.
20390     - Add unit tests for tor_timegm signed overflow, tor_timegm and
20391       parse_rfc1123_time validity checks, correct_tm year clamping. Unit
20392       tests (visible) fixes in bug 13476.
20393     - Add a "coverage-html" make target to generate HTML-visualized
20394       coverage results when building with --enable-coverage. (Requires
20395       lcov.) Patch from Kevin Murray.
20396     - Enable the backtrace handler (where supported) when running the
20397       unit tests.
20398     - Revise all unit tests that used the legacy test_* macros to
20399       instead use the recommended tt_* macros. This patch was generated
20400       with coccinelle, to avoid manual errors. Closes ticket 13119.
20402   o Distribution (systemd):
20403     - systemd unit file: only allow tor to write to /var/lib/tor and
20404       /var/log/tor. The rest of the filesystem is accessible for reading
20405       only. Patch by intrigeri; resolves ticket 12751.
20406     - systemd unit file: ensure that the process and all its children
20407       can never gain new privileges. Patch by intrigeri; resolves
20408       ticket 12939.
20409     - systemd unit file: set up /var/run/tor as writable for the Tor
20410       service. Patch by intrigeri; resolves ticket 13196.
20412   o Removed features (directory authorities):
20413     - Remove code that prevented authorities from listing Tor relays
20414       affected by CVE-2011-2769 as guards. These relays are already
20415       rejected altogether due to the minimum version requirement of
20416       0.2.3.16-alpha. Closes ticket 13152.
20417     - The "AuthDirRejectUnlisted" option no longer has any effect, as
20418       the fingerprints file (approved-routers) has been deprecated.
20419     - Directory authorities do not support being Naming dirauths anymore.
20420       The "NamingAuthoritativeDir" config option is now obsolete.
20421     - Directory authorities do not support giving out the BadDirectory
20422       flag anymore.
20423     - Directory authorities no longer advertise or support consensus
20424       methods 1 through 12 inclusive. These consensus methods were
20425       obsolete and/or insecure: maintaining the ability to support them
20426       served no good purpose. Implements part of proposal 215; closes
20427       ticket 10163.
20429   o Testing (test-network.sh):
20430     - Stop using "echo -n", as some shells' built-in echo doesn't
20431       support "-n". Instead, use "/bin/echo -n". Partially fixes
20432       bug 13161.
20433     - Stop an apparent test-network hang when used with make -j2. Fixes
20434       bug 13331.
20435     - Add a --delay option to test-network.sh, which configures the
20436       delay before the chutney network tests for data transmission.
20437       Partially implements ticket 13161.
20440 Changes in version 0.2.5.10 - 2014-10-24
20441   Tor 0.2.5.10 is the first stable release in the 0.2.5 series.
20443   It adds several new security features, including improved
20444   denial-of-service resistance for relays, new compiler hardening
20445   options, and a system-call sandbox for hardened installations on Linux
20446   (requires seccomp2). The controller protocol has several new features,
20447   resolving IPv6 addresses should work better than before, and relays
20448   should be a little more CPU-efficient. We've added support for more
20449   OpenBSD and FreeBSD transparent proxy types. We've improved the build
20450   system and testing infrastructure to allow unit testing of more parts
20451   of the Tor codebase. Finally, we've addressed several nagging pluggable
20452   transport usability issues, and included numerous other small bugfixes
20453   and features mentioned below.
20455   This release marks end-of-life for Tor 0.2.3.x; those Tor versions
20456   have accumulated many known flaws; everyone should upgrade.
20458   o Deprecated versions:
20459     - Tor 0.2.3.x has reached end-of-life; it has received no patches or
20460       attention for some while.
20463 Changes in version 0.2.5.9-rc - 2014-10-20
20464   Tor 0.2.5.9-rc is the third release candidate for the Tor 0.2.5.x
20465   series. It disables SSL3 in response to the recent "POODLE" attack
20466   (even though POODLE does not affect Tor). It also works around a crash
20467   bug caused by some operating systems' response to the "POODLE" attack
20468   (which does affect Tor). It also contains a few miscellaneous fixes.
20470   o Major security fixes:
20471     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
20472       today support TLS 1.0 or later, so we can safely turn off support
20473       for this old (and insecure) protocol. Fixes bug 13426.
20475   o Major bugfixes (openssl bug workaround):
20476     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
20477       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
20478       13471. This is a workaround for an OpenSSL bug.
20480   o Minor bugfixes:
20481     - Disable the sandbox name resolver cache when running tor-resolve:
20482       tor-resolve doesn't use the sandbox code, and turning it on was
20483       breaking attempts to do tor-resolve on a non-default server on
20484       Linux. Fixes bug 13295; bugfix on 0.2.5.3-alpha.
20486   o Compilation fixes:
20487     - Build and run correctly on systems like OpenBSD-current that have
20488       patched OpenSSL to remove get_cipher_by_char and/or its
20489       implementations. Fixes issue 13325.
20491   o Downgraded warnings:
20492     - Downgrade the severity of the 'unexpected sendme cell from client'
20493       from 'warn' to 'protocol warning'. Closes ticket 8093.
20496 Changes in version 0.2.4.25 - 2014-10-20
20497   Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack
20498   (even though POODLE does not affect Tor). It also works around a crash
20499   bug caused by some operating systems' response to the "POODLE" attack
20500   (which does affect Tor).
20502   o Major security fixes (also in 0.2.5.9-rc):
20503     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
20504       today support TLS 1.0 or later, so we can safely turn off support
20505       for this old (and insecure) protocol. Fixes bug 13426.
20507   o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc):
20508     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
20509       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
20510       13471. This is a workaround for an OpenSSL bug.
20513 Changes in version 0.2.5.8-rc - 2014-09-22
20514   Tor 0.2.5.8-rc is the second release candidate for the Tor 0.2.5.x
20515   series. It fixes a bug that affects consistency and speed when
20516   connecting to hidden services, and it updates the location of one of
20517   the directory authorities.
20519   o Major bugfixes:
20520     - Clients now send the correct address for their chosen rendezvous
20521       point when trying to access a hidden service. They used to send
20522       the wrong address, which would still work some of the time because
20523       they also sent the identity digest of the rendezvous point, and if
20524       the hidden service happened to try connecting to the rendezvous
20525       point from a relay that already had a connection open to it,
20526       the relay would reuse that connection. Now connections to hidden
20527       services should be more robust and faster. Also, this bug meant
20528       that clients were leaking to the hidden service whether they were
20529       on a little-endian (common) or big-endian (rare) system, which for
20530       some users might have reduced their anonymity. Fixes bug 13151;
20531       bugfix on 0.2.1.5-alpha.
20533   o Directory authority changes:
20534     - Change IP address for gabelmoo (v3 directory authority).
20537 Changes in version 0.2.4.24 - 2014-09-22
20538   Tor 0.2.4.24 fixes a bug that affects consistency and speed when
20539   connecting to hidden services, and it updates the location of one of
20540   the directory authorities.
20542   o Major bugfixes:
20543     - Clients now send the correct address for their chosen rendezvous
20544       point when trying to access a hidden service. They used to send
20545       the wrong address, which would still work some of the time because
20546       they also sent the identity digest of the rendezvous point, and if
20547       the hidden service happened to try connecting to the rendezvous
20548       point from a relay that already had a connection open to it,
20549       the relay would reuse that connection. Now connections to hidden
20550       services should be more robust and faster. Also, this bug meant
20551       that clients were leaking to the hidden service whether they were
20552       on a little-endian (common) or big-endian (rare) system, which for
20553       some users might have reduced their anonymity. Fixes bug 13151;
20554       bugfix on 0.2.1.5-alpha.
20556   o Directory authority changes:
20557     - Change IP address for gabelmoo (v3 directory authority).
20559   o Minor features (geoip):
20560     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
20561       Country database.
20564 Changes in version 0.2.5.7-rc - 2014-09-11
20565   Tor 0.2.5.7-rc fixes several regressions from earlier in the 0.2.5.x
20566   release series, and some long-standing bugs related to ORPort reachability
20567   testing and failure to send CREATE cells. It is the first release
20568   candidate for the Tor 0.2.5.x series.
20570   o Major bugfixes (client, startup):
20571     - Start making circuits as soon as DisabledNetwork is turned off.
20572       When Tor started with DisabledNetwork set, it would correctly
20573       conclude that it shouldn't build circuits, but it would mistakenly
20574       cache this conclusion, and continue believing it even when
20575       DisableNetwork is set to 0. Fixes the bug introduced by the fix
20576       for bug 11200; bugfix on 0.2.5.4-alpha.
20577     - Resume expanding abbreviations for command-line options. The fix
20578       for bug 4647 accidentally removed our hack from bug 586 that
20579       rewrote HashedControlPassword to __HashedControlSessionPassword
20580       when it appears on the commandline (which allowed the user to set
20581       her own HashedControlPassword in the torrc file while the
20582       controller generates a fresh session password for each run). Fixes
20583       bug 12948; bugfix on 0.2.5.1-alpha.
20584     - Warn about attempts to run hidden services and relays in the same
20585       process: that's probably not a good idea. Closes ticket 12908.
20587   o Major bugfixes (relay):
20588     - Avoid queuing or sending destroy cells for circuit ID zero when we
20589       fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1.
20590       Found and fixed by "cypherpunks".
20591     - Fix ORPort reachability detection on relays running behind a
20592       proxy, by correctly updating the "local" mark on the controlling
20593       channel when changing the address of an or_connection_t after the
20594       handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha.
20596   o Minor features (bridge):
20597     - Add an ExtORPortCookieAuthFileGroupReadable option to make the
20598       cookie file for the ExtORPort g+r by default.
20600   o Minor features (geoip):
20601     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
20602       Country database.
20604   o Minor bugfixes (logging):
20605     - Reduce the log severity of the "Pluggable transport proxy does not
20606       provide any needed transports and will not be launched." message,
20607       since Tor Browser includes several ClientTransportPlugin lines in
20608       its torrc-defaults file, leading every Tor Browser user who looks
20609       at her logs to see these notices and wonder if they're dangerous.
20610       Resolves bug 13124; bugfix on 0.2.5.3-alpha.
20611     - Downgrade "Unexpected onionskin length after decryption" warning
20612       to a protocol-warn, since there's nothing relay operators can do
20613       about a client that sends them a malformed create cell. Resolves
20614       bug 12996; bugfix on 0.0.6rc1.
20615     - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS
20616       cell on a cannibalized or non-OR circuit. Resolves ticket 12997.
20617     - When logging information about an EXTEND2 or EXTENDED2 cell, log
20618       their names correctly. Fixes part of bug 12700; bugfix
20619       on 0.2.4.8-alpha.
20620     - When logging information about a relay cell whose command we don't
20621       recognize, log its command as an integer. Fixes part of bug 12700;
20622       bugfix on 0.2.1.10-alpha.
20623     - Escape all strings from the directory connection before logging
20624       them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor".
20626   o Minor bugfixes (controller):
20627     - Restore the functionality of CookieAuthFileGroupReadable. Fixes
20628       bug 12864; bugfix on 0.2.5.1-alpha.
20629     - Actually send TRANSPORT_LAUNCHED and HS_DESC events to
20630       controllers. Fixes bug 13085; bugfix on 0.2.5.1-alpha. Patch
20631       by "teor".
20633   o Minor bugfixes (compilation):
20634     - Fix compilation of test.h with MSVC. Patch from Gisle Vanem;
20635       bugfix on 0.2.5.5-alpha.
20636     - Make the nmake make files work again. Fixes bug 13081. Bugfix on
20637       0.2.5.1-alpha. Patch from "NewEraCracker".
20638     - In routerlist_assert_ok(), don't take the address of a
20639       routerinfo's cache_info member unless that routerinfo is non-NULL.
20640       Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor".
20641     - Fix a large number of false positive warnings from the clang
20642       analyzer static analysis tool. This should make real warnings
20643       easier for clang analyzer to find. Patch from "teor". Closes
20644       ticket 13036.
20646   o Distribution (systemd):
20647     - Verify configuration file via ExecStartPre in the systemd unit
20648       file. Patch from intrigeri; resolves ticket 12730.
20649     - Explicitly disable RunAsDaemon in the systemd unit file. Our
20650       current systemd unit uses "Type = simple", so systemd does not
20651       expect tor to fork. If the user has "RunAsDaemon 1" in their
20652       torrc, then things won't work as expected. This is e.g. the case
20653       on Debian (and derivatives), since there we pass "--defaults-torrc
20654       /usr/share/tor/tor-service-defaults-torrc" (that contains
20655       "RunAsDaemon 1") by default. Patch by intrigeri; resolves
20656       ticket 12731.
20658   o Documentation:
20659     - Adjust the URLs in the README to refer to the new locations of
20660       several documents on the website. Fixes bug 12830. Patch from
20661       Matt Pagan.
20662     - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves
20663       ticket 12878.
20666 Changes in version 0.2.5.6-alpha - 2014-07-28
20667   Tor 0.2.5.6-alpha brings us a big step closer to slowing down the
20668   risk from guard rotation, and fixes a variety of other issues to get
20669   us closer to a release candidate.
20671   o Major features (also in 0.2.4.23):
20672     - Make the number of entry guards configurable via a new
20673       NumEntryGuards consensus parameter, and the number of directory
20674       guards configurable via a new NumDirectoryGuards consensus
20675       parameter. Implements ticket 12688.
20677   o Major bugfixes (also in 0.2.4.23):
20678     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
20679       implementation that caused incorrect results on 32-bit
20680       implementations when certain malformed inputs were used along with
20681       a small class of private ntor keys. This bug does not currently
20682       appear to allow an attacker to learn private keys or impersonate a
20683       Tor server, but it could provide a means to distinguish 32-bit Tor
20684       implementations from 64-bit Tor implementations. Fixes bug 12694;
20685       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
20686       Adam Langley.
20688   o Major bugfixes:
20689     - Perform circuit cleanup operations even when circuit
20690       construction operations are disabled (because the network is
20691       disabled, or because there isn't enough directory information).
20692       Previously, when we were not building predictive circuits, we
20693       were not closing expired circuits either. Fixes bug 8387; bugfix on
20694       0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we
20695       became more strict about when we have "enough directory information
20696       to build circuits".
20698   o Minor features:
20699     - Authorities now assign the Guard flag to the fastest 25% of the
20700       network (it used to be the fastest 50%). Also raise the consensus
20701       weight that guarantees the Guard flag from 250 to 2000. For the
20702       current network, this results in about 1100 guards, down from 2500.
20703       This step paves the way for moving the number of entry guards
20704       down to 1 (proposal 236) while still providing reasonable expected
20705       performance for most users. Implements ticket 12690.
20706     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
20707       Country database.
20708     - Slightly enhance the diagnostic message for bug 12184.
20710   o Minor bugfixes (also in 0.2.4.23):
20711     - Warn and drop the circuit if we receive an inbound 'relay early'
20712       cell. Those used to be normal to receive on hidden service circuits
20713       due to bug 1038, but the buggy Tor versions are long gone from
20714       the network so we can afford to resume watching for them. Resolves
20715       the rest of bug 1038; bugfix on 0.2.1.19.
20716     - Correct a confusing error message when trying to extend a circuit
20717       via the control protocol but we don't know a descriptor or
20718       microdescriptor for one of the specified relays. Fixes bug 12718;
20719       bugfix on 0.2.3.1-alpha.
20721   o Minor bugfixes:
20722     - Fix compilation when building with bufferevents enabled. (This
20723       configuration is still not expected to work, however.)
20724       Fixes bugs 12438, 12474, 11578; bugfixes on 0.2.5.1-alpha and
20725       0.2.5.3-alpha. Patches from Anthony G. Basile and Sathyanarayanan
20726       Gunasekaran.
20727     - Compile correctly with builds and forks of OpenSSL (such as
20728       LibreSSL) that disable compression. Fixes bug 12602; bugfix on
20729       0.2.1.1-alpha. Patch from "dhill".
20732 Changes in version 0.2.4.23 - 2014-07-28
20733   Tor 0.2.4.23 brings us a big step closer to slowing down the risk from
20734   guard rotation, and also backports several important fixes from the
20735   Tor 0.2.5 alpha release series.
20737   o Major features:
20738     - Clients now look at the "usecreatefast" consensus parameter to
20739       decide whether to use CREATE_FAST or CREATE cells for the first hop
20740       of their circuit. This approach can improve security on connections
20741       where Tor's circuit handshake is stronger than the available TLS
20742       connection security levels, but the tradeoff is more computational
20743       load on guard relays. Implements proposal 221. Resolves ticket 9386.
20744     - Make the number of entry guards configurable via a new
20745       NumEntryGuards consensus parameter, and the number of directory
20746       guards configurable via a new NumDirectoryGuards consensus
20747       parameter. Implements ticket 12688.
20749   o Major bugfixes:
20750     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
20751       implementation that caused incorrect results on 32-bit
20752       implementations when certain malformed inputs were used along with
20753       a small class of private ntor keys. This bug does not currently
20754       appear to allow an attacker to learn private keys or impersonate a
20755       Tor server, but it could provide a means to distinguish 32-bit Tor
20756       implementations from 64-bit Tor implementations. Fixes bug 12694;
20757       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
20758       Adam Langley.
20760   o Minor bugfixes:
20761     - Warn and drop the circuit if we receive an inbound 'relay early'
20762       cell. Those used to be normal to receive on hidden service circuits
20763       due to bug 1038, but the buggy Tor versions are long gone from
20764       the network so we can afford to resume watching for them. Resolves
20765       the rest of bug 1038; bugfix on 0.2.1.19.
20766     - Correct a confusing error message when trying to extend a circuit
20767       via the control protocol but we don't know a descriptor or
20768       microdescriptor for one of the specified relays. Fixes bug 12718;
20769       bugfix on 0.2.3.1-alpha.
20770     - Avoid an illegal read from stack when initializing the TLS
20771       module using a version of OpenSSL without all of the ciphers
20772       used by the v2 link handshake. Fixes bug 12227; bugfix on
20773       0.2.4.8-alpha.  Found by "starlight".
20775   o Minor features:
20776     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
20777       Country database.
20780 Changes in version 0.2.5.5-alpha - 2014-06-18
20781   Tor 0.2.5.5-alpha fixes a wide variety of remaining issues in the Tor
20782   0.2.5.x release series, including a couple of DoS issues, some
20783   performance regressions, a large number of bugs affecting the Linux
20784   seccomp2 sandbox code, and various other bugfixes. It also adds
20785   diagnostic bugfixes for a few tricky issues that we're trying to
20786   track down.
20788   o Major features (security, traffic analysis resistance):
20789     - Several major improvements to the algorithm used to decide when to
20790       close TLS connections. Previous versions of Tor closed connections
20791       at a fixed interval after the last time a non-padding cell was
20792       sent over the connection, regardless of the target of the
20793       connection. Now, we randomize the intervals by adding up to 50% of
20794       their base value, we measure the length of time since connection
20795       last had at least one circuit, and we allow connections to known
20796       ORs to remain open a little longer (15 minutes instead of 3
20797       minutes minimum). These changes should improve Tor's resistance
20798       against some kinds of traffic analysis, and lower some overhead
20799       from needlessly closed connections. Fixes ticket 6799.
20800       Incidentally fixes ticket 12023; bugfix on 0.2.5.1-alpha.
20802   o Major bugfixes (security, OOM, new since 0.2.5.4-alpha, also in 0.2.4.22):
20803     - Fix a memory leak that could occur if a microdescriptor parse
20804       fails during the tokenizing step. This bug could enable a memory
20805       exhaustion attack by directory servers. Fixes bug 11649; bugfix
20806       on 0.2.2.6-alpha.
20808   o Major bugfixes (security, directory authorities):
20809     - Directory authorities now include a digest of each relay's
20810       identity key as a part of its microdescriptor.
20812       This is a workaround for bug 11743 (reported by "cypherpunks"),
20813       where Tor clients do not support receiving multiple
20814       microdescriptors with the same SHA256 digest in the same
20815       consensus. When clients receive a consensus like this, they only
20816       use one of the relays. Without this fix, a hostile relay could
20817       selectively disable some client use of target relays by
20818       constructing a router descriptor with a different identity and the
20819       same microdescriptor parameters and getting the authorities to
20820       list it in a microdescriptor consensus. This fix prevents an
20821       attacker from causing a microdescriptor collision, because the
20822       router's identity is not forgeable.
20824   o Major bugfixes (relay):
20825     - Use a direct dirport connection when uploading non-anonymous
20826       descriptors to the directory authorities. Previously, relays would
20827       incorrectly use tunnel connections under a fairly wide variety of
20828       circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha.
20829     - When a circuit accidentally has the same circuit ID for its
20830       forward and reverse direction, correctly detect the direction of
20831       cells using that circuit. Previously, this bug made roughly one
20832       circuit in a million non-functional. Fixes bug 12195; this is a
20833       bugfix on every version of Tor.
20835   o Major bugfixes (client, pluggable transports):
20836     - When managing pluggable transports, use OS notification facilities
20837       to learn if they have crashed, and don't attempt to kill any
20838       process that has already exited. Fixes bug 8746; bugfix
20839       on 0.2.3.6-alpha.
20841   o Minor features (diagnostic):
20842     - When logging a warning because of bug 7164, additionally check the
20843       hash table for consistency (as proposed on ticket 11737). This may
20844       help diagnose bug 7164.
20845     - When we log a heartbeat, log how many one-hop circuits we have
20846       that are at least 30 minutes old, and log status information about
20847       a few of them. This is an attempt to track down bug 8387.
20848     - When encountering an unexpected CR while writing text to a file on
20849       Windows, log the name of the file. Should help diagnosing
20850       bug 11233.
20851     - Give more specific warnings when a client notices that an onion
20852       handshake has failed. Fixes ticket 9635.
20853     - Add significant new logging code to attempt to diagnose bug 12184,
20854       where relays seem to run out of available circuit IDs.
20855     - Improve the diagnostic log message for bug 8387 even further to
20856       try to improve our odds of figuring out why one-hop directory
20857       circuits sometimes do not get closed.
20859   o Minor features (security, memory management):
20860     - Memory allocation tricks (mempools and buffer freelists) are now
20861       disabled by default. You can turn them back on with
20862       --enable-mempools and --enable-buf-freelists respectively. We're
20863       disabling these features because malloc performance is good enough
20864       on most platforms, and a similar feature in OpenSSL exacerbated
20865       exploitation of the Heartbleed attack. Resolves ticket 11476.
20867   o Minor features (security):
20868     - Apply the secure SipHash-2-4 function to the hash table mapping
20869       circuit IDs and channels to circuits. We missed this one when we
20870       were converting all the other hash functions to use SipHash back
20871       in 0.2.5.3-alpha. Resolves ticket 11750.
20873   o Minor features (build):
20874     - The configure script has a --disable-seccomp option to turn off
20875       support for libseccomp on systems that have it, in case it (or
20876       Tor's use of it) is broken. Resolves ticket 11628.
20878   o Minor features (other):
20879     - Update geoip and geoip6 to the June 4 2014 Maxmind GeoLite2
20880       Country database.
20882   o Minor bugfixes (security, new since 0.2.5.4-alpha, also in 0.2.4.22):
20883     - When running a hidden service, do not allow TunneledDirConns 0;
20884       this will keep the hidden service from running, and also
20885       make it publish its descriptors directly over HTTP. Fixes bug 10849;
20886       bugfix on 0.2.1.1-alpha.
20888   o Minor bugfixes (performance):
20889     - Avoid a bug where every successful connection made us recompute
20890       the flag telling us whether we have sufficient information to
20891       build circuits. Previously, we would forget our cached value
20892       whenever we successfully opened a channel (or marked a router as
20893       running or not running for any other reason), regardless of
20894       whether we had previously believed the router to be running. This
20895       forced us to run an expensive update operation far too often.
20896       Fixes bug 12170; bugfix on 0.1.2.1-alpha.
20897     - Avoid using tor_memeq() for checking relay cell integrity. This
20898       removes a possible performance bottleneck. Fixes part of bug
20899       12169; bugfix on 0.2.1.31.
20901   o Minor bugfixes (compilation):
20902     - Fix compilation of test_status.c when building with MVSC. Bugfix
20903       on 0.2.5.4-alpha. Patch from Gisle Vanem.
20904     - Resolve GCC complaints on OpenBSD about discarding constness in
20905       TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix
20906       on 0.1.1.23. Patch from Dana Koch.
20907     - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to
20908       treatment of long and time_t as comparable types. Fixes part of
20909       bug 11633. Patch from Dana Koch.
20910     - Make Tor compile correctly with --disable-buf-freelists. Fixes bug
20911       11623; bugfix on 0.2.5.3-alpha.
20912     - When deciding whether to build the 64-bit curve25519
20913       implementation, detect platforms where we can compile 128-bit
20914       arithmetic but cannot link it. Fixes bug 11729; bugfix on
20915       0.2.4.8-alpha. Patch from "conradev".
20916     - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761;
20917       bugfix on 0.2.3.13-alpha. Found by "cypherpunks".
20918     - Fix compilation with dmalloc. Fixes bug 11605; bugfix
20919       on 0.2.4.10-alpha.
20921   o Minor bugfixes (Directory server):
20922     - When sending a compressed set of descriptors or microdescriptors,
20923       make sure to finalize the zlib stream. Previously, we would write
20924       all the compressed data, but if the last descriptor we wanted to
20925       send was missing or too old, we would not mark the stream as
20926       finished. This caused problems for decompression tools. Fixes bug
20927       11648; bugfix on 0.1.1.23.
20929   o Minor bugfixes (Linux seccomp sandbox):
20930     - Make the seccomp sandbox code compile under ARM Linux. Fixes bug
20931       11622; bugfix on 0.2.5.1-alpha.
20932     - Avoid crashing when re-opening listener ports with the seccomp
20933       sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha.
20934     - Avoid crashing with the seccomp sandbox enabled along with
20935       ConstrainedSockets. Fixes bug 12139; bugfix on 0.2.5.1-alpha.
20936     - When we receive a SIGHUP with the sandbox enabled, correctly
20937       support rotating our log files. Fixes bug 12032; bugfix
20938       on 0.2.5.1-alpha.
20939     - Avoid crash when running with sandboxing enabled and
20940       DirReqStatistics not disabled. Fixes bug 12035; bugfix
20941       on 0.2.5.1-alpha.
20942     - Fix a "BUG" warning when trying to write bridge-stats files with
20943       the Linux syscall sandbox filter enabled. Fixes bug 12041; bugfix
20944       on 0.2.5.1-alpha.
20945     - Prevent the sandbox from crashing on startup when run with the
20946       --enable-expensive-hardening configuration option. Fixes bug
20947       11477; bugfix on 0.2.5.4-alpha.
20948     - When running with DirPortFrontPage and sandboxing both enabled,
20949       reload the DirPortFrontPage correctly when restarting. Fixes bug
20950       12028; bugfix on 0.2.5.1-alpha.
20951     - Don't try to enable the sandbox when using the Tor binary to check
20952       its configuration, hash a passphrase, or so on. Doing so was
20953       crashing on startup for some users. Fixes bug 11609; bugfix
20954       on 0.2.5.1-alpha.
20955     - Avoid warnings when running with sandboxing and node statistics
20956       enabled at the same time. Fixes part of 12064; bugfix on
20957       0.2.5.1-alpha. Patch from Michael Wolf.
20958     - Avoid warnings when running with sandboxing enabled at the same
20959       time as cookie authentication, hidden services, or directory
20960       authority voting. Fixes part of 12064; bugfix on 0.2.5.1-alpha.
20961     - Do not allow options that require calls to exec to be enabled
20962       alongside the seccomp2 sandbox: they will inevitably crash. Fixes
20963       bug 12043; bugfix on 0.2.5.1-alpha.
20964     - Handle failures in getpwnam()/getpwuid() when running with the
20965       User option set and the Linux syscall sandbox enabled. Fixes bug
20966       11946; bugfix on 0.2.5.1-alpha.
20967     - Refactor the getaddrinfo workaround that the seccomp sandbox uses
20968       to avoid calling getaddrinfo() after installing the sandbox
20969       filters. Previously, it preloaded a cache with the IPv4 address
20970       for our hostname, and nothing else. Now, it loads the cache with
20971       every address that it used to initialize the Tor process. Fixes
20972       bug 11970; bugfix on 0.2.5.1-alpha.
20974   o Minor bugfixes (pluggable transports):
20975     - Enable the ExtORPortCookieAuthFile option, to allow changing the
20976       default location of the authentication token for the extended OR
20977       Port as used by sever-side pluggable transports. We had
20978       implemented this option before, but the code to make it settable
20979       had been omitted. Fixes bug 11635; bugfix on 0.2.5.1-alpha.
20980     - Avoid another 60-second delay when starting Tor in a pluggable-
20981       transport-using configuration when we already have cached
20982       descriptors for our bridges. Fixes bug 11965; bugfix
20983       on 0.2.3.6-alpha.
20985   o Minor bugfixes (client):
20986     - Avoid "Tried to open a socket with DisableNetwork set" warnings
20987       when starting a client with bridges configured and DisableNetwork
20988       set. (Tor launcher starts Tor with DisableNetwork set the first
20989       time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha.
20991   o Minor bugfixes (testing):
20992     - The Python parts of the test scripts now work on Python 3 as well
20993       as Python 2, so systems where '/usr/bin/python' is Python 3 will
20994       no longer have the tests break. Fixes bug 11608; bugfix
20995       on 0.2.5.2-alpha.
20996     - When looking for versions of python that we could run the tests
20997       with, check for "python2.7" and "python3.3"; previously we were
20998       only looking for "python", "python2", and "python3". Patch from
20999       Dana Koch. Fixes bug 11632; bugfix on 0.2.5.2-alpha.
21000     - Fix all valgrind warnings produced by the unit tests. There were
21001       over a thousand memory leak warnings previously, mostly produced
21002       by forgetting to free things in the unit test code. Fixes bug
21003       11618, bugfixes on many versions of Tor.
21005   o Minor bugfixes (tor-fw-helper):
21006     - Give a correct log message when tor-fw-helper fails to launch.
21007       (Previously, we would say something like "tor-fw-helper sent us a
21008       string we could not parse".) Fixes bug 9781; bugfix
21009       on 0.2.4.2-alpha.
21011   o Minor bugfixes (relay, threading):
21012     - Check return code on spawn_func() in cpuworker code, so that we
21013       don't think we've spawned a nonworking cpuworker and write junk to
21014       it forever. Fix related to bug 4345; bugfix on all released Tor
21015       versions. Found by "skruffy".
21016     - Use a pthread_attr to make sure that spawn_func() cannot return an
21017       error while at the same time launching a thread. Fix related to
21018       bug 4345; bugfix on all released Tor versions. Reported
21019       by "cypherpunks".
21021   o Minor bugfixes (relay, oom prevention):
21022     - Correctly detect the total available system memory. We tried to do
21023       this in 0.2.5.4-alpha, but the code was set up to always return an
21024       error value, even on success. Fixes bug 11805; bugfix
21025       on 0.2.5.4-alpha.
21027   o Minor bugfixes (relay, other):
21028     - We now drop CREATE cells for already-existent circuit IDs and for
21029       zero-valued circuit IDs, regardless of other factors that might
21030       otherwise have called for DESTROY cells. Fixes bug 12191; bugfix
21031       on 0.0.8pre1.
21032     - Avoid an illegal read from stack when initializing the TLS module
21033       using a version of OpenSSL without all of the ciphers used by the
21034       v2 link handshake. Fixes bug 12227; bugfix on 0.2.4.8-alpha. Found
21035       by "starlight".
21036     - When rejecting DATA cells for stream_id zero, still count them
21037       against the circuit's deliver window so that we don't fail to send
21038       a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha.
21040   o Minor bugfixes (logging):
21041     - Fix a misformatted log message about delayed directory fetches.
21042       Fixes bug 11654; bugfix on 0.2.5.3-alpha.
21043     - Squelch a spurious LD_BUG message "No origin circuit for
21044       successful SOCKS stream" in certain hidden service failure cases;
21045       fixes bug 10616.
21047   o Distribution:
21048     - Include a tor.service file in contrib/dist for use with systemd.
21049       Some distributions will be able to use this file unmodified;
21050       others will need to tweak it, or write their own. Patch from Jamie
21051       Nguyen; resolves ticket 8368.
21053   o Documentation:
21054     - Clean up several option names in the manpage to match their real
21055       names, add the missing documentation for a couple of testing and
21056       directory authority options, remove the documentation for a
21057       V2-directory fetching option that no longer exists. Resolves
21058       ticket 11634.
21059     - Correct the documentation so that it lists the correct directory
21060       for the stats files. (They are in a subdirectory called "stats",
21061       not "status".)
21062     - In the manpage, move more authority-only options into the
21063       directory authority section so that operators of regular directory
21064       caches don't get confused.
21066   o Package cleanup:
21067     - The contrib directory has been sorted and tidied. Before, it was
21068       an unsorted dumping ground for useful and not-so-useful things.
21069       Now, it is divided based on functionality, and the items which
21070       seemed to be nonfunctional or useless have been removed. Resolves
21071       ticket 8966; based on patches from "rl1987".
21073   o Removed code:
21074     - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU
21075       and MTBF calculations, but that nobody was using. Fixes ticket 11742.
21076     - The TunnelDirConns and PreferTunnelledDirConns options no longer
21077       exist; tunneled directory connections have been available since
21078       0.1.2.5-alpha, and turning them off is not a good idea. This is a
21079       brute-force fix for 10849, where "TunnelDirConns 0" would break
21080       hidden services.
21083 Changes in version 0.2.4.22 - 2014-05-16
21084   Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5
21085   alpha release series. These include blocking all authority signing
21086   keys that may have been affected by the OpenSSL "heartbleed" bug,
21087   choosing a far more secure set of TLS ciphersuites by default, closing
21088   a couple of memory leaks that could be used to run a target relay out
21089   of RAM, and several others.
21091   o Major features (security, backport from 0.2.5.4-alpha):
21092     - Block authority signing keys that were used on authorities
21093       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
21094       don't have any evidence that these keys _were_ compromised; we're
21095       doing this to be prudent.) Resolves ticket 11464.
21097   o Major bugfixes (security, OOM):
21098     - Fix a memory leak that could occur if a microdescriptor parse
21099       fails during the tokenizing step. This bug could enable a memory
21100       exhaustion attack by directory servers. Fixes bug 11649; bugfix
21101       on 0.2.2.6-alpha.
21103   o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha):
21104     - The relay ciphersuite list is now generated automatically based on
21105       uniform criteria, and includes all OpenSSL ciphersuites with
21106       acceptable strength and forward secrecy. Previously, we had left
21107       some perfectly fine ciphersuites unsupported due to omission or
21108       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
21109       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
21110     - Relays now trust themselves to have a better view than clients of
21111       which TLS ciphersuites are better than others. (Thanks to bug
21112       11513, the relay list is now well-considered, whereas the client
21113       list has been chosen mainly for anti-fingerprinting purposes.)
21114       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
21115       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
21116       AES128. Resolves ticket 11528.
21117     - Clients now try to advertise the same list of ciphersuites as
21118       Firefox 28. This change enables selection of (fast) GCM
21119       ciphersuites, disables some strange old ciphers, and stops
21120       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
21121       Resolves ticket 11438.
21123   o Minor bugfixes (configuration, security):
21124     - When running a hidden service, do not allow TunneledDirConns 0:
21125       trying to set that option together with a hidden service would
21126       otherwise prevent the hidden service from running, and also make
21127       it publish its descriptors directly over HTTP. Fixes bug 10849;
21128       bugfix on 0.2.1.1-alpha.
21130   o Minor bugfixes (controller, backport from 0.2.5.4-alpha):
21131     - Avoid sending a garbage value to the controller when a circuit is
21132       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
21134   o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha):
21135     - Stop leaking memory when we successfully resolve a PTR record.
21136       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
21138   o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha):
21139     - Avoid 60-second delays in the bootstrapping process when Tor is
21140       launching for a second time while using bridges. Fixes bug 9229;
21141       bugfix on 0.2.0.3-alpha.
21143   o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha):
21144     - Give the correct URL in the warning message when trying to run a
21145       relay on an ancient version of Windows. Fixes bug 9393.
21147   o Minor bugfixes (compilation):
21148     - Fix a compilation error when compiling with --disable-curve25519.
21149       Fixes bug 9700; bugfix on 0.2.4.17-rc.
21151   o Minor bugfixes:
21152     - Downgrade the warning severity for the the "md was still
21153       referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code
21154       for trying to diagnose this bug, and the current warning in
21155       earlier versions of tor achieves nothing useful. Addresses warning
21156       from bug 7164.
21158   o Minor features (log verbosity, backport from 0.2.5.4-alpha):
21159     - When we run out of usable circuit IDs on a channel, log only one
21160       warning for the whole channel, and describe how many circuits
21161       there were on the channel. Fixes part of ticket 11553.
21163   o Minor features (security, backport from 0.2.5.4-alpha):
21164     - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but
21165       leave the default at 8GBytes), to better support Raspberry Pi
21166       users. Fixes bug 9686; bugfix on 0.2.4.14-alpha.
21168   o Documentation (backport from 0.2.5.4-alpha):
21169     - Correctly document that we search for a system torrc file before
21170       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
21171       0.2.3.18-rc.
21174 Changes in version 0.2.5.4-alpha - 2014-04-25
21175   Tor 0.2.5.4-alpha includes several security and performance
21176   improvements for clients and relays, including blacklisting authority
21177   signing keys that were used while susceptible to the OpenSSL
21178   "heartbleed" bug, fixing two expensive functions on busy relays,
21179   improved TLS ciphersuite preference lists, support for run-time
21180   hardening on compilers that support AddressSanitizer, and more work on
21181   the Linux sandbox code.
21183   There are also several usability fixes for clients (especially clients
21184   that use bridges), two new TransPort protocols supported (one on
21185   OpenBSD, one on FreeBSD), and various other bugfixes.
21187   This release marks end-of-life for Tor 0.2.2.x; those Tor versions
21188   have accumulated many known flaws; everyone should upgrade.
21190   o Major features (security):
21191     - If you don't specify MaxMemInQueues yourself, Tor now tries to
21192       pick a good value based on your total system memory. Previously,
21193       the default was always 8 GB. You can still override the default by
21194       setting MaxMemInQueues yourself. Resolves ticket 11396.
21195     - Block authority signing keys that were used on authorities
21196       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
21197       don't have any evidence that these keys _were_ compromised; we're
21198       doing this to be prudent.) Resolves ticket 11464.
21200   o Major features (relay performance):
21201     - Speed up server-side lookups of rendezvous and introduction point
21202       circuits by using hashtables instead of linear searches. These
21203       functions previously accounted between 3 and 7% of CPU usage on
21204       some busy relays. Resolves ticket 9841.
21205     - Avoid wasting CPU when extending a circuit over a channel that is
21206       nearly out of circuit IDs. Previously, we would do a linear scan
21207       over possible circuit IDs before finding one or deciding that we
21208       had exhausted our possibilities. Now, we try at most 64 random
21209       circuit IDs before deciding that we probably won't succeed. Fixes
21210       a possible root cause of ticket 11553.
21212   o Major features (seccomp2 sandbox, Linux only):
21213     - The seccomp2 sandbox can now run a test network for multiple hours
21214       without crashing. The sandbox is still experimental, and more bugs
21215       will probably turn up. To try it, enable "Sandbox 1" on a Linux
21216       host. Resolves ticket 11351.
21217     - Strengthen sandbox code: the sandbox can now test the arguments
21218       for rename(), and blocks _sysctl() entirely. Resolves another part
21219       of ticket 11351.
21220     - When the sandbox blocks a system call, it now tries to log a stack
21221       trace before exiting. Resolves ticket 11465.
21223   o Major bugfixes (TLS cipher selection):
21224     - The relay ciphersuite list is now generated automatically based on
21225       uniform criteria, and includes all OpenSSL ciphersuites with
21226       acceptable strength and forward secrecy. Previously, we had left
21227       some perfectly fine ciphersuites unsupported due to omission or
21228       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
21229       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
21230     - Relays now trust themselves to have a better view than clients of
21231       which TLS ciphersuites are better than others. (Thanks to bug
21232       11513, the relay list is now well-considered, whereas the client
21233       list has been chosen mainly for anti-fingerprinting purposes.)
21234       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
21235       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
21236       AES128. Resolves ticket 11528.
21237     - Clients now try to advertise the same list of ciphersuites as
21238       Firefox 28. This change enables selection of (fast) GCM
21239       ciphersuites, disables some strange old ciphers, and stops
21240       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
21241       Resolves ticket 11438.
21243   o Major bugfixes (bridge client):
21244     - Avoid 60-second delays in the bootstrapping process when Tor is
21245       launching for a second time while using bridges. Fixes bug 9229;
21246       bugfix on 0.2.0.3-alpha.
21248   o Minor features (transparent proxy, *BSD):
21249     - Support FreeBSD's ipfw firewall interface for TransPort ports on
21250       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
21251       10267; patch from "yurivict".
21252     - Support OpenBSD's divert-to rules with the pf firewall for
21253       transparent proxy ports. To enable it, set "TransProxyType
21254       pf-divert". This allows Tor to run a TransPort transparent proxy
21255       port on OpenBSD 4.4 or later without root privileges. See the
21256       pf.conf(5) manual page for information on configuring pf to use
21257       divert-to rules. Closes ticket 10896; patch from Dana Koch.
21259   o Minor features (security):
21260     - New --enable-expensive-hardening option to enable security
21261       hardening options that consume nontrivial amounts of CPU and
21262       memory. Right now, this includes AddressSanitizer and UbSan, which
21263       are supported in newer versions of GCC and Clang. Closes ticket
21264       11477.
21266   o Minor features (log verbosity):
21267     - Demote the message that we give when a flushing connection times
21268       out for too long from NOTICE to INFO. It was usually meaningless.
21269       Resolves ticket 5286.
21270     - Don't log so many notice-level bootstrapping messages at startup
21271       about downloading descriptors. Previously, we'd log a notice
21272       whenever we learned about more routers. Now, we only log a notice
21273       at every 5% of progress. Fixes bug 9963.
21274     - Warn less verbosely when receiving a malformed
21275       ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279.
21276     - When we run out of usable circuit IDs on a channel, log only one
21277       warning for the whole channel, and describe how many circuits
21278       there were on the channel. Fixes part of ticket 11553.
21280   o Minor features (relay):
21281     - If a circuit timed out for at least 3 minutes, check if we have a
21282       new external IP address, and publish a new descriptor with the new
21283       IP address if it changed. Resolves ticket 2454.
21285   o Minor features (controller):
21286     - Make the entire exit policy available from the control port via
21287       GETINFO exit-policy/*. Implements enhancement 7952. Patch from
21288       "rl1987".
21289     - Because of the fix for ticket 11396, the real limit for memory
21290       usage may no longer match the configured MaxMemInQueues value. The
21291       real limit is now exposed via GETINFO limits/max-mem-in-queues.
21293   o Minor features (bridge client):
21294     - Report a more useful failure message when we can't connect to a
21295       bridge because we don't have the right pluggable transport
21296       configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto.
21298   o Minor features (diagnostic):
21299     - Add more log messages to diagnose bug 7164, which causes
21300       intermittent "microdesc_free() called but md was still referenced"
21301       warnings. We now include more information, to figure out why we
21302       might be cleaning a microdescriptor for being too old if it's
21303       still referenced by a live node_t object.
21305   o Minor bugfixes (client, DNSPort):
21306     - When using DNSPort, try to respond to AAAA requests with AAAA
21307       answers. Previously, we hadn't looked at the request type when
21308       deciding which answer type to prefer. Fixes bug 10468; bugfix on
21309       0.2.4.7-alpha.
21310     - When receiving a DNS query for an unsupported record type, reply
21311       with no answer rather than with a NOTIMPL error. This behavior
21312       isn't correct either, but it will break fewer client programs, we
21313       hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch
21314       from "epoch".
21316   o Minor bugfixes (exit relay):
21317     - Stop leaking memory when we successfully resolve a PTR record.
21318       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
21320   o Minor bugfixes (bridge client):
21321     - Stop accepting bridge lines containing hostnames. Doing so would
21322       cause clients to perform DNS requests on the hostnames, which was
21323       not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha.
21324     - Avoid a 60-second delay in the bootstrapping process when a Tor
21325       client with pluggable transports re-reads its configuration at
21326       just the wrong time. Re-fixes bug 11156; bugfix on 0.2.5.3-alpha.
21328   o Minor bugfixes (client, logging during bootstrap):
21329     - Warn only once if we start logging in an unsafe way. Previously,
21330       we complain as many times as we had problems. Fixes bug 9870;
21331       bugfix on 0.2.5.1-alpha.
21332     - Only report the first fatal bootstrap error on a given OR
21333       connection. This stops us from telling the controller bogus error
21334       messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha.
21335     - Be more helpful when trying to run sandboxed on Linux without
21336       libseccomp. Instead of saying "Sandbox is not implemented on this
21337       platform", we now explain that we need to be built with
21338       libseccomp. Fixes bug 11543; bugfix on 0.2.5.1-alpha.
21339     - Avoid generating spurious warnings when starting with
21340       DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on
21341       0.2.3.9-alpha.
21343   o Minor bugfixes (closing OR connections):
21344     - If write_to_buf() in connection_write_to_buf_impl_() ever fails,
21345       check if it's an or_connection_t and correctly call
21346       connection_or_close_for_error() rather than
21347       connection_mark_for_close() directly. Fixes bug 11304; bugfix on
21348       0.2.4.4-alpha.
21349     - When closing all connections on setting DisableNetwork to 1, use
21350       connection_or_close_normally() rather than closing OR connections
21351       out from under the channel layer. Fixes bug 11306; bugfix on
21352       0.2.4.4-alpha.
21354   o Minor bugfixes (controller):
21355     - Avoid sending a garbage value to the controller when a circuit is
21356       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
21358   o Minor bugfixes (tor-fw-helper):
21359     - Allow tor-fw-helper to build again by adding src/ext to its
21360       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
21362   o Minor bugfixes (bridges):
21363     - Avoid potential crashes or bad behavior when launching a
21364       server-side managed proxy with ORPort or ExtORPort temporarily
21365       disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
21367   o Minor bugfixes (platform-specific):
21368     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
21369       bug 11426; bugfix on 0.2.5.3-alpha.
21370     - When dumping a malformed directory object to disk, save it in
21371       binary mode on Windows, not text mode. Fixes bug 11342; bugfix on
21372       0.2.2.1-alpha.
21373     - Don't report failures from make_socket_reuseable() on incoming
21374       sockets on OSX: this can happen when incoming connections close
21375       early. Fixes bug 10081.
21377   o Minor bugfixes (trivial memory leaks):
21378     - Fix a small memory leak when signing a directory object. Fixes bug
21379       11275; bugfix on 0.2.4.13-alpha.
21380     - Free placeholder entries in our circuit table at exit; fixes a
21381       harmless memory leak. Fixes bug 11278; bugfix on 0.2.5.1-alpha.
21382     - Don't re-initialize a second set of OpenSSL mutexes when starting
21383       up. Previously, we'd make one set of mutexes, and then immediately
21384       replace them with another. Fixes bug 11726; bugfix on
21385       0.2.5.3-alpha.
21386     - Resolve some memory leaks found by coverity in the unit tests, on
21387       exit in tor-gencert, and on a failure to compute digests for our
21388       own keys when generating a v3 networkstatus vote. These leaks
21389       should never have affected anyone in practice.
21391   o Minor bugfixes (hidden service):
21392     - Only retry attempts to connect to a chosen rendezvous point 8
21393       times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc.
21395   o Minor bugfixes (misc code correctness):
21396     - Fix various instances of undefined behavior in channeltls.c,
21397       tor_memmem(), and eventdns.c that would cause us to construct
21398       pointers to memory outside an allocated object. (These invalid
21399       pointers were not accessed, but C does not even allow them to
21400       exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha,
21401       0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom".
21402     - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to
21403       fix some miscellaneous errors in our tests and codebase. Fixes bug
21404       11232. Bugfixes on versions back as far as 0.2.1.11-alpha.
21405     - Always check return values for unlink, munmap, UnmapViewOfFile;
21406       check strftime return values more often. In some cases all we can
21407       do is report a warning, but this may help prevent deeper bugs from
21408       going unnoticed. Closes ticket 8787; bugfixes on many, many tor
21409       versions.
21410     - Fix numerous warnings from the clang "scan-build" static analyzer.
21411       Some of these are programming style issues; some of them are false
21412       positives that indicated awkward code; some are undefined behavior
21413       cases related to constructing (but not using) invalid pointers;
21414       some are assumptions about API behavior; some are (harmlessly)
21415       logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be
21416       correct; and one or two are genuine bugs that weren't reachable
21417       from the rest of the program. Fixes bug 8793; bugfixes on many,
21418       many tor versions.
21420   o Documentation:
21421     - Build the torify.1 manpage again. Previously, we were only trying
21422       to build it when also building tor-fw-helper. That's why we didn't
21423       notice that we'd broken the ability to build it. Fixes bug 11321;
21424       bugfix on 0.2.5.1-alpha.
21425     - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug
21426       11061; bugfix on 0.2.4.7-alpha.
21427     - Correctly document that we search for a system torrc file before
21428       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
21429       0.2.3.18-rc.
21430     - Resolve warnings from Doxygen.
21432   o Code simplifications and refactoring:
21433     - Remove is_internal_IP() function. Resolves ticket 4645.
21434     - Remove unused function circuit_dump_by_chan from circuitlist.c.
21435       Closes issue 9107; patch from "marek".
21436     - Change our use of the ENUM_BF macro to avoid declarations that
21437       confuse Doxygen.
21439   o Deprecated versions:
21440     - Tor 0.2.2.x has reached end-of-life; it has received no patches or
21441       attention for some while. Directory authorities no longer accept
21442       descriptors from relays running any version of Tor prior to Tor
21443       0.2.3.16-alpha. Resolves ticket 11149.
21445   o Testing:
21446     - New macros in test.h to simplify writing mock-functions for unit
21447       tests. Part of ticket 11507. Patch from Dana Koch.
21448     - Complete tests for the status.c module. Resolves ticket 11507.
21449       Patch from Dana Koch.
21451   o Removed code:
21452     - Remove all code for the long unused v1 directory protocol.
21453       Resolves ticket 11070.
21456 Changes in version 0.2.5.3-alpha - 2014-03-22
21457   Tor 0.2.5.3-alpha includes all the fixes from 0.2.4.21. It contains
21458   two new anti-DoS features for Tor relays, resolves a bug that kept
21459   SOCKS5 support for IPv6 from working, fixes several annoying usability
21460   issues for bridge users, and removes more old code for unused
21461   directory formats.
21463   The Tor 0.2.5.x release series is now in patch-freeze: no feature
21464   patches not already written will be considered for inclusion in 0.2.5.x.
21466   o Major features (relay security, DoS-resistance):
21467     - When deciding whether we have run out of memory and we need to
21468       close circuits, also consider memory allocated in buffers for
21469       streams attached to each circuit.
21471       This change, which extends an anti-DoS feature introduced in
21472       0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays
21473       better resist more memory-based DoS attacks than before. Since the
21474       MaxMemInCellQueues option now applies to all queues, it is renamed
21475       to MaxMemInQueues. This feature fixes bug 10169.
21476     - Avoid hash-flooding denial-of-service attacks by using the secure
21477       SipHash-2-4 hash function for our hashtables. Without this
21478       feature, an attacker could degrade performance of a targeted
21479       client or server by flooding their data structures with a large
21480       number of entries to be stored at the same hash table position,
21481       thereby slowing down the Tor instance. With this feature, hash
21482       table positions are derived from a randomized cryptographic key,
21483       and an attacker cannot predict which entries will collide. Closes
21484       ticket 4900.
21485     - Decrease the lower limit of MaxMemInQueues to 256 MBytes (but leave
21486       the default at 8GBytes), to better support Raspberry Pi users. Fixes
21487       bug 9686; bugfix on 0.2.4.14-alpha.
21489   o Minor features (bridges, pluggable transports):
21490     - Bridges now write the SHA1 digest of their identity key
21491       fingerprint (that is, a hash of a hash of their public key) to
21492       notice-level logs, and to a new hashed-fingerprint file. This
21493       information will help bridge operators look up their bridge in
21494       Globe and similar tools. Resolves ticket 10884.
21495     - Improve the message that Tor displays when running as a bridge
21496       using pluggable transports without an Extended ORPort listener.
21497       Also, log the message in the log file too. Resolves ticket 11043.
21499   o Minor features (other):
21500     - Add a new option, PredictedPortsRelevanceTime, to control how long
21501       after having received a request to connect to a given port Tor
21502       will try to keep circuits ready in anticipation of future requests
21503       for that port. Patch from "unixninja92"; implements ticket 9176.
21504     - Generate a warning if any ports are listed in the SocksPolicy,
21505       DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or
21506       AuthDirBadExit options. (These options only support address
21507       ranges.) Fixes part of ticket 11108.
21508     - Update geoip and geoip6 to the February 7 2014 Maxmind GeoLite2
21509       Country database.
21511   o Minor bugfixes (new since 0.2.5.2-alpha, also in 0.2.4.21):
21512     - Build without warnings under clang 3.4. (We have some macros that
21513       define static functions only some of which will get used later in
21514       the module. Starting with clang 3.4, these give a warning unless the
21515       unused attribute is set on them.) Resolves ticket 10904.
21516     - Fix build warnings about missing "a2x" comment when building the
21517       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
21518       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
21520   o Minor bugfixes (client):
21521     - Improve the log message when we can't connect to a hidden service
21522       because all of the hidden service directory nodes hosting its
21523       descriptor are excluded. Improves on our fix for bug 10722, which
21524       was a bugfix on 0.2.0.10-alpha.
21525     - Raise a control port warning when we fail to connect to all of
21526       our bridges. Previously, we didn't inform the controller, and
21527       the bootstrap process would stall. Fixes bug 11069; bugfix on
21528       0.2.1.2-alpha.
21529     - Exit immediately when a process-owning controller exits.
21530       Previously, tor relays would wait for a little while after their
21531       controller exited, as if they had gotten an INT signal -- but this
21532       was problematic, since there was no feedback for the user. To do a
21533       clean shutdown, controllers should send an INT signal and give Tor
21534       a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta.
21535     - Stop attempting to connect to bridges before our pluggable
21536       transports are configured (harmless but resulted in some erroneous
21537       log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha.
21538     - Fix connections to IPv6 addresses over SOCKS5. Previously, we were
21539       generating incorrect SOCKS5 responses, and confusing client
21540       applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha.
21542   o Minor bugfixes (relays and bridges):
21543     - Avoid crashing on a malformed resolv.conf file when running a
21544       relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23.
21545     - Non-exit relays no longer launch mock DNS requests to check for
21546       DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when
21547       non-exit relays stopped servicing DNS requests. Fixes bug 965;
21548       bugfix on 0.2.1.7-alpha. Patch from Matt Pagan.
21549     - Bridges now report complete directory request statistics. Related
21550       to bug 5824; bugfix on 0.2.2.1-alpha.
21551     - Bridges now never collect statistics that were designed for
21552       relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha.
21553     - Stop giving annoying warning messages when we decide not to launch
21554       a pluggable transport proxy that we don't need (because there are
21555       no bridges configured to use it). Resolves ticket 5018; bugfix
21556       on 0.2.5.2-alpha.
21557     - Give the correct URL in the warning message when trying to run a
21558       relay on an ancient version of Windows. Fixes bug 9393.
21560   o Minor bugfixes (backtrace support):
21561     - Support automatic backtraces on more platforms by using the
21562       "-fasynchronous-unwind-tables" compiler option. This option is
21563       needed for platforms like 32-bit Intel where "-fomit-frame-pointer"
21564       is on by default and table generation is not. This doesn't yet
21565       add Windows support; only Linux, OSX, and some BSDs are affected.
21566       Reported by 'cypherpunks'; fixes bug 11047; bugfix on 0.2.5.2-alpha.
21567     - Avoid strange behavior if two threads hit failed assertions at the
21568       same time and both try to log backtraces at once. (Previously, if
21569       this had happened, both threads would have stored their intermediate
21570       results in the same buffer, and generated junk outputs.) Reported by
21571       "cypherpunks". Fixes bug 11048; bugfix on 0.2.5.2-alpha.
21572     - Fix a compiler warning in format_number_sigsafe(). Bugfix on
21573       0.2.5.2-alpha; patch from Nick Hopper.
21575   o Minor bugfixes (unit tests):
21576     - Fix a small bug in the unit tests that might have made the tests
21577       call 'chmod' with an uninitialized bitmask. Fixes bug 10928;
21578       bugfix on 0.2.5.1-alpha. Patch from Dana Koch.
21580   o Removed code:
21581     - Remove all remaining code related to version-0 hidden service
21582       descriptors: they have not been in use since 0.2.2.1-alpha. Fixes
21583       the rest of bug 10841.
21585   o Documentation:
21586     - Document in the manpage that "KBytes" may also be written as
21587       "kilobytes" or "KB", that "Kbits" may also be written as
21588       "kilobits", and so forth. Closes ticket 9222.
21589     - Document that the ClientOnly config option overrides ORPort.
21590       Our old explanation made ClientOnly sound as though it did
21591       nothing at all. Resolves bug 9059.
21592     - Explain that SocksPolicy, DirPolicy, and similar options don't
21593       take port arguments. Fixes the other part of ticket 11108.
21594     - Fix a comment about the rend_server_descriptor_t.protocols field
21595       to more accurately describe its range. Also, make that field
21596       unsigned, to more accurately reflect its usage. Fixes bug 9099;
21597       bugfix on 0.2.1.5-alpha.
21598     - Fix the manpage's description of HiddenServiceAuthorizeClient:
21599       the maximum client name length is 16, not 19. Fixes bug 11118;
21600       bugfix on 0.2.1.6-alpha.
21602   o Code simplifications and refactoring:
21603     - Get rid of router->address, since in all cases it was just the
21604       string representation of router->addr. Resolves ticket 5528.
21606   o Test infrastructure:
21607     - Update to the latest version of tinytest.
21608     - Improve the tinytest implementation of string operation tests so
21609       that comparisons with NULL strings no longer crash the tests; they
21610       now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha.
21613 Changes in version 0.2.4.21 - 2014-02-28
21614   Tor 0.2.4.21 further improves security against potential adversaries who
21615   find breaking 1024-bit crypto doable, and backports several stability
21616   and robustness patches from the 0.2.5 branch.
21618   o Major features (client security):
21619     - When we choose a path for a 3-hop circuit, make sure it contains
21620       at least one relay that supports the NTor circuit extension
21621       handshake. Otherwise, there is a chance that we're building
21622       a circuit that's worth attacking by an adversary who finds
21623       breaking 1024-bit crypto doable, and that chance changes the game
21624       theory. Implements ticket 9777.
21626   o Major bugfixes:
21627     - Do not treat streams that fail with reason
21628       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
21629       since it could also indicate an ENETUNREACH connection error. Fixes
21630       part of bug 10777; bugfix on 0.2.4.8-alpha.
21632   o Code simplification and refactoring:
21633     - Remove data structures which were introduced to implement the
21634       CellStatistics option: they are now redundant with the new timestamp
21635       field in the regular packed_cell_t data structure, which we did
21636       in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870.
21638   o Minor features:
21639     - Always clear OpenSSL bignums before freeing them -- even bignums
21640       that don't contain secrets. Resolves ticket 10793. Patch by
21641       Florent Daigniere.
21642     - Build without warnings under clang 3.4. (We have some macros that
21643       define static functions only some of which will get used later in
21644       the module. Starting with clang 3.4, these give a warning unless the
21645       unused attribute is set on them.) Resolves ticket 10904.
21646     - Update geoip and geoip6 files to the February 7 2014 Maxmind
21647       GeoLite2 Country database.
21649   o Minor bugfixes:
21650     - Set the listen() backlog limit to the largest actually supported
21651       on the system, not to the value in a header file. Fixes bug 9716;
21652       bugfix on every released Tor.
21653     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
21654       exit node as a NOROUTE error, not an INTERNAL error, since they
21655       can apparently happen when trying to connect to the wrong sort
21656       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
21657     - Fix build warnings about missing "a2x" comment when building the
21658       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
21659       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
21660     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
21661       not entirely remove it from the connection lists. Fixes bug 9602;
21662       bugfix on 0.2.4.4-alpha.
21663     - Fix a segmentation fault in our benchmark code when running with
21664       Fedora's OpenSSL package, or any other OpenSSL that provides
21665       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
21666     - Turn "circuit handshake stats since last time" log messages into a
21667       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
21669   o Documentation fixes:
21670     - Document that all but one DirPort entry must have the NoAdvertise
21671       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
21674 Changes in version 0.2.5.2-alpha - 2014-02-13
21675   Tor 0.2.5.2-alpha includes all the fixes from 0.2.4.18-rc and 0.2.4.20,
21676   like the "poor random number generation" fix and the "building too many
21677   circuits" fix. It also further improves security against potential
21678   adversaries who find breaking 1024-bit crypto doable, and launches
21679   pluggable transports on demand (which gets us closer to integrating
21680   pluggable transport support by default -- not to be confused with Tor
21681   bundles enabling pluggable transports and bridges by default).
21683   o Major features (client security):
21684     - When we choose a path for a 3-hop circuit, make sure it contains
21685       at least one relay that supports the NTor circuit extension
21686       handshake. Otherwise, there is a chance that we're building
21687       a circuit that's worth attacking by an adversary who finds
21688       breaking 1024-bit crypto doable, and that chance changes the game
21689       theory. Implements ticket 9777.
21690     - Clients now look at the "usecreatefast" consensus parameter to
21691       decide whether to use CREATE_FAST or CREATE cells for the first hop
21692       of their circuit. This approach can improve security on connections
21693       where Tor's circuit handshake is stronger than the available TLS
21694       connection security levels, but the tradeoff is more computational
21695       load on guard relays. Implements proposal 221. Resolves ticket 9386.
21697   o Major features (bridges):
21698     - Don't launch pluggable transport proxies if we don't have any
21699       bridges configured that would use them. Now we can list many
21700       pluggable transports, and Tor will dynamically start one when it
21701       hears a bridge address that needs it. Resolves ticket 5018.
21702     - The bridge directory authority now assigns status flags (Stable,
21703       Guard, etc) to bridges based on thresholds calculated over all
21704       Running bridges. Now bridgedb can finally make use of its features
21705       to e.g. include at least one Stable bridge in its answers. Fixes
21706       bug 9859.
21708   o Major features (other):
21709     - Extend ORCONN controller event to include an "ID" parameter,
21710       and add four new controller event types CONN_BW, CIRC_BW,
21711       CELL_STATS, and TB_EMPTY that show connection and circuit usage.
21712       The new events are emitted in private Tor networks only, with the
21713       goal of being able to better track performance and load during
21714       full-network simulations. Implements proposal 218 and ticket 7359.
21715     - On some platforms (currently: recent OSX versions, glibc-based
21716       platforms that support the ELF format, and a few other
21717       Unix-like operating systems), Tor can now dump stack traces
21718       when a crash occurs or an assertion fails. By default, traces
21719       are dumped to stderr (if possible) and to any logs that are
21720       reporting errors. Implements ticket 9299.
21722   o Major bugfixes:
21723     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
21724       not entirely remove it from the connection lists. Fixes bug 9602;
21725       bugfix on 0.2.4.4-alpha.
21726     - Do not treat streams that fail with reason
21727       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
21728       since it could also indicate an ENETUNREACH connection error. Fixes
21729       part of bug 10777; bugfix on 0.2.4.8-alpha.
21731   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
21732     - Do not allow OpenSSL engines to replace the PRNG, even when
21733       HardwareAccel is set. The only default builtin PRNG engine uses
21734       the Intel RDRAND instruction to replace the entire PRNG, and
21735       ignores all attempts to seed it with more entropy. That's
21736       cryptographically stupid: the right response to a new alleged
21737       entropy source is never to discard all previously used entropy
21738       sources. Fixes bug 10402; works around behavior introduced in
21739       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
21740       and "rl1987".
21741     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
21742       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
21743     - Avoid launching spurious extra circuits when a stream is pending.
21744       This fixes a bug where any circuit that _wasn't_ unusable for new
21745       streams would be treated as if it were, causing extra circuits to
21746       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
21748   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21749     - No longer stop reading or writing on cpuworker connections when
21750       our rate limiting buckets go empty. Now we should handle circuit
21751       handshake requests more promptly. Resolves bug 9731.
21752     - Stop trying to bootstrap all our directory information from
21753       only our first guard. Discovered while fixing bug 9946; bugfix
21754       on 0.2.4.8-alpha.
21756   o Minor features (bridges, pluggable transports):
21757     - Add threshold cutoffs to the networkstatus document created by
21758       the Bridge Authority. Fixes bug 1117.
21759     - On Windows, spawn background processes using the CREATE_NO_WINDOW
21760       flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled
21761       doesn't pop up a blank console window. (In Tor Browser Bundle 2.x,
21762       Vidalia set this option for us.) Implements ticket 10297.
21764   o Minor features (security):
21765     - Always clear OpenSSL bignums before freeing them -- even bignums
21766       that don't contain secrets. Resolves ticket 10793. Patch by
21767       Florent Daignière.
21769   o Minor features (config options and command line):
21770     - Add an --allow-missing-torrc commandline option that tells Tor to
21771       run even if the configuration file specified by -f is not available.
21772       Implements ticket 10060.
21773     - Add support for the TPROXY transparent proxying facility on Linux.
21774       See documentation for the new TransProxyType option for more
21775       details. Implementation by "thomo". Closes ticket 10582.
21777   o Minor features (controller):
21778     - Add a new "HS_DESC" controller event that reports activities
21779       related to hidden service descriptors. Resolves ticket 8510.
21780     - New "DROPGUARDS" controller command to forget all current entry
21781       guards. Not recommended for ordinary use, since replacing guards
21782       too frequently makes several attacks easier. Resolves ticket 9934;
21783       patch from "ra".
21785   o Minor features (build):
21786     - Assume that a user using ./configure --host wants to cross-compile,
21787       and give an error if we cannot find a properly named
21788       tool-chain. Add a --disable-tool-name-check option to proceed
21789       nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz.
21790     - If we run ./configure and the compiler recognizes -fstack-protector
21791       but the linker rejects it, warn the user about a potentially missing
21792       libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz.
21794   o Minor features (testing):
21795     - If Python is installed, "make check" now runs extra tests beyond
21796       the unit test scripts.
21797     - When bootstrapping a test network, sometimes very few relays get
21798       the Guard flag. Now a new option "TestingDirAuthVoteGuard" can
21799       specify a set of relays which should be voted Guard regardless of
21800       their uptime or bandwidth. Addresses ticket 9206.
21802   o Minor features (log messages):
21803     - When ServerTransportPlugin is set on a bridge, Tor can write more
21804       useful statistics about bridge use in its extrainfo descriptors,
21805       but only if the Extended ORPort ("ExtORPort") is set too. Add a
21806       log message to inform the user in this case. Resolves ticket 9651.
21807     - When receiving a new controller connection, log the origin address.
21808       Resolves ticket 9698; patch from "sigpipe".
21809     - When logging OpenSSL engine status at startup, log the status of
21810       more engines. Fixes ticket 10043; patch from Joshua Datko.
21811     - Turn "circuit handshake stats since last time" log messages into a
21812       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
21814   o Minor features (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21815     - Improve the circuit queue out-of-memory handler. Previously, when
21816       we ran low on memory, we'd close whichever circuits had the most
21817       queued cells. Now, we close those that have the *oldest* queued
21818       cells, on the theory that those are most responsible for us
21819       running low on memory. Based on analysis from a forthcoming paper
21820       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
21821     - Generate bootstrapping status update events correctly when fetching
21822       microdescriptors. Fixes bug 9927.
21823     - Update to the October 2 2013 Maxmind GeoLite Country database.
21825   o Minor bugfixes (clients):
21826     - When closing a channel that has already been open, do not close
21827       pending circuits that were waiting to connect to the same relay.
21828       Fixes bug 9880; bugfix on 0.2.5.1-alpha. Thanks to skruffy for
21829       finding this bug.
21831   o Minor bugfixes (relays):
21832     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
21833       exit node as a NOROUTE error, not an INTERNAL error, since they
21834       can apparently happen when trying to connect to the wrong sort
21835       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
21837   o Minor bugfixes (bridges):
21838     - Fix a bug where the first connection works to a bridge that uses a
21839       pluggable transport with client-side parameters, but we don't send
21840       the client-side parameters on subsequent connections. (We don't
21841       use any pluggable transports with client-side parameters yet,
21842       but ScrambleSuit will soon become the first one.) Fixes bug 9162;
21843       bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987".
21845   o Minor bugfixes (node selection):
21846     - If ExcludeNodes is set, consider non-excluded hidden service
21847       directory servers before excluded ones. Do not consider excluded
21848       hidden service directory servers at all if StrictNodes is
21849       set. (Previously, we would sometimes decide to connect to those
21850       servers, and then realize before we initiated a connection that
21851       we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha.
21852       Reported by "mr-4".
21853     - If we set the ExitNodes option but it doesn't include any nodes
21854       that have the Exit flag, we would choose not to bootstrap. Now we
21855       bootstrap so long as ExitNodes includes nodes which can exit to
21856       some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha.
21858   o Minor bugfixes (controller and command-line):
21859     - If changing a config option via "setconf" fails in a recoverable
21860       way, we used to nonetheless write our new control ports to the
21861       file described by the "ControlPortWriteToFile" option. Now we only
21862       write out that file if we successfully switch to the new config
21863       option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman".
21864     - When a command-line option such as --version or --help that
21865       ordinarily implies --hush appears on the command line along with
21866       --quiet, then actually obey --quiet. Previously, we obeyed --quiet
21867       only if it appeared later on the command line. Fixes bug 9578;
21868       bugfix on 0.2.5.1-alpha.
21870   o Minor bugfixes (code correctness):
21871     - Previously we used two temporary files when writing descriptors to
21872       disk; now we only use one. Fixes bug 1376.
21873     - Remove an erroneous (but impossible and thus harmless) pointer
21874       comparison that would have allowed compilers to skip a bounds
21875       check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on
21876       0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield.
21877     - Fix an always-true assertion in pluggable transports code so it
21878       actually checks what it was trying to check. Fixes bug 10046;
21879       bugfix on 0.2.3.9-alpha. Found by "dcb".
21881   o Minor bugfixes (protocol correctness):
21882     - When receiving a VERSIONS cell with an odd number of bytes, close
21883       the connection immediately since the cell is malformed. Fixes bug
21884       10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by
21885       "rl1987".
21887   o Minor bugfixes (build):
21888     - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER
21889       turned off (that is, without support for v2 link handshakes). Fixes
21890       bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet".
21891     - Fix compilation warnings and startup issues when running with
21892       "Sandbox 1" and libseccomp-2.1.0. Fixes bug 10563; bugfix on
21893       0.2.5.1-alpha.
21894     - Fix compilation on Solaris 9, which didn't like us having an
21895       identifier named "sun". Fixes bug 10565; bugfix in 0.2.5.1-alpha.
21897   o Minor bugfixes (testing):
21898     - Fix a segmentation fault in our benchmark code when running with
21899       Fedora's OpenSSL package, or any other OpenSSL that provides
21900       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
21902   o Minor bugfixes (log messages):
21903     - Fix a bug where clients using bridges would report themselves
21904       as 50% bootstrapped even without a live consensus document.
21905       Fixes bug 9922; bugfix on 0.2.1.1-alpha.
21906     - Suppress a warning where, if there's only one directory authority
21907       in the network, we would complain that votes and signatures cannot
21908       be uploaded to other directory authorities. Fixes bug 10842;
21909       bugfix on 0.2.2.26-beta.
21910     - Report bootstrapping progress correctly when we're downloading
21911       microdescriptors. We had updated our "do we have enough microdescs
21912       to begin building circuits?" logic most recently in 0.2.4.10-alpha
21913       (see bug 5956), but we left the bootstrap status event logic at
21914       "how far through getting 1/4 of them are we?" Fixes bug 9958;
21915       bugfix on 0.2.2.36, which is where they diverged (see bug 5343).
21917   o Minor bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
21918     - Avoid a crash bug when starting with a corrupted microdescriptor
21919       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
21920     - If we fail to dump a previously cached microdescriptor to disk, avoid
21921       freeing duplicate data later on. Fixes bug 10423; bugfix on
21922       0.2.4.13-alpha. Spotted by "bobnomnom".
21924   o Minor bugfixes on 0.2.4.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21925     - Correctly log long IPv6 exit policies, instead of truncating them
21926       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
21927     - Our default TLS ecdhe groups were backwards: we meant to be using
21928       P224 for relays (for performance win) and P256 for bridges (since
21929       it is more common in the wild). Instead we had it backwards. After
21930       reconsideration, we decided that the default should be P256 on all
21931       hosts, since its security is probably better, and since P224 is
21932       reportedly used quite little in the wild.  Found by "skruffy" on
21933       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
21934     - Free directory authority certificate download statuses on exit
21935       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
21937   o Minor bugfixes on 0.2.3.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21938     - If the guard we choose first doesn't answer, we would try the
21939       second guard, but once we connected to the second guard we would
21940       abandon it and retry the first one, slowing down bootstrapping.
21941       The fix is to treat all our initially chosen guards as acceptable
21942       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
21943     - Fix an assertion failure that would occur when disabling the
21944       ORPort setting on a running Tor process while accounting was
21945       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
21946     - When examining the list of network interfaces to find our address,
21947       do not consider non-running or disabled network interfaces. Fixes
21948       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
21949     - Avoid an off-by-one error when checking buffer boundaries when
21950       formatting the exit status of a pluggable transport helper.
21951       This is probably not an exploitable bug, but better safe than
21952       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
21953       Pedro Ribeiro.
21955   o Removed code and features:
21956     - Clients now reject any directory authority certificates lacking
21957       a dir-key-crosscert element. These have been included since
21958       0.2.1.9-alpha, so there's no real reason for them to be optional
21959       any longer. Completes proposal 157. Resolves ticket 10162.
21960     - Remove all code that existed to support the v2 directory system,
21961       since there are no longer any v2 directory authorities. Resolves
21962       ticket 10758.
21963     - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc
21964       options, which were used for designating authorities as "Hidden
21965       service authorities". There has been no use of hidden service
21966       authorities since 0.2.2.1-alpha, when we stopped uploading or
21967       downloading v0 hidden service descriptors. Fixes bug 10881; also
21968       part of a fix for bug 10841.
21970   o Code simplification and refactoring:
21971     - Remove some old fallback code designed to keep Tor clients working
21972       in a network with only two working relays. Elsewhere in the code we
21973       have long since stopped supporting such networks, so there wasn't
21974       much point in keeping it around. Addresses ticket 9926.
21975     - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536;
21976       bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".
21977     - Remove data structures which were introduced to implement the
21978       CellStatistics option: they are now redundant with the addition
21979       of a timestamp to the regular packed_cell_t data structure, which
21980       we did in 0.2.4.18-rc in order to resolve ticket 9093. Implements
21981       ticket 10870.
21983   o Documentation (man page) fixes:
21984     - Update manpage to describe some of the files you can expect to
21985       find in Tor's DataDirectory. Addresses ticket 9839.
21986     - Document that all but one DirPort entry must have the NoAdvertise
21987       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
21989   o Documentation fixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
21990     - Clarify the usage and risks of setting the ContactInfo torrc line
21991       for your relay or bridge. Resolves ticket 9854.
21992     - Add anchors to the manpage so we can link to the html version of
21993       the documentation for specific options. Resolves ticket 9866.
21994     - Replace remaining references to DirServer in man page and
21995       log entries. Resolves ticket 10124.
21997   o Tool changes:
21998     - Make the "tor-gencert" tool used by directory authority operators
21999       create 2048-bit signing keys by default (rather than 1024-bit, since
22000       1024-bit is uncomfortably small these days). Addresses ticket 10324.
22003 Changes in version 0.2.4.20 - 2013-12-22
22004   Tor 0.2.4.20 fixes potentially poor random number generation for users
22005   who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their
22006   torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors,
22007   and 4) have no state file in their DataDirectory (as would happen on
22008   first start). Users who generated relay or hidden service identity
22009   keys in such a situation should discard them and generate new ones.
22011   This release also fixes a logic error that caused Tor clients to build
22012   many more preemptive circuits than they actually need.
22014   o Major bugfixes:
22015     - Do not allow OpenSSL engines to replace the PRNG, even when
22016       HardwareAccel is set. The only default builtin PRNG engine uses
22017       the Intel RDRAND instruction to replace the entire PRNG, and
22018       ignores all attempts to seed it with more entropy. That's
22019       cryptographically stupid: the right response to a new alleged
22020       entropy source is never to discard all previously used entropy
22021       sources. Fixes bug 10402; works around behavior introduced in
22022       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
22023       and "rl1987".
22024     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
22025       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
22026     - Avoid launching spurious extra circuits when a stream is pending.
22027       This fixes a bug where any circuit that _wasn't_ unusable for new
22028       streams would be treated as if it were, causing extra circuits to
22029       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
22031   o Minor bugfixes:
22032     - Avoid a crash bug when starting with a corrupted microdescriptor
22033       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
22034     - If we fail to dump a previously cached microdescriptor to disk, avoid
22035       freeing duplicate data later on. Fixes bug 10423; bugfix on
22036       0.2.4.13-alpha. Spotted by "bobnomnom".
22039 Changes in version 0.2.4.19 - 2013-12-11
22040   The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz
22041   (1986-2013). Aaron worked on diverse projects including helping to guide
22042   Creative Commons, playing a key role in stopping SOPA/PIPA, bringing
22043   transparency to the U.S government's PACER documents, and contributing
22044   design and development for Tor and Tor2Web. Aaron was one of the latest
22045   martyrs in our collective fight for civil liberties and human rights,
22046   and his death is all the more painful because he was one of us.
22048   Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features
22049   a new circuit handshake and link encryption that use ECC to provide
22050   better security and efficiency; makes relays better manage circuit
22051   creation requests; uses "directory guards" to reduce client enumeration
22052   risks; makes bridges collect and report statistics about the pluggable
22053   transports they support; cleans up and improves our geoip database;
22054   gets much closer to IPv6 support for clients, bridges, and relays; makes
22055   directory authorities use measured bandwidths rather than advertised
22056   ones when computing flags and thresholds; disables client-side DNS
22057   caching to reduce tracking risks; and fixes a big bug in bridge
22058   reachability testing. This release introduces two new design
22059   abstractions in the code: a new "channel" abstraction between circuits
22060   and or_connections to allow for implementing alternate relay-to-relay
22061   transports, and a new "circuitmux" abstraction storing the queue of
22062   circuits for a channel. The release also includes many stability,
22063   security, and privacy fixes.
22066 Changes in version 0.2.4.18-rc - 2013-11-16
22067   Tor 0.2.4.18-rc is the fourth release candidate for the Tor 0.2.4.x
22068   series. It takes a variety of fixes from the 0.2.5.x branch to improve
22069   stability, performance, and better handling of edge cases.
22071   o Major features:
22072     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
22073       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
22074       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
22075       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
22076       them to solve bug 6033.)
22078   o Major bugfixes:
22079     - No longer stop reading or writing on cpuworker connections when
22080       our rate limiting buckets go empty. Now we should handle circuit
22081       handshake requests more promptly. Resolves bug 9731.
22082     - If we are unable to save a microdescriptor to the journal, do not
22083       drop it from memory and then reattempt downloading it. Fixes bug
22084       9645; bugfix on 0.2.2.6-alpha.
22085     - Stop trying to bootstrap all our directory information from
22086       only our first guard. Discovered while fixing bug 9946; bugfix
22087       on 0.2.4.8-alpha.
22088     - The new channel code sometimes lost track of in-progress circuits,
22089       causing long-running clients to stop building new circuits. The
22090       fix is to always call circuit_n_chan_done(chan, 0) from
22091       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
22093   o Minor bugfixes (on 0.2.4.x):
22094     - Correctly log long IPv6 exit policies, instead of truncating them
22095       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
22096     - Our default TLS ecdhe groups were backwards: we meant to be using
22097       P224 for relays (for performance win) and P256 for bridges (since
22098       it is more common in the wild). Instead we had it backwards. After
22099       reconsideration, we decided that the default should be P256 on all
22100       hosts, since its security is probably better, and since P224 is
22101       reportedly used quite little in the wild.  Found by "skruffy" on
22102       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
22103     - Free directory authority certificate download statuses on exit
22104       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
22106   o Minor bugfixes (on 0.2.3.x and earlier):
22107     - If the guard we choose first doesn't answer, we would try the
22108       second guard, but once we connected to the second guard we would
22109       abandon it and retry the first one, slowing down bootstrapping.
22110       The fix is to treat all our initially chosen guards as acceptable
22111       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
22112     - Fix an assertion failure that would occur when disabling the
22113       ORPort setting on a running Tor process while accounting was
22114       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
22115     - When examining the list of network interfaces to find our address,
22116       do not consider non-running or disabled network interfaces. Fixes
22117       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
22118     - Avoid an off-by-one error when checking buffer boundaries when
22119       formatting the exit status of a pluggable transport helper.
22120       This is probably not an exploitable bug, but better safe than
22121       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
22122       Pedro Ribeiro.
22124   o Minor features (protecting client timestamps):
22125     - Clients no longer send timestamps in their NETINFO cells. These were
22126       not used for anything, and they provided one small way for clients
22127       to be distinguished from each other as they moved from network to
22128       network or behind NAT. Implements part of proposal 222.
22129     - Clients now round timestamps in INTRODUCE cells down to the nearest
22130       10 minutes. If a new Support022HiddenServices option is set to 0, or
22131       if it's set to "auto" and the feature is disabled in the consensus,
22132       the timestamp is sent as 0 instead. Implements part of proposal 222.
22133     - Stop sending timestamps in AUTHENTICATE cells. This is not such
22134       a big deal from a security point of view, but it achieves no actual
22135       good purpose, and isn't needed. Implements part of proposal 222.
22136     - Reduce down accuracy of timestamps in hidden service descriptors.
22137       Implements part of proposal 222.
22139   o Minor features (other):
22140     - Improve the circuit queue out-of-memory handler. Previously, when
22141       we ran low on memory, we'd close whichever circuits had the most
22142       queued cells. Now, we close those that have the *oldest* queued
22143       cells, on the theory that those are most responsible for us
22144       running low on memory. Based on analysis from a forthcoming paper
22145       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
22146     - Generate bootstrapping status update events correctly when fetching
22147       microdescriptors. Fixes bug 9927.
22148     - Update to the October 2 2013 Maxmind GeoLite Country database.
22150   o Documentation fixes:
22151     - Clarify the usage and risks of setting the ContactInfo torrc line
22152       for your relay or bridge. Resolves ticket 9854.
22153     - Add anchors to the manpage so we can link to the html version of
22154       the documentation for specific options. Resolves ticket 9866.
22155     - Replace remaining references to DirServer in man page and
22156       log entries. Resolves ticket 10124.
22159 Changes in version 0.2.5.1-alpha - 2013-10-02
22160   Tor 0.2.5.1-alpha introduces experimental support for syscall sandboxing
22161   on Linux, allows bridges that offer pluggable transports to report usage
22162   statistics, fixes many issues to make testing easier, and provides
22163   a pile of minor features and bugfixes that have been waiting for a
22164   release of the new branch.
22166   This is the first alpha release in a new series, so expect there to
22167   be bugs. Users who would rather test out a more stable branch should
22168   stay with 0.2.4.x for now.
22170   o Major features (security):
22171     - Use the seccomp2 syscall filtering facility on Linux to limit
22172       which system calls Tor can invoke. This is an experimental,
22173       Linux-only feature to provide defense-in-depth against unknown
22174       attacks. To try turning it on, set "Sandbox 1" in your torrc
22175       file. Please be ready to report bugs. We hope to add support
22176       for better sandboxing in the future, including more fine-grained
22177       filters, better division of responsibility, and support for more
22178       platforms. This work has been done by Cristian-Matei Toader for
22179       Google Summer of Code.
22180     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
22181       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
22182       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
22183       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
22184       them to solve bug 6033.)
22186   o Major features (other):
22187     - Add support for passing arguments to managed pluggable transport
22188       proxies. Implements ticket 3594.
22189     - Bridges now track GeoIP information and the number of their users
22190       even when pluggable transports are in use, and report usage
22191       statistics in their extra-info descriptors. Resolves tickets 4773
22192       and 5040.
22193     - Make testing Tor networks bootstrap better: lower directory fetch
22194       retry schedules and maximum interval without directory requests,
22195       and raise maximum download tries. Implements ticket 6752.
22196     - Add make target 'test-network' to run tests on a Chutney network.
22197       Implements ticket 8530.
22198     - The ntor handshake is now on-by-default, no matter what the
22199       directory authorities recommend. Implements ticket 8561.
22201   o Major bugfixes:
22202     - Instead of writing destroy cells directly to outgoing connection
22203       buffers, queue them and intersperse them with other outgoing cells.
22204       This can prevent a set of resource starvation conditions where too
22205       many pending destroy cells prevent data cells from actually getting
22206       delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912;
22207       bugfix on 0.2.0.1-alpha.
22208     - If we are unable to save a microdescriptor to the journal, do not
22209       drop it from memory and then reattempt downloading it. Fixes bug
22210       9645; bugfix on 0.2.2.6-alpha.
22211     - The new channel code sometimes lost track of in-progress circuits,
22212       causing long-running clients to stop building new circuits. The
22213       fix is to always call circuit_n_chan_done(chan, 0) from
22214       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
22216   o Build features:
22217     - Tor now builds each source file in two modes: a mode that avoids
22218       exposing identifiers needlessly, and another mode that exposes
22219       more identifiers for testing. This lets the compiler do better at
22220       optimizing the production code, while enabling us to take more
22221       radical measures to let the unit tests test things.
22222     - The production builds no longer include functions used only in
22223       the unit tests; all functions exposed from a module only for
22224       unit-testing are now static in production builds.
22225     - Add an --enable-coverage configuration option to make the unit
22226       tests (and a new src/or/tor-cov target) to build with gcov test
22227       coverage support.
22229   o Testing:
22230     - We now have rudimentary function mocking support that our unit
22231       tests can use to test functions in isolation. Function mocking
22232       lets the tests temporarily replace a function's dependencies with
22233       stub functions, so that the tests can check the function without
22234       invoking the other functions it calls.
22235     - Add more unit tests for the <circid,channel>->circuit map, and
22236       the destroy-cell-tracking code to fix bug 7912.
22237     - Unit tests for failing cases of the TAP onion handshake.
22238     - More unit tests for address-manipulation functions.
22240   o Minor features (protecting client timestamps):
22241     - Clients no longer send timestamps in their NETINFO cells. These were
22242       not used for anything, and they provided one small way for clients
22243       to be distinguished from each other as they moved from network to
22244       network or behind NAT. Implements part of proposal 222.
22245     - Clients now round timestamps in INTRODUCE cells down to the nearest
22246       10 minutes. If a new Support022HiddenServices option is set to 0, or
22247       if it's set to "auto" and the feature is disabled in the consensus,
22248       the timestamp is sent as 0 instead. Implements part of proposal 222.
22249     - Stop sending timestamps in AUTHENTICATE cells. This is not such
22250       a big deal from a security point of view, but it achieves no actual
22251       good purpose, and isn't needed. Implements part of proposal 222.
22252     - Reduce down accuracy of timestamps in hidden service descriptors.
22253       Implements part of proposal 222.
22255   o Minor features (config options):
22256     - Config (torrc) lines now handle fingerprints which are missing
22257       their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5.
22258     - Support a --dump-config option to print some or all of the
22259       configured options. Mainly useful for debugging the command-line
22260       option parsing code. Helps resolve ticket 4647.
22261     - Raise awareness of safer logging: notify user of potentially
22262       unsafe config options, like logging more verbosely than severity
22263       "notice" or setting SafeLogging to 0. Resolves ticket 5584.
22264     - Add a new configuration option TestingV3AuthVotingStartOffset
22265       that bootstraps a network faster by changing the timing for
22266       consensus votes. Addresses ticket 8532.
22267     - Add a new torrc option "ServerTransportOptions" that allows
22268       bridge operators to pass configuration parameters to their
22269       pluggable transports. Resolves ticket 8929.
22270     - The config (torrc) file now accepts bandwidth and space limits in
22271       bits as well as bytes. (Anywhere that you can say "2 Kilobytes",
22272       you can now say "16 kilobits", and so on.) Resolves ticket 9214.
22273       Patch by CharlieB.
22275   o Minor features (build):
22276     - Add support for `--library-versions` flag. Implements ticket 6384.
22277     - Return the "unexpected sendme" warnings to a warn severity, but make
22278       them rate limited, to help diagnose ticket 8093.
22279     - Detect a missing asciidoc, and warn the user about it, during
22280       configure rather than at build time. Fixes issue 6506. Patch from
22281       Arlo Breault.
22283   o Minor features (other):
22284     - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking
22285       sockets in a single system call. Implements ticket 5129.
22286     - Log current accounting state (bytes sent and received + remaining
22287       time for the current accounting period) in the relay's heartbeat
22288       message. Implements ticket 5526; patch from Peter Retzlaff.
22289     - Implement the TRANSPORT_LAUNCHED control port event that
22290       notifies controllers about new launched pluggable
22291       transports. Resolves ticket 5609.
22292     - If we're using the pure-C 32-bit curve25519_donna implementation
22293       of curve25519, build it with the -fomit-frame-pointer option to
22294       make it go faster on register-starved hosts. This improves our
22295       handshake performance by about 6% on i386 hosts without nacl.
22296       Closes ticket 8109.
22297     - Update to the September 4 2013 Maxmind GeoLite Country database.
22299   o Minor bugfixes:
22300     - Set the listen() backlog limit to the largest actually supported
22301       on the system, not to the value in a header file. Fixes bug 9716;
22302       bugfix on every released Tor.
22303     - No longer accept malformed http headers when parsing urls from
22304       headers. Now we reply with Bad Request ("400"). Fixes bug 2767;
22305       bugfix on 0.0.6pre1.
22306     - In munge_extrainfo_into_routerinfo(), check the return value of
22307       memchr(). This would have been a serious issue if we ever passed
22308       it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch
22309       from Arlo Breault.
22310     - On the chance that somebody manages to build Tor on a
22311       platform where time_t is unsigned, correct the way that
22312       microdesc_add_to_cache() handles negative time arguments.
22313       Fixes bug 8042; bugfix on 0.2.3.1-alpha.
22314     - Reject relative control socket paths and emit a warning. Previously,
22315       single-component control socket paths would be rejected, but Tor
22316       would not log why it could not validate the config. Fixes bug 9258;
22317       bugfix on 0.2.3.16-alpha.
22319   o Minor bugfixes (command line):
22320     - Use a single command-line parser for parsing torrc options on the
22321       command line and for finding special command-line options to avoid
22322       inconsistent behavior for torrc option arguments that have the same
22323       names as command-line options. Fixes bugs 4647 and 9578; bugfix on
22324       0.0.9pre5.
22325     - No longer allow 'tor --hash-password' with no arguments. Fixes bug
22326       9573; bugfix on 0.0.9pre5.
22328   o Minor fixes (build, auxiliary programs):
22329     - Stop preprocessing the "torify" script with autoconf, since
22330       it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch
22331       from Guilhem.
22332     - The tor-fw-helper program now follows the standard convention and
22333       exits with status code "0" on success. Fixes bug 9030; bugfix on
22334       0.2.3.1-alpha. Patch by Arlo Breault.
22335     - Corrected ./configure advice for what openssl dev package you should
22336       install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha.
22338   o Minor code improvements:
22339     - Remove constants and tests for PKCS1 padding; it's insecure and
22340       shouldn't be used for anything new. Fixes bug 8792; patch
22341       from Arlo Breault.
22342     - Remove instances of strcpy() from the unit tests. They weren't
22343       hurting anything, since they were only in the unit tests, but it's
22344       embarrassing to have strcpy() in the code at all, and some analysis
22345       tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and
22346       0.2.3.8-alpha. Patch from Arlo Breault.
22348   o Removed features:
22349     - Remove migration code from when we renamed the "cached-routers"
22350       file to "cached-descriptors" back in 0.2.0.8-alpha. This
22351       incidentally resolves ticket 6502 by cleaning up the related code
22352       a bit. Patch from Akshay Hebbar.
22354   o Code simplification and refactoring:
22355     - Extract the common duplicated code for creating a subdirectory
22356       of the data directory and writing to a file in it. Fixes ticket
22357       4282; patch from Peter Retzlaff.
22358     - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output
22359       buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(),
22360       i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170.
22361     - Add a set of accessor functions for the circuit timeout data
22362       structure. Fixes ticket 6153; patch from "piet".
22363     - Clean up exit paths from connection_listener_new(). Closes ticket
22364       8789. Patch from Arlo Breault.
22365     - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp()
22366       and drop our own custom pkey_eq() implementation. Fixes bug 9043.
22367     - Use a doubly-linked list to implement the global circuit list.
22368       Resolves ticket 9108. Patch from Marek Majkowski.
22369     - Remove contrib/id_to_fp.c since it wasn't used anywhere.
22372 Changes in version 0.2.4.17-rc - 2013-09-05
22373   Tor 0.2.4.17-rc is the third release candidate for the Tor 0.2.4.x
22374   series. It adds an emergency step to help us tolerate the massive
22375   influx of users: 0.2.4 clients using the new (faster and safer) "NTor"
22376   circuit-level handshakes now effectively jump the queue compared to
22377   the 0.2.3 clients using "TAP" handshakes. This release also fixes a
22378   big bug hindering bridge reachability tests.
22380   o Major features:
22381     - Relays now process the new "NTor" circuit-level handshake requests
22382       with higher priority than the old "TAP" circuit-level handshake
22383       requests. We still process some TAP requests to not totally starve
22384       0.2.3 clients when NTor becomes popular. A new consensus parameter
22385       "NumNTorsPerTAP" lets us tune the balance later if we need to.
22386       Implements ticket 9574.
22388   o Major bugfixes:
22389     - If the circuit build timeout logic is disabled (via the consensus,
22390       or because we are an authority), then don't build testing circuits.
22391       Fixes bug 9657; bugfix on 0.2.2.14-alpha.
22392     - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes;
22393       previously they did not, which prevented them from receiving
22394       successful connections from relays for self-test or bandwidth
22395       testing. Also, when a relay is extending a circuit to a bridge,
22396       it needs to send a NETINFO cell, even when the bridge hasn't sent
22397       an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
22398     - If the time to download the next old-style networkstatus is in
22399       the future, do not decline to consider whether to download the
22400       next microdescriptor networkstatus. Fixes bug 9564; bugfix on
22401       0.2.3.14-alpha.
22403   o Minor bugfixes:
22404     - Avoid double-closing the listener socket in our socketpair()
22405       replacement (used on Windows) in the case where the addresses on
22406       our opened sockets don't match what we expected. Fixes bug 9400;
22407       bugfix on 0.0.2pre7. Found by Coverity.
22409   o Minor fixes (config options):
22410     - Avoid overflows when the user sets MaxCircuitDirtiness to a
22411       ridiculously high value, by imposing a (ridiculously high) 30-day
22412       maximum on MaxCircuitDirtiness.
22413     - Fix the documentation of HeartbeatPeriod to say that the heartbeat
22414       message is logged at notice, not at info.
22415     - Warn and fail if a server is configured not to advertise any
22416       ORPorts at all. (We need *something* to put in our descriptor,
22417       or we just won't work.)
22419   o Minor features:
22420     - Track how many "TAP" and "NTor" circuit handshake requests we get,
22421       and how many we complete, and log it every hour to help relay
22422       operators follow trends in network load. Addresses ticket 9658.
22423     - Update to the August 7 2013 Maxmind GeoLite Country database.
22426 Changes in version 0.2.4.16-rc - 2013-08-10
22427   Tor 0.2.4.16-rc is the second release candidate for the Tor 0.2.4.x
22428   series. It fixes several crash bugs in the 0.2.4 branch.
22430   o Major bugfixes:
22431     - Fix a bug in the voting algorithm that could yield incorrect results
22432       when a non-naming authority declared too many flags. Fixes bug 9200;
22433       bugfix on 0.2.0.3-alpha.
22434     - Fix an uninitialized read that could in some cases lead to a remote
22435       crash while parsing INTRODUCE2 cells. Bugfix on 0.2.4.1-alpha.
22436       Anybody running a hidden service on the experimental 0.2.4.x
22437       branch should upgrade. (This is, so far as we know, unrelated to
22438       the recent news.)
22439     - Avoid an assertion failure when processing DNS replies without the
22440       answer types we expected. Fixes bug 9337; bugfix on 0.2.4.7-alpha.
22441     - Avoid a crash when using --hash-password. Fixes bug 9295; bugfix on
22442       0.2.4.15-rc. Found by stem integration tests.
22444   o Minor bugfixes:
22445     - Fix an invalid memory read that occurred when a pluggable
22446       transport proxy failed its configuration protocol.
22447       Fixes bug 9288; bugfix on 0.2.4.1-alpha.
22448     - When evaluating whether to use a connection that we haven't
22449       decided is canonical using a recent link protocol version,
22450       decide that it's canonical only if it used address _does_
22451       match the desired address. Fixes bug 9309; bugfix on
22452       0.2.4.4-alpha. Reported by skruffy.
22453     - Make the default behavior of NumDirectoryGuards be to track
22454       NumEntryGuards. Now a user who changes only NumEntryGuards will get
22455       the behavior she expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.
22456     - Fix a spurious compilation warning with some older versions of
22457       GCC on FreeBSD. Fixes bug 9254; bugfix on 0.2.4.14-alpha.
22459   o Minor features:
22460     - Update to the July 3 2013 Maxmind GeoLite Country database.
22463 Changes in version 0.2.4.15-rc - 2013-07-01
22464   Tor 0.2.4.15-rc is the first release candidate for the Tor 0.2.4.x
22465   series. It fixes a few smaller bugs, but generally appears stable.
22466   Please test it and let us know whether it is!
22468   o Major bugfixes:
22469     - When receiving a new configuration file via the control port's
22470       LOADCONF command, do not treat the defaults file as absent.
22471       Fixes bug 9122; bugfix on 0.2.3.9-alpha.
22473   o Minor features:
22474     - Issue a warning when running with the bufferevents backend enabled.
22475       It's still not stable, and people should know that they're likely
22476       to hit unexpected problems. Closes ticket 9147.
22479 Changes in version 0.2.4.14-alpha - 2013-06-18
22480   Tor 0.2.4.14-alpha fixes a pair of client guard enumeration problems
22481   present in 0.2.4.13-alpha.
22483   o Major bugfixes:
22484     - When we have too much memory queued in circuits (according to a new
22485       MaxMemInCellQueues option), close the circuits consuming the most
22486       memory. This prevents us from running out of memory as a relay if
22487       circuits fill up faster than they can be drained. Fixes bug 9063;
22488       bugfix on the 54th commit of Tor. This bug is a further fix beyond
22489       bug 6252, whose fix was merged into 0.2.3.21-rc.
22491       This change also fixes an earlier approach taken in 0.2.4.13-alpha,
22492       where we tried to solve this issue simply by imposing an upper limit
22493       on the number of queued cells for a single circuit. That approach
22494       proved to be problematic, since there are ways to provoke clients to
22495       send a number of cells in excess of any such reasonable limit. Fixes
22496       bug 9072; bugfix on 0.2.4.13-alpha.
22498     - Limit hidden service descriptors to at most ten introduction
22499       points, to slow one kind of guard enumeration. Fixes bug 9002;
22500       bugfix on 0.1.1.11-alpha.
22503 Changes in version 0.2.4.13-alpha - 2013-06-14
22504   Tor 0.2.4.13-alpha fixes a variety of potential remote crash
22505   vulnerabilities, makes socks5 username/password circuit isolation
22506   actually actually work (this time for sure!), and cleans up a bunch
22507   of other issues in preparation for a release candidate.
22509   o Major bugfixes (robustness):
22510     - Close any circuit that has too many cells queued on it. Fixes
22511       bug 9063; bugfix on the 54th commit of Tor. This bug is a further
22512       fix beyond bug 6252, whose fix was merged into 0.2.3.21-rc.
22513     - Prevent the get_freelists() function from running off the end of
22514       the list of freelists if it somehow gets an unrecognized
22515       allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by
22516       eugenis.
22517     - Avoid an assertion failure on OpenBSD (and perhaps other BSDs)
22518       when an exit connection with optimistic data succeeds immediately
22519       rather than returning EINPROGRESS. Fixes bug 9017; bugfix on
22520       0.2.3.1-alpha.
22521     - Fix a directory authority crash bug when building a consensus
22522       using an older consensus as its basis. Fixes bug 8833. Bugfix
22523       on 0.2.4.12-alpha.
22525   o Major bugfixes:
22526     - Avoid a memory leak where we would leak a consensus body when we
22527       find that a consensus which we couldn't previously verify due to
22528       missing certificates is now verifiable. Fixes bug 8719; bugfix
22529       on 0.2.0.10-alpha.
22530     - We used to always request authority certificates by identity digest,
22531       meaning we'd get the newest one even when we wanted one with a
22532       different signing key. Then we would complain about being given
22533       a certificate we already had, and never get the one we really
22534       wanted. Now we use the "fp-sk/" resource as well as the "fp/"
22535       resource to request the one we want. Fixes bug 5595; bugfix on
22536       0.2.0.8-alpha.
22537     - Follow the socks5 protocol when offering username/password
22538       authentication. The fix for bug 8117 exposed this bug, and it
22539       turns out real-world applications like Pidgin do care. Bugfix on
22540       0.2.3.2-alpha; fixes bug 8879.
22541     - Prevent failures on Windows Vista and later when rebuilding the
22542       microdescriptor cache. Diagnosed by Robert Ransom. Fixes bug 8822;
22543       bugfix on 0.2.4.12-alpha.
22545   o Minor bugfixes:
22546     - Fix an impossible buffer overrun in the AES unit tests. Fixes
22547       bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis.
22548     - If for some reason we fail to write a microdescriptor while
22549       rebuilding the cache, do not let the annotations from that
22550       microdescriptor linger in the cache file, and do not let the
22551       microdescriptor stay recorded as present in its old location.
22552       Fixes bug 9047; bugfix on 0.2.2.6-alpha.
22553     - Fix a memory leak that would occur whenever a configuration
22554       option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha.
22555     - Paste the description for PathBias parameters from the man
22556       page into or.h, so the code documents them too. Fixes bug 7982;
22557       bugfix on 0.2.3.17-beta and 0.2.4.8-alpha.
22558     - Relays now treat a changed IPv6 ORPort as sufficient reason to
22559       publish an updated descriptor. Fixes bug 6026; bugfix on
22560       0.2.4.1-alpha.
22561     - When launching a resolve request on behalf of an AF_UNIX control
22562       socket, omit the address field of the new entry connection, used in
22563       subsequent controller events, rather than letting tor_dup_addr()
22564       set it to "<unknown address type>". Fixes bug 8639; bugfix on
22565       0.2.4.12-alpha.
22567   o Minor bugfixes (log messages):
22568     - Fix a scaling issue in the path bias accounting code that
22569       resulted in "Bug:" log messages from either
22570       pathbias_scale_close_rates() or pathbias_count_build_success().
22571       This represents a bugfix on a previous bugfix: the original fix
22572       attempted in 0.2.4.10-alpha was incomplete. Fixes bug 8235; bugfix
22573       on 0.2.4.1-alpha.
22574     - Give a less useless error message when the user asks for an IPv4
22575       address on an IPv6-only port, or vice versa. Fixes bug 8846; bugfix
22576       on 0.2.4.7-alpha.
22578   o Minor features:
22579     - Downgrade "unexpected SENDME" warnings to protocol-warn for 0.2.4.x,
22580       to tolerate bug 8093 for now.
22581     - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines
22582       in directory authority votes to describe whether they have enough
22583       measured bandwidths to ignore advertised (relay descriptor)
22584       bandwidth claims. Resolves ticket 8711.
22585     - Update to the June 5 2013 Maxmind GeoLite Country database.
22587   o Removed documentation:
22588     - Remove some of the older contents of doc/ as obsolete; move others
22589       to torspec.git. Fixes bug 8965.
22591   o Code simplification and refactoring:
22592     - Avoid using character buffers when constructing most directory
22593       objects: this approach was unwieldy and error-prone. Instead,
22594       build smartlists of strings, and concatenate them when done.
22597 Changes in version 0.2.4.12-alpha - 2013-04-18
22598   Tor 0.2.4.12-alpha moves Tor forward on several fronts: it starts the
22599   process for lengthening the guard rotation period, makes directory
22600   authority opinions in the consensus a bit less gameable, makes socks5
22601   username/password circuit isolation actually work, and fixes a wide
22602   variety of other issues.
22604   o Major features:
22605     - Raise the default time that a client keeps an entry guard from
22606       "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES
22607       2012 paper. (We would make it even longer, but we need better client
22608       load balancing first.) Also, make the guard lifetime controllable
22609       via a new GuardLifetime torrc option and a GuardLifetime consensus
22610       parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha.
22611     - Directory authorities now prefer using measured bandwidths to
22612       advertised ones when computing flags and thresholds. Resolves
22613       ticket 8273.
22614     - Directory authorities that have more than a threshold number
22615       of relays with measured bandwidths now treat relays with unmeasured
22616       bandwidths as having bandwidth 0. Resolves ticket 8435.
22618   o Major bugfixes (assert / resource use):
22619     - Avoid a bug where our response to TLS renegotiation under certain
22620       network conditions could lead to a busy-loop, with 100% CPU
22621       consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha.
22622     - Avoid an assertion when we discover that we'd like to write a cell
22623       onto a closing connection: just discard the cell. Fixes another
22624       case of bug 7350; bugfix on 0.2.4.4-alpha.
22626   o Major bugfixes (client-side privacy):
22627     - When we mark a circuit as unusable for new circuits, have it
22628       continue to be unusable for new circuits even if MaxCircuitDirtiness
22629       is increased too much at the wrong time, or the system clock jumps
22630       backwards. Fixes bug 6174; bugfix on 0.0.2pre26.
22631     - If ClientDNSRejectInternalAddresses ("do not believe DNS queries
22632       which have resolved to internal addresses") is set, apply that
22633       rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha.
22634     - When an exit relay rejects a stream with reason "exit policy", but
22635       we only know an exit policy summary (e.g. from the microdesc
22636       consensus) for it, do not mark the relay as useless for all exiting.
22637       Instead, mark just the circuit as unsuitable for that particular
22638       address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha.
22639     - Allow applications to get proper stream isolation with
22640       IsolateSOCKSAuth. Many SOCKS5 clients that want to offer
22641       username/password authentication also offer "no authentication". Tor
22642       had previously preferred "no authentication", so the applications
22643       never actually sent Tor their auth details. Now Tor selects
22644       username/password authentication if it's offered. You can disable
22645       this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes
22646       bug 8117; bugfix on 0.2.3.3-alpha.
22648   o Major bugfixes (other):
22649     - When unable to find any working directory nodes to use as a
22650       directory guard, give up rather than adding the same non-working
22651       nodes to the directory guard list over and over. Fixes bug 8231;
22652       bugfix on 0.2.4.8-alpha.
22654   o Minor features:
22655     - Reject as invalid most directory objects containing a NUL.
22656       Belt-and-suspender fix for bug 8037.
22657     - In our testsuite, create temporary directories with a bit more
22658       entropy in their name to make name collisions less likely. Fixes
22659       bug 8638.
22660     - Add CACHED keyword to ADDRMAP events in the control protocol
22661       to indicate whether a DNS result will be cached or not. Resolves
22662       ticket 8596.
22663     - Update to the April 3 2013 Maxmind GeoLite Country database.
22665   o Minor features (build):
22666     - Detect and reject attempts to build Tor with threading support
22667       when OpenSSL has been compiled without threading support.
22668       Fixes bug 6673.
22669     - Clarify that when autoconf is checking for nacl, it is checking
22670       specifically for nacl with a fast curve25519 implementation.
22671       Fixes bug 8014.
22672     - Warn if building on a platform with an unsigned time_t: there
22673       are too many places where Tor currently assumes that time_t can
22674       hold negative values. We'd like to fix them all, but probably
22675       some will remain.
22677   o Minor bugfixes (build):
22678     - Fix some bugs in tor-fw-helper-natpmp when trying to build and
22679       run it on Windows. More bugs likely remain. Patch from Gisle Vanem.
22680       Fixes bug 7280; bugfix on 0.2.3.1-alpha.
22681     - Add the old src/or/micro-revision.i filename to CLEANFILES.
22682       On the off chance that somebody has one, it will go away as soon
22683       as they run "make clean". Fix for bug 7143; bugfix on 0.2.4.1-alpha.
22684     - Build Tor correctly on 32-bit platforms where the compiler can build
22685       but not run code using the "uint128_t" construction. Fixes bug 8587;
22686       bugfix on 0.2.4.8-alpha.
22687     - Fix compilation warning with some versions of clang that would
22688       prefer the -Wswitch-enum compiler flag to warn about switch
22689       statements with missing enum values, even if those switch
22690       statements have a "default:" statement. Fixes bug 8598; bugfix
22691       on 0.2.4.10-alpha.
22693   o Minor bugfixes (protocol):
22694     - Fix the handling of a TRUNCATE cell when it arrives while the
22695       circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1.
22696     - Fix a misframing issue when reading the version numbers in a
22697       VERSIONS cell. Previously we would recognize [00 01 00 02] as
22698       'version 1, version 2, and version 0x100', when it should have
22699       only included versions 1 and 2. Fixes bug 8059; bugfix on
22700       0.2.0.10-alpha. Reported pseudonymously.
22701     - Make the format and order of STREAM events for DNS lookups
22702       consistent among the various ways to launch DNS lookups. Fixes
22703       bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy".
22704     - Correct our check for which versions of Tor support the EXTEND2
22705       cell. We had been willing to send it to Tor 0.2.4.7-alpha and
22706       later, when support was really added in version 0.2.4.8-alpha.
22707       Fixes bug 8464; bugfix on 0.2.4.8-alpha.
22709   o Minor bugfixes (other):
22710     - Correctly store microdescriptors and extrainfo descriptors with
22711       an internal NUL byte. Fixes bug 8037; bugfix on 0.2.0.1-alpha.
22712       Bug reported by "cypherpunks".
22713     - Increase the width of the field used to remember a connection's
22714       link protocol version to two bytes. Harmless for now, since the
22715       only currently recognized versions are one byte long. Reported
22716       pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha.
22717     - If the state file's path bias counts are invalid (presumably from a
22718       buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add
22719       additional checks and log messages to the scaling of Path Bias
22720       counts, in case there still are remaining issues with scaling.
22721       Should help resolve bug 8235.
22722     - Eliminate several instances where we use "Nickname=ID" to refer to
22723       nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use
22724       "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix
22725       on 0.2.3.21-rc, 0.2.4.5-alpha, 0.2.4.8-alpha, and 0.2.4.10-alpha.
22727   o Minor bugfixes (syscalls):
22728     - Always check the return values of functions fcntl() and
22729       setsockopt(). We don't believe these are ever actually failing in
22730       practice, but better safe than sorry. Also, checking these return
22731       values should please analysis tools like Coverity. Patch from
22732       'flupzor'. Fixes bug 8206; bugfix on all versions of Tor.
22733     - Use direct writes rather than stdio when building microdescriptor
22734       caches, in an attempt to mitigate bug 8031, or at least make it
22735       less common.
22737   o Minor bugfixes (config):
22738     - When rejecting a configuration because we were unable to parse a
22739       quoted string, log an actual error message. Fixes bug 7950; bugfix
22740       on 0.2.0.16-alpha.
22741     - Behave correctly when the user disables LearnCircuitBuildTimeout
22742       but doesn't tell us what they would like the timeout to be. Fixes
22743       bug 6304; bugfix on 0.2.2.14-alpha.
22744     - When autodetecting the number of CPUs, use the number of available
22745       CPUs in preference to the number of configured CPUs. Inform the
22746       user if this reduces the number of available CPUs. Fixes bug 8002;
22747       bugfix on 0.2.3.1-alpha.
22748     - Make it an error when you set EntryNodes but disable UseGuardNodes,
22749       since it will (surprisingly to some users) ignore EntryNodes. Fixes
22750       bug 8180; bugfix on 0.2.3.11-alpha.
22751     - Allow TestingTorNetworks to override the 4096-byte minimum for
22752       the Fast threshold. Otherwise they can't bootstrap until they've
22753       observed more traffic. Fixes bug 8508; bugfix on 0.2.4.10-alpha.
22754     - Fix some logic errors when the user manually overrides the
22755       PathsNeededToBuildCircuits option in torrc. Fixes bug 8599; bugfix
22756       on 0.2.4.10-alpha.
22758   o Minor bugfixes (log messages to help diagnose bugs):
22759     - If we fail to free a microdescriptor because of bug 7164, log
22760       the filename and line number from which we tried to free it.
22761     - Add another diagnostic to the heartbeat message: track and log
22762       overhead that TLS is adding to the data we write. If this is
22763       high, we are sending too little data to SSL_write at a time.
22764       Diagnostic for bug 7707.
22765     - Add more detail to a log message about relaxed timeouts, to help
22766       track bug 7799.
22767     - Warn more aggressively when flushing microdescriptors to a
22768       microdescriptor cache fails, in an attempt to mitigate bug 8031,
22769       or at least make it more diagnosable.
22770     - Improve debugging output to help track down bug 8185 ("Bug:
22771       outgoing relay cell has n_chan==NULL. Dropping.")
22772     - Log the purpose of a path-bias testing circuit correctly.
22773       Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.
22775   o Minor bugfixes (0.2.4.x log messages that were too noisy):
22776     - Don't attempt to relax the timeout of already opened 1-hop circuits.
22777       They might never timeout. This should eliminate some/all cases of
22778       the relaxed timeout log message.
22779     - Use circuit creation time for network liveness evaluation. This
22780       should eliminate warning log messages about liveness caused
22781       by changes in timeout evaluation. Fixes bug 6572; bugfix on
22782       0.2.4.8-alpha.
22783     - Reduce a path bias length check from notice to info. The message
22784       is triggered when creating controller circuits. Fixes bug 8196;
22785       bugfix on 0.2.4.8-alpha.
22786     - Fix a path state issue that triggered a notice during relay startup.
22787       Fixes bug 8320; bugfix on 0.2.4.10-alpha.
22788     - Reduce occurrences of warns about circuit purpose in
22789       connection_ap_expire_building(). Fixes bug 8477; bugfix on
22790       0.2.4.11-alpha.
22792   o Minor bugfixes (pre-0.2.4.x log messages that were too noisy):
22793     - If we encounter a write failure on a SOCKS connection before we
22794       finish our SOCKS handshake, don't warn that we closed the
22795       connection before we could send a SOCKS reply. Fixes bug 8427;
22796       bugfix on 0.1.0.1-rc.
22797     - Correctly recognize that [::1] is a loopback address. Fixes
22798       bug 8377; bugfix on 0.2.1.3-alpha.
22799     - Fix a directory authority warn caused when we have a large amount
22800       of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha.
22801     - Don't log inappropriate heartbeat messages when hibernating: a
22802       hibernating node is _expected_ to drop out of the consensus,
22803       decide it isn't bootstrapped, and so forth. Fixes bug 7302;
22804       bugfix on 0.2.3.1-alpha.
22805     - Don't complain about bootstrapping problems while hibernating.
22806       These complaints reflect a general code problem, but not one
22807       with any problematic effects (no connections are actually
22808       opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha.
22810   o Documentation fixes:
22811     - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
22812       names match. Fixes bug 7768.
22813     - Make the torify manpage no longer refer to tsocks; torify hasn't
22814       supported tsocks since 0.2.3.14-alpha.
22815     - Make the tor manpage no longer reference tsocks.
22816     - Fix the GeoIPExcludeUnknown documentation to refer to
22817       ExcludeExitNodes rather than the currently nonexistent
22818       ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk.
22820   o Removed files:
22821     - The tor-tsocks.conf is no longer distributed or installed. We
22822       recommend that tsocks users use torsocks instead. Resolves
22823       ticket 8290.
22826 Changes in version 0.2.4.11-alpha - 2013-03-11
22827   Tor 0.2.4.11-alpha makes relay measurement by directory authorities
22828   more robust, makes hidden service authentication work again, and
22829   resolves a DPI fingerprint for Tor's SSL transport.
22831   o Major features (directory authorities):
22832     - Directory authorities now support a new consensus method (17)
22833       where they cap the published bandwidth of servers for which
22834       insufficient bandwidth measurements exist. Fixes part of bug 2286.
22835     - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer
22836       serve any v2 directory information. Now we can test disabling the
22837       old deprecated v2 directory format, and see whether doing so has
22838       any effect on network load. Begins to fix bug 6783.
22839     - Directory authorities now include inside each vote a statement of
22840       the performance thresholds they used when assigning flags.
22841       Implements ticket 8151.
22843   o Major bugfixes (directory authorities):
22844     - Stop marking every relay as having been down for one hour every
22845       time we restart a directory authority. These artificial downtimes
22846       were messing with our Stable and Guard flag calculations. Fixes
22847       bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
22849   o Major bugfixes (hidden services):
22850     - Allow hidden service authentication to succeed again. When we
22851       refactored the hidden service introduction code back
22852       in 0.2.4.1-alpha, we didn't update the code that checks
22853       whether authentication information is present, causing all
22854       authentication checks to return "false". Fix for bug 8207; bugfix
22855       on 0.2.4.1-alpha. Found by Coverity; this is CID 718615.
22857   o Minor features (relays, bridges):
22858     - Make bridge relays check once a minute for whether their IP
22859       address has changed, rather than only every 15 minutes. Resolves
22860       bugs 1913 and 1992.
22861     - Refactor resolve_my_address() so it returns the method by which we
22862       decided our public IP address (explicitly configured, resolved from
22863       explicit hostname, guessed from interfaces, learned by gethostname).
22864       Now we can provide more helpful log messages when a relay guesses
22865       its IP address incorrectly (e.g. due to unexpected lines in
22866       /etc/hosts). Resolves ticket 2267.
22867     - Teach bridge-using clients to avoid 0.2.2 bridges when making
22868       microdescriptor-related dir requests, and only fall back to normal
22869       descriptors if none of their bridges can handle microdescriptors
22870       (as opposed to the fix in ticket 4013, which caused them to fall
22871       back to normal descriptors if *any* of their bridges preferred
22872       them). Resolves ticket 4994.
22873     - Randomize the lifetime of our SSL link certificate, so censors can't
22874       use the static value for filtering Tor flows. Resolves ticket 8443;
22875       related to ticket 4014 which was included in 0.2.2.33.
22876     - Support a new version of the link protocol that allows 4-byte circuit
22877       IDs. Previously, circuit IDs were limited to 2 bytes, which presented
22878       a possible resource exhaustion issue. Closes ticket 7351; implements
22879       proposal 214.
22881   o Minor features (portability):
22882     - Tweak the curve25519-donna*.c implementations to tolerate systems
22883       that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.
22884     - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine
22885       the signs of types during autoconf. This is better than our old
22886       approach, which didn't work when cross-compiling.
22887     - Detect the sign of enum values, rather than assuming that MSC is the
22888       only compiler where enum types are all signed. Fixes bug 7727;
22889       bugfix on 0.2.4.10-alpha.
22891   o Minor features (other):
22892     - Say "KBytes" rather than "KB" in the man page (for various values
22893       of K), to further reduce confusion about whether Tor counts in
22894       units of memory or fractions of units of memory. Resolves ticket 7054.
22895     - Clear the high bit on curve25519 public keys before passing them to
22896       our backend, in case we ever wind up using a backend that doesn't do
22897       so itself. If we used such a backend, and *didn't* clear the high bit,
22898       we could wind up in a situation where users with such backends would
22899       be distinguishable from users without. Fixes bug 8121; bugfix on
22900       0.2.4.8-alpha.
22901     - Update to the March 6 2013 Maxmind GeoLite Country database.
22903   o Minor bugfixes (clients):
22904     - When we receive a RELAY_END cell with the reason DONE, or with no
22905       reason, before receiving a RELAY_CONNECTED cell, report the SOCKS
22906       status as "connection refused". Previously we reported these cases
22907       as success but then immediately closed the connection. Fixes bug
22908       7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed".
22909     - Downgrade an assertion in connection_ap_expire_beginning to an
22910       LD_BUG message. The fix for bug 8024 should prevent this message
22911       from displaying, but just in case, a warn that we can diagnose
22912       is better than more assert crashes. Fixes bug 8065; bugfix on
22913       0.2.4.8-alpha.
22914     - Lower path use bias thresholds to .80 for notice and .60 for warn.
22915       Also make the rate limiting flags for the path use bias log messages
22916       independent from the original path bias flags. Fixes bug 8161;
22917       bugfix on 0.2.4.10-alpha.
22919   o Minor bugfixes (relays):
22920     - Stop trying to resolve our hostname so often (e.g. every time we
22921       think about doing a directory fetch). Now we reuse the cached
22922       answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc)
22923       and 2410 (bugfix on 0.1.2.2-alpha).
22924     - Stop sending a stray "(null)" in some cases for the server status
22925       "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix
22926       on 0.1.2.6-alpha.
22927     - When choosing which stream on a formerly stalled circuit to wake
22928       first, make better use of the platform's weak RNG. Previously,
22929       we had been using the % ("modulo") operator to try to generate a
22930       1/N chance of picking each stream, but this behaves badly with
22931       many platforms' choice of weak RNG. Fixes bug 7801; bugfix on
22932       0.2.2.20-alpha.
22933     - Use our own weak RNG when we need a weak RNG. Windows's rand() and
22934       Irix's random() only return 15 bits; Solaris's random() returns more
22935       bits but its RAND_MAX says it only returns 15, and so on. Motivated
22936       by the fix for bug 7801; bugfix on 0.2.2.20-alpha.
22938   o Minor bugfixes (directory authorities):
22939     - Directory authorities now use less space when formatting identical
22940       microdescriptor lines in directory votes. Fixes bug 8158; bugfix
22941       on 0.2.4.1-alpha.
22943   o Minor bugfixes (memory leaks spotted by Coverity -- bug 7816):
22944     - Avoid leaking memory if we fail to compute a consensus signature
22945       or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha.
22946     - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix
22947       on 0.2.1.1-alpha.
22948     - Fix a memory leak during safe-cookie controller authentication.
22949       Bugfix on 0.2.3.13-alpha.
22950     - Avoid memory leak of IPv6 policy content if we fail to format it into
22951       a router descriptor. Bugfix on 0.2.4.7-alpha.
22953   o Minor bugfixes (other code correctness issues):
22954     - Avoid a crash if we fail to generate an extrainfo descriptor.
22955       Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity;
22956       this is CID 718634.
22957     - When detecting the largest possible file descriptor (in order to
22958       close all file descriptors when launching a new program), actually
22959       use _SC_OPEN_MAX. The old code for doing this was very, very broken.
22960       Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this
22961       is CID 743383.
22962     - Fix a copy-and-paste error when adding a missing A1 to a routerset
22963       because of GeoIPExcludeUnknown. Fix for Coverity CID 980650.
22964       Bugfix on 0.2.4.10-alpha.
22965     - Fix an impossible-to-trigger integer overflow when estimating how
22966       long our onionskin queue would take. (This overflow would require us
22967       to accept 4 million onionskins before processing 100 of them.) Fixes
22968       bug 8210; bugfix on 0.2.4.10-alpha.
22970   o Code simplification and refactoring:
22971     - Add a wrapper function for the common "log a message with a
22972       rate-limit" case.
22975 Changes in version 0.2.4.10-alpha - 2013-02-04
22976   Tor 0.2.4.10-alpha adds defenses at the directory authority level from
22977   certain attacks that flood the network with relays; changes the queue
22978   for circuit create requests from a sized-based limit to a time-based
22979   limit; resumes building with MSVC on Windows; and fixes a wide variety
22980   of other issues.
22982   o Major bugfixes (directory authority):
22983     - When computing directory thresholds, ignore any rejected-as-sybil
22984       nodes during the computation so that they can't influence Fast,
22985       Guard, etc. (We should have done this for proposal 109.) Fixes
22986       bug 8146.
22987     - When marking a node as a likely sybil, reset its uptime metrics
22988       to zero, so that it cannot time towards getting marked as Guard,
22989       Stable, or HSDir. (We should have done this for proposal 109.) Fixes
22990       bug 8147.
22992   o Major bugfixes:
22993     - When a TLS write is partially successful but incomplete, remember
22994       that the flushed part has been flushed, and notice that bytes were
22995       actually written. Reported and fixed pseudonymously. Fixes bug
22996       7708; bugfix on Tor 0.1.0.5-rc.
22997     - Reject bogus create and relay cells with 0 circuit ID or 0 stream
22998       ID: these could be used to create unexpected streams and circuits
22999       which would count as "present" to some parts of Tor but "absent"
23000       to others, leading to zombie circuits and streams or to a bandwidth
23001       denial-of-service. Fixes bug 7889; bugfix on every released version
23002       of Tor. Reported by "oftc_must_be_destroyed".
23003     - Rename all macros in our local copy of queue.h to begin with "TOR_".
23004       This change seems the only good way to permanently prevent conflicts
23005       with queue.h on various operating systems. Fixes bug 8107; bugfix
23006       on 0.2.4.6-alpha.
23008   o Major features (relay):
23009     - Instead of limiting the number of queued onionskins (aka circuit
23010       create requests) to a fixed, hard-to-configure number, we limit
23011       the size of the queue based on how many we expect to be able to
23012       process in a given amount of time. We estimate the time it will
23013       take to process an onionskin based on average processing time
23014       of previous onionskins. Closes ticket 7291. You'll never have to
23015       configure MaxOnionsPending again.
23017   o Major features (portability):
23018     - Resume building correctly with MSVC and Makefile.nmake. This patch
23019       resolves numerous bugs and fixes reported by ultramage, including
23020       7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669.
23021     - Make the ntor and curve25519 code build correctly with MSVC.
23022       Fix on 0.2.4.8-alpha.
23024   o Minor features:
23025     - When directory authorities are computing thresholds for flags,
23026       never let the threshold for the Fast flag fall below 4096
23027       bytes. Also, do not consider nodes with extremely low bandwidths
23028       when deciding thresholds for various directory flags. This change
23029       should raise our threshold for Fast relays, possibly in turn
23030       improving overall network performance; see ticket 1854. Resolves
23031       ticket 8145.
23032     - The Tor client now ignores sub-domain components of a .onion
23033       address. This change makes HTTP "virtual" hosting
23034       possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and
23035       http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites
23036       hosted on the same hidden service. Implements proposal 204.
23037     - We compute the overhead from passing onionskins back and forth to
23038       cpuworkers, and report it when dumping statistics in response to
23039       SIGUSR1. Supports ticket 7291.
23041   o Minor features (path selection):
23042     - When deciding whether we have enough descriptors to build circuits,
23043       instead of looking at raw relay counts, look at which fraction
23044       of (bandwidth-weighted) paths we're able to build. This approach
23045       keeps clients from building circuits if their paths are likely to
23046       stand out statistically. The default fraction of paths needed is
23047       taken from the consensus directory; you can override it with the
23048       new PathsNeededToBuildCircuits option. Fixes ticket 5956.
23049     - When any country code is listed in ExcludeNodes or ExcludeExitNodes,
23050       and we have GeoIP information, also exclude all nodes with unknown
23051       countries "??" and "A1". This behavior is controlled by the
23052       new GeoIPExcludeUnknown option: you can make such nodes always
23053       excluded with "GeoIPExcludeUnknown 1", and disable the feature
23054       with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto"
23055       gets you the default behavior. Implements feature 7706.
23056     - Path Use Bias: Perform separate accounting for successful circuit
23057       use. Keep separate statistics on stream attempt rates versus stream
23058       success rates for each guard. Provide configurable thresholds to
23059       determine when to emit log messages or disable use of guards that
23060       fail too many stream attempts. Resolves ticket 7802.
23062   o Minor features (log messages):
23063     - When learning a fingerprint for a bridge, log its corresponding
23064       transport type. Implements ticket 7896.
23065     - Improve the log message when "Bug/attack: unexpected sendme cell
23066       from client" occurs, to help us track bug 8093.
23068   o Minor bugfixes:
23069     - Remove a couple of extraneous semicolons that were upsetting the
23070       cparser library. Patch by Christian Grothoff. Fixes bug 7115;
23071       bugfix on 0.2.2.1-alpha.
23072     - Remove a source of rounding error during path bias count scaling;
23073       don't count cannibalized circuits as used for path bias until we
23074       actually try to use them; and fix a circuit_package_relay_cell()
23075       warning message about n_chan==NULL. Fixes bug 7802.
23076     - Detect nacl when its headers are in a nacl/ subdirectory. Also,
23077       actually link against nacl when we're configured to use it. Fixes
23078       bug 7972; bugfix on 0.2.4.8-alpha.
23079     - Compile correctly with the --disable-curve25519 option. Fixes
23080       bug 8153; bugfix on 0.2.4.8-alpha.
23082   o Build improvements:
23083     - Do not report status verbosely from autogen.sh unless the -v flag
23084       is specified. Fixes issue 4664. Patch from Onizuka.
23085     - Replace all calls to snprintf() outside of src/ext with
23086       tor_snprintf(). Also remove the #define to replace snprintf with
23087       _snprintf on Windows; they have different semantics, and all of
23088       our callers should be using tor_snprintf() anyway. Fixes bug 7304.
23089     - Try to detect if we are ever building on a platform where
23090       memset(...,0,...) does not set the value of a double to 0.0. Such
23091       platforms are permitted by the C standard, though in practice
23092       they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't
23093       currently support them, but it's better to detect them and fail
23094       than to perform erroneously.
23096   o Removed features:
23097     - Stop exporting estimates of v2 and v3 directory traffic shares
23098       in extrainfo documents. They were unneeded and sometimes inaccurate.
23099       Also stop exporting any v2 directory request statistics. Resolves
23100       ticket 5823.
23101     - Drop support for detecting and warning about versions of Libevent
23102       before 1.3e. Nothing reasonable ships with them any longer;
23103       warning the user about them shouldn't be needed. Resolves ticket
23104       6826.
23106   o Code simplifications and refactoring:
23107     - Rename "isin" functions to "contains", for grammar. Resolves
23108       ticket 5285.
23109     - Rename Tor's logging function log() to tor_log(), to avoid conflicts
23110       with the natural logarithm function from the system libm. Resolves
23111       ticket 7599.
23114 Changes in version 0.2.4.9-alpha - 2013-01-15
23115   Tor 0.2.4.9-alpha provides a quick fix to make the new ntor handshake
23116   work more robustly.
23118   o Major bugfixes:
23119     - Fix backward compatibility logic when receiving an embedded ntor
23120       handshake tunneled in a CREATE cell. This clears up the "Bug:
23121       couldn't format CREATED cell" warning. Fixes bug 7959; bugfix
23122       on 0.2.4.8-alpha.
23125 Changes in version 0.2.4.8-alpha - 2013-01-14
23126   Tor 0.2.4.8-alpha introduces directory guards to reduce user enumeration
23127   risks, adds a new stronger and faster circuit handshake, and offers
23128   stronger and faster link encryption when both sides support it.
23130   o Major features:
23131     - Preliminary support for directory guards (proposal 207): when
23132       possible, clients now use their entry guards for non-anonymous
23133       directory requests. This can help prevent client enumeration. Note
23134       that this behavior only works when we have a usable consensus
23135       directory, and when options about what to download are more or less
23136       standard. In the future we should re-bootstrap from our guards,
23137       rather than re-bootstrapping from the preconfigured list of
23138       directory sources that ships with Tor. Resolves ticket 6526.
23139     - Tor relays and clients now support a better CREATE/EXTEND cell
23140       format, allowing the sender to specify multiple address, identity,
23141       and handshake types. Implements Robert Ransom's proposal 200;
23142       closes ticket 7199.
23144   o Major features (new circuit handshake):
23145     - Tor now supports a new circuit extension handshake designed by Ian
23146       Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original
23147       circuit extension handshake, later called "TAP", was a bit slow
23148       (especially on the relay side), had a fragile security proof, and
23149       used weaker keys than we'd now prefer. The new circuit handshake
23150       uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman
23151       function, making it significantly more secure than the older
23152       handshake, and significantly faster. Tor can use one of two built-in
23153       pure-C curve25519-donna implementations by Adam Langley, or it
23154       can link against the "nacl" library for a tuned version if present.
23156       The built-in version is very fast for 64-bit systems when building
23157       with GCC. The built-in 32-bit version is still faster than the
23158       old TAP protocol, but using libnacl is better on most such hosts.
23160       Clients don't currently use this protocol by default, since
23161       comparatively few clients support it so far. To try it, set
23162       UseNTorHandshake to 1.
23164       Implements proposal 216; closes ticket 7202.
23166   o Major features (better link encryption):
23167     - Relays can now enable the ECDHE TLS ciphersuites when available
23168       and appropriate. These ciphersuites let us negotiate forward-secure
23169       TLS secret keys more safely and more efficiently than with our
23170       previous use of Diffie-Hellman modulo a 1024-bit prime. By default,
23171       public relays prefer the (faster) P224 group, and bridges prefer
23172       the (more common) P256 group; you can override this with the
23173       TLSECGroup option.
23175       Enabling these ciphers was a little tricky, since for a long time,
23176       clients had been claiming to support them without actually doing
23177       so, in order to foil fingerprinting. But with the client-side
23178       implementation of proposal 198 in 0.2.3.17-beta, clients can now
23179       match the ciphers from recent Firefox versions *and* list the
23180       ciphers they actually mean, so relays can believe such clients
23181       when they advertise ECDHE support in their TLS ClientHello messages.
23183       This feature requires clients running 0.2.3.17-beta or later,
23184       and requires both sides to be running OpenSSL 1.0.0 or later
23185       with ECC support. OpenSSL 1.0.1, with the compile-time option
23186       "enable-ec_nistp_64_gcc_128", is highly recommended.
23188       Implements the relay side of proposal 198; closes ticket 7200.
23190   o Major bugfixes:
23191     - Avoid crashing when, as a relay without IPv6-exit support, a
23192       client insists on getting an IPv6 address or nothing. Fixes bug
23193       7814; bugfix on 0.2.4.7-alpha.
23195   o Minor features:
23196     - Improve circuit build timeout handling for hidden services.
23197       In particular: adjust build timeouts more accurately depending
23198       upon the number of hop-RTTs that a particular circuit type
23199       undergoes. Additionally, launch intro circuits in parallel
23200       if they timeout, and take the first one to reply as valid.
23201     - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are
23202       separate error codes; or at least, don't break for that reason.
23203       Fixes bug 7935. Reported by "oftc_must_be_destroyed".
23204     - Update to the January 2 2013 Maxmind GeoLite Country database.
23206   o Minor features (testing):
23207     - Add benchmarks for DH (1024-bit multiplicative group) and ECDH
23208       (P-256) Diffie-Hellman handshakes to src/or/bench.
23209     - Add benchmark functions to test onion handshake performance.
23211   o Minor features (path bias detection):
23212     - Alter the Path Bias log messages to be more descriptive in terms
23213       of reporting timeouts and other statistics.
23214     - Create three levels of Path Bias log messages, as opposed to just
23215       two. These are configurable via consensus as well as via the torrc
23216       options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate.
23217       The default values are 0.70, 0.50, and 0.30 respectively.
23218     - Separate the log message levels from the decision to drop guards,
23219       which also is available via torrc option PathBiasDropGuards.
23220       PathBiasDropGuards still defaults to 0 (off).
23221     - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards
23222       in combination with PathBiasExtremeRate.
23223     - Increase the default values for PathBiasScaleThreshold and
23224       PathBiasCircThreshold from (200, 20) to (300, 150).
23225     - Add in circuit usage accounting to path bias. If we try to use a
23226       built circuit but fail for any reason, it counts as path bias.
23227       Certain classes of circuits where the adversary gets to pick your
23228       destination node are exempt from this accounting. Usage accounting
23229       can be specifically disabled via consensus parameter or torrc.
23230     - Convert all internal path bias state to double-precision floating
23231       point, to avoid roundoff error and other issues.
23232     - Only record path bias information for circuits that have completed
23233       *two* hops. Assuming end-to-end tagging is the attack vector, this
23234       makes us more resilient to ambient circuit failure without any
23235       detection capability loss.
23237   o Minor bugfixes (log messages):
23238     - Rate-limit the "No circuits are opened. Relaxed timeout for a
23239       circuit with channel state open..." message to once per hour to
23240       keep it from filling the notice logs. Mitigates bug 7799 but does
23241       not fix the underlying cause. Bugfix on 0.2.4.7-alpha.
23242     - Avoid spurious warnings when configuring multiple client ports of
23243       which only some are nonlocal. Previously, we had claimed that some
23244       were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on
23245       0.2.3.3-alpha.
23247   o Code simplifications and refactoring:
23248     - Get rid of a couple of harmless clang warnings, where we compared
23249       enums to ints. These warnings are newly introduced in clang 3.2.
23250     - Split the onion.c file into separate modules for the onion queue
23251       and the different handshakes it supports.
23252     - Remove the marshalling/unmarshalling code for sending requests to
23253       cpuworkers over a socket, and instead just send structs. The
23254       recipient will always be the same Tor binary as the sender, so
23255       any encoding is overkill.
23258 Changes in version 0.2.4.7-alpha - 2012-12-24
23259   Tor 0.2.4.7-alpha introduces a new approach to providing fallback
23260   directory mirrors for more robust bootstrapping; fixes more issues where
23261   clients with changing network conditions refuse to make any circuits;
23262   adds initial support for exiting to IPv6 addresses; resumes being able
23263   to update our GeoIP database, and includes the geoip6 file this time;
23264   turns off the client-side DNS cache by default due to privacy risks;
23265   and fixes a variety of other issues.
23267   o Major features (client resilience):
23268     - Add a new "FallbackDir" torrc option to use when we can't use
23269       a directory mirror from the consensus (either because we lack a
23270       consensus, or because they're all down). Currently, all authorities
23271       are fallbacks by default, and there are no other default fallbacks,
23272       but that will change. This option will allow us to give clients a
23273       longer list of servers to try to get a consensus from when first
23274       connecting to the Tor network, and thereby reduce load on the
23275       directory authorities. Implements proposal 206, "Preconfigured
23276       directory sources for bootstrapping". We also removed the old
23277       "FallbackNetworkstatus" option, since we never got it working well
23278       enough to use it. Closes bug 572.
23279     - If we have no circuits open, use a relaxed timeout (the
23280       95-percentile cutoff) until a circuit succeeds. This heuristic
23281       should allow Tor to succeed at building circuits even when the
23282       network connection drastically changes. Should help with bug 3443.
23284   o Major features (IPv6):
23285     - Relays can now exit to IPv6 addresses: make sure that you have IPv6
23286       connectivity, then set the IPv6Exit flag to 1. Also make sure your
23287       exit policy reads as you would like: the address * applies to all
23288       address families, whereas *4 is IPv4 address only, and *6 is IPv6
23289       addresses only. On the client side, you'll need to wait until the
23290       authorities have upgraded, wait for enough exits to support IPv6,
23291       apply the "IPv6Traffic" flag to a SocksPort, and use Socks5. Closes
23292       ticket 5547, implements proposal 117 as revised in proposal 208.
23294       We DO NOT recommend that clients with actual anonymity needs start
23295       using IPv6 over Tor yet, since not enough exits support it yet.
23297   o Major features (geoip database):
23298     - Maxmind began labelling Tor relays as being in country "A1",
23299       which breaks by-country node selection inside Tor. Now we use a
23300       script to replace "A1" ("Anonymous Proxy") entries in our geoip
23301       file with real country codes. This script fixes about 90% of "A1"
23302       entries automatically and uses manual country code assignments to
23303       fix the remaining 10%. See src/config/README.geoip for details.
23304       Fixes bug 6266. Also update to the December 5 2012 Maxmind GeoLite
23305       Country database, as modified above.
23307   o Major bugfixes (client-side DNS):
23308     - Turn off the client-side DNS cache by default. Updating and using
23309       the DNS cache is now configurable on a per-client-port
23310       level. SOCKSPort, DNSPort, etc lines may now contain
23311       {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't
23312       cache these types of DNS answers when we receive them from an
23313       exit node in response to an application request on this port, and
23314       {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have
23315       cached DNS answers of these types, we shouldn't use them. It's
23316       potentially risky to use cached DNS answers at the client, since
23317       doing so can indicate to one exit what answers we've gotten
23318       for DNS lookups in the past. With IPv6, this becomes especially
23319       problematic. Using cached DNS answers for requests on the same
23320       circuit would present less linkability risk, since all traffic
23321       on a circuit is already linkable, but it would also provide
23322       little performance benefit: the exit node caches DNS replies
23323       too. Implements a simplified version of Proposal 205. Implements
23324       ticket 7570.
23326   o Major bugfixes (other):
23327     - Alter circuit build timeout measurement to start at the point
23328       where we begin the CREATE/CREATE_FAST step (as opposed to circuit
23329       initialization). This should make our timeout measurements more
23330       uniform. Previously, we were sometimes including ORconn setup time
23331       in our circuit build time measurements. Should resolve bug 3443.
23332     - Fix an assertion that could trigger in hibernate_go_dormant() when
23333       closing an or_connection_t: call channel_mark_for_close() rather
23334       than connection_mark_for_close(). Fixes bug 7267. Bugfix on
23335       0.2.4.4-alpha.
23336     - Include the geoip6 IPv6 GeoIP database in the tarball. Fixes bug
23337       7655; bugfix on 0.2.4.6-alpha.
23339   o Minor features:
23340     - Add a new torrc option "ServerTransportListenAddr" to let bridge
23341       operators select the address where their pluggable transports will
23342       listen for connections. Resolves ticket 7013.
23343     - Allow an optional $ before the node identity digest in the
23344       controller command GETINFO ns/id/<identity>, for consistency with
23345       md/id/<identity> and desc/id/<identity>. Resolves ticket 7059.
23346     - Log packaged cell fullness as part of the heartbeat message.
23347       Diagnosis to try to determine the extent of bug 7743.
23349   o Minor features (IPv6):
23350     - AutomapHostsOnResolve now supports IPv6 addresses. By default, we
23351       prefer to hand out virtual IPv6 addresses, since there are more of
23352       them and we can't run out. To override this behavior and make IPv4
23353       addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort
23354       or DNSPort you're using for resolving. Implements ticket 7571.
23355     - AutomapHostsOnResolve responses are now randomized, to avoid
23356       annoying situations where Tor is restarted and applications
23357       connect to the wrong addresses.
23358     - Never try more than 1000 times to pick a new virtual address when
23359       AutomapHostsOnResolve is set. That's good enough so long as we
23360       aren't close to handing out our entire virtual address space;
23361       if you're getting there, it's best to switch to IPv6 virtual
23362       addresses anyway.
23364   o Minor bugfixes:
23365     - The ADDRMAP command can no longer generate an ill-formed error
23366       code on a failed MAPADDRESS. It now says "internal" rather than
23367       an English sentence fragment with spaces in the middle. Bugfix on
23368       Tor 0.2.0.19-alpha.
23369     - Fix log messages and comments to avoid saying "GMT" when we mean
23370       "UTC". Fixes bug 6113.
23371     - Compile on win64 using mingw64. Fixes bug 7260; patches from
23372       "yayooo".
23373     - Fix a crash when debugging unit tests on Windows: deallocate a
23374       shared library with FreeLibrary, not CloseHandle. Fixes bug 7306;
23375       bugfix on 0.2.2.17-alpha. Reported by "ultramage".
23377   o Renamed options:
23378     - The DirServer option is now DirAuthority, for consistency with
23379       current naming patterns. You can still use the old DirServer form.
23381   o Code simplification and refactoring:
23382     - Move the client-side address-map/virtual-address/DNS-cache code
23383       out of connection_edge.c into a new addressmap.c module.
23384     - Remove unused code for parsing v1 directories and "running routers"
23385       documents. Fixes bug 6887.
23388 Changes in version 0.2.3.25 - 2012-11-19
23389   The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi"
23390   Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher,
23391   Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer,
23392   programmer, and friend. Unstinting in his dedication to the cause of
23393   freedom, he inspired and helped many of us as we began our work on
23394   anonymity, and inspires us still. Please honor his memory by writing
23395   software to protect people's freedoms, and by helping others to do so.
23397   Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features
23398   significantly reduced directory overhead (via microdescriptors),
23399   enormous crypto performance improvements for fast relays on new
23400   enough hardware, a new v3 TLS handshake protocol that can better
23401   resist fingerprinting, support for protocol obfuscation plugins (aka
23402   pluggable transports), better scalability for hidden services, IPv6
23403   support for bridges, performance improvements like allowing clients
23404   to skip the first round-trip on the circuit ("optimistic data") and
23405   refilling token buckets more often, a new "stream isolation" design
23406   to isolate different applications on different circuits, and many
23407   stability, security, and privacy fixes.
23409   o Major bugfixes:
23410     - Tor tries to wipe potentially sensitive data after using it, so
23411       that if some subsequent security failure exposes Tor's memory,
23412       the damage will be limited. But we had a bug where the compiler
23413       was eliminating these wipe operations when it decided that the
23414       memory was no longer visible to a (correctly running) program,
23415       hence defeating our attempt at defense in depth. We fix that
23416       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
23417       is unlikely to optimize away. Future versions of Tor may use
23418       a less ridiculously heavy approach for this. Fixes bug 7352.
23419       Reported in an article by Andrey Karpov.
23421   o Minor bugfixes:
23422     - Fix a harmless bug when opting against publishing a relay descriptor
23423       because DisableNetwork is set. Fixes bug 7464; bugfix on
23424       0.2.3.9-alpha.
23427 Changes in version 0.2.4.6-alpha - 2012-11-13
23428   Tor 0.2.4.6-alpha fixes an assert bug that has been plaguing relays,
23429   makes our defense-in-depth memory wiping more reliable, and begins to
23430   count IPv6 addresses in bridge statistics,
23432   o Major bugfixes:
23433     - Fix an assertion failure that could occur when closing a connection
23434       with a spliced rendezvous circuit. Fix for bug 7212; bugfix on
23435       Tor 0.2.4.4-alpha.
23436     - Tor tries to wipe potentially sensitive data after using it, so
23437       that if some subsequent security failure exposes Tor's memory,
23438       the damage will be limited. But we had a bug where the compiler
23439       was eliminating these wipe operations when it decided that the
23440       memory was no longer visible to a (correctly running) program,
23441       hence defeating our attempt at defense in depth. We fix that
23442       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
23443       is unlikely to optimize away. Future versions of Tor may use
23444       a less ridiculously heavy approach for this. Fixes bug 7352.
23445       Reported in an article by Andrey Karpov.
23447   o Minor features:
23448     - Add GeoIP database for IPv6 addresses. The new config option
23449       is GeoIPv6File.
23450     - Bridge statistics now count bridge clients connecting over IPv6:
23451       bridge statistics files now list "bridge-ip-versions" and
23452       extra-info documents list "geoip6-db-digest". The control protocol
23453       "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial
23454       implementation by "shkoo", addressing ticket 5055.
23456   o Minor bugfixes:
23457     - Warn when we are binding low ports when hibernation is enabled;
23458       previously we had warned when we were _advertising_ low ports with
23459       hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
23460     - Fix a harmless bug when opting against publishing a relay descriptor
23461       because DisableNetwork is set. Fixes bug 7464; bugfix on
23462       0.2.3.9-alpha.
23463     - Add warning message when a managed proxy dies during configuration.
23464       Fixes bug 7195; bugfix on 0.2.4.2-alpha.
23465     - Fix a linking error when building tor-fw-helper without miniupnp.
23466       Fixes bug 7235; bugfix on 0.2.4.2-alpha. Fix by Anthony G. Basile.
23467     - Check for closing an or_connection_t without going through correct
23468       channel functions; emit a warning and then call
23469       connection_or_close_for_error() so we don't assert as in bugs 7212
23470       and 7267.
23471     - Compile correctly on compilers without C99 designated initializer
23472       support. Fixes bug 7286; bugfix on 0.2.4.4-alpha.
23473     - Avoid a possible assert that can occur when channel_send_destroy() is
23474       called on a channel in CHANNEL_STATE_CLOSING, CHANNEL_STATE_CLOSED,
23475       or CHANNEL_STATE_ERROR when the Tor process is resumed after being
23476       blocked for a long interval. Fixes bug 7350; bugfix on 0.2.4.4-alpha.
23477     - Fix a memory leak on failing cases of channel_tls_process_certs_cell.
23478       Fixes bug 7422; bugfix on 0.2.4.4-alpha.
23480   o Code simplification and refactoring:
23481     - Start using OpenBSD's implementation of queue.h, so that we don't
23482       need to hand-roll our own pointer and list structures whenever we
23483       need them. (We can't rely on a sys/queue.h, since some operating
23484       systems don't have them, and the ones that do have them don't all
23485       present the same extensions.)
23488 Changes in version 0.2.4.5-alpha - 2012-10-25
23489   Tor 0.2.4.5-alpha comes hard at the heels of 0.2.4.4-alpha, to fix
23490   two important security vulnerabilities that could lead to remotely
23491   triggerable relay crashes, fix a major bug that was preventing clients
23492   from choosing suitable exit nodes, and refactor some of our code.
23494   o Major bugfixes (security, also in 0.2.3.24-rc):
23495     - Fix a group of remotely triggerable assertion failures related to
23496       incorrect link protocol negotiation. Found, diagnosed, and fixed
23497       by "some guy from France". Fix for CVE-2012-2250; bugfix on
23498       0.2.3.6-alpha.
23499     - Fix a denial of service attack by which any directory authority
23500       could crash all the others, or by which a single v2 directory
23501       authority could crash everybody downloading v2 directory
23502       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
23504   o Major bugfixes (also in 0.2.3.24-rc):
23505     - When parsing exit policy summaries from microdescriptors, we had
23506       previously been ignoring the last character in each one, so that
23507       "accept 80,443,8080" would be treated by clients as indicating
23508       a node that allows access to ports 80, 443, and 808. That would
23509       lead to clients attempting connections that could never work,
23510       and ignoring exit nodes that would support their connections. Now
23511       clients parse these exit policy summaries correctly. Fixes bug 7192;
23512       bugfix on 0.2.3.1-alpha.
23514   o Minor bugfixes (also in 0.2.3.24-rc):
23515     - Clients now consider the ClientRejectInternalAddresses config option
23516       when using a microdescriptor consensus stanza to decide whether
23517       an exit relay would allow exiting to an internal address. Fixes
23518       bug 7190; bugfix on 0.2.3.1-alpha.
23520   o Minor bugfixes:
23521     - Only disable TLS session ticket support when running as a TLS
23522       server. Now clients will blend better with regular Firefox
23523       connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc.
23525   o Code simplification and refactoring:
23526     - Start using OpenBSD's implementation of queue.h (originally by
23527       Niels Provos).
23528     - Move the entry node code from circuitbuild.c to its own file.
23529     - Move the circuit build timeout tracking code from circuitbuild.c
23530       to its own file.
23533 Changes in version 0.2.3.24-rc - 2012-10-25
23534   Tor 0.2.3.24-rc fixes two important security vulnerabilities that
23535   could lead to remotely triggerable relay crashes, and fixes
23536   a major bug that was preventing clients from choosing suitable exit
23537   nodes.
23539   o Major bugfixes (security):
23540     - Fix a group of remotely triggerable assertion failures related to
23541       incorrect link protocol negotiation. Found, diagnosed, and fixed
23542       by "some guy from France". Fix for CVE-2012-2250; bugfix on
23543       0.2.3.6-alpha.
23544     - Fix a denial of service attack by which any directory authority
23545       could crash all the others, or by which a single v2 directory
23546       authority could crash everybody downloading v2 directory
23547       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
23549   o Major bugfixes:
23550     - When parsing exit policy summaries from microdescriptors, we had
23551       previously been ignoring the last character in each one, so that
23552       "accept 80,443,8080" would be treated by clients as indicating
23553       a node that allows access to ports 80, 443, and 808. That would
23554       lead to clients attempting connections that could never work,
23555       and ignoring exit nodes that would support their connections. Now
23556       clients parse these exit policy summaries correctly. Fixes bug 7192;
23557       bugfix on 0.2.3.1-alpha.
23559   o Minor bugfixes:
23560     - Clients now consider the ClientRejectInternalAddresses config option
23561       when using a microdescriptor consensus stanza to decide whether
23562       an exit relay would allow exiting to an internal address. Fixes
23563       bug 7190; bugfix on 0.2.3.1-alpha.
23566 Changes in version 0.2.4.4-alpha - 2012-10-20
23567   Tor 0.2.4.4-alpha adds a new v3 directory authority, fixes a privacy
23568   vulnerability introduced by a change in OpenSSL, fixes a remotely
23569   triggerable assert, and adds new channel_t and circuitmux_t abstractions
23570   that will make it easier to test new connection transport and cell
23571   scheduling algorithms.
23573   o New directory authorities (also in 0.2.3.23-rc):
23574     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
23575       authority. Closes ticket 5749.
23577   o Major bugfixes (security/privacy, also in 0.2.3.23-rc):
23578     - Disable TLS session tickets. OpenSSL's implementation was giving
23579       our TLS session keys the lifetime of our TLS context objects, when
23580       perfect forward secrecy would want us to discard anything that
23581       could decrypt a link connection as soon as the link connection
23582       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
23583       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
23584     - Discard extraneous renegotiation attempts once the V3 link
23585       protocol has been initiated. Failure to do so left us open to
23586       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
23587       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
23589   o Internal abstraction features:
23590     - Introduce new channel_t abstraction between circuits and
23591       or_connection_t to allow for implementing alternate OR-to-OR
23592       transports. A channel_t is an abstract object which can either be a
23593       cell-bearing channel, which is responsible for authenticating and
23594       handshaking with the remote OR and transmitting cells to and from
23595       it, or a listening channel, which spawns new cell-bearing channels
23596       at the request of remote ORs. Implements part of ticket 6465.
23597     - Also new is the channel_tls_t subclass of channel_t, adapting it
23598       to the existing or_connection_t code. The V2/V3 protocol handshaking
23599       code which formerly resided in command.c has been moved below the
23600       channel_t abstraction layer and may be found in channeltls.c now.
23601       Implements the rest of ticket 6465.
23602     - Introduce new circuitmux_t storing the queue of circuits for
23603       a channel; this encapsulates and abstracts the queue logic and
23604       circuit selection policy, and allows the latter to be overridden
23605       easily by switching out a policy object. The existing EWMA behavior
23606       is now implemented as a circuitmux_policy_t. Resolves ticket 6816.
23608   o Required libraries:
23609     - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is
23610       strongly recommended.
23612   o Minor features:
23613     - Warn users who run hidden services on a Tor client with
23614       UseEntryGuards disabled that their hidden services will be
23615       vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
23616       attack which motivated Tor to support entry guards in the first
23617       place). Resolves ticket 6889.
23618     - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from
23619       dhill. Resolves ticket 6982.
23620     - Option OutboundBindAddress can be specified multiple times and
23621       accepts IPv6 addresses. Resolves ticket 6876.
23623   o Minor bugfixes (also in 0.2.3.23-rc):
23624     - Don't serve or accept v2 hidden service descriptors over a
23625       relay's DirPort. It's never correct to do so, and disabling it
23626       might make it more annoying to exploit any bugs that turn up in the
23627       descriptor-parsing code. Fixes bug 7149.
23628     - Fix two cases in src/or/transports.c where we were calling
23629       fmt_addr() twice in a parameter list. Bug found by David
23630       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
23631     - Fix memory leaks whenever we logged any message about the "path
23632       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
23633     - When relays refuse a "create" cell because their queue of pending
23634       create cells is too big (typically because their cpu can't keep up
23635       with the arrival rate), send back reason "resource limit" rather
23636       than reason "internal", so network measurement scripts can get a
23637       more accurate picture. Fixes bug 7037; bugfix on 0.1.1.11-alpha.
23639   o Minor bugfixes:
23640     - Command-line option "--version" implies "--quiet". Fixes bug 6997.
23641     - Free some more still-in-use memory at exit, to make hunting for
23642       memory leaks easier. Resolves bug 7029.
23643     - When a Tor client gets a "truncated" relay cell, the first byte of
23644       its payload specifies why the circuit was truncated. We were
23645       ignoring this 'reason' byte when tearing down the circuit, resulting
23646       in the controller not being told why the circuit closed. Now we
23647       pass the reason from the truncated cell to the controller. Bugfix
23648       on 0.1.2.3-alpha; fixes bug 7039.
23649     - Downgrade "Failed to hand off onionskin" messages to "debug"
23650       severity, since they're typically redundant with the "Your computer
23651       is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
23652     - Make clients running with IPv6 bridges connect over IPv6 again,
23653       even without setting new config options ClientUseIPv6 and
23654       ClientPreferIPv6ORPort. Fixes bug 6757; bugfix on 0.2.4.1-alpha.
23655     - Use square brackets around IPv6 addresses in numerous places
23656       that needed them, including log messages, HTTPS CONNECT proxy
23657       requests, TransportProxy statefile entries, and pluggable transport
23658       extra-info lines. Fixes bug 7011; patch by David Fifield.
23660   o Code refactoring and cleanup:
23661     - Source files taken from other packages now reside in src/ext;
23662       previously they were scattered around the rest of Tor.
23663     - Avoid use of reserved identifiers in our C code. The C standard
23664       doesn't like us declaring anything that starts with an
23665       underscore, so let's knock it off before we get in trouble. Fix
23666       for bug 1031; bugfix on the first Tor commit.
23669 Changes in version 0.2.3.23-rc - 2012-10-20
23670   Tor 0.2.3.23-rc adds a new v3 directory authority, fixes a privacy
23671   vulnerability introduced by a change in OpenSSL, and fixes a variety
23672   of smaller bugs in preparation for the release.
23674   o New directory authorities:
23675     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
23676       authority. Closes ticket 5749.
23678   o Major bugfixes (security/privacy):
23679     - Disable TLS session tickets. OpenSSL's implementation was giving
23680       our TLS session keys the lifetime of our TLS context objects, when
23681       perfect forward secrecy would want us to discard anything that
23682       could decrypt a link connection as soon as the link connection
23683       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
23684       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
23685     - Discard extraneous renegotiation attempts once the V3 link
23686       protocol has been initiated. Failure to do so left us open to
23687       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
23688       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
23690   o Major bugfixes:
23691     - Fix a possible crash bug when checking for deactivated circuits
23692       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
23693       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
23695   o Minor bugfixes (on 0.2.3.x):
23696     - Fix two cases in src/or/transports.c where we were calling
23697       fmt_addr() twice in a parameter list. Bug found by David
23698       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
23699     - Convert an assert in the pathbias code to a log message. The assert
23700       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
23701       bugfix on 0.2.3.17-beta.
23702     - Fix memory leaks whenever we logged any message about the "path
23703       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
23705   o Minor bugfixes (on 0.2.2.x and earlier):
23706     - Don't serve or accept v2 hidden service descriptors over a relay's
23707       DirPort. It's never correct to do so, and disabling it might
23708       make it more annoying to exploit any bugs that turn up in the
23709       descriptor-parsing code. Fixes bug 7149.
23710     - When relays refuse a "create" cell because their queue of pending
23711       create cells is too big (typically because their cpu can't keep up
23712       with the arrival rate), send back reason "resource limit" rather
23713       than reason "internal", so network measurement scripts can get a
23714       more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037.
23715     - Correct file sizes when reading binary files on Cygwin, to avoid
23716       a bug where Tor would fail to read its state file. Fixes bug 6844;
23717       bugfix on 0.1.2.7-alpha.
23718     - Avoid undefined behavior when parsing the list of supported
23719       rendezvous/introduction protocols in a hidden service descriptor.
23720       Previously, Tor would have confused (as-yet-unused) protocol version
23721       numbers greater than 32 with lower ones on many platforms. Fixes
23722       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
23724   o Documentation fixes:
23725     - Clarify that hidden services are TCP only. Fixes bug 6024.
23728 Changes in version 0.2.4.3-alpha - 2012-09-22
23729   Tor 0.2.4.3-alpha fixes another opportunity for a remotely triggerable
23730   assertion, resumes letting relays test reachability of their DirPort,
23731   and cleans up a bunch of smaller bugs.
23733   o Security fixes:
23734     - Fix an assertion failure in tor_timegm() that could be triggered
23735       by a badly formatted directory object. Bug found by fuzzing with
23736       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
23738   o Major bugfixes:
23739     - Fix a possible crash bug when checking for deactivated circuits
23740       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
23741       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
23742     - Allow routers to detect that their own DirPorts are running. When
23743       we removed support for versions_supports_begindir, we also
23744       accidentally removed the mechanism we used to self-test our
23745       DirPort. Diagnosed with help from kargig. Fixes bugs 6814 and 6815;
23746       bugfix on 0.2.4.2-alpha.
23748   o Security features:
23749     - Switch to a completely time-invariant approach for picking nodes
23750       weighted by bandwidth. Our old approach would run through the
23751       part of the loop after it had made its choice slightly slower
23752       than it ran through the part of the loop before it had made its
23753       choice. Addresses ticket 6538.
23754     - Disable the use of Guard nodes when in Tor2WebMode. Guard usage
23755       by tor2web clients allows hidden services to identify tor2web
23756       clients through their repeated selection of the same rendezvous
23757       and introduction point circuit endpoints (their guards). Resolves
23758       ticket 6888.
23760   o Minor features:
23761     - Enable Tor to read configuration, state, and key information from
23762       a FIFO. Previously Tor would only read from files with a positive
23763       stat.st_size. Code from meejah; fixes bug 6044.
23765   o Minor bugfixes:
23766     - Correct file sizes when reading binary files on Cygwin, to avoid
23767       a bug where Tor would fail to read its state file. Fixes bug 6844;
23768       bugfix on 0.1.2.7-alpha.
23769     - Correctly handle votes with more than 31 flags. Fixes bug 6853;
23770       bugfix on 0.2.0.3-alpha.
23771     - When complaining about a client port on a public address, log
23772       which address we're complaining about. Fixes bug 4020; bugfix on
23773       0.2.3.3-alpha. Patch by Tom Fitzhenry.
23774     - Convert an assert in the pathbias code to a log message. The assert
23775       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
23776       bugfix on 0.2.3.17-beta.
23777     - Our new buildsystem was overzealous about rebuilding manpages: it
23778       would rebuild them all whenever any one of them changed. Now our
23779       dependency checking should be correct. Fixes bug 6843; bugfix on
23780       0.2.4.1-alpha.
23781     - Don't do reachability testing over IPv6 unless AuthDirPublishIPv6
23782       is set. Fixes bug 6880. Bugfix on 0.2.4.1-alpha.
23783     - Correct log printout about which address family is preferred
23784       when connecting to a bridge with both an IPv4 and IPv6 OR port.
23785       Fixes bug 6884; bugfix on 0.2.4.1-alpha.
23787   o Minor bugfixes (code cleanliness):
23788     - Fix round_to_power_of_2() so it doesn't invoke undefined behavior
23789       with large values. This situation was untriggered, but nevertheless
23790       incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha.
23791     - Reject consensus votes with more than 64 known-flags. We aren't even
23792       close to that limit yet, and our code doesn't handle it correctly.
23793       Fixes bug 6833; bugfix on 0.2.0.1-alpha.
23794     - Avoid undefined behavior when parsing the list of supported
23795       rendezvous/introduction protocols in a hidden service descriptor.
23796       Previously, Tor would have confused (as-yet-unused) protocol version
23797       numbers greater than 32 with lower ones on many platforms. Fixes
23798       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
23799     - Fix handling of rendezvous client authorization types over 8.
23800       Fixes bug 6861; bugfix on 0.2.1.5-alpha.
23801     - Fix building with older versions of GCC (2.95, for one) that don't
23802       like preprocessor directives inside macro arguments. Found by
23803       grarpamp. Fixes bug 6842; bugfix on 0.2.4.2-alpha.
23804     - Switch weighted node selection rule from using a list of doubles
23805       to using a list of int64_t. This change should make the process
23806       slightly easier to debug and maintain. Needed to finish ticket 6538.
23808   o Code simplification and refactoring:
23809     - Move the generic "config" code into a new file, and have "config.c"
23810       hold only torrc- and state-related code. Resolves ticket 6823.
23811     - Move the core of our "choose a weighted element at random" logic
23812       into its own function, and give it unit tests. Now the logic is
23813       testable, and a little less fragile too.
23814     - Removed the testing_since field of node_t, which hasn't been used
23815       for anything since 0.2.0.9-alpha.
23817   o Documentation fixes:
23818     - Clarify that hidden services are TCP only. Fixes bug 6024.
23819     - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on
23820       0.2.3.14-alpha.
23823 Changes in version 0.2.3.22-rc - 2012-09-11
23824   Tor 0.2.3.22-rc fixes another opportunity for a remotely triggerable
23825   assertion.
23827   o Security fixes:
23828     - Fix an assertion failure in tor_timegm() that could be triggered
23829       by a badly formatted directory object. Bug found by fuzzing with
23830       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
23832   o Minor bugfixes:
23833     - Avoid segfault when starting up having run with an extremely old
23834       version of Tor and parsing its state file. Fixes bug 6801; bugfix
23835       on 0.2.2.23-alpha.
23838 Changes in version 0.2.2.39 - 2012-09-11
23839   Tor 0.2.2.39 fixes two more opportunities for remotely triggerable
23840   assertions.
23842   o Security fixes:
23843     - Fix an assertion failure in tor_timegm() that could be triggered
23844       by a badly formatted directory object. Bug found by fuzzing with
23845       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
23846     - Do not crash when comparing an address with port value 0 to an
23847       address policy. This bug could have been used to cause a remote
23848       assertion failure by or against directory authorities, or to
23849       allow some applications to crash clients. Fixes bug 6690; bugfix
23850       on 0.2.1.10-alpha.
23853 Changes in version 0.2.4.2-alpha - 2012-09-10
23854   Tor 0.2.4.2-alpha enables port forwarding for pluggable transports,
23855   raises the default rate limiting even more, and makes the bootstrapping
23856   log messages less noisy.
23858   o Major features:
23859     - Automatically forward the TCP ports of pluggable transport
23860       proxies using tor-fw-helper if PortForwarding is enabled. Implements
23861       ticket 4567.
23863   o Major bugfixes:
23864     - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB
23865       to 1GB/1GB. The previous defaults were intended to be "basically
23866       infinite", but it turns out they're now limiting our 100mbit+
23867       relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the
23868       last time we raised it).
23870   o Minor features:
23871     - Detect when we're running with a version of OpenSSL other than the
23872       one we compiled with. This has occasionally given people hard-to-
23873       track-down errors.
23874     - Log fewer lines at level "notice" about our OpenSSL and Libevent
23875       versions and capabilities when everything is going right. Resolves
23876       part of ticket 6736.
23877     - Directory authorities no long accept descriptors for any version of
23878       Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha.
23879       These versions are insecure, unsupported, or both. Implements
23880       ticket 6789.
23882   o Minor bugfixes:
23883     - Rename the (internal-use-only) UsingTestingNetworkDefaults option
23884       to start with a triple-underscore so the controller won't touch it.
23885       Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha.
23886     - Avoid segfault when starting up having run with an extremely old
23887       version of Tor and parsing its state file. Fixes bug 6801; bugfix
23888       on 0.2.2.23-alpha.
23889     - Rename the (testing-use-only) _UseFilteringSSLBufferevents option
23890       so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha.
23891     - Don't follow the NULL pointer if microdescriptor generation fails.
23892       (This does not appear to be triggerable, but it's best to be safe.)
23893       Found by "f. tp.". Fixes bug 6797; bugfix on 0.2.4.1-alpha.
23894     - Fix mis-declared dependencies on src/common/crypto.c and
23895       src/or/tor_main.c that could break out-of-tree builds under some
23896       circumstances. Fixes bug 6778; bugfix on 0.2.4.1-alpha.
23897     - Avoid a warning when building common_sha1.i out of tree. Fixes bug
23898       6778; bugfix on 0.2.4.1-alpha.
23899     - Fix a harmless (in this case) build warning for implicitly
23900       converting a strlen() to an int. Bugfix on 0.2.4.1-alpha.
23902   o Removed features:
23903     - Now that all versions before 0.2.2.x are disallowed, we no longer
23904       need to work around their missing features. Thus we can remove a
23905       bunch of compatibility code.
23907   o Code refactoring:
23908     - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary
23909       TCP ports to forward. In the past it only accepted two ports:
23910       the ORPort and the DirPort.
23913 Changes in version 0.2.4.1-alpha - 2012-09-05
23914   Tor 0.2.4.1-alpha lets bridges publish their pluggable transports to
23915   bridgedb; lets relays use IPv6 addresses and directory authorities
23916   advertise them; and switches to a cleaner build interface.
23918   This is the first alpha release in a new series, so expect there to
23919   be bugs. Users who would rather test out a more stable branch should
23920   stay with 0.2.3.x for now.
23922   o Major features (bridges):
23923     - Bridges now report the pluggable transports they support to the
23924       bridge authority, so it can pass the supported transports on to
23925       bridgedb and/or eventually do reachability testing. Implements
23926       ticket 3589.
23928   o Major features (IPv6):
23929     - Bridge authorities now accept IPv6 bridge addresses and include
23930       them in network status documents. Implements ticket 5534.
23931     - Clients who set "ClientUseIPv6 1" may connect to entry nodes over
23932       IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely
23933       to happen. Implements ticket 5535.
23934     - All kind of relays, not just bridges, can now advertise an IPv6
23935       OR port. Implements ticket 6362.
23936     - Directory authorities vote on IPv6 OR ports using the new consensus
23937       method 14. Implements ticket 6363.
23939   o Major features (build):
23940     - Switch to a nonrecursive Makefile structure. Now instead of each
23941       Makefile.am invoking other Makefile.am's, there is a master
23942       Makefile.am that includes the others. This change makes our build
23943       process slightly more maintainable, and improves parallelism for
23944       building with make -j. Original patch by Stewart Smith; various
23945       fixes by Jim Meyering.
23946     - Where available, we now use automake's "silent" make rules by
23947       default, so that warnings are easier to spot. You can get the old
23948       behavior with "make V=1". Patch by Stewart Smith for ticket 6522.
23950   o Minor features (code security and spec conformance):
23951     - Clear keys and key-derived material left on the stack in
23952       rendservice.c and rendclient.c. Check return value of
23953       crypto_pk_write_private_key_to_string() in rend_service_load_keys().
23954       These fixes should make us more forward-secure against cold-boot
23955       attacks and the like. Fixes bug 2385.
23956     - Reject EXTEND cells sent to nonexistent streams. According to the
23957       spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but
23958       we were only checking for stream IDs that were currently in use.
23959       Found while hunting for more instances of bug 6271. Bugfix on
23960       0.0.2pre8, which introduced incremental circuit construction.
23962   o Minor features (streamlining);
23963     - No longer include the "opt" prefix when generating routerinfos
23964       or v2 directories: it has been needless since Tor 0.1.2. Closes
23965       ticket 5124.
23966     - Remove some now-needless code that tried to aggressively flush
23967       OR connections as data was added to them. Since 0.2.0.1-alpha, our
23968       cell queue logic has saved us from the failure mode that this code
23969       was supposed to prevent. Removing this code will limit the number
23970       of baroque control flow paths through Tor's network logic. Reported
23971       pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha.
23973   o Minor features (controller):
23974     - Add a "GETINFO signal/names" control port command. Implements
23975       ticket 3842.
23976     - Provide default values for all options via "GETINFO config/defaults".
23977       Implements ticket 4971.
23979   o Minor features (IPv6):
23980     - New config option "AuthDirHasIPv6Connectivity 1" that directory
23981       authorities should set if they have IPv6 connectivity and want to
23982       do reachability tests for IPv6 relays. Implements feature 5974.
23983     - A relay with an IPv6 OR port now sends that address in NETINFO
23984       cells (in addition to its other address). Implements ticket 6364.
23986   o Minor features (log messages):
23987     - Omit the first heartbeat log message, because it never has anything
23988       useful to say, and it clutters up the bootstrapping messages.
23989       Resolves ticket 6758.
23990     - Don't log about reloading the microdescriptor cache at startup. Our
23991       bootstrap warnings are supposed to tell the user when there's a
23992       problem, and our bootstrap notices say when there isn't. Resolves
23993       ticket 6759; bugfix on 0.2.2.6-alpha.
23994     - Don't log "I learned some more directory information" when we're
23995       reading cached directory information. Reserve it for when new
23996       directory information arrives in response to a fetch. Resolves
23997       ticket 6760.
23998     - Prevent rounding error in path bias counts when scaling
23999       them down, and use the correct scale factor default. Also demote
24000       some path bias related log messages down a level and make others
24001       less scary sounding. Fixes bug 6647. Bugfix against 0.2.3.17-beta.
24002     - We no longer warn so much when generating manpages from their
24003       asciidoc source.
24005   o Code simplifications and refactoring:
24006     - Enhance our internal sscanf replacement so that we can eliminate
24007       the last remaining uses of the system sscanf. (Though those uses
24008       of sscanf were safe, sscanf itself is generally error prone, so
24009       we want to eliminate when we can.) Fixes ticket 4195 and Coverity
24010       CID 448.
24011     - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620.
24012     - Move last_reachable and testing_since from routerinfo_t to node_t.
24013       Implements ticket 5529.
24014     - Add replaycache_t structure, functions and unit tests, then refactor
24015       rend_service_introduce() to be more clear to read, improve, debug,
24016       and test. Resolves bug 6177.
24017     - Finally remove support for malloc_good_size and malloc_usable_size.
24018       We had hoped that these functions would let us eke a little more
24019       memory out of our malloc implementation. Unfortunately, the only
24020       implementations that provided these functions are also ones that
24021       are already efficient about not overallocation: they never got us
24022       more than 7 or so bytes per allocation. Removing them saves us a
24023       little code complexity and a nontrivial amount of build complexity.
24025   o New requirements:
24026     - Tor maintainers now require Automake version 1.9 or later to build
24027       Tor from the Git repository. (Automake is not required when building
24028       from a source distribution.)
24031 Changes in version 0.2.3.21-rc - 2012-09-05
24032   Tor 0.2.3.21-rc is the fourth release candidate for the Tor 0.2.3.x
24033   series. It fixes a trio of potential security bugs, fixes a bug where
24034   we were leaving some of the fast relays out of the microdescriptor
24035   consensus, resumes interpreting "ORPort 0" and "DirPort 0" correctly,
24036   and cleans up other smaller issues.
24038   o Major bugfixes (security):
24039     - Tear down the circuit if we get an unexpected SENDME cell. Clients
24040       could use this trick to make their circuits receive cells faster
24041       than our flow control would have allowed, or to gum up the network,
24042       or possibly to do targeted memory denial-of-service attacks on
24043       entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
24044       from July 2002, before the release of Tor 0.0.0. We had committed
24045       this patch previously, but we had to revert it because of bug 6271.
24046       Now that 6271 is fixed, this patch appears to work.
24047     - Reject any attempt to extend to an internal address. Without
24048       this fix, a router could be used to probe addresses on an internal
24049       network to see whether they were accepting connections. Fixes bug
24050       6710; bugfix on 0.0.8pre1.
24051     - Do not crash when comparing an address with port value 0 to an
24052       address policy. This bug could have been used to cause a remote
24053       assertion failure by or against directory authorities, or to
24054       allow some applications to crash clients. Fixes bug 6690; bugfix
24055       on 0.2.1.10-alpha.
24057   o Major bugfixes:
24058     - Remove the upper bound on microdescriptor length. We were hitting
24059       the limit for routers with complex exit policies or family
24060       declarations, causing clients to not use them. Fixes the first
24061       piece of bug 6404; fix on 0.2.2.6-alpha.
24062     - Detect "ORPort 0" as meaning, uniformly, that we're not running
24063       as a relay. Previously, some of our code would treat the presence
24064       of any ORPort line as meaning that we should act like a relay,
24065       even though our new listener code would correctly not open any
24066       ORPorts for ORPort 0. Similar bugs in other Port options are also
24067       fixed. Fixes the first half of bug 6507; bugfix on 0.2.3.3-alpha.
24069   o Minor bugfixes:
24070     - Avoid a pair of double-free and use-after-mark bugs that can
24071       occur with certain timings in canceled and re-received DNS
24072       requests. Fixes bug 6472; bugfix on 0.0.7rc1.
24073     - Fix build and 64-bit compile warnings from --enable-openbsd-malloc.
24074       Fixes bug 6379. Bugfix on 0.2.0.20-rc.
24075     - Allow one-hop directory fetching circuits the full "circuit build
24076       timeout" period, rather than just half of it, before failing them
24077       and marking the relay down. This fix should help reduce cases where
24078       clients declare relays (or worse, bridges) unreachable because
24079       the TLS handshake takes a few seconds to complete. Fixes bug 6743;
24080       bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
24081       30 seconds.
24082     - Authorities no longer include any router in their microdescriptor
24083       consensuses for which they couldn't generate or agree on a
24084       microdescriptor. Fixes the second piece of bug 6404; fix on
24085       0.2.2.6-alpha.
24086     - Detect and reject attempts to specify both "FooPort" and
24087       "FooPort 0" in the same configuration domain. (It's still okay
24088       to have a FooPort in your configuration file, and use "FooPort 0"
24089       on the command line to disable it.) Fixes the second half of bug
24090       6507; bugfix on 0.2.3.3-alpha.
24091     - Make wildcarded addresses (that is, ones beginning with "*.") work
24092       when provided via the controller's MapAddress command. Previously,
24093       they were accepted, but we never actually noticed that they were
24094       wildcards. Fixes bug 6244; bugfix on 0.2.3.9-alpha.
24095     - Avoid crashing on a malformed state file where EntryGuardPathBias
24096       precedes EntryGuard. Fix for bug 6774; bugfix on 0.2.3.17-beta.
24097     - Add a (probably redundant) memory clear between iterations of
24098       the router status voting loop, to prevent future coding errors
24099       where data might leak between iterations of the loop. Resolves
24100       ticket 6514.
24102   o Minor bugfixes (log messages):
24103     - Downgrade "set buildtimeout to low value" messages to "info"
24104       severity; they were never an actual problem, there was never
24105       anything reasonable to do about them, and they tended to spam logs
24106       from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha.
24107     - Downgrade path-bias warning messages to "info". We'll try to get
24108       them working better in 0.2.4. Add internal circuit construction
24109       state to protect against the noisy warn message "Unexpectedly high
24110       circuit_successes". Also add some additional rate-limited notice
24111       messages to help determine the root cause of the warn. Fixes bug
24112       6475. Bugfix against 0.2.3.17-beta.
24113     - Move log message when unable to find a microdesc in a routerstatus
24114       entry to parse time. Previously we'd spam this warning every time
24115       we tried to figure out which microdescriptors to download. Fixes
24116       the third piece of bug 6404; fix on 0.2.3.18-rc.
24118   o Minor features:
24119     - Consider new, removed or changed IPv6 OR ports a non-cosmetic
24120       change when the authority is deciding whether to accept a newly
24121       uploaded descriptor. Implements ticket 6423.
24122     - Add missing documentation for consensus and microdesc files.
24123       Resolves ticket 6732.
24126 Changes in version 0.2.2.38 - 2012-08-12
24127   Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing
24128   attack that could in theory leak path information.
24130   o Security fixes:
24131     - Avoid an uninitialized memory read when reading a vote or consensus
24132       document that has an unrecognized flavor name. This read could
24133       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
24134     - Try to leak less information about what relays a client is
24135       choosing to a side-channel attacker. Previously, a Tor client would
24136       stop iterating through the list of available relays as soon as it
24137       had chosen one, thus finishing a little earlier when it picked
24138       a router earlier in the list. If an attacker can recover this
24139       timing information (nontrivial but not proven to be impossible),
24140       they could learn some coarse-grained information about which relays
24141       a client was picking (middle nodes in particular are likelier to
24142       be affected than exits). The timing attack might be mitigated by
24143       other factors (see bug 6537 for some discussion), but it's best
24144       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
24147 Changes in version 0.2.3.20-rc - 2012-08-05
24148   Tor 0.2.3.20-rc is the third release candidate for the Tor 0.2.3.x
24149   series. It fixes a pair of code security bugs and a potential anonymity
24150   issue, updates our RPM spec files, and cleans up other smaller issues.
24152   o Security fixes:
24153     - Avoid read-from-freed-memory and double-free bugs that could occur
24154       when a DNS request fails while launching it. Fixes bug 6480;
24155       bugfix on 0.2.0.1-alpha.
24156     - Avoid an uninitialized memory read when reading a vote or consensus
24157       document that has an unrecognized flavor name. This read could
24158       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
24159     - Try to leak less information about what relays a client is
24160       choosing to a side-channel attacker. Previously, a Tor client would
24161       stop iterating through the list of available relays as soon as it
24162       had chosen one, thus finishing a little earlier when it picked
24163       a router earlier in the list. If an attacker can recover this
24164       timing information (nontrivial but not proven to be impossible),
24165       they could learn some coarse-grained information about which relays
24166       a client was picking (middle nodes in particular are likelier to
24167       be affected than exits). The timing attack might be mitigated by
24168       other factors (see bug 6537 for some discussion), but it's best
24169       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
24171   o Minor features:
24172     - Try to make the warning when giving an obsolete SOCKSListenAddress
24173       a little more useful.
24174     - Terminate active server managed proxies if Tor stops being a
24175       relay. Addresses parts of bug 6274; bugfix on 0.2.3.6-alpha.
24176     - Provide a better error message about possible OSX Asciidoc failure
24177       reasons. Fixes bug 6436.
24178     - Warn when Tor is configured to use accounting in a way that can
24179       link a hidden service to some other hidden service or public
24180       address. Resolves ticket 6490.
24182   o Minor bugfixes:
24183     - Check return value of fputs() when writing authority certificate
24184       file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha.
24185     - Ignore ServerTransportPlugin lines when Tor is not configured as
24186       a relay. Fixes bug 6274; bugfix on 0.2.3.6-alpha.
24187     - When disabling guards for having too high a proportion of failed
24188       circuits, make sure to look at each guard. Fixes bug 6397; bugfix
24189       on 0.2.3.17-beta.
24191   o Packaging (RPM):
24192     - Update our default RPM spec files to work with mock and rpmbuild
24193       on RHEL/Fedora. They have an updated set of dependencies and
24194       conflicts, a fix for an ancient typo when creating the "_tor"
24195       user, and better instructions. Thanks to Ondrej Mikle for the
24196       patch series. Fixes bug 6043.
24198   o Testing:
24199     - Make it possible to set the TestingTorNetwork configuration
24200       option using AlternateDirAuthority and AlternateBridgeAuthority
24201       as an alternative to setting DirServer. Addresses ticket 6377.
24203   o Documentation:
24204     - Clarify the documentation for the Alternate*Authority options.
24205       Fixes bug 6387.
24206     - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500.
24208   o Code simplification and refactoring:
24209     - Do not use SMARTLIST_FOREACH for any loop whose body exceeds
24210       10 lines. Also, don't nest them. Doing so in the past has
24211       led to hard-to-debug code. The new style is to use the
24212       SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400.
24215 Changes in version 0.2.3.19-rc - 2012-07-06
24216   Tor 0.2.3.19-rc is the second release candidate for the Tor 0.2.3.x
24217   series. It fixes the compile on Windows, reverts to a GeoIP database
24218   that isn't as broken, and fixes a flow control bug that has been around
24219   since the beginning of Tor.
24221   o Major bugfixes:
24222     - Fix a bug handling SENDME cells on nonexistent streams that could
24223       result in bizarre window values. Report and patch contributed
24224       pseudonymously. Fixes part of bug 6271. This bug was introduced
24225       before the first Tor release, in svn commit r152.
24226     - Revert to the May 1 2012 Maxmind GeoLite Country database. In the
24227       June 2012 database, Maxmind marked many Tor relays as country "A1",
24228       which will cause risky behavior for clients that set EntryNodes
24229       or ExitNodes. Addresses bug 6334; bugfix on 0.2.3.17-beta.
24230     - Instead of ENOBUFS on Windows, say WSAENOBUFS. Fixes compilation
24231       on Windows. Fixes bug 6296; bugfix on 0.2.3.18-rc.
24233   o Minor bugfixes:
24234     - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
24235       bugfix on 0.2.1.10-alpha.
24238 Changes in version 0.2.3.18-rc - 2012-06-28
24239   Tor 0.2.3.18-rc is the first release candidate for the Tor 0.2.3.x
24240   series. It fixes a few smaller bugs, but generally appears stable.
24241   Please test it and let us know whether it is!
24243   o Major bugfixes:
24244     - Allow wildcarded mapaddress targets to be specified on the
24245       controlport. Partially fixes bug 6244; bugfix on 0.2.3.9-alpha.
24246     - Make our linker option detection code more robust against linkers
24247       such as on FreeBSD 8, where a bad combination of options completes
24248       successfully but makes an unrunnable binary. Fixes bug 6173;
24249       bugfix on 0.2.3.17-beta.
24251   o Minor bugfixes (on 0.2.2.x and earlier):
24252     - Avoid a false positive in the util/threads unit test by increasing
24253       the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha.
24254     - Replace "Sending publish request" log messages with "Launching
24255       upload", so that they no longer confusingly imply that we're
24256       sending something to a directory we might not even be connected
24257       to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha.
24258     - Make sure to set *socket_error in all error cases in
24259       connection_connect(), so it can't produce a warning about
24260       errno being zero from errno_to_orconn_end_reason(). Bugfix on
24261       0.2.1.1-alpha; resolves ticket 6028.
24262     - Downgrade "Got a certificate, but we already have it" log messages
24263       from warning to info, except when we're a dirauth. Fixes bug 5238;
24264       bugfix on 0.2.1.7-alpha.
24265     - When checking for requested signatures on the latest consensus
24266       before serving it to a client, make sure to check the right
24267       consensus flavor. Bugfix on 0.2.2.6-alpha.
24268     - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN.
24269       Fixes bug 5932; bugfix on 0.2.2.7-alpha.
24271   o Minor bugfixes (on 0.2.3.x):
24272     - Make format_helper_exit_status() avoid unnecessary space padding
24273       and stop confusing log_from_pipe(). Fixes ticket 5557; bugfix
24274       on 0.2.3.1-alpha.
24275     - Downgrade a message about cleaning the microdescriptor cache to
24276       "info" from "notice". Fixes bug 6238; bugfix on 0.2.3.1-alpha.
24277     - Log a BUG message at severity INFO if we have a networkstatus with
24278       a missing entry for some microdescriptor. Continues on a patch
24279       to 0.2.3.2-alpha.
24280     - Improve the log message when a managed proxy fails to launch. Fixes
24281       bug 5099; bugfix on 0.2.3.6-alpha.
24282     - Don't do DNS lookups when parsing corrupted managed proxy protocol
24283       messages. Fixes bug 6226; bugfix on 0.2.3.6-alpha.
24284     - When formatting wildcarded address mappings for the controller,
24285       be sure to include "*." as appropriate. Partially fixes bug 6244;
24286       bugfix on 0.2.3.9-alpha.
24287     - Avoid a warning caused by using strcspn() from glibc with clang 3.0.
24288       Bugfix on 0.2.3.13-alpha.
24289     - Stop logging messages about running with circuit timeout learning
24290       enabled at severity LD_BUG. Fixes bug 6169; bugfix on 0.2.3.17-beta.
24291     - Disable a spurious warning about reading on a marked and flushing
24292       connection. We shouldn't be doing that, but apparently we
24293       sometimes do. Fixes bug 6203; bugfix on 0.2.3.17-beta.
24294     - Fix a bug that stopped AllowDotExit from working on addresses
24295       that had an entry in the DNS cache. Fixes bug 6211; bugfix on
24296       0.2.3.17-beta.
24298   o Code simplification, refactoring, unit tests:
24299     - Move tor_gettimeofday_cached() into compat_libevent.c, and use
24300       Libevent's notion of cached time when possible.
24301     - Remove duplicate code for invoking getrlimit() from control.c.
24302     - Add a unit test for the environment_variable_names_equal function.
24304   o Documentation:
24305     - Document the --defaults-torrc option, and the new (in 0.2.3)
24306       semantics for overriding, extending, and clearing lists of
24307       options. Closes bug 4748.
24310 Changes in version 0.2.3.17-beta - 2012-06-15
24311   Tor 0.2.3.17-beta enables compiler and linker hardening by default,
24312   gets our TLS handshake back on track for being able to blend in with
24313   Firefox, fixes a big bug in 0.2.3.16-alpha that broke Tor's interaction
24314   with Vidalia, and otherwise continues to get us closer to a release
24315   candidate.
24317   o Major features:
24318     - Enable gcc and ld hardening by default. Resolves ticket 5210.
24319     - Update TLS cipher list to match Firefox 8 and later. Resolves
24320       ticket 4744.
24321     - Implement the client side of proposal 198: remove support for
24322       clients falsely claiming to support standard ciphersuites that
24323       they can actually provide. As of modern OpenSSL versions, it's not
24324       necessary to fake any standard ciphersuite, and doing so prevents
24325       us from using better ciphersuites in the future, since servers
24326       can't know whether an advertised ciphersuite is really supported or
24327       not. Some hosts -- notably, ones with very old versions of OpenSSL
24328       or where OpenSSL has been built with ECC disabled -- will stand
24329       out because of this change; TBB users should not be affected.
24331   o Major bugfixes:
24332     - Change the default value for DynamicDHGroups (introduced in
24333       0.2.3.9-alpha) to 0. This feature can make Tor relays less
24334       identifiable by their use of the mod_ssl DH group, but at
24335       the cost of some usability (#4721) and bridge tracing (#6087)
24336       regressions. Resolves ticket 5598.
24337     - Send a CRLF at the end of each STATUS_* control protocol event. This
24338       bug tickled a bug in Vidalia which would make it freeze. Fixes
24339       bug 6094; bugfix on 0.2.3.16-alpha.
24341   o Minor bugfixes:
24342     - Disable writing on marked-for-close connections when they are
24343       blocked on bandwidth, to prevent busy-looping in Libevent. Fixes
24344       bug 5263; bugfix on 0.0.2pre13, where we first added a special
24345       case for flushing marked connections.
24346     - Detect SSL handshake even when the initial attempt to write the
24347       server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha.
24348     - Change the AllowDotExit rules so they should actually work.
24349       We now enforce AllowDotExit only immediately after receiving an
24350       address via SOCKS or DNSPort: other sources are free to provide
24351       .exit addresses after the resolution occurs. Fixes bug 3940;
24352       bugfix on 0.2.2.1-alpha.
24353     - Fix a (harmless) integer overflow in cell statistics reported by
24354       some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha.
24355     - Make sure circuitbuild.c checks LearnCircuitBuildTimeout in all the
24356       right places and never depends on the consensus parameters or
24357       computes adaptive timeouts when it is disabled. Fixes bug 5049;
24358       bugfix on 0.2.2.14-alpha.
24359     - When building Tor on Windows with -DUNICODE (not default), ensure
24360       that error messages, filenames, and DNS server names are always
24361       NUL-terminated when we convert them to a single-byte encoding.
24362       Fixes bug 5909; bugfix on 0.2.2.16-alpha.
24363     - Make Tor build correctly again with -DUNICODE -D_UNICODE defined.
24364       Fixes bug 6097; bugfix on 0.2.2.16-alpha.
24365     - Fix an edge case where TestingTorNetwork is set but the authorities
24366       and relays all have an uptime of zero, where the private Tor network
24367       could briefly lack support for hidden services. Fixes bug 3886;
24368       bugfix on 0.2.2.18-alpha.
24369     - Correct the manpage's descriptions for the default values of
24370       DirReqStatistics and ExtraInfoStatistics. Fixes bug 2865; bugfix
24371       on 0.2.3.1-alpha.
24372     - Fix the documentation for the --hush and --quiet command line
24373       options, which changed their behavior back in 0.2.3.3-alpha.
24374     - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
24375       0.2.3.11-alpha.
24377   o Minor features:
24378     - Rate-limit the "Weighted bandwidth is 0.000000" message, and add
24379       more information to it, so that we can track it down in case it
24380       returns again. Mitigates bug 5235.
24381     - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in
24382       options_validate(); warn if LearnCircuitBuildTimeout is disabled and
24383       CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452.
24384     - Warn the user when HTTPProxy, but no other proxy type, is
24385       configured. This can cause surprising behavior: it doesn't send
24386       all of Tor's traffic over the HTTPProxy -- it sends unencrypted
24387       directory traffic only. Resolves ticket 4663.
24388     - Issue a notice if a guard completes less than 40% of your circuits.
24389       Threshold is configurable by torrc option PathBiasNoticeRate and
24390       consensus parameter pb_noticepct. There is additional, off-by-
24391       default code to disable guards which fail too many circuits.
24392       Addresses ticket 5458.
24393     - Update to the June 6 2012 Maxmind GeoLite Country database.
24395   o Code simplifications and refactoring:
24396     - Remove validate_pluggable_transports_config(): its warning
24397       message is now handled by connection_or_connect().
24400 Changes in version 0.2.2.37 - 2012-06-06
24401   Tor 0.2.2.37 introduces a workaround for a critical renegotiation
24402   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
24403   currently).
24405   o Major bugfixes:
24406     - Work around a bug in OpenSSL that broke renegotiation with TLS
24407       1.1 and TLS 1.2. Without this workaround, all attempts to speak
24408       the v2 Tor connection protocol when both sides were using OpenSSL
24409       1.0.1 would fail. Resolves ticket 6033.
24410     - When waiting for a client to renegotiate, don't allow it to add
24411       any bytes to the input buffer. This fixes a potential DoS issue.
24412       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
24413     - Fix an edge case where if we fetch or publish a hidden service
24414       descriptor, we might build a 4-hop circuit and then use that circuit
24415       for exiting afterwards -- even if the new last hop doesn't obey our
24416       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
24418   o Minor bugfixes:
24419     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
24420       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
24422   o Minor features:
24423     - Tell GCC and Clang to check for any errors in format strings passed
24424       to the tor_v*(print|scan)f functions.
24427 Changes in version 0.2.3.16-alpha - 2012-06-05
24428   Tor 0.2.3.16-alpha introduces a workaround for a critical renegotiation
24429   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
24430   currently). It also fixes a variety of smaller bugs and other cleanups
24431   that get us closer to a release candidate.
24433   o Major bugfixes (general):
24434     - Work around a bug in OpenSSL that broke renegotiation with TLS
24435       1.1 and TLS 1.2. Without this workaround, all attempts to speak
24436       the v2 Tor connection protocol when both sides were using OpenSSL
24437       1.0.1 would fail. Resolves ticket 6033.
24438     - When waiting for a client to renegotiate, don't allow it to add
24439       any bytes to the input buffer. This fixes a potential DoS issue.
24440       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
24441     - Pass correct OR address to managed proxies (like obfsproxy),
24442       even when ORListenAddress is used. Fixes bug 4865; bugfix on
24443       0.2.3.9-alpha.
24444     - The advertised platform of a router now includes only its operating
24445       system's name (e.g., "Linux", "Darwin", "Windows 7"), and not its
24446       service pack level (for Windows) or its CPU architecture (for Unix).
24447       We also no longer include the "git-XYZ" tag in the version. Resolves
24448       part of bug 2988.
24450   o Major bugfixes (clients):
24451     - If we are unable to find any exit that supports our predicted ports,
24452       stop calling them predicted, so that we don't loop and build
24453       hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6,
24454       which introduced predicted ports.
24455     - Fix an edge case where if we fetch or publish a hidden service
24456       descriptor, we might build a 4-hop circuit and then use that circuit
24457       for exiting afterwards -- even if the new last hop doesn't obey our
24458       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
24459     - Check at each new consensus whether our entry guards were picked
24460       long enough ago that we should rotate them. Previously, we only
24461       did this check at startup, which could lead to us holding a guard
24462       indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc.
24463     - When fetching a bridge descriptor from a bridge authority,
24464       always do so anonymously, whether we have been able to open
24465       circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha.
24466       This behavior makes it *safer* to use UpdateBridgesFromAuthority,
24467       but we'll need to wait for bug 6010 before it's actually usable.
24469   o Major bugfixes (directory authorities):
24470     - When computing weight parameters, behave more robustly in the
24471       presence of a bad bwweightscale value. Previously, the authorities
24472       would crash if they agreed on a sufficiently broken weight_scale
24473       value: now, they use a reasonable default and carry on. Partial
24474       fix for 5786; bugfix on 0.2.2.17-alpha.
24475     - Check more thoroughly to prevent a rogue authority from
24476       double-voting on any consensus directory parameter. Previously,
24477       authorities would crash in this case if the total number of
24478       votes for any parameter exceeded the number of active voters,
24479       but would let it pass otherwise. Partial fix for bug 5786; bugfix
24480       on 0.2.2.2-alpha.
24482   o Minor features:
24483     - Rate-limit log messages when asked to connect anonymously to
24484       a private address. When these hit, they tended to hit fast and
24485       often. Also, don't bother trying to connect to addresses that we
24486       are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory
24487       reply makes us think we have been lied to, even when the address the
24488       client tried to connect to was "localhost." Resolves ticket 2822.
24489     - Allow packagers to insert an extra string in server descriptor
24490       platform lines by setting the preprocessor variable TOR_BUILD_TAG.
24491       Resolves the rest of ticket 2988.
24492     - Raise the threshold of server descriptors needed (75%) and exit
24493       server descriptors needed (50%) before we will declare ourselves
24494       bootstrapped. This will make clients start building circuits a
24495       little later, but makes the initially constructed circuits less
24496       skewed and less in conflict with further directory fetches. Fixes
24497       ticket 3196.
24498     - Close any connection that sends unrecognized junk before the
24499       handshake. Solves an issue noted in bug 4369.
24500     - Improve log messages about managed transports. Resolves ticket 5070.
24501     - Tag a bridge's descriptor as "never to be sent unencrypted".
24502       This shouldn't matter, since bridges don't open non-anonymous
24503       connections to the bridge authority and don't allow unencrypted
24504       directory connections from clients, but we might as well make
24505       sure. Closes bug 5139.
24506     - Expose our view of whether we have gone dormant to the controller,
24507       via a new "GETINFO dormant" value. Torbutton and other controllers
24508       can use this to avoid doing periodic requests through Tor while
24509       it's dormant (bug 4718). Fixes bug 5954.
24510     - Tell GCC and Clang to check for any errors in format strings passed
24511       to the tor_v*(print|scan)f functions.
24512     - Update to the May 1 2012 Maxmind GeoLite Country database.
24514   o Minor bugfixes (already included in 0.2.2.36):
24515     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
24516       Fixes bug 5346; bugfix on 0.0.8pre3.
24517     - Correct parsing of certain date types in parse_http_time().
24518       Without this patch, If-Modified-Since would behave
24519       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
24520       Esteban Manchado Velázques.
24521     - Make our number-parsing functions always treat too-large values
24522       as an error, even when those values exceed the width of the
24523       underlying type. Previously, if the caller provided these
24524       functions with minima or maxima set to the extreme values of the
24525       underlying integer type, these functions would return those
24526       values on overflow rather than treating overflow as an error.
24527       Fixes part of bug 5786; bugfix on 0.0.9.
24528     - If we hit the error case where routerlist_insert() replaces an
24529       existing (old) server descriptor, make sure to remove that
24530       server descriptor from the old_routers list. Fix related to bug
24531       1776. Bugfix on 0.2.2.18-alpha.
24532     - Clarify the behavior of MaxCircuitDirtiness with hidden service
24533       circuits. Fixes issue 5259.
24535   o Minor bugfixes (coding cleanup, on 0.2.2.x and earlier):
24536     - Prevent a null-pointer dereference when receiving a data cell
24537       for a nonexistent stream when the circuit in question has an
24538       empty deliver window. We don't believe this is triggerable,
24539       since we don't currently allow deliver windows to become empty,
24540       but the logic is tricky enough that it's better to make the code
24541       robust. Fixes bug 5541; bugfix on 0.0.2pre14.
24542     - Fix a memory leak when trying to launch a DNS request when the
24543       network is disabled or the nameservers are unconfigurable. Fixes
24544       bug 5916; bugfix on Tor 0.1.2.1-alpha (for the unconfigurable
24545       nameserver case) and on 0.2.3.9-alpha (for the DisableNetwork case).
24546     - Don't hold a Windows file handle open for every file mapping;
24547       the file mapping handle is sufficient. Fixes bug 5951; bugfix on
24548       0.1.2.1-alpha.
24549     - Avoid O(n^2) performance characteristics when parsing a large
24550       extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha.
24551     - Format more doubles with %f, not %lf. Patch from grarpamp to make
24552       Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on
24553       Tor 0.2.0.8-alpha.
24554     - Make our replacement implementation of strtok_r() compatible with
24555       the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091;
24556       bugfix on 0.2.2.1-alpha.
24557     - Fix a NULL-pointer dereference on a badly formed
24558       SETCIRCUITPURPOSE command. Found by mikeyc. Fixes bug 5796;
24559       bugfix on 0.2.2.9-alpha.
24560     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
24561       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
24562     - Defensively refactor rend_mid_rendezvous() so that protocol
24563       violations and length checks happen in the beginning. Fixes
24564       bug 5645.
24565     - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
24566       that IPv6 stuff will compile on MSVC, and compilation issues
24567       will be easier to track down. Fixes bug 5861.
24569   o Minor bugfixes (correctness, on 0.2.2.x and earlier):
24570     - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as
24571       resource exhaustion, so that clients can adjust their load to
24572       try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which
24573       started using END_STREAM_REASON_RESOURCELIMIT.
24574     - Don't check for whether the address we're using for outbound
24575       connections has changed until after the outbound connection has
24576       completed. On Windows, getsockname() doesn't succeed until the
24577       connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha.
24578     - If the configuration tries to set MyFamily on a bridge, refuse to
24579       do so, and warn about the security implications. Fixes bug 4657;
24580       bugfix on 0.2.0.3-alpha.
24581     - If the client fails to set a reasonable set of ciphersuites
24582       during its v2 handshake renegotiation, allow the renegotiation to
24583       continue nevertheless (i.e. send all the required certificates).
24584       Fixes bug 4591; bugfix on 0.2.0.20-rc.
24585     - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP
24586       option is set to 0 (which Vidalia version 0.2.16 now does when
24587       a SAVECONF attempt fails), perform other actions that SIGHUP
24588       usually causes (like reopening the logs). Fixes bug 5095; bugfix
24589       on 0.2.1.9-alpha.
24590     - If we fail to write a microdescriptor to the disk cache, do not
24591       continue replacing the old microdescriptor file. Fixes bug 2954;
24592       bugfix on 0.2.2.6-alpha.
24593     - Exit nodes don't need to fetch certificates for authorities that
24594       they don't recognize; only directory authorities, bridges,
24595       and caches need to do that. Fixes part of bug 2297; bugfix on
24596       0.2.2.11-alpha.
24597     - Correctly handle checking the permissions on the parent
24598       directory of a control socket in the root directory. Bug found
24599       by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor
24600       0.2.2.26-beta.
24601     - When told to add a bridge with the same digest as a preexisting
24602       bridge but a different addr:port, change the addr:port as
24603       requested. Previously we would not notice the change. Fixes half
24604       of bug 5603; fix on 0.2.2.26-beta.
24605     - End AUTHCHALLENGE error messages (in the control protocol) with
24606       a CRLF. Fixes bug 5760; bugfix on 0.2.2.36 and 0.2.3.13-alpha.
24608   o Minor bugfixes (on 0.2.3.x):
24609     - Turn an assertion (that the number of handshakes received as a
24610       server is not < 1) into a warning. Fixes bug 4873; bugfix on
24611       0.2.3.1-alpha.
24612     - Format IPv4 addresses correctly in ADDRMAP events. (Previously,
24613       we had reversed them when the answer was cached.) Fixes bug
24614       5723; bugfix on 0.2.3.1-alpha.
24615     - Work correctly on Linux systems with accept4 support advertised in
24616       their headers, but without accept4 support in the kernel. Fix
24617       by murb. Fixes bug 5762; bugfix on 0.2.3.1-alpha.
24618     - When told to add a bridge with the same addr:port as a preexisting
24619       bridge but a different transport, change the transport as
24620       requested. Previously we would not notice the change. Fixes half
24621       of bug 5603; fix on 0.2.3.2-alpha.
24622     - Avoid a "double-reply" warning when replying to a SOCKS request
24623       with a parse error. Patch from Fabian Keil. Fixes bug 4108;
24624       bugfix on 0.2.3.4-alpha.
24625     - Fix a bug where a bridge authority crashes if it has seen no
24626       directory requests when it's time to write statistics to disk.
24627       Fixes bug 5891; bugfix on 0.2.3.6-alpha. Also fixes bug 5508 in
24628       a better way.
24629     - Don't try to open non-control listeners when DisableNetwork is set.
24630       Previously, we'd open all listeners, then immediately close them.
24631       Fixes bug 5604; bugfix on 0.2.3.9-alpha.
24632     - Don't abort the managed proxy protocol if the managed proxy
24633       sends us an unrecognized line; ignore it instead. Fixes bug
24634       5910; bugfix on 0.2.3.9-alpha.
24635     - Fix a compile warning in crypto.c when compiling with clang 3.1.
24636       Fixes bug 5969, bugfix on 0.2.3.9-alpha.
24637     - Fix a compilation issue on GNU Hurd, which doesn't have PATH_MAX.
24638       Fixes bug 5355; bugfix on 0.2.3.11-alpha.
24639     - Remove bogus definition of "_WIN32" from src/win32/orconfig.h, to
24640       unbreak the MSVC build. Fixes bug 5858; bugfix on 0.2.3.12-alpha.
24641     - Resolve numerous small warnings and build issues with MSVC. Resolves
24642       bug 5859.
24644   o Documentation fixes:
24645     - Improve the manual's documentation for the NT Service command-line
24646       options. Addresses ticket 3964.
24647     - Clarify SessionGroup documentation slightly; resolves ticket 5437.
24648     - Document the changes to the ORPort and DirPort options, and the
24649       fact that {OR/Dir}ListenAddress is now unnecessary (and
24650       therefore deprecated). Resolves ticket 5597.
24652   o Removed files:
24653     - Remove the torrc.bridge file: we don't use it for anything, and
24654       it had become badly desynchronized from torrc.sample. Resolves
24655       bug 5622.
24658 Changes in version 0.2.2.36 - 2012-05-24
24659   Tor 0.2.2.36 updates the addresses for two of the eight directory
24660   authorities, fixes some potential anonymity and security issues,
24661   and fixes several crash bugs.
24663   Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many
24664   known flaws, and nobody should be using them. You should upgrade. If
24665   you're using a Linux or BSD and its packages are obsolete, stop using
24666   those packages and upgrade anyway.
24668   o Directory authority changes:
24669     - Change IP address for maatuska (v3 directory authority).
24670     - Change IP address for ides (v3 directory authority), and rename
24671       it to turtles.
24673   o Security fixes:
24674     - When building or running with any version of OpenSSL earlier
24675       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
24676       versions have a bug (CVE-2011-4576) in which their block cipher
24677       padding includes uninitialized data, potentially leaking sensitive
24678       information to any peer with whom they make a SSLv3 connection. Tor
24679       does not use SSL v3 by default, but a hostile client or server
24680       could force an SSLv3 connection in order to gain information that
24681       they shouldn't have been able to get. The best solution here is to
24682       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
24683       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
24684       to make sure that the bug can't happen.
24685     - Never use a bridge or a controller-supplied node as an exit, even
24686       if its exit policy allows it. Found by wanoskarnet. Fixes bug
24687       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
24688       and 0.2.0.3-alpha (for bridge-purpose descriptors).
24689     - Only build circuits if we have a sufficient threshold of the total
24690       descriptors that are marked in the consensus with the "Exit"
24691       flag. This mitigates an attack proposed by wanoskarnet, in which
24692       all of a client's bridges collude to restrict the exit nodes that
24693       the client knows about. Fixes bug 5343.
24694     - Provide controllers with a safer way to implement the cookie
24695       authentication mechanism. With the old method, if another locally
24696       running program could convince a controller that it was the Tor
24697       process, then that program could trick the controller into telling
24698       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
24699       authentication method uses a challenge-response approach to prevent
24700       this attack. Fixes bug 5185; implements proposal 193.
24702   o Major bugfixes:
24703     - Avoid logging uninitialized data when unable to decode a hidden
24704       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
24705     - Avoid a client-side assertion failure when receiving an INTRODUCE2
24706       cell on a general purpose circuit. Fixes bug 5644; bugfix on
24707       0.2.1.6-alpha.
24708     - Fix builds when the path to sed, openssl, or sha1sum contains
24709       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
24710       on 0.2.2.1-alpha.
24711     - Correct our replacements for the timeradd() and timersub() functions
24712       on platforms that lack them (for example, Windows). The timersub()
24713       function is used when expiring circuits, while timeradd() is
24714       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
24715       bugfix on 0.2.2.24-alpha.
24716     - Fix the SOCKET_OK test that we use to tell when socket
24717       creation fails so that it works on Win64. Fixes part of bug 4533;
24718       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
24720   o Minor bugfixes:
24721     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
24722       Fixes bug 5346; bugfix on 0.0.8pre3.
24723     - Make our number-parsing functions always treat too-large values
24724       as an error, even when those values exceed the width of the
24725       underlying type. Previously, if the caller provided these
24726       functions with minima or maxima set to the extreme values of the
24727       underlying integer type, these functions would return those
24728       values on overflow rather than treating overflow as an error.
24729       Fixes part of bug 5786; bugfix on 0.0.9.
24730     - Older Linux kernels erroneously respond to strange nmap behavior
24731       by having accept() return successfully with a zero-length
24732       socket. When this happens, just close the connection. Previously,
24733       we would try harder to learn the remote address: but there was
24734       no such remote address to learn, and our method for trying to
24735       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
24736       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
24737     - Correct parsing of certain date types in parse_http_time().
24738       Without this patch, If-Modified-Since would behave
24739       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
24740       Esteban Manchado Velázques.
24741     - Change the BridgePassword feature (part of the "bridge community"
24742       design, which is not yet implemented) to use a time-independent
24743       comparison. The old behavior might have allowed an adversary
24744       to use timing to guess the BridgePassword value. Fixes bug 5543;
24745       bugfix on 0.2.0.14-alpha.
24746     - Detect and reject certain misformed escape sequences in
24747       configuration values. Previously, these values would cause us
24748       to crash if received in a torrc file or over an authenticated
24749       control port. Bug found by Esteban Manchado Velázquez, and
24750       independently by Robert Connolly from Matta Consulting who further
24751       noted that it allows a post-authentication heap overflow. Patch
24752       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
24753       bugfix on 0.2.0.16-alpha.
24754     - Fix a compile warning when using the --enable-openbsd-malloc
24755       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
24756     - During configure, detect when we're building with clang version
24757       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
24758       CFLAGS. clang doesn't support them yet.
24759     - When sending an HTTP/1.1 proxy request, include a Host header.
24760       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
24761     - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE
24762       command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha.
24763     - If we hit the error case where routerlist_insert() replaces an
24764       existing (old) server descriptor, make sure to remove that
24765       server descriptor from the old_routers list. Fix related to bug
24766       1776. Bugfix on 0.2.2.18-alpha.
24768   o Minor bugfixes (documentation and log messages):
24769     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
24770       Fixes bug 4856; bugfix on Tor 0.0.6.
24771     - Update "ClientOnly" man page entry to explain that there isn't
24772       really any point to messing with it. Resolves ticket 5005.
24773     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
24774       directory authority option (introduced in Tor 0.2.2.34).
24775     - Downgrade the "We're missing a certificate" message from notice
24776       to info: people kept mistaking it for a real problem, whereas it
24777       is seldom the problem even when we are failing to bootstrap. Fixes
24778       bug 5067; bugfix on 0.2.0.10-alpha.
24779     - Correctly spell "connect" in a log message on failure to create a
24780       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta.
24781     - Clarify the behavior of MaxCircuitDirtiness with hidden service
24782       circuits. Fixes issue 5259.
24784   o Minor features:
24785     - Directory authorities now reject versions of Tor older than
24786       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
24787       inclusive. These versions accounted for only a small fraction of
24788       the Tor network, and have numerous known security issues. Resolves
24789       issue 4788.
24790     - Update to the May 1 2012 Maxmind GeoLite Country database.
24792   o Feature removal:
24793     - When sending or relaying a RELAY_EARLY cell, we used to convert
24794       it to a RELAY cell if the connection was using the v1 link
24795       protocol. This was a workaround for older versions of Tor, which
24796       didn't handle RELAY_EARLY cells properly. Now that all supported
24797       versions can handle RELAY_EARLY cells, and now that we're enforcing
24798       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
24799       remove this workaround. Addresses bug 4786.
24802 Changes in version 0.2.3.15-alpha - 2012-04-30
24803   Tor 0.2.3.15-alpha fixes a variety of smaller bugs, including making
24804   the development branch build on Windows again.
24806   o Minor bugfixes (on 0.2.2.x and earlier):
24807     - Make sure that there are no unhandled pending TLS errors before
24808       reading from a TLS stream. We had checks in 0.1.0.3-rc, but
24809       lost them in 0.1.0.5-rc when we refactored read_to_buf_tls().
24810       Bugfix on 0.1.0.5-rc; fixes bug 4528.
24811     - Fix an assert that directory authorities could trigger on sighup
24812       during some configuration state transitions. We now don't treat
24813       it as a fatal error when the new descriptor we just generated in
24814       init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha.
24815     - After we pick a directory mirror, we would refuse to use it if
24816       it's in our ExcludeExitNodes list, resulting in mysterious failures
24817       to bootstrap for people who just wanted to avoid exiting from
24818       certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
24819     - When building with --enable-static-tor on OpenBSD, do not
24820       erroneously attempt to link -lrt. Fixes bug 5103.
24822   o Minor bugfixes (on 0.2.3.x):
24823     - When Tor is built with kernel headers from a recent (last few
24824       years) Linux kernel, do not fail to run on older (pre-2.6.28
24825       Linux kernels). Fixes bug 5112; bugfix on 0.2.3.1-alpha.
24826     - Fix cross-compilation issues with mingw. Bugfixes on 0.2.3.6-alpha
24827       and 0.2.3.12-alpha.
24828     - Fix compilation with miniupnpc version 1.6; patch from
24829       Anthony G. Basile. Fixes bug 5434; bugfix on 0.2.3.12-alpha.
24830     - Fix compilation with MSVC, which had defined MS_WINDOWS. Bugfix
24831       on 0.2.3.13-alpha; found and fixed by Gisle Vanem.
24832     - Fix compilation on platforms without unistd.h, or where environ
24833       is defined in stdlib.h. Fixes bug 5704; bugfix on 0.2.3.13-alpha.
24835   o Minor features:
24836     - Directory authorities are now a little more lenient at accepting
24837       older router descriptors, or newer router descriptors that don't
24838       make big changes. This should help ameliorate past and future
24839       issues where routers think they have uploaded valid descriptors,
24840       but the authorities don't think so. Fix for ticket 2479.
24841     - Make the code that clients use to detect an address change be
24842       IPv6-aware, so that it won't fill clients' logs with error
24843       messages when trying to get the IPv4 address of an IPv6
24844       connection. Implements ticket 5537.
24846   o Removed features:
24847     - Remove the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays option;
24848       authorities needed to use it for a while to keep the network working
24849       as people upgraded to 0.2.1.31, 0.2.2.34, or 0.2.3.6-alpha, but
24850       that was six months ago. As of now, it should no longer be needed
24851       or used.
24854 Changes in version 0.2.3.14-alpha - 2012-04-23
24855   Tor 0.2.3.14-alpha fixes yet more bugs to get us closer to a release
24856   candidate. It also dramatically speeds up AES: fast relays should
24857   consider switching to the newer OpenSSL library.
24859   o Directory authority changes:
24860     - Change IP address for ides (v3 directory authority), and rename
24861       it to turtles.
24863   o Major bugfixes:
24864     - Avoid logging uninitialized data when unable to decode a hidden
24865       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
24866     - Avoid a client-side assertion failure when receiving an INTRODUCE2
24867       cell on a general purpose circuit. Fixes bug 5644; bugfix on
24868       0.2.1.6-alpha.
24869     - If authorities are unable to get a v2 consensus document from other
24870       directory authorities, they no longer fall back to fetching
24871       them from regular directory caches. Fixes bug 5635; bugfix on
24872       0.2.2.26-beta, where routers stopped downloading v2 consensus
24873       documents entirely.
24874     - When we start a Tor client with a normal consensus already cached,
24875       be willing to download a microdescriptor consensus. Fixes bug 4011;
24876       fix on 0.2.3.1-alpha.
24878   o Major features (performance):
24879     - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64
24880       instruction set, take advantage of OpenSSL's AESNI, bitsliced, or
24881       vectorized AES implementations as appropriate. These can be much,
24882       much faster than other AES implementations.
24884   o Minor bugfixes (0.2.2.x and earlier):
24885     - Don't launch more than 10 service-side introduction-point circuits
24886       for a hidden service in five minutes. Previously, we would consider
24887       launching more introduction-point circuits if at least one second
24888       had passed without any introduction-point circuits failing. Fixes
24889       bug 4607; bugfix on 0.0.7pre1.
24890     - Change the BridgePassword feature (part of the "bridge community"
24891       design, which is not yet implemented) to use a time-independent
24892       comparison. The old behavior might have allowed an adversary
24893       to use timing to guess the BridgePassword value. Fixes bug 5543;
24894       bugfix on 0.2.0.14-alpha.
24895     - Enforce correct return behavior of tor_vsscanf() when the '%%'
24896       pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13.
24897     - When sending an HTTP/1.1 proxy request, include a Host header.
24898       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
24899     - Don't log that we have "decided to publish new relay descriptor"
24900       unless we are actually publishing a descriptor. Fixes bug 3942;
24901       bugfix on 0.2.2.28-beta.
24903   o Minor bugfixes (0.2.3.x):
24904     - Fix a bug where a bridge authority crashes (on a failed assert)
24905       if it has seen no directory requests when it's time to write
24906       statistics to disk. Fixes bug 5508. Bugfix on 0.2.3.6-alpha.
24907     - Fix bug stomping on ORPort option NoListen and ignoring option
24908       NoAdvertise. Fixes bug 5151; bugfix on 0.2.3.9-alpha.
24909     - In the testsuite, provide a large enough buffer in the tor_sscanf
24910       unit test. Otherwise we'd overrun that buffer and crash during
24911       the unit tests. Found by weasel. Fixes bug 5449; bugfix on
24912       0.2.3.12-alpha.
24913     - Make sure we create the keys directory if it doesn't exist and we're
24914       about to store the dynamic Diffie-Hellman parameters. Fixes bug
24915       5572; bugfix on 0.2.3.13-alpha.
24916     - Fix a small memory leak when trying to decode incorrect base16
24917       authenticator during SAFECOOKIE authentication. Found by
24918       Coverity Scan. Fixes CID 507. Bugfix on 0.2.3.13-alpha.
24920   o Minor features:
24921     - Add more information to a log statement that might help track down
24922       bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
24923       non-IP address" messages (or any Bug messages, for that matter!),
24924       please let us know about it.
24925     - Relays now understand an IPv6 address when they get one from a
24926       directory server. Resolves ticket 4875.
24927     - Resolve IPv6 addresses in bridge and entry statistics to country
24928       code "??" which means we at least count them. Resolves ticket 5053;
24929       improves on 0.2.3.9-alpha.
24930     - Update to the April 3 2012 Maxmind GeoLite Country database.
24931     - Begin a doc/state-contents.txt file to explain the contents of
24932       the Tor state file. Fixes bug 2987.
24934   o Default torrc changes:
24935     - Stop listing "socksport 9050" in torrc.sample. We open a socks
24936       port on 9050 by default anyway, so this should not change anything
24937       in practice.
24938     - Stop mentioning the deprecated *ListenAddress options in
24939       torrc.sample. Fixes bug 5438.
24940     - Document unit of bandwidth related options in sample torrc.
24941       Fixes bug 5621.
24943   o Removed features:
24944     - The "torify" script no longer supports the "tsocks" socksifier
24945       tool, since tsocks doesn't support DNS and UDP right for Tor.
24946       Everyone should be using torsocks instead. Fixes bugs 3530 and
24947       5180. Based on a patch by "ugh".
24949   o Code refactoring:
24950     - Change the symmetric cipher interface so that creating and
24951       initializing a stream cipher are no longer separate functions.
24952     - Remove all internal support for unpadded RSA. We never used it, and
24953       it would be a bad idea to start.
24956 Changes in version 0.2.3.13-alpha - 2012-03-26
24957   Tor 0.2.3.13-alpha fixes a variety of stability and correctness bugs
24958   in managed pluggable transports, as well as providing other cleanups
24959   that get us closer to a release candidate.
24961   o Directory authority changes:
24962     - Change IP address for maatuska (v3 directory authority).
24964   o Security fixes:
24965     - Provide controllers with a safer way to implement the cookie
24966       authentication mechanism. With the old method, if another locally
24967       running program could convince a controller that it was the Tor
24968       process, then that program could trick the controller into telling
24969       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
24970       authentication method uses a challenge-response approach to prevent
24971       this attack. Fixes bug 5185, implements proposal 193.
24972     - Never use a bridge or a controller-supplied node as an exit, even
24973       if its exit policy allows it. Found by wanoskarnet. Fixes bug
24974       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
24975       and 0.2.0.3-alpha (for bridge-purpose descriptors).
24976     - Only build circuits if we have a sufficient threshold of the total
24977       descriptors that are marked in the consensus with the "Exit"
24978       flag. This mitigates an attack proposed by wanoskarnet, in which
24979       all of a client's bridges collude to restrict the exit nodes that
24980       the client knows about. Fixes bug 5343.
24982   o Major bugfixes (on Tor 0.2.3.x):
24983     - Avoid an assert when managed proxies like obfsproxy are configured,
24984       and we receive HUP signals or setconf attempts too rapidly. This
24985       situation happens most commonly when Vidalia tries to attach to
24986       Tor or tries to configure the Tor it's attached to. Fixes bug 5084;
24987       bugfix on 0.2.3.6-alpha.
24988     - Fix a relay-side pluggable transports bug where managed proxies were
24989       unreachable from the Internet, because Tor asked them to bind on
24990       localhost. Fixes bug 4725; bugfix on 0.2.3.9-alpha.
24991     - Stop discarding command-line arguments when TestingTorNetwork
24992       is set. Discovered by Kevin Bauer. Fixes bug 5373; bugfix on
24993       0.2.3.9-alpha, where task 4552 added support for two layers of
24994       torrc files.
24995     - Resume allowing the unit tests to run in gdb. This was accidentally
24996       made impossible when the DisableDebuggerAttachment option was
24997       introduced. Fixes bug 5448; bugfix on 0.2.3.9-alpha.
24998     - Resume building with nat-pmp support. Fixes bug 4955; bugfix on
24999       0.2.3.11-alpha. Reported by Anthony G. Basile.
25001   o Minor bugfixes (on 0.2.2.x and earlier):
25002     - Ensure we don't cannibalize circuits that are longer than three hops
25003       already, so we don't end up making circuits with 5 or more
25004       hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on
25005       0.1.0.1-rc which introduced cannibalization.
25006     - Detect and reject certain misformed escape sequences in
25007       configuration values. Previously, these values would cause us
25008       to crash if received in a torrc file or over an authenticated
25009       control port. Bug found by Esteban Manchado Velázquez, and
25010       independently by Robert Connolly from Matta Consulting who further
25011       noted that it allows a post-authentication heap overflow. Patch
25012       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
25013       bugfix on 0.2.0.16-alpha.
25014     - Fix a compile warning when using the --enable-openbsd-malloc
25015       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
25016     - Directory caches no longer refuse to clean out descriptors because
25017       of missing v2 networkstatus documents, unless they're configured
25018       to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on
25019       0.2.2.26-beta. Patch by Daniel Bryg.
25020     - Update to the latest version of the tinytest unit testing framework.
25021       This includes a couple of bugfixes that can be relevant for
25022       running forked unit tests on Windows, and removes all reserved
25023       identifiers.
25025   o Minor bugfixes (on 0.2.3.x):
25026     - On a failed pipe() call, don't leak file descriptors. Fixes bug
25027       4296; bugfix on 0.2.3.1-alpha.
25028     - Spec conformance: on a v3 handshake, do not send a NETINFO cell
25029       until after we have received a CERTS cell. Fixes bug 4361; bugfix
25030       on 0.2.3.6-alpha. Patch by "frosty".
25031     - When binding to an IPv6 address, set the IPV6_V6ONLY socket
25032       option, so that the IP stack doesn't decide to use it for IPv4
25033       too. Fixes bug 4760; bugfix on 0.2.3.9-alpha.
25034     - Ensure that variables set in Tor's environment cannot override
25035       environment variables that Tor passes to a managed
25036       pluggable-transport proxy. Previously, Tor would pass every
25037       variable in its environment to managed proxies along with the new
25038       ones, in such a way that on many operating systems, the inherited
25039       environment variables would override those which Tor tried to
25040       explicitly set. Bugfix on 0.2.3.12-alpha for most Unixoid systems;
25041       bugfix on 0.2.3.9-alpha for Windows.
25043   o Minor features:
25044     - A wide variety of new unit tests by Esteban Manchado Velázquez.
25045     - Shorten links in the tor-exit-notice file. Patch by Christian Kujau.
25046     - Update to the March 6 2012 Maxmind GeoLite Country database.
25049 Changes in version 0.2.3.12-alpha - 2012-02-13
25050   Tor 0.2.3.12-alpha lets fast exit relays scale better, allows clients
25051   to use bridges that run Tor 0.2.2.x, and resolves several big bugs
25052   when Tor is configured to use a pluggable transport like obfsproxy.
25054   o Major bugfixes:
25055     - Fix builds when the path to sed, openssl, or sha1sum contains
25056       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
25057       on 0.2.2.1-alpha.
25058     - Set the SO_REUSEADDR socket option before we call bind() on outgoing
25059       connections. This change should allow busy exit relays to stop
25060       running out of available sockets as quickly. Fixes bug 4950;
25061       bugfix on 0.2.2.26-beta.
25062     - Allow 0.2.3.x clients to use 0.2.2.x bridges. Previously the client
25063       would ask the bridge for microdescriptors, which are only supported
25064       in 0.2.3.x, and then fail to bootstrap when it didn't get the
25065       answers it wanted. Fixes bug 4013; bugfix on 0.2.3.2-alpha.
25066     - Properly set up obfsproxy's environment when in managed mode. The
25067       Tor Browser Bundle needs LD_LIBRARY_PATH to be passed to obfsproxy,
25068       and when you run your Tor as a daemon, there's no HOME. Fixes bugs
25069       5076 and 5082; bugfix on 0.2.3.6-alpha.
25071   o Minor features:
25072     - Use the dead_strip option when building Tor on OS X. This reduces
25073       binary size by almost 19% when linking openssl and libevent
25074       statically, which we do for Tor Browser Bundle.
25075     - Fix broken URLs in the sample torrc file, and tell readers about
25076       the OutboundBindAddress, ExitPolicyRejectPrivate, and
25077       PublishServerDescriptor options. Addresses bug 4652.
25078     - Update to the February 7 2012 Maxmind GeoLite Country database.
25080   o Minor bugfixes:
25081     - Downgrade the "We're missing a certificate" message from notice
25082       to info: people kept mistaking it for a real problem, whereas it
25083       is seldom the problem even when we are failing to bootstrap. Fixes
25084       bug 5067; bugfix on 0.2.0.10-alpha.
25085     - Don't put "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200" in a
25086       managed pluggable transport server proxy's environment.
25087       Previously, we would put it there, even though Tor doesn't
25088       implement an 'extended server port' yet, and even though Tor
25089       almost certainly isn't listening at that address. For now, we set
25090       it to an empty string to avoid crashing older obfsproxies. Bugfix
25091       on 0.2.3.6-alpha.
25092     - Log the heartbeat message every HeartbeatPeriod seconds, not every
25093       HeartbeatPeriod + 1 seconds. Fixes bug 4942; bugfix on
25094       0.2.3.1-alpha. Bug reported by Scott Bennett.
25095     - Calculate absolute paths correctly on Windows. Fixes bug 4973;
25096       bugfix on 0.2.3.11-alpha.
25097     - Update "ClientOnly" man page entry to explain that there isn't
25098       really any point to messing with it. Resolves ticket 5005.
25099     - Use the correct CVE number for CVE-2011-4576 in our comments and
25100       log messages. Found by "fermenthor". Resolves bug 5066; bugfix on
25101       0.2.3.11-alpha.
25103   o Code simplifications and refactoring:
25104     - Use the _WIN32 macro throughout our code to detect Windows.
25105       (Previously we had used the obsolete 'WIN32' and the idiosyncratic
25106       'MS_WINDOWS'.)
25109 Changes in version 0.2.3.11-alpha - 2012-01-22
25110   Tor 0.2.3.11-alpha marks feature-freeze for the 0.2.3 tree. It deploys
25111   the last step of the plan to limit maximum circuit length, includes
25112   a wide variety of hidden service performance and correctness fixes,
25113   works around an OpenSSL security flaw if your distro is too stubborn
25114   to upgrade, and fixes a bunch of smaller issues.
25116   o Major features:
25117     - Now that Tor 0.2.0.x is completely deprecated, enable the final
25118       part of "Proposal 110: Avoiding infinite length circuits" by
25119       refusing all circuit-extend requests that do not use a relay_early
25120       cell. This change helps Tor resist a class of denial-of-service
25121       attacks by limiting the maximum circuit length.
25122     - Adjust the number of introduction points that a hidden service
25123       will try to maintain based on how long its introduction points
25124       remain in use and how many introductions they handle. Fixes
25125       part of bug 3825.
25126     - Try to use system facilities for enumerating local interface
25127       addresses, before falling back to our old approach (which was
25128       binding a UDP socket, and calling getsockname() on it). That
25129       approach was scaring OS X users whose draconian firewall
25130       software warned about binding to UDP sockets, regardless of
25131       whether packets were sent. Now we try to use getifaddrs(),
25132       SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the
25133       system supports. Resolves ticket 1827.
25135   o Major security workaround:
25136     - When building or running with any version of OpenSSL earlier
25137       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
25138       versions have a bug (CVE-2011-4576) in which their block cipher
25139       padding includes uninitialized data, potentially leaking sensitive
25140       information to any peer with whom they make a SSLv3 connection. Tor
25141       does not use SSL v3 by default, but a hostile client or server
25142       could force an SSLv3 connection in order to gain information that
25143       they shouldn't have been able to get. The best solution here is to
25144       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
25145       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
25146       to make sure that the bug can't happen.
25148   o Major bugfixes:
25149     - Fix the SOCKET_OK test that we use to tell when socket
25150       creation fails so that it works on Win64. Fixes part of bug 4533;
25151       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
25152     - Correct our replacements for the timeradd() and timersub() functions
25153       on platforms that lack them (for example, Windows). The timersub()
25154       function is used when expiring circuits, while timeradd() is
25155       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
25156       bugfix on 0.2.2.24-alpha and 0.2.3.1-alpha.
25157     - Do not use OpenSSL 1.0.0's counter mode: it has a critical bug
25158       that was fixed in OpenSSL 1.0.0a. We test for the counter mode
25159       bug at runtime, not compile time, because some distributions hack
25160       their OpenSSL to mis-report its version. Fixes bug 4779; bugfix
25161       on 0.2.3.9-alpha. Found by Pascal.
25163   o Minor features (controller):
25164     - Use absolute path names when reporting the torrc filename in the
25165       control protocol, so a controller can more easily find the torrc
25166       file. Resolves bug 1101.
25167     - Extend the control protocol to report flags that control a circuit's
25168       path selection in CIRC events and in replies to 'GETINFO
25169       circuit-status'. Implements part of ticket 2411.
25170     - Extend the control protocol to report the hidden service address
25171       and current state of a hidden-service-related circuit in CIRC
25172       events and in replies to 'GETINFO circuit-status'. Implements part
25173       of ticket 2411.
25174     - When reporting the path to the cookie file to the controller,
25175       give an absolute path. Resolves ticket 4881.
25176     - Allow controllers to request an event notification whenever a
25177       circuit is cannibalized or its purpose is changed. Implements
25178       part of ticket 3457.
25179     - Include the creation time of a circuit in CIRC and CIRC2
25180       control-port events and the list produced by the 'GETINFO
25181       circuit-status' control-port command.
25183   o Minor features (directory authorities):
25184     - Directory authorities now reject versions of Tor older than
25185       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
25186       inclusive. These versions accounted for only a small fraction of
25187       the Tor network, and have numerous known security issues. Resolves
25188       issue 4788.
25189     - Authority operators can now vote for all relays in a given
25190       set of countries to be BadDir/BadExit/Invalid/Rejected.
25191     - Provide two consensus parameters (FastFlagMinThreshold and
25192       FastFlagMaxThreshold) to control the range of allowable bandwidths
25193       for the Fast directory flag. These allow authorities to run
25194       experiments on appropriate requirements for being a "Fast" node.
25195       The AuthDirFastGuarantee config value still applies. Implements
25196       ticket 3946.
25197     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
25198       directory authority option (introduced in Tor 0.2.2.34).
25200   o Minor features (other):
25201     - Don't disable the DirPort when we cannot exceed our AccountingMax
25202       limit during this interval because the effective bandwidthrate is
25203       low enough. This is useful in a situation where AccountMax is only
25204       used as an additional safeguard or to provide statistics.
25205     - Prepend an informative header to generated dynamic_dh_params files.
25206     - If EntryNodes are given, but UseEntryGuards is set to 0, warn that
25207       EntryNodes will have no effect. Resolves issue 2571.
25208     - Log more useful messages when we fail to disable debugger
25209       attachment.
25210     - Log which authority we're missing votes from when we go to fetch
25211       them from the other auths.
25212     - Log (at debug level) whenever a circuit's purpose is changed.
25213     - Add missing documentation for the MaxClientCircuitsPending,
25214       UseMicrodescriptors, UserspaceIOCPBuffers, and
25215       _UseFilteringSSLBufferevents options, all introduced during
25216       the 0.2.3.x series.
25217     - Update to the January 3 2012 Maxmind GeoLite Country database.
25219   o Minor bugfixes (hidden services):
25220     - Don't close hidden service client circuits which have almost
25221       finished connecting to their destination when they reach
25222       the normal circuit-build timeout. Previously, we would close
25223       introduction circuits which are waiting for an acknowledgement
25224       from the introduction point, and rendezvous circuits which have
25225       been specified in an INTRODUCE1 cell sent to a hidden service,
25226       after the normal CBT. Now, we mark them as 'timed out', and launch
25227       another rendezvous attempt in parallel. This behavior change can
25228       be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout
25229       option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha.
25230     - Don't close hidden-service-side rendezvous circuits when they
25231       reach the normal circuit-build timeout. This behavior change can
25232       be disabled using the new
25233       CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the
25234       remaining part of bug 1297; bugfix on 0.2.2.2-alpha.
25235     - Make sure we never mark the wrong rendezvous circuit as having
25236       had its introduction cell acknowledged by the introduction-point
25237       relay. Previously, when we received an INTRODUCE_ACK cell on a
25238       client-side hidden-service introduction circuit, we might have
25239       marked a rendezvous circuit other than the one we specified in
25240       the INTRODUCE1 cell as INTRO_ACKED, which would have produced
25241       a warning message and interfered with the hidden service
25242       connection-establishment process. Fixes bug 4759; bugfix on
25243       0.2.3.3-alpha, when we added the stream-isolation feature which
25244       might cause Tor to open multiple rendezvous circuits for the same
25245       hidden service.
25246     - Don't trigger an assertion failure when we mark a new client-side
25247       hidden-service introduction circuit for close during the process
25248       of creating it. Fixes bug 4796; bugfix on 0.2.3.6-alpha. Reported
25249       by murb.
25251   o Minor bugfixes (log messages):
25252     - Correctly spell "connect" in a log message on failure to create a
25253       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta and
25254       0.2.3.2-alpha.
25255     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
25256       Fixes bug 4856; bugfix on Tor 0.0.6.
25257     - Fix the log message describing how we work around discovering
25258       that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
25259       4837; bugfix on 0.2.2.9-alpha.
25260     - When logging about a disallowed .exit name, do not also call it
25261       an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha.
25263   o Minor bugfixes (build fixes):
25264     - During configure, detect when we're building with clang version
25265       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
25266       CFLAGS. clang doesn't support them yet.
25267     - During configure, search for library containing cos function as
25268       libm lives in libcore on some platforms (BeOS/Haiku). Linking
25269       against libm was hard-coded before. Fixes the first part of bug
25270       4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes
25271       Pedersen.
25272     - Detect attempts to build Tor on (as yet hypothetical) versions
25273       of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial
25274       fix for bug 4533. Bugfix on 0.2.2.28-beta.
25275     - Preprocessor directives should not be put inside the arguments
25276       of a macro. This would break compilation with GCC releases prior
25277       to version 3.3. We would never recommend such an old GCC version,
25278       but it is apparently required for binary compatibility on some
25279       platforms (namely, certain builds of Haiku). Fixes the other part
25280       of bug 4727; bugfix on 0.2.3.3-alpha. Patch and analysis by Martin
25281       Hebnes Pedersen.
25283   o Minor bugfixes (other):
25284     - Older Linux kernels erroneously respond to strange nmap behavior
25285       by having accept() return successfully with a zero-length
25286       socket. When this happens, just close the connection. Previously,
25287       we would try harder to learn the remote address: but there was
25288       no such remote address to learn, and our method for trying to
25289       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
25290       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
25291     - Fix null-pointer access that could occur if TLS allocation failed.
25292       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un". This was
25293       erroneously listed as fixed in 0.2.3.9-alpha, but the fix had
25294       accidentally been reverted.
25295     - Fix our implementation of crypto_random_hostname() so it can't
25296       overflow on ridiculously large inputs. (No Tor version has ever
25297       provided this kind of bad inputs, but let's be correct in depth.)
25298       Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer.
25299     - Find more places in the code that should have been testing for
25300       invalid sockets using the SOCKET_OK macro. Required for a fix
25301       for bug 4533. Bugfix on 0.2.2.28-beta.
25302     - Fix an assertion failure when, while running with bufferevents, a
25303       connection finishes connecting after it is marked for close, but
25304       before it is closed. Fixes bug 4697; bugfix on 0.2.3.1-alpha.
25305     - test_util_spawn_background_ok() hardcoded the expected value
25306       for ENOENT to 2. This isn't portable as error numbers are
25307       platform specific, and particularly the hurd has ENOENT at
25308       0x40000002. Construct expected string at runtime, using the correct
25309       value for ENOENT. Fixes bug 4733; bugfix on 0.2.3.1-alpha.
25310     - Reject attempts to disable DisableDebuggerAttachment while Tor is
25311       running. Fixes bug 4650; bugfix on 0.2.3.9-alpha.
25312     - Use an appropriate-width type for sockets in tor-fw-helper on
25313       win64. Fixes bug 1983 at last. Bugfix on 0.2.3.9-alpha.
25315   o Feature removal:
25316     - When sending or relaying a RELAY_EARLY cell, we used to convert
25317       it to a RELAY cell if the connection was using the v1 link
25318       protocol. This was a workaround for older versions of Tor, which
25319       didn't handle RELAY_EARLY cells properly. Now that all supported
25320       versions can handle RELAY_EARLY cells, and now that we're enforcing
25321       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
25322       remove this workaround. Addresses bug 4786.
25324   o Code simplifications and refactoring:
25325     - Use OpenSSL's built-in SSL_state_string_long() instead of our
25326       own homebrewed ssl_state_to_string() replacement. Patch from
25327       Emile Snyder. Fixes bug 4653.
25328     - Use macros to indicate OpenSSL versions, so we don't need to worry
25329       about accidental hexadecimal bit shifts.
25330     - Remove some workaround code for OpenSSL 0.9.6 (which is no longer
25331       supported).
25332     - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf.
25333     - Use the smartlist_add_asprintf() alias more consistently.
25334     - Use a TOR_INVALID_SOCKET macro when initializing a socket to an
25335       invalid value, rather than just -1.
25336     - Rename a handful of old identifiers, mostly related to crypto
25337       structures and crypto functions. By convention, our "create an
25338       object" functions are called "type_new()", our "free an object"
25339       functions are called "type_free()", and our types indicate that
25340       they are types only with a final "_t". But a handful of older
25341       types and functions broke these rules, with function names like
25342       "type_create" or "subsystem_op_type", or with type names like
25343       type_env_t.
25346 Changes in version 0.2.3.10-alpha - 2011-12-16
25347   Tor 0.2.3.10-alpha fixes a critical heap-overflow security issue in
25348   Tor's buffers code. Absolutely everybody should upgrade.
25350   The bug relied on an incorrect calculation when making data continuous
25351   in one of our IO buffers, if the first chunk of the buffer was
25352   misaligned by just the wrong amount. The miscalculation would allow an
25353   attacker to overflow a piece of heap-allocated memory. To mount this
25354   attack, the attacker would need to either open a SOCKS connection to
25355   Tor's SocksPort (usually restricted to localhost), or target a Tor
25356   instance configured to make its connections through a SOCKS proxy
25357   (which Tor does not do by default).
25359   Good security practice requires that all heap-overflow bugs should be
25360   presumed to be exploitable until proven otherwise, so we are treating
25361   this as a potential code execution attack. Please upgrade immediately!
25362   This bug does not affect bufferevents-based builds of Tor. Special
25363   thanks to "Vektor" for reporting this issue to us!
25365   This release also contains a few minor bugfixes for issues discovered
25366   in 0.2.3.9-alpha.
25368   o Major bugfixes:
25369     - Fix a heap overflow bug that could occur when trying to pull
25370       data into the first chunk of a buffer, when that chunk had
25371       already had some data drained from it. Fixes CVE-2011-2778;
25372       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
25374   o Minor bugfixes:
25375     - If we can't attach streams to a rendezvous circuit when we
25376       finish connecting to a hidden service, clear the rendezvous
25377       circuit's stream-isolation state and try to attach streams
25378       again. Previously, we cleared rendezvous circuits' isolation
25379       state either too early (if they were freshly built) or not at all
25380       (if they had been built earlier and were cannibalized). Bugfix on
25381       0.2.3.3-alpha; fixes bug 4655.
25382     - Fix compilation of the libnatpmp helper on non-Windows. Bugfix on
25383       0.2.3.9-alpha; fixes bug 4691. Reported by Anthony G. Basile.
25384     - Fix an assertion failure when a relay with accounting enabled
25385       starts up while dormant. Fixes bug 4702; bugfix on 0.2.3.9-alpha.
25387   o Minor features:
25388     - Update to the December 6 2011 Maxmind GeoLite Country database.
25391 Changes in version 0.2.2.35 - 2011-12-16
25392   Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's
25393   buffers code. Absolutely everybody should upgrade.
25395   The bug relied on an incorrect calculation when making data continuous
25396   in one of our IO buffers, if the first chunk of the buffer was
25397   misaligned by just the wrong amount. The miscalculation would allow an
25398   attacker to overflow a piece of heap-allocated memory. To mount this
25399   attack, the attacker would need to either open a SOCKS connection to
25400   Tor's SocksPort (usually restricted to localhost), or target a Tor
25401   instance configured to make its connections through a SOCKS proxy
25402   (which Tor does not do by default).
25404   Good security practice requires that all heap-overflow bugs should be
25405   presumed to be exploitable until proven otherwise, so we are treating
25406   this as a potential code execution attack. Please upgrade immediately!
25407   This bug does not affect bufferevents-based builds of Tor. Special
25408   thanks to "Vektor" for reporting this issue to us!
25410   Tor 0.2.2.35 also fixes several bugs in previous versions, including
25411   crash bugs for unusual configurations, and a long-term bug that
25412   would prevent Tor from starting on Windows machines with draconian
25413   AV software.
25415   With this release, we remind everyone that 0.2.0.x has reached its
25416   formal end-of-life. Those Tor versions have many known flaws, and
25417   nobody should be using them. You should upgrade -- ideally to the
25418   0.2.2.x series. If you're using a Linux or BSD and its packages are
25419   obsolete, stop using those packages and upgrade anyway.
25421   The Tor 0.2.1.x series is also approaching its end-of-life: it will no
25422   longer receive support after some time in early 2012.
25424   o Major bugfixes:
25425     - Fix a heap overflow bug that could occur when trying to pull
25426       data into the first chunk of a buffer, when that chunk had
25427       already had some data drained from it. Fixes CVE-2011-2778;
25428       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
25429     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
25430       that it doesn't attempt to allocate a socketpair. This could cause
25431       some problems on Windows systems with overzealous firewalls. Fix for
25432       bug 4457; workaround for Libevent versions 2.0.1-alpha through
25433       2.0.15-stable.
25434     - If we mark an OR connection for close based on a cell we process,
25435       don't process any further cells on it. We already avoid further
25436       reads on marked-for-close connections, but now we also discard the
25437       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
25438       which was the first version where we might mark a connection for
25439       close based on processing a cell on it.
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 memory leak when we check whether a hidden service
25445       descriptor has any usable introduction points left. Fixes bug
25446       4424. Bugfix on 0.2.2.25-alpha.
25447     - Don't crash when we're running as a relay and don't have a GeoIP
25448       file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix
25449       we've had in the 0.2.3.x branch already.
25450     - When running as a client, do not print a misleading (and plain
25451       wrong) log message that we're collecting "directory request"
25452       statistics: clients don't collect statistics. Also don't create a
25453       useless (because empty) stats file in the stats/ directory. Fixes
25454       bug 4353; bugfix on 0.2.2.34.
25456   o Minor bugfixes:
25457     - Detect failure to initialize Libevent. This fix provides better
25458       detection for future instances of bug 4457.
25459     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
25460       function. This was eating up hideously large amounts of time on some
25461       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
25462     - Resolve an integer overflow bug in smartlist_ensure_capacity().
25463       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
25464       Mansour Moufid.
25465     - Don't warn about unused log_mutex in log.c when building with
25466       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
25467       0.1.0.6-rc which introduced --disable-threads.
25468     - When configuring, starting, or stopping an NT service, stop
25469       immediately after the service configuration attempt has succeeded
25470       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
25471     - When sending a NETINFO cell, include the original address
25472       received for the other side, not its canonical address. Found
25473       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
25474     - Fix a typo in a hibernation-related log message. Fixes bug 4331;
25475       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
25476     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
25477       occurred when a client tried to fetch a descriptor for a bridge
25478       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
25479     - Backport fixes for a pair of compilation warnings on Windows.
25480       Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta.
25481     - If we had ever tried to call tor_addr_to_str on an address of
25482       unknown type, we would have done a strdup on an uninitialized
25483       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
25484       Reported by "troll_un".
25485     - Correctly detect and handle transient lookup failures from
25486       tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
25487       Reported by "troll_un".
25488     - Fix null-pointer access that could occur if TLS allocation failed.
25489       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
25490     - Use tor_socket_t type for listener argument to accept(). Fixes bug
25491       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
25493   o Minor features:
25494     - Add two new config options for directory authorities:
25495       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
25496       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
25497       that is always sufficient to satisfy the bandwidth requirement for
25498       the Guard flag. Now it will be easier for researchers to simulate
25499       Tor networks with different values. Resolves ticket 4484.
25500     - When Tor ignores a hidden service specified in its configuration,
25501       include the hidden service's directory in the warning message.
25502       Previously, we would only tell the user that some hidden service
25503       was ignored. Bugfix on 0.0.6; fixes bug 4426.
25504     - Update to the December 6 2011 Maxmind GeoLite Country database.
25506   o Packaging changes:
25507     - Make it easier to automate expert package builds on Windows,
25508       by removing an absolute path from makensis.exe command.
25511 Changes in version 0.2.1.32 - 2011-12-16
25512   Tor 0.2.1.32 backports important security and privacy fixes for
25513   oldstable. This release is intended only for package maintainers and
25514   others who cannot use the 0.2.2 stable series. All others should be
25515   using Tor 0.2.2.x or newer.
25517   The Tor 0.2.1.x series will reach formal end-of-life some time in
25518   early 2012; we will stop releasing patches for it then.
25520   o Major bugfixes (also included in 0.2.2.x):
25521     - Correctly sanity-check that we don't underflow on a memory
25522       allocation (and then assert) for hidden service introduction
25523       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
25524       bugfix on 0.2.1.5-alpha.
25525     - Fix a heap overflow bug that could occur when trying to pull
25526       data into the first chunk of a buffer, when that chunk had
25527       already had some data drained from it. Fixes CVE-2011-2778;
25528       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
25530   o Minor features:
25531     - Update to the December 6 2011 Maxmind GeoLite Country database.
25534 Changes in version 0.2.3.9-alpha - 2011-12-08
25535   Tor 0.2.3.9-alpha introduces initial IPv6 support for bridges, adds
25536   a "DisableNetwork" security feature that bundles can use to avoid
25537   touching the network until bridges are configured, moves forward on
25538   the pluggable transport design, fixes a flaw in the hidden service
25539   design that unnecessarily prevented clients with wrong clocks from
25540   reaching hidden services, and fixes a wide variety of other issues.
25542   o Major features:
25543     - Clients can now connect to private bridges over IPv6. Bridges
25544       still need at least one IPv4 address in order to connect to
25545       other relays. Note that we don't yet handle the case where the
25546       user has two bridge lines for the same bridge (one IPv4, one
25547       IPv6). Implements parts of proposal 186.
25548     - New "DisableNetwork" config option to prevent Tor from launching any
25549       connections or accepting any connections except on a control port.
25550       Bundles and controllers can set this option before letting Tor talk
25551       to the rest of the network, for example to prevent any connections
25552       to a non-bridge address. Packages like Orbot can also use this
25553       option to instruct Tor to save power when the network is off.
25554     - Clients and bridges can now be configured to use a separate
25555       "transport" proxy. This approach makes the censorship arms race
25556       easier by allowing bridges to use protocol obfuscation plugins. It
25557       implements the "managed proxy" part of proposal 180 (ticket 3472).
25558     - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode
25559       implementation. It makes AES_CTR about 7% faster than our old one
25560       (which was about 10% faster than the one OpenSSL used to provide).
25561       Resolves ticket 4526.
25562     - Add a "tor2web mode" for clients that want to connect to hidden
25563       services non-anonymously (and possibly more quickly). As a safety
25564       measure to try to keep users from turning this on without knowing
25565       what they are doing, tor2web mode must be explicitly enabled at
25566       compile time, and a copy of Tor compiled to run in tor2web mode
25567       cannot be used as a normal Tor client. Implements feature 2553.
25568     - Add experimental support for running on Windows with IOCP and no
25569       kernel-space socket buffers. This feature is controlled by a new
25570       "UserspaceIOCPBuffers" config option (off by default), which has
25571       no effect unless Tor has been built with support for bufferevents,
25572       is running on Windows, and has enabled IOCP. This may, in the long
25573       run, help solve or mitigate bug 98.
25574     - Use a more secure consensus parameter voting algorithm. Now at
25575       least three directory authorities or a majority of them must
25576       vote on a given parameter before it will be included in the
25577       consensus. Implements proposal 178.
25579   o Major bugfixes:
25580     - Hidden services now ignore the timestamps on INTRODUCE2 cells.
25581       They used to check that the timestamp was within 30 minutes
25582       of their system clock, so they could cap the size of their
25583       replay-detection cache, but that approach unnecessarily refused
25584       service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when
25585       the v3 intro-point protocol (the first one which sent a timestamp
25586       field in the INTRODUCE2 cell) was introduced; fixes bug 3460.
25587     - Only use the EVP interface when AES acceleration is enabled,
25588       to avoid a 5-7% performance regression. Resolves issue 4525;
25589       bugfix on 0.2.3.8-alpha.
25591   o Privacy/anonymity features (bridge detection):
25592     - Make bridge SSL certificates a bit more stealthy by using random
25593       serial numbers, in the same fashion as OpenSSL when generating
25594       self-signed certificates. Implements ticket 4584.
25595     - Introduce a new config option "DynamicDHGroups", enabled by
25596       default, which provides each bridge with a unique prime DH modulus
25597       to be used during SSL handshakes. This option attempts to help
25598       against censors who might use the Apache DH modulus as a static
25599       identifier for bridges. Addresses ticket 4548.
25601   o Minor features (new/different config options):
25602     - New configuration option "DisableDebuggerAttachment" (on by default)
25603       to prevent basic debugging attachment attempts by other processes.
25604       Supports Mac OS X and Gnu/Linux. Resolves ticket 3313.
25605     - Allow MapAddress directives to specify matches against super-domains,
25606       as in "MapAddress *.torproject.org *.torproject.org.torserver.exit".
25607       Implements issue 933.
25608     - Slightly change behavior of "list" options (that is, config
25609       options that can appear more than once) when they appear both in
25610       torrc and on the command line. Previously, the command-line options
25611       would be appended to the ones from torrc. Now, the command-line
25612       options override the torrc options entirely. This new behavior
25613       allows the user to override list options (like exit policies and
25614       ports to listen on) from the command line, rather than simply
25615       appending to the list.
25616     - You can get the old (appending) command-line behavior for "list"
25617       options by prefixing the option name with a "+".
25618     - You can remove all the values for a "list" option from the command
25619       line without adding any new ones by prefixing the option name
25620       with a "/".
25621     - Add experimental support for a "defaults" torrc file to be parsed
25622       before the regular torrc. Torrc options override the defaults file's
25623       options in the same way that the command line overrides the torrc.
25624       The SAVECONF controller command saves only those options which
25625       differ between the current configuration and the defaults file. HUP
25626       reloads both files. (Note: This is an experimental feature; its
25627       behavior will probably be refined in future 0.2.3.x-alpha versions
25628       to better meet packagers' needs.) Implements task 4552.
25630   o Minor features:
25631     - Try to make the introductory warning message that Tor prints on
25632       startup more useful for actually finding help and information.
25633       Resolves ticket 2474.
25634     - Running "make version" now displays the version of Tor that
25635       we're about to build. Idea from katmagic; resolves issue 4400.
25636     - Expire old or over-used hidden service introduction points.
25637       Required by fix for bug 3460.
25638     - Move the replay-detection cache for the RSA-encrypted parts of
25639       INTRODUCE2 cells to the introduction point data structures.
25640       Previously, we would use one replay-detection cache per hidden
25641       service. Required by fix for bug 3460.
25642     - Reduce the lifetime of elements of hidden services' Diffie-Hellman
25643       public key replay-detection cache from 60 minutes to 5 minutes. This
25644       replay-detection cache is now used only to detect multiple
25645       INTRODUCE2 cells specifying the same rendezvous point, so we can
25646       avoid launching multiple simultaneous attempts to connect to it.
25648   o Minor bugfixes (on Tor 0.2.2.x and earlier):
25649     - Resolve an integer overflow bug in smartlist_ensure_capacity().
25650       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
25651       Mansour Moufid.
25652     - Fix a minor formatting issue in one of tor-gencert's error messages.
25653       Fixes bug 4574.
25654     - Prevent a false positive from the check-spaces script, by disabling
25655       the "whitespace between function name and (" check for functions
25656       named 'op()'.
25657     - Fix a log message suggesting that people contact a non-existent
25658       email address. Fixes bug 3448.
25659     - Fix null-pointer access that could occur if TLS allocation failed.
25660       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
25661     - Report a real bootstrap problem to the controller on router
25662       identity mismatch. Previously we just said "foo", which probably
25663       made a lot of sense at the time. Fixes bug 4169; bugfix on
25664       0.2.1.1-alpha.
25665     - If we had ever tried to call tor_addr_to_str() on an address of
25666       unknown type, we would have done a strdup() on an uninitialized
25667       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
25668       Reported by "troll_un".
25669     - Correctly detect and handle transient lookup failures from
25670       tor_addr_lookup(). Fixes bug 4530; bugfix on 0.2.1.5-alpha.
25671       Reported by "troll_un".
25672     - Use tor_socket_t type for listener argument to accept(). Fixes bug
25673       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
25674     - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes
25675       bug 4532; found by "troll_un".
25677   o Minor bugfixes (on Tor 0.2.3.x):
25678     - Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
25679       fixes bug 4554.
25680     - Don't send two ESTABLISH_RENDEZVOUS cells when opening a new
25681       circuit for use as a hidden service client's rendezvous point.
25682       Fixes bugs 4641 and 4171; bugfix on 0.2.3.3-alpha. Diagnosed
25683       with help from wanoskarnet.
25684     - Restore behavior of overriding SocksPort, ORPort, and similar
25685       options from the command line. Bugfix on 0.2.3.3-alpha.
25687   o Build fixes:
25688     - Properly handle the case where the build-tree is not the same
25689       as the source tree when generating src/common/common_sha1.i,
25690       src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953;
25691       bugfix on 0.2.0.1-alpha.
25693   o Code simplifications, cleanups, and refactorings:
25694     - Remove the pure attribute from all functions that used it
25695       previously. In many cases we assigned it incorrectly, because the
25696       functions might assert or call impure functions, and we don't have
25697       evidence that keeping the pure attribute is worthwhile. Implements
25698       changes suggested in ticket 4421.
25699     - Remove some dead code spotted by coverity. Fixes cid 432.
25700       Bugfix on 0.2.3.1-alpha, closes bug 4637.
25703 Changes in version 0.2.3.8-alpha - 2011-11-22
25704   Tor 0.2.3.8-alpha fixes some crash and assert bugs, including a
25705   socketpair-related bug that has been bothering Windows users. It adds
25706   support to serve microdescriptors to controllers, so Vidalia's network
25707   map can resume listing relays (once Vidalia implements its side),
25708   and adds better support for hardware AES acceleration. Finally, it
25709   starts the process of adjusting the bandwidth cutoff for getting the
25710   "Fast" flag from 20KB to (currently) 32KB -- preliminary results show
25711   that tiny relays harm performance more than they help network capacity.
25713   o Major bugfixes:
25714     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
25715       that it doesn't attempt to allocate a socketpair. This could cause
25716       some problems on Windows systems with overzealous firewalls. Fix for
25717       bug 4457; workaround for Libevent versions 2.0.1-alpha through
25718       2.0.15-stable.
25719     - Correctly sanity-check that we don't underflow on a memory
25720       allocation (and then assert) for hidden service introduction
25721       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
25722       bugfix on 0.2.1.5-alpha.
25723     - Remove the artificially low cutoff of 20KB to guarantee the Fast
25724       flag. In the past few years the average relay speed has picked
25725       up, and while the "top 7/8 of the network get the Fast flag" and
25726       "all relays with 20KB or more of capacity get the Fast flag" rules
25727       used to have the same result, now the top 7/8 of the network has
25728       a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489.
25729     - Fix a rare assertion failure when checking whether a v0 hidden
25730       service descriptor has any usable introduction points left, and
25731       we don't have enough information to build a circuit to the first
25732       intro point named in the descriptor. The HS client code in
25733       0.2.3.x no longer uses v0 HS descriptors, but this assertion can
25734       trigger on (and crash) v0 HS authorities. Fixes bug 4411.
25735       Bugfix on 0.2.3.1-alpha; diagnosed by frosty_un.
25736     - Make bridge authorities not crash when they are asked for their own
25737       descriptor. Bugfix on 0.2.3.7-alpha, reported by Lucky Green.
25738     - When running as a client, do not print a misleading (and plain
25739       wrong) log message that we're collecting "directory request"
25740       statistics: clients don't collect statistics. Also don't create a
25741       useless (because empty) stats file in the stats/ directory. Fixes
25742       bug 4353; bugfix on 0.2.2.34 and 0.2.3.7-alpha.
25744   o Major features:
25745     - Allow Tor controllers like Vidalia to obtain the microdescriptor
25746       for a relay by identity digest or nickname. Previously,
25747       microdescriptors were only available by their own digests, so a
25748       controller would have to ask for and parse the whole microdescriptor
25749       consensus in order to look up a single relay's microdesc. Fixes
25750       bug 3832; bugfix on 0.2.3.1-alpha.
25751     - Use OpenSSL's EVP interface for AES encryption, so that all AES
25752       operations can use hardware acceleration (if present). Resolves
25753       ticket 4442.
25755   o Minor bugfixes (on 0.2.2.x and earlier):
25756     - Detect failure to initialize Libevent. This fix provides better
25757       detection for future instances of bug 4457.
25758     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
25759       function. This was eating up hideously large amounts of time on some
25760       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
25761     - Don't warn about unused log_mutex in log.c when building with
25762       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
25763       0.1.0.6-rc which introduced --disable-threads.
25764     - Allow manual 'authenticate' commands to the controller interface
25765       from netcat (nc) as well as telnet. We were rejecting them because
25766       they didn't come with the expected whitespace at the end of the
25767       command. Bugfix on 0.1.1.1-alpha; fixes bug 2893.
25768     - Fix some (not actually triggerable) buffer size checks in usage of
25769       tor_inet_ntop. Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch
25770       by Anders Sundman.
25771     - Fix parsing of some corner-cases with tor_inet_pton(). Fixes
25772       bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman.
25773     - When configuring, starting, or stopping an NT service, stop
25774       immediately after the service configuration attempt has succeeded
25775       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
25776     - When sending a NETINFO cell, include the original address
25777       received for the other side, not its canonical address. Found
25778       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
25779     - Rename the bench_{aes,dmap} functions to test_*, so that tinytest
25780       can pick them up when the tests aren't disabled. Bugfix on
25781       0.2.2.4-alpha which introduced tinytest.
25782     - Fix a memory leak when we check whether a hidden service
25783       descriptor has any usable introduction points left. Fixes bug
25784       4424. Bugfix on 0.2.2.25-alpha.
25785     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
25786       occurred when a client tried to fetch a descriptor for a bridge
25787       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
25789   o Minor bugfixes (on 0.2.3.x):
25790     - Make util unit tests build correctly with MSVC. Bugfix on
25791       0.2.3.3-alpha. Patch by Gisle Vanem.
25792     - Successfully detect AUTH_CHALLENGE cells with no recognized
25793       authentication type listed. Fixes bug 4367; bugfix on 0.2.3.6-alpha.
25794       Found by frosty_un.
25795     - If a relay receives an AUTH_CHALLENGE cell it can't answer,
25796       it should still send a NETINFO cell to allow the connection to
25797       become open. Fixes bug 4368; fix on 0.2.3.6-alpha; bug found by
25798       "frosty".
25799     - Log less loudly when we get an invalid authentication certificate
25800       from a source other than a directory authority: it's not unusual
25801       to see invalid certs because of clock skew. Fixes bug 4370; bugfix
25802       on 0.2.3.6-alpha.
25803     - Tolerate servers with more clock skew in their authentication
25804       certificates than previously. Fixes bug 4371; bugfix on
25805       0.2.3.6-alpha.
25806     - Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
25807       on 0.2.3.4-alpha and 0.2.3.6-alpha.
25809   o Minor features:
25810     - Add two new config options for directory authorities:
25811       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
25812       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
25813       that is always sufficient to satisfy the bandwidth requirement for
25814       the Guard flag. Now it will be easier for researchers to simulate
25815       Tor networks with different values. Resolves ticket 4484.
25816     - When Tor ignores a hidden service specified in its configuration,
25817       include the hidden service's directory in the warning message.
25818       Previously, we would only tell the user that some hidden service
25819       was ignored. Bugfix on 0.0.6; fixes bug 4426.
25820     - When we fail to initialize Libevent, retry with IOCP disabled so we
25821       don't need to turn on multi-threading support in Libevent, which in
25822       turn requires a working socketpair(). This is a workaround for bug
25823       4457, which affects Libevent versions from 2.0.1-alpha through
25824       2.0.15-stable.
25825     - Detect when we try to build on a platform that doesn't define
25826       AF_UNSPEC to 0. We don't work there, so refuse to compile.
25827     - Update to the November 1 2011 Maxmind GeoLite Country database.
25829   o Packaging changes:
25830     - Make it easier to automate expert package builds on Windows,
25831       by removing an absolute path from makensis.exe command.
25833   o Code simplifications and refactoring:
25834     - Remove some redundant #include directives throughout the code.
25835       Patch from Andrea Gelmini.
25836     - Unconditionally use OpenSSL's AES implementation instead of our
25837       old built-in one. OpenSSL's AES has been better for a while, and
25838       relatively few servers should still be on any version of OpenSSL
25839       that doesn't have good optimized assembly AES.
25840     - Use the name "CERTS" consistently to refer to the new cell type;
25841       we were calling it CERT in some places and CERTS in others.
25843   o Testing:
25844     - Numerous new unit tests for functions in util.c and address.c by
25845       Anders Sundman.
25846     - The long-disabled benchmark tests are now split into their own
25847       ./src/test/bench binary.
25848     - The benchmark tests can now use more accurate timers than
25849       gettimeofday() when such timers are available.
25852 Changes in version 0.2.3.7-alpha - 2011-10-30
25853   Tor 0.2.3.7-alpha fixes a crash bug in 0.2.3.6-alpha introduced by
25854   the new v3 handshake. It also resolves yet another bridge address
25855   enumeration issue.
25857   o Major bugfixes:
25858     - If we mark an OR connection for close based on a cell we process,
25859       don't process any further cells on it. We already avoid further
25860       reads on marked-for-close connections, but now we also discard the
25861       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
25862       which was the first version where we might mark a connection for
25863       close based on processing a cell on it.
25864     - Fix a double-free bug that would occur when we received an invalid
25865       certificate in a CERT cell in the new v3 handshake. Fixes bug 4343;
25866       bugfix on 0.2.3.6-alpha.
25867     - Bridges no longer include their address in NETINFO cells on outgoing
25868       OR connections, to allow them to blend in better with clients.
25869       Removes another avenue for enumerating bridges. Reported by
25870       "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO
25871       cells were introduced.
25873   o Trivial fixes:
25874     - Fixed a typo in a hibernation-related log message. Fixes bug 4331;
25875       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
25878 Changes in version 0.2.3.6-alpha - 2011-10-26
25879   Tor 0.2.3.6-alpha includes the fix from 0.2.2.34 for a critical
25880   anonymity vulnerability where an attacker can deanonymize Tor
25881   users. Everybody should upgrade.
25883   This release also features support for a new v3 connection handshake
25884   protocol, and fixes to make hidden service connections more robust.
25886   o Major features:
25887     - Implement a new handshake protocol (v3) for authenticating Tors to
25888       each other over TLS. It should be more resistant to fingerprinting
25889       than previous protocols, and should require less TLS hacking for
25890       future Tor implementations. Implements proposal 176.
25891     - Allow variable-length padding cells to disguise the length of
25892       Tor's TLS records. Implements part of proposal 184.
25894   o Privacy/anonymity fixes (clients):
25895     - Clients and bridges no longer send TLS certificate chains on
25896       outgoing OR connections. Previously, each client or bridge would
25897       use the same cert chain for all outgoing OR connections until
25898       its IP address changes, which allowed any relay that the client
25899       or bridge contacted to determine which entry guards it is using.
25900       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
25901     - If a relay receives a CREATE_FAST cell on a TLS connection, it
25902       no longer considers that connection as suitable for satisfying a
25903       circuit EXTEND request. Now relays can protect clients from the
25904       CVE-2011-2768 issue even if the clients haven't upgraded yet.
25905     - Directory authorities no longer assign the Guard flag to relays
25906       that haven't upgraded to the above "refuse EXTEND requests
25907       to client connections" fix. Now directory authorities can
25908       protect clients from the CVE-2011-2768 issue even if neither
25909       the clients nor the relays have upgraded yet. There's a new
25910       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
25911       to let us transition smoothly, else tomorrow there would be no
25912       guard relays.
25914   o Major bugfixes (hidden services):
25915     - Improve hidden service robustness: when an attempt to connect to
25916       a hidden service ends, be willing to refetch its hidden service
25917       descriptors from each of the HSDir relays responsible for them
25918       immediately. Previously, we would not consider refetching the
25919       service's descriptors from each HSDir for 15 minutes after the last
25920       fetch, which was inconvenient if the hidden service was not running
25921       during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335.
25922     - When one of a hidden service's introduction points appears to be
25923       unreachable, stop trying it. Previously, we would keep trying
25924       to build circuits to the introduction point until we lost the
25925       descriptor, usually because the user gave up and restarted Tor.
25926       Partly fixes bug 3825.
25927     - Don't launch a useless circuit after failing to use one of a
25928       hidden service's introduction points. Previously, we would
25929       launch a new introduction circuit, but not set the hidden service
25930       which that circuit was intended to connect to, so it would never
25931       actually be used. A different piece of code would then create a
25932       new introduction circuit correctly. Bug reported by katmagic and
25933       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
25935   o Major bugfixes (other):
25936     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
25937       that they initiated. Relays could distinguish incoming bridge
25938       connections from client connections, creating another avenue for
25939       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
25940       Found by "frosty_un".
25941     - Don't update the AccountingSoftLimitHitAt state file entry whenever
25942       tor gets started. This prevents a wrong average bandwidth
25943       estimate, which would cause relays to always start a new accounting
25944       interval at the earliest possible moment. Fixes bug 2003; bugfix
25945       on 0.2.2.7-alpha. Reported by BryonEldridge, who also helped
25946       immensely in tracking this bug down.
25947     - Fix a crash bug when changing node restrictions while a DNS lookup
25948       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
25949       by "Tey'".
25951   o Minor bugfixes (on 0.2.2.x and earlier):
25952     - When a hidden service turns an extra service-side introduction
25953       circuit into a general-purpose circuit, free the rend_data and
25954       intro_key fields first, so we won't leak memory if the circuit
25955       is cannibalized for use as another service-side introduction
25956       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
25957     - Rephrase the log message emitted if the TestSocks check is
25958       successful. Patch from Fabian Keil; fixes bug 4094.
25959     - Bridges now skip DNS self-tests, to act a little more stealthily.
25960       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
25961       bridges. Patch by "warms0x".
25962     - Remove a confusing dollar sign from the example fingerprint in the
25963       man page, and also make the example fingerprint a valid one. Fixes
25964       bug 4309; bugfix on 0.2.1.3-alpha.
25965     - Fix internal bug-checking logic that was supposed to catch
25966       failures in digest generation so that it will fail more robustly
25967       if we ask for a nonexistent algorithm. Found by Coverity Scan.
25968       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
25969     - Report any failure in init_keys() calls launched because our
25970       IP address has changed. Spotted by Coverity Scan. Bugfix on
25971       0.1.1.4-alpha; fixes CID 484.
25973   o Minor bugfixes (on 0.2.3.x):
25974     - Fix a bug in configure.in that kept it from building a configure
25975       script with autoconf versions earlier than 2.61. Fixes bug 2430;
25976       bugfix on 0.2.3.1-alpha.
25977     - Don't warn users that they are exposing a client port to the
25978       Internet if they have specified an RFC1918 address. Previously,
25979       we would warn if the user had specified any non-loopback
25980       address. Bugfix on 0.2.3.3-alpha. Fixes bug 4018; reported by Tas.
25981     - Fix memory leaks in the failing cases of the new SocksPort and
25982       ControlPort code. Found by Coverity Scan. Bugfix on 0.2.3.3-alpha;
25983       fixes coverity CIDs 485, 486, and 487.
25985   o Minor features:
25986     - When a hidden service's introduction point times out, consider
25987       trying it again during the next attempt to connect to the
25988       HS. Previously, we would not try it again unless a newly fetched
25989       descriptor contained it. Required by fixes for bugs 1297 and 3825.
25990     - The next version of Windows will be called Windows 8, and it has
25991       a major version of 6, minor version of 2. Correctly identify that
25992       version instead of calling it "Very recent version". Resolves
25993       ticket 4153; reported by funkstar.
25994     - The Bridge Authority now writes statistics on how many bridge
25995       descriptors it gave out in total, and how many unique descriptors
25996       it gave out. It also lists how often the most and least commonly
25997       fetched descriptors were given out, as well as the median and
25998       25th/75th percentile. Implements tickets 4200 and 4294.
25999     - Update to the October 4 2011 Maxmind GeoLite Country database.
26001   o Code simplifications and refactoring:
26002     - Remove some old code to remember statistics about which descriptors
26003       we've served as a directory mirror. The feature wasn't used and
26004       is outdated now that microdescriptors are around.
26005     - Rename Tor functions that turn strings into addresses, so that
26006       "parse" indicates that no hostname resolution occurs, and
26007       "lookup" indicates that hostname resolution may occur. This
26008       should help prevent mistakes in the future. Fixes bug 3512.
26011 Changes in version 0.2.2.34 - 2011-10-26
26012   Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker
26013   can deanonymize Tor users. Everybody should upgrade.
26015   The attack relies on four components: 1) Clients reuse their TLS cert
26016   when talking to different relays, so relays can recognize a user by
26017   the identity key in her cert. 2) An attacker who knows the client's
26018   identity key can probe each guard relay to see if that identity key
26019   is connected to that guard relay right now. 3) A variety of active
26020   attacks in the literature (starting from "Low-Cost Traffic Analysis
26021   of Tor" by Murdoch and Danezis in 2005) allow a malicious website to
26022   discover the guard relays that a Tor user visiting the website is using.
26023   4) Clients typically pick three guards at random, so the set of guards
26024   for a given user could well be a unique fingerprint for her. This
26025   release fixes components #1 and #2, which is enough to block the attack;
26026   the other two remain as open research problems. Special thanks to
26027   "frosty_un" for reporting the issue to us!
26029   Clients should upgrade so they are no longer recognizable by the TLS
26030   certs they present. Relays should upgrade so they no longer allow a
26031   remote attacker to probe them to test whether unpatched clients are
26032   currently connected to them.
26034   This release also fixes several vulnerabilities that allow an attacker
26035   to enumerate bridge relays. Some bridge enumeration attacks still
26036   remain; see for example proposal 188.
26038   o Privacy/anonymity fixes (clients):
26039     - Clients and bridges no longer send TLS certificate chains on
26040       outgoing OR connections. Previously, each client or bridge would
26041       use the same cert chain for all outgoing OR connections until
26042       its IP address changes, which allowed any relay that the client
26043       or bridge contacted to determine which entry guards it is using.
26044       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
26045     - If a relay receives a CREATE_FAST cell on a TLS connection, it
26046       no longer considers that connection as suitable for satisfying a
26047       circuit EXTEND request. Now relays can protect clients from the
26048       CVE-2011-2768 issue even if the clients haven't upgraded yet.
26049     - Directory authorities no longer assign the Guard flag to relays
26050       that haven't upgraded to the above "refuse EXTEND requests
26051       to client connections" fix. Now directory authorities can
26052       protect clients from the CVE-2011-2768 issue even if neither
26053       the clients nor the relays have upgraded yet. There's a new
26054       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
26055       to let us transition smoothly, else tomorrow there would be no
26056       guard relays.
26058   o Privacy/anonymity fixes (bridge enumeration):
26059     - Bridge relays now do their directory fetches inside Tor TLS
26060       connections, like all the other clients do, rather than connecting
26061       directly to the DirPort like public relays do. Removes another
26062       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
26063     - Bridges relays now build circuits for themselves in a more similar
26064       way to how clients build them. Removes another avenue for
26065       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
26066       when bridges were introduced.
26067     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
26068       that they initiated. Relays could distinguish incoming bridge
26069       connections from client connections, creating another avenue for
26070       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
26071       Found by "frosty_un".
26073   o Major bugfixes:
26074     - Fix a crash bug when changing node restrictions while a DNS lookup
26075       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
26076       by "Tey'".
26077     - Don't launch a useless circuit after failing to use one of a
26078       hidden service's introduction points. Previously, we would
26079       launch a new introduction circuit, but not set the hidden service
26080       which that circuit was intended to connect to, so it would never
26081       actually be used. A different piece of code would then create a
26082       new introduction circuit correctly. Bug reported by katmagic and
26083       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
26085   o Minor bugfixes:
26086     - Change an integer overflow check in the OpenBSD_Malloc code so
26087       that GCC is less likely to eliminate it as impossible. Patch
26088       from Mansour Moufid. Fixes bug 4059.
26089     - When a hidden service turns an extra service-side introduction
26090       circuit into a general-purpose circuit, free the rend_data and
26091       intro_key fields first, so we won't leak memory if the circuit
26092       is cannibalized for use as another service-side introduction
26093       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
26094     - Bridges now skip DNS self-tests, to act a little more stealthily.
26095       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
26096       bridges. Patch by "warms0x".
26097     - Fix internal bug-checking logic that was supposed to catch
26098       failures in digest generation so that it will fail more robustly
26099       if we ask for a nonexistent algorithm. Found by Coverity Scan.
26100       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
26101     - Report any failure in init_keys() calls launched because our
26102       IP address has changed. Spotted by Coverity Scan. Bugfix on
26103       0.1.1.4-alpha; fixes CID 484.
26105   o Minor bugfixes (log messages and documentation):
26106     - Remove a confusing dollar sign from the example fingerprint in the
26107       man page, and also make the example fingerprint a valid one. Fixes
26108       bug 4309; bugfix on 0.2.1.3-alpha.
26109     - The next version of Windows will be called Windows 8, and it has
26110       a major version of 6, minor version of 2. Correctly identify that
26111       version instead of calling it "Very recent version". Resolves
26112       ticket 4153; reported by funkstar.
26113     - Downgrade log messages about circuit timeout calibration from
26114       "notice" to "info": they don't require or suggest any human
26115       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
26116       bugfix on 0.2.2.14-alpha.
26118   o Minor features:
26119     - Turn on directory request statistics by default and include them in
26120       extra-info descriptors. Don't break if we have no GeoIP database.
26121       Backported from 0.2.3.1-alpha; implements ticket 3951.
26122     - Update to the October 4 2011 Maxmind GeoLite Country database.
26125 Changes in version 0.2.1.31 - 2011-10-26
26126   Tor 0.2.1.31 backports important security and privacy fixes for
26127   oldstable. This release is intended only for package maintainers and
26128   others who cannot use the 0.2.2 stable series. All others should be
26129   using Tor 0.2.2.x or newer.
26131   o Security fixes (also included in 0.2.2.x):
26132     - Replace all potentially sensitive memory comparison operations
26133       with versions whose runtime does not depend on the data being
26134       compared. This will help resist a class of attacks where an
26135       adversary can use variations in timing information to learn
26136       sensitive data. Fix for one case of bug 3122. (Safe memcmp
26137       implementation by Robert Ransom based partially on code by DJB.)
26138     - Fix an assert in parsing router descriptors containing IPv6
26139       addresses. This one took down the directory authorities when
26140       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
26142   o Privacy/anonymity fixes (also included in 0.2.2.x):
26143     - Clients and bridges no longer send TLS certificate chains on
26144       outgoing OR connections. Previously, each client or bridge would
26145       use the same cert chain for all outgoing OR connections until
26146       its IP address changes, which allowed any relay that the client
26147       or bridge contacted to determine which entry guards it is using.
26148       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
26149     - If a relay receives a CREATE_FAST cell on a TLS connection, it
26150       no longer considers that connection as suitable for satisfying a
26151       circuit EXTEND request. Now relays can protect clients from the
26152       CVE-2011-2768 issue even if the clients haven't upgraded yet.
26153     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
26154       that they initiated. Relays could distinguish incoming bridge
26155       connections from client connections, creating another avenue for
26156       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
26157       Found by "frosty_un".
26158     - When receiving a hidden service descriptor, check that it is for
26159       the hidden service we wanted. Previously, Tor would store any
26160       hidden service descriptors that a directory gave it, whether it
26161       wanted them or not. This wouldn't have let an attacker impersonate
26162       a hidden service, but it did let directories pre-seed a client
26163       with descriptors that it didn't want. Bugfix on 0.0.6.
26164     - Avoid linkability based on cached hidden service descriptors: forget
26165       all hidden service descriptors cached as a client when processing a
26166       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
26167     - Make the bridge directory authority refuse to answer directory
26168       requests for "all" descriptors. It used to include bridge
26169       descriptors in its answer, which was a major information leak.
26170       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
26171     - Don't attach new streams to old rendezvous circuits after SIGNAL
26172       NEWNYM. Previously, we would keep using an existing rendezvous
26173       circuit if it remained open (i.e. if it were kept open by a
26174       long-lived stream, or if a new stream were attached to it before
26175       Tor could notice that it was old and no longer in use). Bugfix on
26176       0.1.1.15-rc; fixes bug 3375.
26178   o Minor bugfixes (also included in 0.2.2.x):
26179     - When we restart our relay, we might get a successful connection
26180       from the outside before we've started our reachability tests,
26181       triggering a warning: "ORPort found reachable, but I have no
26182       routerinfo yet. Failing to inform controller of success." This
26183       bug was harmless unless Tor is running under a controller
26184       like Vidalia, in which case the controller would never get a
26185       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
26186       fixes bug 1172.
26187     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
26188       enabled. Fixes bug 1526.
26189     - Remove undocumented option "-F" from tor-resolve: it hasn't done
26190       anything since 0.2.1.16-rc.
26191     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
26192       None of the cases where we did this before were wrong, but by making
26193       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
26194     - Fix a rare crash bug that could occur when a client was configured
26195       with a large number of bridges. Fixes bug 2629; bugfix on
26196       0.2.1.2-alpha. Bugfix by trac user "shitlei".
26197     - Correct the warning displayed when a rendezvous descriptor exceeds
26198       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
26199       John Brooks.
26200     - Fix an uncommon assertion failure when running with DNSPort under
26201       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
26202     - When warning about missing zlib development packages during compile,
26203       give the correct package names. Bugfix on 0.2.0.1-alpha.
26204     - Require that introduction point keys and onion keys have public
26205       exponent 65537. Bugfix on 0.2.0.10-alpha.
26206     - Do not crash when our configuration file becomes unreadable, for
26207       example due to a permissions change, between when we start up
26208       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
26209       on 0.0.9pre6.
26210     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
26211       Fixes bug 3208.
26212     - Always NUL-terminate the sun_path field of a sockaddr_un before
26213       passing it to the kernel. (Not a security issue: kernels are
26214       smart enough to reject bad sockaddr_uns.) Found by Coverity;
26215       CID #428. Bugfix on Tor 0.2.0.3-alpha.
26216     - Don't stack-allocate the list of supplementary GIDs when we're
26217       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
26218       could take up to 256K, which is way too much stack. Found by
26219       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
26221   o Minor bugfixes (only in 0.2.1.x):
26222     - Resume using micro-version numbers in 0.2.1.x: our Debian packages
26223       rely on them. Bugfix on 0.2.1.30.
26224     - Use git revisions instead of svn revisions when generating our
26225       micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402.
26227   o Minor features (also included in 0.2.2.x):
26228     - Adjust the expiration time on our SSL session certificates to
26229       better match SSL certs seen in the wild. Resolves ticket 4014.
26230     - Allow nameservers with IPv6 address. Resolves bug 2574.
26231     - Update to the October 4 2011 Maxmind GeoLite Country database.
26234 Changes in version 0.2.3.5-alpha - 2011-09-28
26235   Tor 0.2.3.5-alpha fixes two bugs that make it possible to enumerate
26236   bridge relays; fixes an assertion error that many users started hitting
26237   today; and adds the ability to refill token buckets more often than
26238   once per second, allowing significant performance improvements.
26240   o Security fixes:
26241     - Bridge relays now do their directory fetches inside Tor TLS
26242       connections, like all the other clients do, rather than connecting
26243       directly to the DirPort like public relays do. Removes another
26244       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
26245     - Bridges relays now build circuits for themselves in a more similar
26246       way to how clients build them. Removes another avenue for
26247       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
26248       when bridges were introduced.
26250   o Major bugfixes:
26251     - Fix an "Assertion md->held_by_node == 1 failed" error that could
26252       occur when the same microdescriptor was referenced by two node_t
26253       objects at once. Fix for bug 4118; bugfix on Tor 0.2.3.1-alpha.
26255   o Major features (networking):
26256     - Add a new TokenBucketRefillInterval option to refill token buckets
26257       more frequently than once per second. This should improve network
26258       performance, alleviate queueing problems, and make traffic less
26259       bursty. Implements proposal 183; closes ticket 3630. Design by
26260       Florian Tschorsch and Björn Scheuermann; implementation by
26261       Florian Tschorsch.
26263   o Minor bugfixes:
26264     - Change an integer overflow check in the OpenBSD_Malloc code so
26265       that GCC is less likely to eliminate it as impossible. Patch
26266       from Mansour Moufid. Fixes bug 4059.
26268   o Minor bugfixes (usability):
26269     - Downgrade log messages about circuit timeout calibration from
26270       "notice" to "info": they don't require or suggest any human
26271       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
26272       bugfix on 0.2.2.14-alpha.
26274   o Minor features (diagnostics):
26275     - When the system call to create a listener socket fails, log the
26276       error message explaining why. This may help diagnose bug 4027.
26279 Changes in version 0.2.3.4-alpha - 2011-09-13
26280   Tor 0.2.3.4-alpha includes the fixes from 0.2.2.33, including a slight
26281   tweak to Tor's TLS handshake that makes relays and bridges that run
26282   this new version reachable from Iran again. It also fixes a few new
26283   bugs in 0.2.3.x, and teaches relays to recognize when they're not
26284   listed in the network consensus and republish.
26286   o Major bugfixes (also part of 0.2.2.33):
26287     - Avoid an assertion failure when reloading a configuration with
26288       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
26289       3923; bugfix on 0.2.2.25-alpha.
26291   o Minor features (security, also part of 0.2.2.33):
26292     - Check for replays of the public-key encrypted portion of an
26293       INTRODUCE1 cell, in addition to the current check for replays of
26294       the g^x value. This prevents a possible class of active attacks
26295       by an attacker who controls both an introduction point and a
26296       rendezvous point, and who uses the malleability of AES-CTR to
26297       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
26298       that these attacks are infeasible (requiring the attacker to send
26299       on the order of zettabytes of altered cells in a short interval),
26300       but we'd rather block them off in case there are any classes of
26301       this attack that we missed. Reported by Willem Pinckaers.
26303   o Minor features (also part of 0.2.2.33):
26304     - Adjust the expiration time on our SSL session certificates to
26305       better match SSL certs seen in the wild. Resolves ticket 4014.
26306     - Change the default required uptime for a relay to be accepted as
26307       a HSDir (hidden service directory) from 24 hours to 25 hours.
26308       Improves on 0.2.0.10-alpha; resolves ticket 2649.
26309     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
26310       authorities to abstain from voting on assignment of the HSDir
26311       consensus flag. Related to bug 2649.
26312     - Update to the September 6 2011 Maxmind GeoLite Country database.
26314   o Minor bugfixes (also part of 0.2.2.33):
26315     - Demote the 'replay detected' log message emitted when a hidden
26316       service receives the same Diffie-Hellman public key in two different
26317       INTRODUCE2 cells to info level. A normal Tor client can cause that
26318       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
26319       fixes part of bug 2442.
26320     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
26321       level. There is nothing that a hidden service's operator can do
26322       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
26323       of bug 2442.
26324     - Clarify a log message specifying the characters permitted in
26325       HiddenServiceAuthorizeClient client names. Previously, the log
26326       message said that "[A-Za-z0-9+-_]" were permitted; that could have
26327       given the impression that every ASCII character between "+" and "_"
26328       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
26330   o Build fixes (also part of 0.2.2.33):
26331     - Clean up some code issues that prevented Tor from building on older
26332       BSDs. Fixes bug 3894; reported by "grarpamp".
26333     - Search for a platform-specific version of "ar" when cross-compiling.
26334       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
26336   o Major bugfixes:
26337     - Fix a bug where the SocksPort option (for example) would get
26338       ignored and replaced by the default if a SocksListenAddress
26339       option was set. Bugfix on 0.2.3.3-alpha; fixes bug 3936. Fix by
26340       Fabian Keil.
26342   o Major features:
26343     - Relays now try regenerating and uploading their descriptor more
26344       frequently if they are not listed in the consensus, or if the
26345       version of their descriptor listed in the consensus is too
26346       old. This fix should prevent situations where a server declines
26347       to re-publish itself because it has done so too recently, even
26348       though the authorities decided not to list its recent-enough
26349       descriptor. Fix for bug 3327.
26351   o Minor features:
26352     - Relays now include a reason for regenerating their descriptors
26353       in an HTTP header when uploading to the authorities. This will
26354       make it easier to debug descriptor-upload issues in the future.
26355     - When starting as root and then changing our UID via the User
26356       control option, and we have a ControlSocket configured, make sure
26357       that the ControlSocket is owned by the same account that Tor will
26358       run under. Implements ticket 3421; fix by Jérémy Bobbio.
26360   o Minor bugfixes:
26361     - Abort if tor_vasprintf fails in connection_printf_to_buf (a
26362       utility function used in the control-port code). This shouldn't
26363       ever happen unless Tor is completely out of memory, but if it did
26364       happen and Tor somehow recovered from it, Tor could have sent a log
26365       message to a control port in the middle of a reply to a controller
26366       command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha.
26367     - Make 'FetchUselessDescriptors' cause all descriptor types and
26368       all consensus types (including microdescriptors) to get fetched.
26369       Fixes bug 3851; bugfix on 0.2.3.1-alpha.
26371   o Code refactoring:
26372     - Make a new "entry connection" struct as an internal subtype of "edge
26373       connection", to simplify the code and make exit connections smaller.
26376 Changes in version 0.2.2.33 - 2011-09-13
26377   Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's
26378   TLS handshake that makes relays and bridges that run this new version
26379   reachable from Iran again.
26381   o Major bugfixes:
26382     - Avoid an assertion failure when reloading a configuration with
26383       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
26384       3923; bugfix on 0.2.2.25-alpha.
26386   o Minor features (security):
26387     - Check for replays of the public-key encrypted portion of an
26388       INTRODUCE1 cell, in addition to the current check for replays of
26389       the g^x value. This prevents a possible class of active attacks
26390       by an attacker who controls both an introduction point and a
26391       rendezvous point, and who uses the malleability of AES-CTR to
26392       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
26393       that these attacks are infeasible (requiring the attacker to send
26394       on the order of zettabytes of altered cells in a short interval),
26395       but we'd rather block them off in case there are any classes of
26396       this attack that we missed. Reported by Willem Pinckaers.
26398   o Minor features:
26399     - Adjust the expiration time on our SSL session certificates to
26400       better match SSL certs seen in the wild. Resolves ticket 4014.
26401     - Change the default required uptime for a relay to be accepted as
26402       a HSDir (hidden service directory) from 24 hours to 25 hours.
26403       Improves on 0.2.0.10-alpha; resolves ticket 2649.
26404     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
26405       authorities to abstain from voting on assignment of the HSDir
26406       consensus flag. Related to bug 2649.
26407     - Update to the September 6 2011 Maxmind GeoLite Country database.
26409   o Minor bugfixes (documentation and log messages):
26410     - Correct the man page to explain that HashedControlPassword and
26411       CookieAuthentication can both be set, in which case either method
26412       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
26413       when we decided to allow these config options to both be set. Issue
26414       raised by bug 3898.
26415     - Demote the 'replay detected' log message emitted when a hidden
26416       service receives the same Diffie-Hellman public key in two different
26417       INTRODUCE2 cells to info level. A normal Tor client can cause that
26418       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
26419       fixes part of bug 2442.
26420     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
26421       level. There is nothing that a hidden service's operator can do
26422       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
26423       of bug 2442.
26424     - Clarify a log message specifying the characters permitted in
26425       HiddenServiceAuthorizeClient client names. Previously, the log
26426       message said that "[A-Za-z0-9+-_]" were permitted; that could have
26427       given the impression that every ASCII character between "+" and "_"
26428       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
26430   o Build fixes:
26431     - Provide a substitute implementation of lround() for MSVC, which
26432       apparently lacks it. Patch from Gisle Vanem.
26433     - Clean up some code issues that prevented Tor from building on older
26434       BSDs. Fixes bug 3894; reported by "grarpamp".
26435     - Search for a platform-specific version of "ar" when cross-compiling.
26436       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
26439 Changes in version 0.2.3.3-alpha - 2011-09-01
26440   Tor 0.2.3.3-alpha adds a new "stream isolation" feature to improve Tor's
26441   security, and provides client-side support for the microdescriptor
26442   and optimistic data features introduced earlier in the 0.2.3.x
26443   series. It also includes numerous critical bugfixes in the (optional)
26444   bufferevent-based networking backend.
26446   o Major features (stream isolation):
26447     - You can now configure Tor so that streams from different
26448       applications are isolated on different circuits, to prevent an
26449       attacker who sees your streams as they leave an exit node from
26450       linking your sessions to one another. To do this, choose some way
26451       to distinguish the applications: have them connect to different
26452       SocksPorts, or have one of them use SOCKS4 while the other uses
26453       SOCKS5, or have them pass different authentication strings to the
26454       SOCKS proxy. Then, use the new SocksPort syntax to configure the
26455       degree of isolation you need. This implements Proposal 171.
26456     - There's a new syntax for specifying multiple client ports (such as
26457       SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare
26458       multiple *Port entries with full addr:port syntax on each.
26459       The old *ListenAddress format is still supported, but you can't
26460       mix it with the new *Port syntax.
26462   o Major features (other):
26463     - Enable microdescriptor fetching by default for clients. This allows
26464       clients to download a much smaller amount of directory information.
26465       To disable it (and go back to the old-style consensus and
26466       descriptors), set "UseMicrodescriptors 0" in your torrc file.
26467     - Tor's firewall-helper feature, introduced in 0.2.3.1-alpha (see the
26468       "PortForwarding" config option), now supports Windows.
26469     - When using an exit relay running 0.2.3.x, clients can now
26470       "optimistically" send data before the exit relay reports that
26471       the stream has opened. This saves a round trip when starting
26472       connections where the client speaks first (such as web browsing).
26473       This behavior is controlled by a consensus parameter (currently
26474       disabled). To turn it on or off manually, use the "OptimisticData"
26475       torrc option. Implements proposal 181; code by Ian Goldberg.
26477   o Major bugfixes (bufferevents, fixes on 0.2.3.1-alpha):
26478     - When using IOCP on Windows, we need to enable Libevent windows
26479       threading support.
26480     - The IOCP backend now works even when the user has not specified
26481       the (internal, debugging-only) _UseFilteringSSLBufferevents option.
26482       Fixes part of bug 3752.
26483     - Correctly record the bytes we've read and written when using
26484       bufferevents, so that we can include them in our bandwidth history
26485       and advertised bandwidth. Fixes bug 3803.
26486     - Apply rate-limiting only at the bottom of a chain of filtering
26487       bufferevents. This prevents us from filling up internal read
26488       buffers and violating rate-limits when filtering bufferevents
26489       are enabled. Fixes part of bug 3804.
26490     - Add high-watermarks to the output buffers for filtered
26491       bufferevents. This prevents us from filling up internal write
26492       buffers and wasting CPU cycles when filtering bufferevents are
26493       enabled. Fixes part of bug 3804.
26494     - Correctly notice when data has been written from a bufferevent
26495       without flushing it completely. Fixes bug 3805.
26496     - Fix a bug where server-side tunneled bufferevent-based directory
26497       streams would get closed prematurely. Fixes bug 3814.
26498     - Fix a use-after-free error with per-connection rate-limiting
26499       buckets. Fixes bug 3888.
26501   o Major bugfixes (also part of 0.2.2.31-rc):
26502     - If we're configured to write our ControlPorts to disk, only write
26503       them after switching UID and creating the data directory. This way,
26504       we don't fail when starting up with a nonexistent DataDirectory
26505       and a ControlPortWriteToFile setting based on that directory. Fixes
26506       bug 3747; bugfix on Tor 0.2.2.26-beta.
26508   o Minor features:
26509     - Added a new CONF_CHANGED event so that controllers can be notified
26510       of any configuration changes made by other controllers, or by the
26511       user. Implements ticket 1692.
26512     - Use evbuffer_copyout() in inspect_evbuffer(). This fixes a memory
26513       leak when using bufferevents, and lets Libevent worry about how to
26514       best copy data out of a buffer.
26515     - Replace files in stats/ rather than appending to them. Now that we
26516       include statistics in extra-info descriptors, it makes no sense to
26517       keep old statistics forever. Implements ticket 2930.
26519   o Minor features (build compatibility):
26520     - Limited, experimental support for building with nmake and MSVC.
26521     - Provide a substitute implementation of lround() for MSVC, which
26522       apparently lacks it. Patch from Gisle Vanem.
26524   o Minor features (also part of 0.2.2.31-rc):
26525     - Update to the August 2 2011 Maxmind GeoLite Country database.
26527   o Minor bugfixes (on 0.2.3.x-alpha):
26528     - Fix a spurious warning when parsing SOCKS requests with
26529       bufferevents enabled. Fixes bug 3615; bugfix on 0.2.3.2-alpha.
26530     - Get rid of a harmless warning that could happen on relays running
26531       with bufferevents. The warning was caused by someone doing an http
26532       request to a relay's orport. Also don't warn for a few related
26533       non-errors. Fixes bug 3700; bugfix on 0.2.3.1-alpha.
26535   o Minor bugfixes (on 2.2.x and earlier):
26536     - Correct the man page to explain that HashedControlPassword and
26537       CookieAuthentication can both be set, in which case either method
26538       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
26539       when we decided to allow these config options to both be set. Issue
26540       raised by bug 3898.
26541     - The "--quiet" and "--hush" options now apply not only to Tor's
26542       behavior before logs are configured, but also to Tor's behavior in
26543       the absence of configured logs. Fixes bug 3550; bugfix on
26544       0.2.0.10-alpha.
26546   o Minor bugfixes (also part of 0.2.2.31-rc):
26547     - Write several files in text mode, on OSes that distinguish text
26548       mode from binary mode (namely, Windows). These files are:
26549       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
26550       that collect those statistics; 'client_keys' and 'hostname' for
26551       hidden services that use authentication; and (in the tor-gencert
26552       utility) newly generated identity and signing keys. Previously,
26553       we wouldn't specify text mode or binary mode, leading to an
26554       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
26555       the DirRecordUsageByCountry option which would have triggered
26556       the assertion failure was added), although this assertion failure
26557       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
26558     - Selectively disable deprecation warnings on OS X because Lion
26559       started deprecating the shipped copy of openssl. Fixes bug 3643.
26560     - Remove an extra pair of quotation marks around the error
26561       message in control-port STATUS_GENERAL BUG events. Bugfix on
26562       0.1.2.6-alpha; fixes bug 3732.
26563     - When unable to format an address as a string, report its value
26564       as "???" rather than reusing the last formatted address. Bugfix
26565       on 0.2.1.5-alpha.
26567   o Code simplifications and refactoring:
26568     - Rewrite the listener-selection logic so that parsing which ports
26569       we want to listen on is now separate from binding to the ports
26570       we want.
26572   o Build changes:
26573     - Building Tor with bufferevent support now requires Libevent
26574       2.0.13-stable or later. Previous versions of Libevent had bugs in
26575       SSL-related bufferevents and related issues that would make Tor
26576       work badly with bufferevents. Requiring 2.0.13-stable also allows
26577       Tor with bufferevents to take advantage of Libevent APIs
26578       introduced after 2.0.8-rc.
26581 Changes in version 0.2.2.32 - 2011-08-27
26582   The Tor 0.2.2 release series is dedicated to the memory of Andreas
26583   Pfitzmann (1958-2010), a pioneer in anonymity and privacy research,
26584   a founder of the PETS community, a leader in our field, a mentor,
26585   and a friend. He left us with these words: "I had the possibility
26586   to contribute to this world that is not as it should be. I hope I
26587   could help in some areas to make the world a better place, and that
26588   I could also encourage other people to be engaged in improving the
26589   world. Please, stay engaged. This world needs you, your love, your
26590   initiative -- now I cannot be part of that anymore."
26592   Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally
26593   ready. More than two years in the making, this release features improved
26594   client performance and hidden service reliability, better compatibility
26595   for Android, correct behavior for bridges that listen on more than
26596   one address, more extensible and flexible directory object handling,
26597   better reporting of network statistics, improved code security, and
26598   many many other features and bugfixes.
26601 Changes in version 0.2.2.31-rc - 2011-08-17
26602   Tor 0.2.2.31-rc is the second and hopefully final release candidate
26603   for the Tor 0.2.2.x series.
26605   o Major bugfixes:
26606     - Remove an extra pair of quotation marks around the error
26607       message in control-port STATUS_GENERAL BUG events. Bugfix on
26608       0.1.2.6-alpha; fixes bug 3732.
26609     - If we're configured to write our ControlPorts to disk, only write
26610       them after switching UID and creating the data directory. This way,
26611       we don't fail when starting up with a nonexistent DataDirectory
26612       and a ControlPortWriteToFile setting based on that directory. Fixes
26613       bug 3747; bugfix on Tor 0.2.2.26-beta.
26615   o Minor features:
26616     - Update to the August 2 2011 Maxmind GeoLite Country database.
26618   o Minor bugfixes:
26619     - Allow GETINFO fingerprint to return a fingerprint even when
26620       we have not yet built a router descriptor. Fixes bug 3577;
26621       bugfix on 0.2.0.1-alpha.
26622     - Write several files in text mode, on OSes that distinguish text
26623       mode from binary mode (namely, Windows). These files are:
26624       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
26625       that collect those statistics; 'client_keys' and 'hostname' for
26626       hidden services that use authentication; and (in the tor-gencert
26627       utility) newly generated identity and signing keys. Previously,
26628       we wouldn't specify text mode or binary mode, leading to an
26629       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
26630       the DirRecordUsageByCountry option which would have triggered
26631       the assertion failure was added), although this assertion failure
26632       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
26633     - Selectively disable deprecation warnings on OS X because Lion
26634       started deprecating the shipped copy of openssl. Fixes bug 3643.
26635     - When unable to format an address as a string, report its value
26636       as "???" rather than reusing the last formatted address. Bugfix
26637       on 0.2.1.5-alpha.
26640 Changes in version 0.2.3.2-alpha - 2011-07-18
26641   Tor 0.2.3.2-alpha introduces two new experimental features:
26642   microdescriptors and pluggable transports. It also continues cleaning
26643   up a variety of recently introduced features.
26645   o Major features:
26646     - Clients can now use microdescriptors instead of regular descriptors
26647       to build circuits. Microdescriptors are authority-generated
26648       summaries of regular descriptors' contents, designed to change
26649       very rarely (see proposal 158 for details). This feature is
26650       designed to save bandwidth, especially for clients on slow internet
26651       connections. It's off by default for now, since nearly no caches
26652       support it, but it will be on-by-default for clients in a future
26653       version. You can use the UseMicrodescriptors option to turn it on.
26654     - Tor clients using bridges can now be configured to use a separate
26655       'transport' proxy for each bridge. This approach helps to resist
26656       censorship by allowing bridges to use protocol obfuscation
26657       plugins. It implements part of proposal 180. Implements ticket 2841.
26658     - While we're trying to bootstrap, record how many TLS connections
26659       fail in each state, and report which states saw the most failures
26660       in response to any bootstrap failures. This feature may speed up
26661       diagnosis of censorship events. Implements ticket 3116.
26663   o Major bugfixes (on 0.2.3.1-alpha):
26664     - When configuring a large set of nodes in EntryNodes (as with
26665       'EntryNodes {cc}' or 'EntryNodes 1.1.1.1/16'), choose only a
26666       random subset to be guards, and choose them in random
26667       order. Fixes bug 2798.
26668     - Tor could crash when remembering a consensus in a non-used consensus
26669       flavor without having a current consensus set. Fixes bug 3361.
26670     - Comparing an unknown address to a microdescriptor's shortened exit
26671       policy would always give a "rejected" result. Fixes bug 3599.
26672     - Using microdescriptors as a client no longer prevents Tor from
26673       uploading and downloading hidden service descriptors. Fixes
26674       bug 3601.
26676   o Minor features:
26677     - Allow nameservers with IPv6 address. Resolves bug 2574.
26678     - Accept attempts to include a password authenticator in the
26679       handshake, as supported by SOCKS5. This handles SOCKS clients that
26680       don't know how to omit a password when authenticating. Resolves
26681       bug 1666.
26682     - When configuring a large set of nodes in EntryNodes, and there are
26683       enough of them listed as Guard so that we don't need to consider
26684       the non-guard entries, prefer the ones listed with the Guard flag.
26685     - Check for and recover from inconsistency in the microdescriptor
26686       cache. This will make it harder for us to accidentally free a
26687       microdescriptor without removing it from the appropriate data
26688       structures. Fixes issue 3135; issue noted by "wanoskarnet".
26689     - Log SSL state transitions at log level DEBUG, log domain
26690       HANDSHAKE. This can be useful for debugging censorship events.
26691       Implements ticket 3264.
26692     - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri;
26693       implements ticket 3439.
26695   o Minor bugfixes (on 0.2.3.1-alpha):
26696     - Do not free all general-purpose regular descriptors just
26697       because microdescriptor use is enabled. Fixes bug 3113.
26698     - Correctly link libevent_openssl when --enable-static-libevent
26699       is passed to configure. Fixes bug 3118.
26700     - Bridges should not complain during their heartbeat log messages that
26701       they are unlisted in the consensus: that's more or less the point
26702       of being a bridge. Fixes bug 3183.
26703     - Report a SIGNAL event to controllers when acting on a delayed
26704       SIGNAL NEWNYM command. Previously, we would report a SIGNAL
26705       event to the controller if we acted on a SIGNAL NEWNYM command
26706       immediately, and otherwise not report a SIGNAL event for the
26707       command at all. Fixes bug 3349.
26708     - Fix a crash when handling the SIGNAL controller command or
26709       reporting ERR-level status events with bufferevents enabled. Found
26710       by Robert Ransom. Fixes bug 3367.
26711     - Always ship the tor-fw-helper manpage in our release tarballs.
26712       Fixes bug 3389. Reported by Stephen Walker.
26713     - Fix a class of double-mark-for-close bugs when bufferevents
26714       are enabled. Fixes bug 3403.
26715     - Update tor-fw-helper to support libnatpmp-20110618. Fixes bug 3434.
26716     - Add SIGNAL to the list returned by the 'GETINFO events/names'
26717       control-port command. Fixes part of bug 3465.
26718     - Prevent using negative indices during unit test runs when read_all()
26719       fails. Spotted by coverity.
26720     - Fix a rare memory leak when checking the nodelist without it being
26721       present. Found by coverity.
26722     - Only try to download a microdescriptor-flavored consensus from
26723       a directory cache that provides them.
26725   o Minor bugfixes (on 0.2.2.x and earlier):
26726     - Assert that hidden-service-related operations are not performed
26727       using single-hop circuits. Previously, Tor would assert that
26728       client-side streams are not attached to single-hop circuits,
26729       but not that other sensitive operations on the client and service
26730       side are not performed using single-hop circuits. Fixes bug 3332;
26731       bugfix on 0.0.6.
26732     - Don't publish a new relay descriptor when we reload our onion key,
26733       unless the onion key has actually changed. Fixes bug 3263 and
26734       resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha.
26735     - Allow GETINFO fingerprint to return a fingerprint even when
26736       we have not yet built a router descriptor. Fixes bug 3577;
26737       bugfix on 0.2.0.1-alpha.
26738     - Make 'tor --digests' list hashes of all Tor source files. Bugfix
26739       on 0.2.2.4-alpha; fixes bug 3427.
26741   o Code simplification and refactoring:
26742     - Use tor_sscanf() in place of scanf() in more places through the
26743       code. This makes us a little more locale-independent, and
26744       should help shut up code-analysis tools that can't tell
26745       a safe sscanf string from a dangerous one.
26746     - Use tt_assert(), not tor_assert(), for checking for test failures.
26747       This makes the unit tests more able to go on in the event that
26748       one of them fails.
26749     - Split connection_about_to_close() into separate functions for each
26750       connection type.
26752   o Build changes:
26753     - On Windows, we now define the _WIN32_WINNT macros only if they
26754       are not already defined. This lets the person building Tor decide,
26755       if they want, to require a later version of Windows.
26758 Changes in version 0.2.2.30-rc - 2011-07-07
26759   Tor 0.2.2.30-rc is the first release candidate for the Tor 0.2.2.x
26760   series. It fixes a few smaller bugs, but generally appears stable.
26761   Please test it and let us know whether it is!
26763   o Minor bugfixes:
26764     - Send a SUCCEEDED stream event to the controller when a reverse
26765       resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
26766       discovered by katmagic.
26767     - Always NUL-terminate the sun_path field of a sockaddr_un before
26768       passing it to the kernel. (Not a security issue: kernels are
26769       smart enough to reject bad sockaddr_uns.) Found by Coverity;
26770       CID #428. Bugfix on Tor 0.2.0.3-alpha.
26771     - Don't stack-allocate the list of supplementary GIDs when we're
26772       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
26773       could take up to 256K, which is way too much stack. Found by
26774       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
26775     - Add BUILDTIMEOUT_SET to the list returned by the 'GETINFO
26776       events/names' control-port command. Bugfix on 0.2.2.9-alpha;
26777       fixes part of bug 3465.
26778     - Fix a memory leak when receiving a descriptor for a hidden
26779       service we didn't ask for. Found by Coverity; CID #30. Bugfix
26780       on 0.2.2.26-beta.
26782   o Minor features:
26783     - Update to the July 1 2011 Maxmind GeoLite Country database.
26786 Changes in version 0.2.2.29-beta - 2011-06-20
26787   Tor 0.2.2.29-beta reverts an accidental behavior change for users who
26788   have bridge lines in their torrc but don't want to use them; gets
26789   us closer to having the control socket feature working on Debian;
26790   and fixes a variety of smaller bugs.
26792   o Major bugfixes:
26793     - Revert the UseBridges option to its behavior before 0.2.2.28-beta.
26794       When we changed the default behavior to "use bridges if any
26795       are listed in the torrc", we surprised users who had bridges
26796       in their torrc files but who didn't actually want to use them.
26797       Partial resolution for bug 3354.
26799   o Privacy fixes:
26800     - Don't attach new streams to old rendezvous circuits after SIGNAL
26801       NEWNYM. Previously, we would keep using an existing rendezvous
26802       circuit if it remained open (i.e. if it were kept open by a
26803       long-lived stream, or if a new stream were attached to it before
26804       Tor could notice that it was old and no longer in use). Bugfix on
26805       0.1.1.15-rc; fixes bug 3375.
26807   o Minor bugfixes:
26808     - Fix a bug when using ControlSocketsGroupWritable with User. The
26809       directory's group would be checked against the current group, not
26810       the configured group. Patch by Jérémy Bobbio. Fixes bug 3393;
26811       bugfix on 0.2.2.26-beta.
26812     - Make connection_printf_to_buf()'s behavior sane. Its callers
26813       expect it to emit a CRLF iff the format string ends with CRLF;
26814       it actually emitted a CRLF iff (a) the format string ended with
26815       CRLF or (b) the resulting string was over 1023 characters long or
26816       (c) the format string did not end with CRLF *and* the resulting
26817       string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha;
26818       fixes part of bug 3407.
26819     - Make send_control_event_impl()'s behavior sane. Its callers
26820       expect it to always emit a CRLF at the end of the string; it
26821       might have emitted extra control characters as well. Bugfix on
26822       0.1.1.9-alpha; fixes another part of bug 3407.
26823     - Make crypto_rand_int() check the value of its input correctly.
26824       Previously, it accepted values up to UINT_MAX, but could return a
26825       negative number if given a value above INT_MAX+1. Found by George
26826       Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14.
26827     - Avoid a segfault when reading a malformed circuit build state
26828       with more than INT_MAX entries. Found by wanoskarnet. Bugfix on
26829       0.2.2.4-alpha.
26830     - When asked about a DNS record type we don't support via a
26831       client DNSPort, reply with NOTIMPL rather than an empty
26832       reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.
26833     - Fix a rare memory leak during stats writing. Found by coverity.
26835   o Minor features:
26836     - Update to the June 1 2011 Maxmind GeoLite Country database.
26838   o Code simplifications and refactoring:
26839     - Remove some dead code as indicated by coverity.
26840     - Remove a few dead assignments during router parsing. Found by
26841       coverity.
26842     - Add some forgotten return value checks during unit tests. Found
26843       by coverity.
26844     - Don't use 1-bit wide signed bit fields. Found by coverity.
26847 Changes in version 0.2.2.28-beta - 2011-06-04
26848   Tor 0.2.2.28-beta makes great progress towards a new stable release: we
26849   fixed a big bug in whether relays stay in the consensus consistently,
26850   we moved closer to handling bridges and hidden services correctly,
26851   and we started the process of better handling the dreaded "my Vidalia
26852   died, and now my Tor demands a password when I try to reconnect to it"
26853   usability issue.
26855   o Major bugfixes:
26856     - Don't decide to make a new descriptor when receiving a HUP signal.
26857       This bug has caused a lot of 0.2.2.x relays to disappear from the
26858       consensus periodically. Fixes the most common case of triggering
26859       bug 1810; bugfix on 0.2.2.7-alpha.
26860     - Actually allow nameservers with IPv6 addresses. Fixes bug 2574.
26861     - Don't try to build descriptors if "ORPort auto" is set and we
26862       don't know our actual ORPort yet. Fix for bug 3216; bugfix on
26863       0.2.2.26-beta.
26864     - Resolve a crash that occurred when setting BridgeRelay to 1 with
26865       accounting enabled. Fixes bug 3228; bugfix on 0.2.2.18-alpha.
26866     - Apply circuit timeouts to opened hidden-service-related circuits
26867       based on the correct start time. Previously, we would apply the
26868       circuit build timeout based on time since the circuit's creation;
26869       it was supposed to be applied based on time since the circuit
26870       entered its current state. Bugfix on 0.0.6; fixes part of bug 1297.
26871     - Use the same circuit timeout for client-side introduction
26872       circuits as for other four-hop circuits, rather than the timeout
26873       for single-hop directory-fetch circuits; the shorter timeout may
26874       have been appropriate with the static circuit build timeout in
26875       0.2.1.x and earlier, but caused many hidden service access attempts
26876       to fail with the adaptive CBT introduced in 0.2.2.2-alpha. Bugfix
26877       on 0.2.2.2-alpha; fixes another part of bug 1297.
26878     - In ticket 2511 we fixed a case where you could use an unconfigured
26879       bridge if you had configured it as a bridge the last time you ran
26880       Tor. Now fix another edge case: if you had configured it as a bridge
26881       but then switched to a different bridge via the controller, you
26882       would still be willing to use the old one. Bugfix on 0.2.0.1-alpha;
26883       fixes bug 3321.
26885   o Major features:
26886     - Add an __OwningControllerProcess configuration option and a
26887       TAKEOWNERSHIP control-port command. Now a Tor controller can ensure
26888       that when it exits, Tor will shut down. Implements feature 3049.
26889     - If "UseBridges 1" is set and no bridges are configured, Tor will
26890       now refuse to build any circuits until some bridges are set.
26891       If "UseBridges auto" is set, Tor will use bridges if they are
26892       configured and we are not running as a server, but otherwise will
26893       make circuits as usual. The new default is "auto". Patch by anonym,
26894       so the Tails LiveCD can stop automatically revealing you as a Tor
26895       user on startup.
26897   o Minor bugfixes:
26898     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
26899     - Remove a trailing asterisk from "exit-policy/default" in the
26900       output of the control port command "GETINFO info/names". Bugfix
26901       on 0.1.2.5-alpha.
26902     - Use a wide type to hold sockets when built for 64-bit Windows builds.
26903       Fixes bug 3270.
26904     - Warn when the user configures two HiddenServiceDir lines that point
26905       to the same directory. Bugfix on 0.0.6 (the version introducing
26906       HiddenServiceDir); fixes bug 3289.
26907     - Remove dead code from rend_cache_lookup_v2_desc_as_dir. Fixes
26908       part of bug 2748; bugfix on 0.2.0.10-alpha.
26909     - Log malformed requests for rendezvous descriptors as protocol
26910       warnings, not warnings. Also, use a more informative log message
26911       in case someone sees it at log level warning without prior
26912       info-level messages. Fixes the other part of bug 2748; bugfix
26913       on 0.2.0.10-alpha.
26914     - Clear the table recording the time of the last request for each
26915       hidden service descriptor from each HS directory on SIGNAL NEWNYM.
26916       Previously, we would clear our HS descriptor cache on SIGNAL
26917       NEWNYM, but if we had previously retrieved a descriptor (or tried
26918       to) from every directory responsible for it, we would refuse to
26919       fetch it again for up to 15 minutes. Bugfix on 0.2.2.25-alpha;
26920       fixes bug 3309.
26921     - Fix a log message that said "bits" while displaying a value in
26922       bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on
26923       0.2.0.1-alpha.
26924     - When checking for 1024-bit keys, check for 1024 bits, not 128
26925       bytes. This allows Tor to correctly discard keys of length 1017
26926       through 1023. Bugfix on 0.0.9pre5.
26928   o Minor features:
26929     - Relays now log the reason for publishing a new relay descriptor,
26930       so we have a better chance of hunting down instances of bug 1810.
26931       Resolves ticket 3252.
26932     - Revise most log messages that refer to nodes by nickname to
26933       instead use the "$key=nickname at address" format. This should be
26934       more useful, especially since nicknames are less and less likely
26935       to be unique. Resolves ticket 3045.
26936     - Log (at info level) when purging pieces of hidden-service-client
26937       state because of SIGNAL NEWNYM.
26939   o Removed options:
26940     - Remove undocumented option "-F" from tor-resolve: it hasn't done
26941       anything since 0.2.1.16-rc.
26944 Changes in version 0.2.2.27-beta - 2011-05-18
26945   Tor 0.2.2.27-beta fixes a bridge-related stability bug in the previous
26946   release, and also adds a few more general bugfixes.
26948   o Major bugfixes:
26949     - Fix a crash bug when changing bridges in a running Tor process.
26950       Fixes bug 3213; bugfix on 0.2.2.26-beta.
26951     - When the controller configures a new bridge, don't wait 10 to 60
26952       seconds before trying to fetch its descriptor. Bugfix on
26953       0.2.0.3-alpha; fixes bug 3198 (suggested by 2355).
26955   o Minor bugfixes:
26956     - Require that onion keys have exponent 65537 in microdescriptors too.
26957       Fixes more of bug 3207; bugfix on 0.2.2.26-beta.
26958     - Tor used to limit HttpProxyAuthenticator values to 48 characters.
26959       Changed the limit to 512 characters by removing base64 newlines.
26960       Fixes bug 2752. Fix by Michael Yakubovich.
26961     - When a client starts or stops using bridges, never use a circuit
26962       that was built before the configuration change. This behavior could
26963       put at risk a user who uses bridges to ensure that her traffic
26964       only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes
26965       bug 3200.
26968 Changes in version 0.2.2.26-beta - 2011-05-17
26969   Tor 0.2.2.26-beta fixes a variety of potential privacy problems. It
26970   also introduces a new "socksport auto" approach that should make it
26971   easier to run multiple Tors on the same system, and does a lot of
26972   cleanup to get us closer to a release candidate.
26974   o Security/privacy fixes:
26975     - Replace all potentially sensitive memory comparison operations
26976       with versions whose runtime does not depend on the data being
26977       compared. This will help resist a class of attacks where an
26978       adversary can use variations in timing information to learn
26979       sensitive data. Fix for one case of bug 3122. (Safe memcmp
26980       implementation by Robert Ransom based partially on code by DJB.)
26981     - When receiving a hidden service descriptor, check that it is for
26982       the hidden service we wanted. Previously, Tor would store any
26983       hidden service descriptors that a directory gave it, whether it
26984       wanted them or not. This wouldn't have let an attacker impersonate
26985       a hidden service, but it did let directories pre-seed a client
26986       with descriptors that it didn't want. Bugfix on 0.0.6.
26987     - On SIGHUP, do not clear out all TrackHostExits mappings, client
26988       DNS cache entries, and virtual address mappings: that's what
26989       NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc.
26991   o Major features:
26992     - The options SocksPort, ControlPort, and so on now all accept a
26993       value "auto" that opens a socket on an OS-selected port. A
26994       new ControlPortWriteToFile option tells Tor to write its
26995       actual control port or ports to a chosen file. If the option
26996       ControlPortFileGroupReadable is set, the file is created as
26997       group-readable. Now users can run two Tor clients on the same
26998       system without needing to manually mess with parameters. Resolves
26999       part of ticket 3076.
27000     - Set SO_REUSEADDR on all sockets, not just listeners. This should
27001       help busy exit nodes avoid running out of useable ports just
27002       because all the ports have been used in the near past. Resolves
27003       issue 2850.
27005   o Minor features:
27006     - New "GETINFO net/listeners/(type)" controller command to return
27007       a list of addresses and ports that are bound for listeners for a
27008       given connection type. This is useful when the user has configured
27009       "SocksPort auto" and the controller needs to know which port got
27010       chosen. Resolves another part of ticket 3076.
27011     - Add a new ControlSocketsGroupWritable configuration option: when
27012       it is turned on, ControlSockets are group-writeable by the default
27013       group of the current user. Patch by Jérémy Bobbio; implements
27014       ticket 2972.
27015     - Tor now refuses to create a ControlSocket in a directory that is
27016       world-readable (or group-readable if ControlSocketsGroupWritable
27017       is 0). This is necessary because some operating systems do not
27018       enforce permissions on an AF_UNIX sockets. Permissions on the
27019       directory holding the socket, however, seems to work everywhere.
27020     - Rate-limit a warning about failures to download v2 networkstatus
27021       documents. Resolves part of bug 1352.
27022     - Backport code from 0.2.3.x that allows directory authorities to
27023       clean their microdescriptor caches. Needed to resolve bug 2230.
27024     - When an HTTPS proxy reports "403 Forbidden", we now explain
27025       what it means rather than calling it an unexpected status code.
27026       Closes bug 2503. Patch from Michael Yakubovich.
27027     - Update to the May 1 2011 Maxmind GeoLite Country database.
27029   o Minor bugfixes:
27030     - Authorities now clean their microdesc cache periodically and when
27031       reading from disk initially, not only when adding new descriptors.
27032       This prevents a bug where we could lose microdescriptors. Bugfix
27033       on 0.2.2.6-alpha. Fixes bug 2230.
27034     - Do not crash when our configuration file becomes unreadable, for
27035       example due to a permissions change, between when we start up
27036       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
27037       on 0.0.9pre6.
27038     - Avoid a bug that would keep us from replacing a microdescriptor
27039       cache on Windows. (We would try to replace the file while still
27040       holding it open. That's fine on Unix, but Windows doesn't let us
27041       do that.) Bugfix on 0.2.2.6-alpha; bug found by wanoskarnet.
27042     - Add missing explanations for the authority-related torrc options
27043       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey in the
27044       man page. Resolves issue 2379.
27045     - As an authority, do not upload our own vote or signature set to
27046       ourself. It would tell us nothing new, and as of 0.2.2.24-alpha,
27047       it would get flagged as a duplicate. Resolves bug 3026.
27048     - Accept hidden service descriptors if we think we might be a hidden
27049       service directory, regardless of what our consensus says. This
27050       helps robustness, since clients and hidden services can sometimes
27051       have a more up-to-date view of the network consensus than we do,
27052       and if they think that the directory authorities list us a HSDir,
27053       we might actually be one. Related to bug 2732; bugfix on
27054       0.2.0.10-alpha.
27055     - When a controller changes TrackHostExits, remove mappings for
27056       hosts that should no longer have their exits tracked. Bugfix on
27057       0.1.0.1-rc.
27058     - When a controller changes VirtualAddrNetwork, remove any mappings
27059       for hosts that were automapped to the old network. Bugfix on
27060       0.1.1.19-rc.
27061     - When a controller changes one of the AutomapHosts* options, remove
27062       any mappings for hosts that should no longer be automapped. Bugfix
27063       on 0.2.0.1-alpha.
27064     - Do not reset the bridge descriptor download status every time we
27065       re-parse our configuration or get a configuration change. Fixes
27066       bug 3019; bugfix on 0.2.0.3-alpha.
27068   o Minor bugfixes (code cleanup):
27069     - When loading the microdesc journal, remember its current size.
27070       In 0.2.2, this helps prevent the microdesc journal from growing
27071       without limit on authorities (who are the only ones to use it in
27072       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
27073       Fix posted by "cypherpunks."
27074     - The microdesc journal is supposed to get rebuilt only if it is
27075       at least _half_ the length of the store, not _twice_ the length
27076       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
27077     - Fix a potential null-pointer dereference while computing a
27078       consensus. Bugfix on 0.2.0.3-alpha, found with the help of
27079       clang's analyzer.
27080     - Avoid a possible null-pointer dereference when rebuilding the mdesc
27081       cache without actually having any descriptors to cache. Bugfix on
27082       0.2.2.6-alpha. Issue discovered using clang's static analyzer.
27083     - If we fail to compute the identity digest of a v3 legacy keypair,
27084       warn, and don't use a buffer-full of junk instead. Bugfix on
27085       0.2.1.1-alpha; fixes bug 3106.
27086     - Resolve an untriggerable issue in smartlist_string_num_isin(),
27087       where if the function had ever in the future been used to check
27088       for the presence of a too-large number, it would have given an
27089       incorrect result. (Fortunately, we only used it for 16-bit
27090       values.) Fixes bug 3175; bugfix on 0.1.0.1-rc.
27091     - Require that introduction point keys and onion handshake keys
27092       have a public exponent of 65537. Starts to fix bug 3207; bugfix
27093       on 0.2.0.10-alpha.
27095   o Removed features:
27096     - Caches no longer download and serve v2 networkstatus documents
27097       unless FetchV2Networkstatus flag is set: these documents haven't
27098       haven't been used by clients or relays since 0.2.0.x. Resolves
27099       bug 3022.
27102 Changes in version 0.2.3.1-alpha - 2011-05-05
27103   Tor 0.2.3.1-alpha adds some new experimental features, including support
27104   for an improved network IO backend, IOCP networking on Windows,
27105   microdescriptor caching, "fast-start" support for streams, and automatic
27106   home router configuration. There are also numerous internal improvements
27107   to try to make the code easier for developers to work with.
27109   This is the first alpha release in a new series, so expect there to be
27110   bugs. Users who would rather test out a more stable branch should
27111   stay with 0.2.2.x for now.
27113   o Major features:
27114     - Tor can now optionally build with the "bufferevents" buffered IO
27115       backend provided by Libevent 2. To use this feature, make sure you
27116       have the latest possible version of Libevent, and pass the
27117       --enable-bufferevents flag to configure when building Tor from
27118       source. This feature will make our networking code more flexible,
27119       let us stack layers on each other, and let us use more efficient
27120       zero-copy transports where available.
27121     - As an experimental feature, Tor can use IOCP for networking on Windows.
27122       Once this code is tuned and optimized, it promises much better
27123       performance than the select-based backend we've used in the past. To
27124       try this feature, you must build Tor with Libevent 2, configure Tor
27125       with the "bufferevents" buffered IO backend, and add "DisableIOCP 0" to
27126       your torrc. There are known bugs here: only try this if you can help
27127       debug it as it breaks.
27128     - The EntryNodes option can now include country codes like {de} or IP
27129       addresses or network masks. Previously we had disallowed these options
27130       because we didn't have an efficient way to keep the list up to
27131       date. Fixes bug 1982, but see bug 2798 for an unresolved issue here.
27132     - Exit nodes now accept and queue data on not-yet-connected streams.
27133       Previously, the client wasn't allowed to send data until the stream was
27134       connected, which slowed down all connections. This change will enable
27135       clients to perform a "fast-start" on streams and send data without
27136       having to wait for a confirmation that the stream has opened. (Patch
27137       from Ian Goldberg; implements the server side of Proposal 174.)
27138     - Tor now has initial support for automatic port mapping on the many
27139       home routers that support NAT-PMP or UPnP. (Not yet supported on
27140       Windows). To build the support code, you'll need to have libnatpnp
27141       library and/or the libminiupnpc library, and you'll need to enable the
27142       feature specifically by passing "--enable-upnp" and/or
27143       "--enable-natpnp" to configure. To turn it on, use the new
27144       PortForwarding option.
27145     - Caches now download, cache, and serve multiple "flavors" of the
27146       consensus, including a flavor that describes microdescriptors.
27147     - Caches now download, cache, and serve microdescriptors -- small
27148       summaries of router descriptors that are authenticated by all of the
27149       directory authorities. Once enough caches are running this code,
27150       clients will be able to save significant amounts of directory bandwidth
27151       by downloading microdescriptors instead of router descriptors.
27153   o Minor features:
27154     - Make logging resolution configurable with a new LogTimeGranularity
27155       option, and change the default from 1 millisecond to 1 second.
27156       Implements enhancement 1668.
27157     - We log which torrc file we're using on startup. Implements ticket
27158       2444.
27159     - Ordinarily, Tor does not count traffic from private addresses (like
27160       127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting.
27161       There is now a new option, CountPrivateBandwidth, to disable this
27162       behavior. Patch from Daniel Cagara.
27163     - New --enable-static-tor configure option for building Tor as
27164       statically as possible. Idea, general hackery and thoughts from
27165       Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket
27166       2702.
27167     - If you set the NumCPUs option to 0, Tor will now try to detect how
27168       many CPUs you have. This is the new default behavior.
27169     - Turn on directory request statistics by default and include them in
27170       extra-info descriptors. Don't break if we have no GeoIP database.
27171     - Relays that set "ConnDirectionStatistics 1" write statistics on the
27172       bidirectional use of connections to disk every 24 hours.
27173     - Add a GeoIP file digest to the extra-info descriptor. Implements
27174       enhancement 1883.
27175     - The NodeFamily option -- which let you declare that you want to
27176       consider nodes to be part of a family whether they list themselves
27177       that way or not -- now allows IP address ranges and country codes.
27178     - Add a new 'Heartbeat' log message type to periodically log a message
27179       describing Tor's status at level Notice. This feature is meant for
27180       operators who log at notice, and want to make sure that their Tor
27181       server is still working. Implementation by George Kadianakis.
27183   o Minor bugfixes (on 0.2.2.25-alpha):
27184     - When loading the microdesc journal, remember its current size.
27185       In 0.2.2, this helps prevent the microdesc journal from growing
27186       without limit on authorities (who are the only ones to use it in
27187       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
27188       Fix posted by "cypherpunks."
27189     - The microdesc journal is supposed to get rebuilt only if it is
27190       at least _half_ the length of the store, not _twice_ the length
27191       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
27192     - If as an authority we fail to compute the identity digest of a v3
27193       legacy keypair, warn, and don't use a buffer-full of junk instead.
27194       Bugfix on 0.2.1.1-alpha; fixes bug 3106.
27195     - Authorities now clean their microdesc cache periodically and when
27196       reading from disk initially, not only when adding new descriptors.
27197       This prevents a bug where we could lose microdescriptors. Bugfix
27198       on 0.2.2.6-alpha.
27200   o Minor features (controller):
27201     - Add a new SIGNAL event to the controller interface so that
27202       controllers can be notified when Tor handles a signal. Resolves
27203       issue 1955. Patch by John Brooks.
27204     - Add a new GETINFO option to get total bytes read and written. Patch
27205       from pipe, revised by atagar. Resolves ticket 2345.
27206     - Implement some GETINFO controller fields to provide information about
27207       the Tor process's pid, euid, username, and resource limits.
27209   o Build changes:
27210     - Our build system requires automake 1.6 or later to create the
27211       Makefile.in files. Previously, you could have used 1.4.
27212       This only affects developers and people building Tor from git;
27213       people who build Tor from the source distribution without changing
27214       the Makefile.am files should be fine.
27215     - Our autogen.sh script uses autoreconf to launch autoconf, automake, and
27216       so on. This is more robust against some of the failure modes
27217       associated with running the autotools pieces on their own.
27219   o Minor packaging issues:
27220     - On OpenSUSE, create the /var/run/tor directory on startup if it is not
27221       already created. Patch from Andreas Stieger. Fixes bug 2573.
27223   o Code simplifications and refactoring:
27224     - A major revision to our internal node-selecting and listing logic.
27225       Tor already had at least two major ways to look at the question of
27226       "which Tor servers do we know about": a list of router descriptors,
27227       and a list of entries in the current consensus. With
27228       microdescriptors, we're adding a third. Having so many systems
27229       without an abstraction layer over them was hurting the codebase.
27230       Now, we have a new "node_t" abstraction that presents a consistent
27231       interface to a client's view of a Tor node, and holds (nearly) all
27232       of the mutable state formerly in routerinfo_t and routerstatus_t.
27233     - The helper programs tor-gencert, tor-resolve, and tor-checkkey
27234       no longer link against Libevent: they never used it, but
27235       our library structure used to force them to link it.
27237   o Removed features:
27238     - Remove some old code to work around even older versions of Tor that
27239       used forked processes to handle DNS requests. Such versions of Tor
27240       are no longer in use as servers.
27242   o Documentation fixes:
27243     - Correct a broken faq link in the INSTALL file. Fixes bug 2307.
27244     - Add missing documentation for the authority-related torrc options
27245       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey. Resolves
27246       issue 2379.
27249 Changes in version 0.2.2.25-alpha - 2011-04-29
27250   Tor 0.2.2.25-alpha fixes many bugs: hidden service clients are more
27251   robust, routers no longer overreport their bandwidth, Win7 should crash
27252   a little less, and NEWNYM (as used by Vidalia's "new identity" button)
27253   now prevents hidden service-related activity from being linkable. It
27254   provides more information to Vidalia so you can see if your bridge is
27255   working. Also, 0.2.2.25-alpha revamps the Entry/Exit/ExcludeNodes and
27256   StrictNodes configuration options to make them more reliable, more
27257   understandable, and more regularly applied. If you use those options,
27258   please see the revised documentation for them in the manual page.
27260   o Major bugfixes:
27261     - Relays were publishing grossly inflated bandwidth values because
27262       they were writing their state files wrong--now they write the
27263       correct value. Also, resume reading bandwidth history from the
27264       state file correctly. Fixes bug 2704; bugfix on 0.2.2.23-alpha.
27265     - Improve hidden service robustness: When we find that we have
27266       extended a hidden service's introduction circuit to a relay not
27267       listed as an introduction point in the HS descriptor we currently
27268       have, retry with an introduction point from the current
27269       descriptor. Previously we would just give up. Fixes bugs 1024 and
27270       1930; bugfix on 0.2.0.10-alpha.
27271     - Clients now stop trying to use an exit node associated with a given
27272       destination by TrackHostExits if they fail to reach that exit node.
27273       Fixes bug 2999. Bugfix on 0.2.0.20-rc.
27274     - Fix crash bug on platforms where gmtime and localtime can return
27275       NULL. Windows 7 users were running into this one. Fixes part of bug
27276       2077. Bugfix on all versions of Tor. Found by boboper.
27278   o Security and stability fixes:
27279     - Don't double-free a parsable, but invalid, microdescriptor, even if
27280       it is followed in the blob we're parsing by an unparsable
27281       microdescriptor. Fixes an issue reported in a comment on bug 2954.
27282       Bugfix on 0.2.2.6-alpha; fix by "cypherpunks".
27283     - If the Nickname configuration option isn't given, Tor would pick a
27284       nickname based on the local hostname as the nickname for a relay.
27285       Because nicknames are not very important in today's Tor and the
27286       "Unnamed" nickname has been implemented, this is now problematic
27287       behavior: It leaks information about the hostname without being
27288       useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which
27289       introduced the Unnamed nickname. Reported by tagnaq.
27290     - Fix an uncommon assertion failure when running with DNSPort under
27291       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
27292     - Avoid linkability based on cached hidden service descriptors: forget
27293       all hidden service descriptors cached as a client when processing a
27294       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
27296   o Major features:
27297     - Export GeoIP information on bridge usage to controllers even if we
27298       have not yet been running for 24 hours. Now Vidalia bridge operators
27299       can get more accurate and immediate feedback about their
27300       contributions to the network.
27302   o Major features and bugfixes (node selection):
27303     - Revise and reconcile the meaning of the ExitNodes, EntryNodes,
27304       ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and StrictNodes
27305       options. Previously, we had been ambiguous in describing what
27306       counted as an "exit" node, and what operations exactly "StrictNodes
27307       0" would permit. This created confusion when people saw nodes built
27308       through unexpected circuits, and made it hard to tell real bugs from
27309       surprises. Now the intended behavior is:
27310         . "Exit", in the context of ExitNodes and ExcludeExitNodes, means
27311           a node that delivers user traffic outside the Tor network.
27312         . "Entry", in the context of EntryNodes, means a node used as the
27313           first hop of a multihop circuit. It doesn't include direct
27314           connections to directory servers.
27315         . "ExcludeNodes" applies to all nodes.
27316         . "StrictNodes" changes the behavior of ExcludeNodes only. When
27317           StrictNodes is set, Tor should avoid all nodes listed in
27318           ExcludeNodes, even when it will make user requests fail. When
27319           StrictNodes is *not* set, then Tor should follow ExcludeNodes
27320           whenever it can, except when it must use an excluded node to
27321           perform self-tests, connect to a hidden service, provide a
27322           hidden service, fulfill a .exit request, upload directory
27323           information, or fetch directory information.
27324       Collectively, the changes to implement the behavior fix bug 1090.
27325     - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if
27326       a node is listed in both, it's treated as excluded.
27327     - ExcludeNodes now applies to directory nodes -- as a preference if
27328       StrictNodes is 0, or an absolute requirement if StrictNodes is 1.
27329       Don't exclude all the directory authorities and set StrictNodes to 1
27330       unless you really want your Tor to break.
27331     - ExcludeNodes and ExcludeExitNodes now override exit enclaving.
27332     - ExcludeExitNodes now overrides .exit requests.
27333     - We don't use bridges listed in ExcludeNodes.
27334     - When StrictNodes is 1:
27335        . We now apply ExcludeNodes to hidden service introduction points
27336          and to rendezvous points selected by hidden service users. This
27337          can make your hidden service less reliable: use it with caution!
27338        . If we have used ExcludeNodes on ourself, do not try relay
27339          reachability self-tests.
27340        . If we have excluded all the directory authorities, we will not
27341          even try to upload our descriptor if we're a relay.
27342        . Do not honor .exit requests to an excluded node.
27343     - Remove a misfeature that caused us to ignore the Fast/Stable flags
27344       when ExitNodes is set. Bugfix on 0.2.2.7-alpha.
27345     - When the set of permitted nodes changes, we now remove any mappings
27346       introduced via TrackExitHosts to now-excluded nodes. Bugfix on
27347       0.1.0.1-rc.
27348     - We never cannibalize a circuit that had excluded nodes on it, even
27349       if StrictNodes is 0. Bugfix on 0.1.0.1-rc.
27350     - Revert a change where we would be laxer about attaching streams to
27351       circuits than when building the circuits. This was meant to prevent
27352       a set of bugs where streams were never attachable, but our improved
27353       code here should make this unnecessary. Bugfix on 0.2.2.7-alpha.
27354     - Keep track of how many times we launch a new circuit to handle a
27355       given stream. Too many launches could indicate an inconsistency
27356       between our "launch a circuit to handle this stream" logic and our
27357       "attach this stream to one of the available circuits" logic.
27358     - Improve log messages related to excluded nodes.
27360   o Minor bugfixes:
27361     - Fix a spurious warning when moving from a short month to a long
27362       month on relays with month-based BandwidthAccounting. Bugfix on
27363       0.2.2.17-alpha; fixes bug 3020.
27364     - When a client finds that an origin circuit has run out of 16-bit
27365       stream IDs, we now mark it as unusable for new streams. Previously,
27366       we would try to close the entire circuit. Bugfix on 0.0.6.
27367     - Add a forgotten cast that caused a compile warning on OS X 10.6.
27368       Bugfix on 0.2.2.24-alpha.
27369     - Be more careful about reporting the correct error from a failed
27370       connect() system call. Under some circumstances, it was possible to
27371       look at an incorrect value for errno when sending the end reason.
27372       Bugfix on 0.1.0.1-rc.
27373     - Correctly handle an "impossible" overflow cases in connection byte
27374       counting, where we write or read more than 4GB on an edge connection
27375       in a single second. Bugfix on 0.1.2.8-beta.
27376     - Correct the warning displayed when a rendezvous descriptor exceeds
27377       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
27378       John Brooks.
27379     - Clients and hidden services now use HSDir-flagged relays for hidden
27380       service descriptor downloads and uploads even if the relays have no
27381       DirPort set and the client has disabled TunnelDirConns. This will
27382       eventually allow us to give the HSDir flag to relays with no
27383       DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha.
27384     - Downgrade "no current certificates known for authority" message from
27385       Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha.
27386     - Make the SIGNAL DUMP control-port command work on FreeBSD. Fixes bug
27387       2917. Bugfix on 0.1.1.1-alpha.
27388     - Only limit the lengths of single HS descriptors, even when multiple
27389       HS descriptors are published to an HSDir relay in a single POST
27390       operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir.
27391     - Write the current time into the LastWritten line in our state file,
27392       rather than the time from the previous write attempt. Also, stop
27393       trying to use a time of -1 in our log statements. Fixes bug 3039;
27394       bugfix on 0.2.2.14-alpha.
27395     - Be more consistent in our treatment of file system paths. "~" should
27396       get expanded to the user's home directory in the Log config option.
27397       Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the
27398       feature for the -f and --DataDirectory options.
27400   o Minor features:
27401     - Make sure every relay writes a state file at least every 12 hours.
27402       Previously, a relay could go for weeks without writing its state
27403       file, and on a crash could lose its bandwidth history, capacity
27404       estimates, client country statistics, and so on. Addresses bug 3012.
27405     - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
27406       Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such
27407       clients are already deprecated because of security bugs.
27408     - Don't allow v0 hidden service authorities to act as clients.
27409       Required by fix for bug 3000.
27410     - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required
27411       by fix for bug 3000.
27412     - Ensure that no empty [dirreq-](read|write)-history lines are added
27413       to an extrainfo document. Implements ticket 2497.
27415   o Code simplification and refactoring:
27416     - Remove workaround code to handle directory responses from servers
27417       that had bug 539 (they would send HTTP status 503 responses _and_
27418       send a body too). Since only server versions before
27419       0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to
27420       keep the workaround in place.
27421     - Remove the old 'fuzzy time' logic. It was supposed to be used for
27422       handling calculations where we have a known amount of clock skew and
27423       an allowed amount of unknown skew. But we only used it in three
27424       places, and we never adjusted the known/unknown skew values. This is
27425       still something we might want to do someday, but if we do, we'll
27426       want to do it differently.
27427     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
27428       None of the cases where we did this before were wrong, but by making
27429       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
27430     - Use GetTempDir to find the proper temporary directory location on
27431       Windows when generating temporary files for the unit tests. Patch by
27432       Gisle Vanem.
27435 Changes in version 0.2.2.24-alpha - 2011-04-08
27436   Tor 0.2.2.24-alpha fixes a variety of bugs, including a big bug that
27437   prevented Tor clients from effectively using "multihomed" bridges,
27438   that is, bridges that listen on multiple ports or IP addresses so users
27439   can continue to use some of their addresses even if others get blocked.
27441   o Major bugfixes:
27442     - Fix a bug where bridge users who configure the non-canonical
27443       address of a bridge automatically switch to its canonical
27444       address. If a bridge listens at more than one address, it should be
27445       able to advertise those addresses independently and any non-blocked
27446       addresses should continue to work. Bugfix on Tor 0.2.0.x. Fixes
27447       bug 2510.
27448     - If you configured Tor to use bridge A, and then quit and
27449       configured Tor to use bridge B instead, it would happily continue
27450       to use bridge A if it's still reachable. While this behavior is
27451       a feature if your goal is connectivity, in some scenarios it's a
27452       dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511.
27453     - Directory authorities now use data collected from their own
27454       uptime observations when choosing whether to assign the HSDir flag
27455       to relays, instead of trusting the uptime value the relay reports in
27456       its descriptor. This change helps prevent an attack where a small
27457       set of nodes with frequently-changing identity keys can blackhole
27458       a hidden service. (Only authorities need upgrade; others will be
27459       fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709.
27461   o Minor bugfixes:
27462     - When we restart our relay, we might get a successful connection
27463       from the outside before we've started our reachability tests,
27464       triggering a warning: "ORPort found reachable, but I have no
27465       routerinfo yet. Failing to inform controller of success." This
27466       bug was harmless unless Tor is running under a controller
27467       like Vidalia, in which case the controller would never get a
27468       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
27469       fixes bug 1172.
27470     - Make directory authorities more accurate at recording when
27471       relays that have failed several reachability tests became
27472       unreachable, so we can provide more accuracy at assigning Stable,
27473       Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716.
27474     - Fix an issue that prevented static linking of libevent on
27475       some platforms (notably Linux). Fixes bug 2698; bugfix on
27476       versions 0.2.1.23/0.2.2.8-alpha (the versions introducing
27477       the --with-static-libevent configure option).
27478     - We now ask the other side of a stream (the client or the exit)
27479       for more data on that stream when the amount of queued data on
27480       that stream dips low enough. Previously, we wouldn't ask the
27481       other side for more data until either it sent us more data (which
27482       it wasn't supposed to do if it had exhausted its window!) or we
27483       had completely flushed all our queued data. This flow control fix
27484       should improve throughput. Fixes bug 2756; bugfix on the earliest
27485       released versions of Tor (svn commit r152).
27486     - Avoid a double-mark-for-free warning when failing to attach a
27487       transparent proxy connection. (We thought we had fixed this in
27488       0.2.2.23-alpha, but it turns out our fix was checking the wrong
27489       connection.) Fixes bug 2757; bugfix on 0.1.2.1-alpha (the original
27490       bug) and 0.2.2.23-alpha (the incorrect fix).
27491     - When warning about missing zlib development packages during compile,
27492       give the correct package names. Bugfix on 0.2.0.1-alpha.
27494   o Minor features:
27495     - Directory authorities now log the source of a rejected POSTed v3
27496       networkstatus vote.
27497     - Make compilation with clang possible when using
27498       --enable-gcc-warnings by removing two warning options that clang
27499       hasn't implemented yet and by fixing a few warnings. Implements
27500       ticket 2696.
27501     - When expiring circuits, use microsecond timers rather than
27502       one-second timers. This can avoid an unpleasant situation where a
27503       circuit is launched near the end of one second and expired right
27504       near the beginning of the next, and prevent fluctuations in circuit
27505       timeout values.
27506     - Use computed circuit-build timeouts to decide when to launch
27507       parallel introduction circuits for hidden services. (Previously,
27508       we would retry after 15 seconds.)
27509     - Update to the April 1 2011 Maxmind GeoLite Country database.
27511   o Packaging fixes:
27512     - Create the /var/run/tor directory on startup on OpenSUSE if it is
27513       not already created. Patch from Andreas Stieger. Fixes bug 2573.
27515   o Documentation changes:
27516     - Modernize the doxygen configuration file slightly. Fixes bug 2707.
27517     - Resolve all doxygen warnings except those for missing documentation.
27518       Fixes bug 2705.
27519     - Add doxygen documentation for more functions, fields, and types.
27522 Changes in version 0.2.2.23-alpha - 2011-03-08
27523   Tor 0.2.2.23-alpha lets relays record their bandwidth history so when
27524   they restart they don't lose their bandwidth capacity estimate. This
27525   release also fixes a diverse set of user-facing bugs, ranging from
27526   relays overrunning their rate limiting to clients falsely warning about
27527   clock skew to bridge descriptor leaks by our bridge directory authority.
27529   o Major bugfixes:
27530     - Stop sending a CLOCK_SKEW controller status event whenever
27531       we fetch directory information from a relay that has a wrong clock.
27532       Instead, only inform the controller when it's a trusted authority
27533       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
27534       the rest of bug 1074.
27535     - Fix an assert in parsing router descriptors containing IPv6
27536       addresses. This one took down the directory authorities when
27537       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
27538     - Make the bridge directory authority refuse to answer directory
27539       requests for "all" descriptors. It used to include bridge
27540       descriptors in its answer, which was a major information leak.
27541       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
27542     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
27543       Tor would ignore their RelayBandwidthBurst setting,
27544       potentially using more bandwidth than expected. Bugfix on
27545       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
27546     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
27547       hidserv" in her torrc. The 'hidserv' argument never controlled
27548       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
27550   o Major features:
27551     - Relays now save observed peak bandwidth throughput rates to their
27552       state file (along with total usage, which was already saved)
27553       so that they can determine their correct estimated bandwidth on
27554       restart. Resolves bug 1863, where Tor relays would reset their
27555       estimated bandwidth to 0 after restarting.
27556     - Directory authorities now take changes in router IP address and
27557       ORPort into account when determining router stability. Previously,
27558       if a router changed its IP or ORPort, the authorities would not
27559       treat it as having any downtime for the purposes of stability
27560       calculation, whereas clients would experience downtime since the
27561       change could take a while to propagate to them. Resolves issue 1035.
27562     - Enable Address Space Layout Randomization (ASLR) and Data Execution
27563       Prevention (DEP) by default on Windows to make it harder for
27564       attackers to exploit vulnerabilities. Patch from John Brooks.
27566   o Minor bugfixes (on 0.2.1.x and earlier):
27567     - Fix a rare crash bug that could occur when a client was configured
27568       with a large number of bridges. Fixes bug 2629; bugfix on
27569       0.2.1.2-alpha. Bugfix by trac user "shitlei".
27570     - Avoid a double mark-for-free warning when failing to attach a
27571       transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes
27572       bug 2279.
27573     - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378;
27574       found by "cypherpunks". This bug was introduced before the first
27575       Tor release, in svn commit r110.
27576     - Country codes aren't supported in EntryNodes until 0.2.3.x, so
27577       don't mention them in the manpage. Fixes bug 2450; issue
27578       spotted by keb and G-Lo.
27579     - Fix a bug in bandwidth history state parsing that could have been
27580       triggered if a future version of Tor ever changed the timing
27581       granularity at which bandwidth history is measured. Bugfix on
27582       Tor 0.1.1.11-alpha.
27583     - When a relay decides that its DNS is too broken for it to serve
27584       as an exit server, it advertised itself as a non-exit, but
27585       continued to act as an exit. This could create accidental
27586       partitioning opportunities for users. Instead, if a relay is
27587       going to advertise reject *:* as its exit policy, it should
27588       really act with exit policy "reject *:*". Fixes bug 2366.
27589       Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac.
27590     - In the special case where you configure a public exit relay as your
27591       bridge, Tor would be willing to use that exit relay as the last
27592       hop in your circuit as well. Now we fail that circuit instead.
27593       Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer".
27594     - Fix a bug with our locking implementation on Windows that couldn't
27595       correctly detect when a file was already locked. Fixes bug 2504,
27596       bugfix on 0.2.1.6-alpha.
27597     - Fix IPv6-related connect() failures on some platforms (BSD, OS X).
27598       Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by
27599       "piebeer".
27600     - Set target port in get_interface_address6() correctly. Bugfix
27601       on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660.
27602     - Directory authorities are now more robust to hops back in time
27603       when calculating router stability. Previously, if a run of uptime
27604       or downtime appeared to be negative, the calculation could give
27605       incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing
27606       bug 1035.
27607     - Fix an assert that got triggered when using the TestingTorNetwork
27608       configuration option and then issuing a GETINFO config-text control
27609       command. Fixes bug 2250; bugfix on 0.2.1.2-alpha.
27611   o Minor bugfixes (on 0.2.2.x):
27612     - Clients should not weight BadExit nodes as Exits in their node
27613       selection. Similarly, directory authorities should not count BadExit
27614       bandwidth as Exit bandwidth when computing bandwidth-weights.
27615       Bugfix on 0.2.2.10-alpha; fixes bug 2203.
27616     - Correctly clear our dir_read/dir_write history when there is an
27617       error parsing any bw history value from the state file. Bugfix on
27618       Tor 0.2.2.15-alpha.
27619     - Resolve a bug in verifying signatures of directory objects
27620       with digests longer than SHA1. Bugfix on 0.2.2.20-alpha.
27621       Fixes bug 2409. Found by "piebeer".
27622     - Bridge authorities no longer crash on SIGHUP when they try to
27623       publish their relay descriptor to themselves. Fixes bug 2572. Bugfix
27624       on 0.2.2.22-alpha.
27626   o Minor features:
27627     - Log less aggressively about circuit timeout changes, and improve
27628       some other circuit timeout messages. Resolves bug 2004.
27629     - Log a little more clearly about the times at which we're no longer
27630       accepting new connections. Resolves bug 2181.
27631     - Reject attempts at the client side to open connections to private
27632       IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with
27633       a randomly chosen exit node. Attempts to do so are always
27634       ill-defined, generally prevented by exit policies, and usually
27635       in error. This will also help to detect loops in transparent
27636       proxy configurations. You can disable this feature by setting
27637       "ClientRejectInternalAddresses 0" in your torrc.
27638     - Always treat failure to allocate an RSA key as an unrecoverable
27639       allocation error.
27640     - Update to the March 1 2011 Maxmind GeoLite Country database.
27642   o Minor features (log subsystem):
27643     - Add documentation for configuring logging at different severities in
27644       different log domains. We've had this feature since 0.2.1.1-alpha,
27645       but for some reason it never made it into the manpage. Fixes
27646       bug 2215.
27647     - Make it simpler to specify "All log domains except for A and B".
27648       Previously you needed to say "[*,~A,~B]". Now you can just say
27649       "[~A,~B]".
27650     - Add a "LogMessageDomains 1" option to include the domains of log
27651       messages along with the messages. Without this, there's no way
27652       to use log domains without reading the source or doing a lot
27653       of guessing.
27655   o Packaging changes:
27656     - Stop shipping the Tor specs files and development proposal documents
27657       in the tarball. They are now in a separate git repository at
27658       git://git.torproject.org/torspec.git
27661 Changes in version 0.2.1.30 - 2011-02-23
27662   Tor 0.2.1.30 fixes a variety of less critical bugs. The main other
27663   change is a slight tweak to Tor's TLS handshake that makes relays
27664   and bridges that run this new version reachable from Iran again.
27665   We don't expect this tweak will win the arms race long-term, but it
27666   buys us time until we roll out a better solution.
27668   o Major bugfixes:
27669     - Stop sending a CLOCK_SKEW controller status event whenever
27670       we fetch directory information from a relay that has a wrong clock.
27671       Instead, only inform the controller when it's a trusted authority
27672       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
27673       the rest of bug 1074.
27674     - Fix a bounds-checking error that could allow an attacker to
27675       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
27676       Found by "piebeer".
27677     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
27678       Tor would ignore their RelayBandwidthBurst setting,
27679       potentially using more bandwidth than expected. Bugfix on
27680       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
27681     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
27682       hidserv" in her torrc. The 'hidserv' argument never controlled
27683       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
27685   o Minor features:
27686     - Adjust our TLS Diffie-Hellman parameters to match those used by
27687       Apache's mod_ssl.
27688     - Update to the February 1 2011 Maxmind GeoLite Country database.
27690   o Minor bugfixes:
27691     - Check for and reject overly long directory certificates and
27692       directory tokens before they have a chance to hit any assertions.
27693       Bugfix on 0.2.1.28. Found by "doorss".
27694     - Bring the logic that gathers routerinfos and assesses the
27695       acceptability of circuits into line. This prevents a Tor OP from
27696       getting locked in a cycle of choosing its local OR as an exit for a
27697       path (due to a .exit request) and then rejecting the circuit because
27698       its OR is not listed yet. It also prevents Tor clients from using an
27699       OR running in the same instance as an exit (due to a .exit request)
27700       if the OR does not meet the same requirements expected of an OR
27701       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
27703   o Packaging changes:
27704     - Stop shipping the Tor specs files and development proposal documents
27705       in the tarball. They are now in a separate git repository at
27706       git://git.torproject.org/torspec.git
27707     - Do not include Git version tags as though they are SVN tags when
27708       generating a tarball from inside a repository that has switched
27709       between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402.
27712 Changes in version 0.2.2.22-alpha - 2011-01-25
27713   Tor 0.2.2.22-alpha fixes a few more less-critical security issues. The
27714   main other change is a slight tweak to Tor's TLS handshake that makes
27715   relays and bridges that run this new version reachable from Iran again.
27716   We don't expect this tweak will win the arms race long-term, but it
27717   will buy us a bit more time until we roll out a better solution.
27719   o Major bugfixes:
27720     - Fix a bounds-checking error that could allow an attacker to
27721       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
27722       Found by "piebeer".
27723     - Don't assert when changing from bridge to relay or vice versa
27724       via the controller. The assert happened because we didn't properly
27725       initialize our keys in this case. Bugfix on 0.2.2.18-alpha; fixes
27726       bug 2433. Reported by bastik.
27728   o Minor features:
27729     - Adjust our TLS Diffie-Hellman parameters to match those used by
27730       Apache's mod_ssl.
27731     - Provide a log message stating which geoip file we're parsing
27732       instead of just stating that we're parsing the geoip file.
27733       Implements ticket 2432.
27735   o Minor bugfixes:
27736     - Check for and reject overly long directory certificates and
27737       directory tokens before they have a chance to hit any assertions.
27738       Bugfix on 0.2.1.28 / 0.2.2.20-alpha. Found by "doorss".
27741 Changes in version 0.2.2.21-alpha - 2011-01-15
27742   Tor 0.2.2.21-alpha includes all the patches from Tor 0.2.1.29, which
27743   continues our recent code security audit work. The main fix resolves
27744   a remote heap overflow vulnerability that can allow remote code
27745   execution (CVE-2011-0427). Other fixes address a variety of assert
27746   and crash bugs, most of which we think are hard to exploit remotely.
27748   o Major bugfixes (security), also included in 0.2.1.29:
27749     - Fix a heap overflow bug where an adversary could cause heap
27750       corruption. This bug probably allows remote code execution
27751       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
27752       0.1.2.10-rc.
27753     - Prevent a denial-of-service attack by disallowing any
27754       zlib-compressed data whose compression factor is implausibly
27755       high. Fixes part of bug 2324; reported by "doorss".
27756     - Zero out a few more keys in memory before freeing them. Fixes
27757       bug 2384 and part of bug 2385. These key instances found by
27758       "cypherpunks", based on Andrew Case's report about being able
27759       to find sensitive data in Tor's memory space if you have enough
27760       permissions. Bugfix on 0.0.2pre9.
27762   o Major bugfixes (crashes), also included in 0.2.1.29:
27763     - Prevent calls to Libevent from inside Libevent log handlers.
27764       This had potential to cause a nasty set of crashes, especially
27765       if running Libevent with debug logging enabled, and running
27766       Tor with a controller watching for low-severity log messages.
27767       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
27768     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
27769       underflow errors there too. Fixes the other part of bug 2324.
27770     - Fix a bug where we would assert if we ever had a
27771       cached-descriptors.new file (or another file read directly into
27772       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
27773       on 0.2.1.25. Found by doorss.
27774     - Fix some potential asserts and parsing issues with grossly
27775       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
27776       Found by doorss.
27778   o Minor bugfixes (other), also included in 0.2.1.29:
27779     - Fix a bug with handling misformed replies to reverse DNS lookup
27780       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
27781       bug reported by doorss.
27782     - Fix compilation on mingw when a pthreads compatibility library
27783       has been installed. (We don't want to use it, so we shouldn't
27784       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
27785     - Fix a bug where we would declare that we had run out of virtual
27786       addresses when the address space was only half-exhausted. Bugfix
27787       on 0.1.2.1-alpha.
27788     - Correctly handle the case where AutomapHostsOnResolve is set but
27789       no virtual addresses are available. Fixes bug 2328; bugfix on
27790       0.1.2.1-alpha. Bug found by doorss.
27791     - Correctly handle wrapping around when we run out of virtual
27792       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
27794   o Minor features, also included in 0.2.1.29:
27795     - Update to the January 1 2011 Maxmind GeoLite Country database.
27796     - Introduce output size checks on all of our decryption functions.
27798   o Build changes, also included in 0.2.1.29:
27799     - Tor does not build packages correctly with Automake 1.6 and earlier;
27800       added a check to Makefile.am to make sure that we're building with
27801       Automake 1.7 or later.
27802     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
27803       because we built it with a too-old version of automake. Thus that
27804       release broke ./configure --enable-openbsd-malloc, which is popular
27805       among really fast exit relays on Linux.
27807   o Major bugfixes, new in 0.2.2.21-alpha:
27808     - Prevent crash/heap corruption when the cbtnummodes consensus
27809       parameter is set to 0 or large values. Fixes bug 2317; bugfix
27810       on 0.2.2.14-alpha.
27812   o Major features, new in 0.2.2.21-alpha:
27813     - Introduce minimum/maximum values that clients will believe
27814       from the consensus. Now we'll have a better chance to avoid crashes
27815       or worse when a consensus param has a weird value.
27817   o Minor features, new in 0.2.2.21-alpha:
27818     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
27819       used on bridges, and it makes bridge scanning somewhat easier.
27820     - If writing the state file to disk fails, wait up to an hour before
27821       retrying again, rather than trying again each second. Fixes bug
27822       2346; bugfix on Tor 0.1.1.3-alpha.
27823     - Make Libevent log messages get delivered to controllers later,
27824       and not from inside the Libevent log handler. This prevents unsafe
27825       reentrant Libevent calls while still letting the log messages
27826       get through.
27827     - Detect platforms that brokenly use a signed size_t, and refuse to
27828       build there. Found and analyzed by doorss and rransom.
27829     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
27830       Resolves bug 2314.
27832   o Minor bugfixes, new in 0.2.2.21-alpha:
27833     - Handle SOCKS messages longer than 128 bytes long correctly, rather
27834       than waiting forever for them to finish. Fixes bug 2330; bugfix
27835       on 0.2.0.16-alpha. Found by doorss.
27836     - Add assertions to check for overflow in arguments to
27837       base32_encode() and base32_decode(); fix a signed-unsigned
27838       comparison there too. These bugs are not actually reachable in Tor,
27839       but it's good to prevent future errors too. Found by doorss.
27840     - Correctly detect failures to create DNS requests when using Libevent
27841       versions before v2. (Before Libevent 2, we used our own evdns
27842       implementation. Its return values for Libevent's evdns_resolve_*()
27843       functions are not consistent with those from Libevent.) Fixes bug
27844       2363; bugfix on 0.2.2.6-alpha. Found by "lodger".
27846   o Documentation, new in 0.2.2.21-alpha:
27847     - Document the default socks host and port (127.0.0.1:9050) for
27848       tor-resolve.
27851 Changes in version 0.2.1.29 - 2011-01-15
27852   Tor 0.2.1.29 continues our recent code security audit work. The main
27853   fix resolves a remote heap overflow vulnerability that can allow remote
27854   code execution. Other fixes address a variety of assert and crash bugs,
27855   most of which we think are hard to exploit remotely.
27857   o Major bugfixes (security):
27858     - Fix a heap overflow bug where an adversary could cause heap
27859       corruption. This bug probably allows remote code execution
27860       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
27861       0.1.2.10-rc.
27862     - Prevent a denial-of-service attack by disallowing any
27863       zlib-compressed data whose compression factor is implausibly
27864       high. Fixes part of bug 2324; reported by "doorss".
27865     - Zero out a few more keys in memory before freeing them. Fixes
27866       bug 2384 and part of bug 2385. These key instances found by
27867       "cypherpunks", based on Andrew Case's report about being able
27868       to find sensitive data in Tor's memory space if you have enough
27869       permissions. Bugfix on 0.0.2pre9.
27871   o Major bugfixes (crashes):
27872     - Prevent calls to Libevent from inside Libevent log handlers.
27873       This had potential to cause a nasty set of crashes, especially
27874       if running Libevent with debug logging enabled, and running
27875       Tor with a controller watching for low-severity log messages.
27876       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
27877     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
27878       underflow errors there too. Fixes the other part of bug 2324.
27879     - Fix a bug where we would assert if we ever had a
27880       cached-descriptors.new file (or another file read directly into
27881       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
27882       on 0.2.1.25. Found by doorss.
27883     - Fix some potential asserts and parsing issues with grossly
27884       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
27885       Found by doorss.
27887   o Minor bugfixes (other):
27888     - Fix a bug with handling misformed replies to reverse DNS lookup
27889       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
27890       bug reported by doorss.
27891     - Fix compilation on mingw when a pthreads compatibility library
27892       has been installed. (We don't want to use it, so we shouldn't
27893       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
27894     - Fix a bug where we would declare that we had run out of virtual
27895       addresses when the address space was only half-exhausted. Bugfix
27896       on 0.1.2.1-alpha.
27897     - Correctly handle the case where AutomapHostsOnResolve is set but
27898       no virtual addresses are available. Fixes bug 2328; bugfix on
27899       0.1.2.1-alpha. Bug found by doorss.
27900     - Correctly handle wrapping around to when we run out of virtual
27901       address space. Found by cypherpunks, bugfix on 0.2.0.5-alpha.
27902     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
27903       because we built it with a too-old version of automake. Thus that
27904       release broke ./configure --enable-openbsd-malloc, which is popular
27905       among really fast exit relays on Linux.
27907   o Minor features:
27908     - Update to the January 1 2011 Maxmind GeoLite Country database.
27909     - Introduce output size checks on all of our decryption functions.
27911   o Build changes:
27912     - Tor does not build packages correctly with Automake 1.6 and earlier;
27913       added a check to Makefile.am to make sure that we're building with
27914       Automake 1.7 or later.
27917 Changes in version 0.2.2.20-alpha - 2010-12-17
27918   Tor 0.2.2.20-alpha does some code cleanup to reduce the risk of remotely
27919   exploitable bugs. We also fix a variety of other significant bugs,
27920   change the IP address for one of our directory authorities, and update
27921   the minimum version that Tor relays must run to join the network.
27923   o Major bugfixes:
27924     - Fix a remotely exploitable bug that could be used to crash instances
27925       of Tor remotely by overflowing on the heap. Remote-code execution
27926       hasn't been confirmed, but can't be ruled out. Everyone should
27927       upgrade. Bugfix on the 0.1.1 series and later.
27928     - Fix a bug that could break accounting on 64-bit systems with large
27929       time_t values, making them hibernate for impossibly long intervals.
27930       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
27931     - Fix a logic error in directory_fetches_from_authorities() that
27932       would cause all _non_-exits refusing single-hop-like circuits
27933       to fetch from authorities, when we wanted to have _exits_ fetch
27934       from authorities. Fixes more of 2097. Bugfix on 0.2.2.16-alpha;
27935       fix by boboper.
27936     - Fix a stream fairness bug that would cause newer streams on a given
27937       circuit to get preference when reading bytes from the origin or
27938       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
27939       introduced before the first Tor release, in svn revision r152.
27941   o Directory authority changes:
27942     - Change IP address and ports for gabelmoo (v3 directory authority).
27944   o Minor bugfixes:
27945     - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235.
27946       Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
27947     - Fix an off-by-one error in calculating some controller command
27948       argument lengths. Fortunately, this mistake is harmless since
27949       the controller code does redundant NUL termination too. Found by
27950       boboper. Bugfix on 0.1.1.1-alpha.
27951     - Do not dereference NULL if a bridge fails to build its
27952       extra-info descriptor. Found by an anonymous commenter on
27953       Trac. Bugfix on 0.2.2.19-alpha.
27955   o Minor features:
27956     - Update to the December 1 2010 Maxmind GeoLite Country database.
27957     - Directory authorities now reject relays running any versions of
27958       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
27959       known bugs that keep RELAY_EARLY cells from working on rendezvous
27960       circuits. Followup to fix for bug 2081.
27961     - Directory authorities now reject relays running any version of Tor
27962       older than 0.2.0.26-rc. That version is the earliest that fetches
27963       current directory information correctly. Fixes bug 2156.
27964     - Report only the top 10 ports in exit-port stats in order not to
27965       exceed the maximum extra-info descriptor length of 50 KB. Implements
27966       task 2196.
27969 Changes in version 0.2.1.28 - 2010-12-17
27970   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
27971   exploitable bugs. We also took this opportunity to change the IP address
27972   for one of our directory authorities, and to update the geoip database
27973   we ship.
27975   o Major bugfixes:
27976     - Fix a remotely exploitable bug that could be used to crash instances
27977       of Tor remotely by overflowing on the heap. Remote-code execution
27978       hasn't been confirmed, but can't be ruled out. Everyone should
27979       upgrade. Bugfix on the 0.1.1 series and later.
27981   o Directory authority changes:
27982     - Change IP address and ports for gabelmoo (v3 directory authority).
27984   o Minor features:
27985     - Update to the December 1 2010 Maxmind GeoLite Country database.
27988 Changes in version 0.2.1.27 - 2010-11-23
27989   Yet another OpenSSL security patch broke its compatibility with Tor:
27990   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
27991   also took this opportunity to fix several crash bugs, integrate a new
27992   directory authority, and update the bundled GeoIP database.
27994   o Major bugfixes:
27995     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
27996       No longer set the tlsext_host_name extension on server SSL objects;
27997       but continue to set it on client SSL objects. Our goal in setting
27998       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
27999       bugfix on 0.2.1.1-alpha.
28000     - Do not log messages to the controller while shrinking buffer
28001       freelists. Doing so would sometimes make the controller connection
28002       try to allocate a buffer chunk, which would mess up the internals
28003       of the freelist and cause an assertion failure. Fixes bug 1125;
28004       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
28005     - Learn our external IP address when we're a relay or bridge, even if
28006       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
28007       where we introduced bridge relays that don't need to publish to
28008       be useful. Fixes bug 2050.
28009     - Do even more to reject (and not just ignore) annotations on
28010       router descriptors received anywhere but from the cache. Previously
28011       we would ignore such annotations at first, but cache them to disk
28012       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
28013     - When you're using bridges and your network goes away and your
28014       bridges get marked as down, recover when you attempt a new socks
28015       connection (if the network is back), rather than waiting up to an
28016       hour to try fetching new descriptors for your bridges. Bugfix on
28017       0.2.0.3-alpha; fixes bug 1981.
28019   o Major features:
28020     - Move to the November 2010 Maxmind GeoLite country db (rather
28021       than the June 2009 ip-to-country GeoIP db) for our statistics that
28022       count how many users relays are seeing from each country. Now we'll
28023       have more accurate data, especially for many African countries.
28025   o New directory authorities:
28026     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
28027       authority.
28029   o Minor bugfixes:
28030     - Fix an assertion failure that could occur in directory caches or
28031       bridge users when using a very short voting interval on a testing
28032       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
28033       0.2.0.8-alpha.
28034     - Enforce multiplicity rules when parsing annotations. Bugfix on
28035       0.2.0.8-alpha. Found by piebeer.
28036     - Allow handshaking OR connections to take a full KeepalivePeriod
28037       seconds to handshake. Previously, we would close them after
28038       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
28039       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
28040       for analysis help.
28041     - When building with --enable-gcc-warnings on OpenBSD, disable
28042       warnings in system headers. This makes --enable-gcc-warnings
28043       pass on OpenBSD 4.8.
28045   o Minor features:
28046     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
28047       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
28048       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
28049       Servers can start sending this code when enough clients recognize
28050       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
28051     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
28052       Patch from mingw-san.
28054   o Removed files:
28055     - Remove the old debian/ directory from the main Tor distribution.
28056       The official Tor-for-debian git repository lives at the URL
28057       https://git.torproject.org/debian/tor.git
28058     - Stop shipping the old doc/website/ directory in the tarball. We
28059       changed the website format in late 2010, and what we shipped in
28060       0.2.1.26 really wasn't that useful anyway.
28063 Changes in version 0.2.2.19-alpha - 2010-11-22
28064   Yet another OpenSSL security patch broke its compatibility with Tor:
28065   Tor 0.2.2.19-alpha makes relays work with OpenSSL 0.9.8p and 1.0.0.b.
28067   o Major bugfixes:
28068     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
28069       No longer set the tlsext_host_name extension on server SSL objects;
28070       but continue to set it on client SSL objects. Our goal in setting
28071       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
28072       bugfix on 0.2.1.1-alpha.
28074   o Minor bugfixes:
28075     - Try harder not to exceed the maximum length of 50 KB when writing
28076       statistics to extra-info descriptors. This bug was triggered by very
28077       fast relays reporting exit-port, entry, and dirreq statistics.
28078       Reported by Olaf Selke. Bugfix on 0.2.2.1-alpha. Fixes bug 2183.
28079     - Publish a router descriptor even if generating an extra-info
28080       descriptor fails. Previously we would not publish a router
28081       descriptor without an extra-info descriptor; this can cause fast
28082       exit relays collecting exit-port statistics to drop from the
28083       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
28086 Changes in version 0.2.2.18-alpha - 2010-11-16
28087   Tor 0.2.2.18-alpha fixes several crash bugs that have been nagging
28088   us lately, makes unpublished bridge relays able to detect their IP
28089   address, and fixes a wide variety of other bugs to get us much closer
28090   to a stable release.
28092   o Major bugfixes:
28093     - Do even more to reject (and not just ignore) annotations on
28094       router descriptors received anywhere but from the cache. Previously
28095       we would ignore such annotations at first, but cache them to disk
28096       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
28097     - Do not log messages to the controller while shrinking buffer
28098       freelists. Doing so would sometimes make the controller connection
28099       try to allocate a buffer chunk, which would mess up the internals
28100       of the freelist and cause an assertion failure. Fixes bug 1125;
28101       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
28102     - Learn our external IP address when we're a relay or bridge, even if
28103       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
28104       where we introduced bridge relays that don't need to publish to
28105       be useful. Fixes bug 2050.
28106     - Maintain separate TLS contexts and certificates for incoming and
28107       outgoing connections in bridge relays. Previously we would use the
28108       same TLS contexts and certs for incoming and outgoing connections.
28109       Bugfix on 0.2.0.3-alpha; addresses bug 988.
28110     - Maintain separate identity keys for incoming and outgoing TLS
28111       contexts in bridge relays. Previously we would use the same
28112       identity keys for incoming and outgoing TLS contexts. Bugfix on
28113       0.2.0.3-alpha; addresses the other half of bug 988.
28114     - Avoid an assertion failure when we as an authority receive a
28115       duplicate upload of a router descriptor that we already have,
28116       but which we previously considered an obsolete descriptor.
28117       Fixes another case of bug 1776. Bugfix on 0.2.2.16-alpha.
28118     - Avoid a crash bug triggered by looking at a dangling pointer while
28119       setting the network status consensus. Found by Robert Ransom.
28120       Bugfix on 0.2.2.17-alpha. Fixes bug 2097.
28121     - Fix a logic error where servers that _didn't_ act as exits would
28122       try to keep their server lists more aggressively up to date than
28123       exits, when it was supposed to be the other way around. Bugfix
28124       on 0.2.2.17-alpha.
28126   o Minor bugfixes (on Tor 0.2.1.x and earlier):
28127     - When we're trying to guess whether we know our IP address as
28128       a relay, we would log various ways that we failed to guess
28129       our address, but never log that we ended up guessing it
28130       successfully. Now add a log line to help confused and anxious
28131       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
28132     - Bring the logic that gathers routerinfos and assesses the
28133       acceptability of circuits into line. This prevents a Tor OP from
28134       getting locked in a cycle of choosing its local OR as an exit for a
28135       path (due to a .exit request) and then rejecting the circuit because
28136       its OR is not listed yet. It also prevents Tor clients from using an
28137       OR running in the same instance as an exit (due to a .exit request)
28138       if the OR does not meet the same requirements expected of an OR
28139       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
28140     - Correctly describe errors that occur when generating a TLS object.
28141       Previously we would attribute them to a failure while generating a
28142       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
28143       bug 1994.
28144     - Enforce multiplicity rules when parsing annotations. Bugfix on
28145       0.2.0.8-alpha. Found by piebeer.
28146     - Fix warnings that newer versions of autoconf produced during
28147       ./autogen.sh. These warnings appear to be harmless in our case,
28148       but they were extremely verbose. Fixes bug 2020.
28150   o Minor bugfixes (on Tor 0.2.2.x):
28151     - Enable protection of small arrays whenever we build with gcc
28152       hardening features, not only when also building with warnings
28153       enabled. Fixes bug 2031; bugfix on 0.2.2.14-alpha. Reported by keb.
28155   o Minor features:
28156     - Make hidden services work better in private Tor networks by not
28157       requiring any uptime to join the hidden service descriptor
28158       DHT. Implements ticket 2088.
28159     - Rate-limit the "your application is giving Tor only an IP address"
28160       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
28161     - When AllowSingleHopExits is set, print a warning to explain to the
28162       relay operator why most clients are avoiding her relay.
28163     - Update to the November 1 2010 Maxmind GeoLite Country database.
28165   o Code simplifications and refactoring:
28166     - When we fixed bug 1038 we had to put in a restriction not to send
28167       RELAY_EARLY cells on rend circuits. This was necessary as long
28168       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
28169       active. Now remove this obsolete check. Resolves bug 2081.
28170     - Some options used different conventions for uppercasing of acronyms
28171       when comparing manpage and source. Fix those in favor of the
28172       manpage, as it makes sense to capitalize acronyms.
28173     - Remove the torrc.complete file. It hasn't been kept up to date
28174       and users will have better luck checking out the manpage.
28175     - Remove the obsolete "NoPublish" option; it has been flagged
28176       as obsolete and has produced a warning since 0.1.1.18-rc.
28177     - Remove everything related to building the expert bundle for OS X.
28178       It has confused many users, doesn't work right on OS X 10.6,
28179       and is hard to get rid of once installed. Resolves bug 1274.
28182 Changes in version 0.2.2.17-alpha - 2010-09-30
28183   Tor 0.2.2.17-alpha introduces a feature to make it harder for clients
28184   to use one-hop circuits (which can put the exit relays at higher risk,
28185   plus unbalance the network); fixes a big bug in bandwidth accounting
28186   for relays that want to limit their monthly bandwidth use; fixes a
28187   big pile of bugs in how clients tolerate temporary network failure;
28188   and makes our adaptive circuit build timeout feature (which improves
28189   client performance if your network is fast while not breaking things
28190   if your network is slow) better handle bad networks.
28192   o Major features:
28193     - Exit relays now try harder to block exit attempts from unknown
28194       relays, to make it harder for people to use them as one-hop proxies
28195       a la tortunnel. Controlled by the refuseunknownexits consensus
28196       parameter (currently enabled), or you can override it on your
28197       relay with the RefuseUnknownExits torrc option. Resolves bug 1751.
28199   o Major bugfixes (0.2.1.x and earlier):
28200     - Fix a bug in bandwidth accounting that could make us use twice
28201       the intended bandwidth when our interval start changes due to
28202       daylight saving time. Now we tolerate skew in stored vs computed
28203       interval starts: if the start of the period changes by no more than
28204       50% of the period's duration, we remember bytes that we transferred
28205       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
28206     - Always search the Windows system directory for system DLLs, and
28207       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
28208     - When you're using bridges and your network goes away and your
28209       bridges get marked as down, recover when you attempt a new socks
28210       connection (if the network is back), rather than waiting up to an
28211       hour to try fetching new descriptors for your bridges. Bugfix on
28212       0.2.0.3-alpha; fixes bug 1981.
28214   o Major bugfixes (on 0.2.2.x):
28215     - Fix compilation on Windows. Bugfix on 0.2.2.16-alpha; related to
28216       bug 1797.
28217     - Fix a segfault that could happen when operating a bridge relay with
28218       no GeoIP database set. Fixes bug 1964; bugfix on 0.2.2.15-alpha.
28219     - The consensus bandwidth-weights (used by clients to choose fast
28220       relays) entered an unexpected edge case in September where
28221       Exits were much scarcer than Guards, resulting in bad weight
28222       recommendations. Now we compute them using new constraints that
28223       should succeed in all cases. Also alter directory authorities to
28224       not include the bandwidth-weights line if they fail to produce
28225       valid values. Fixes bug 1952; bugfix on 0.2.2.10-alpha.
28226     - When weighting bridges during path selection, we used to trust
28227       the bandwidths they provided in their descriptor, only capping them
28228       at 10MB/s. This turned out to be problematic for two reasons:
28229       Bridges could claim to handle a lot more traffic then they
28230       actually would, thus making more clients pick them and have a
28231       pretty effective DoS attack. The other issue is that new bridges
28232       that might not have a good estimate for their bw capacity yet
28233       would not get used at all unless no other bridges are available
28234       to a client. Fixes bug 1912; bugfix on 0.2.2.7-alpha.
28236   o Major bugfixes (on the circuit build timeout feature, 0.2.2.x):
28237     - Ignore cannibalized circuits when recording circuit build times.
28238       This should provide for a minor performance improvement for hidden
28239       service users using 0.2.2.14-alpha, and should remove two spurious
28240       notice log messages. Bugfix on 0.2.2.14-alpha; fixes bug 1740.
28241     - Simplify the logic that causes us to decide if the network is
28242       unavailable for purposes of recording circuit build times. If we
28243       receive no cells whatsoever for the entire duration of a circuit's
28244       full measured lifetime, the network is probably down. Also ignore
28245       one-hop directory fetching circuit timeouts when calculating our
28246       circuit build times. These changes should hopefully reduce the
28247       cases where we see ridiculous circuit build timeouts for people
28248       with spotty wireless connections. Fixes part of bug 1772; bugfix
28249       on 0.2.2.2-alpha.
28250     - Prevent the circuit build timeout from becoming larger than
28251       the maximum build time we have ever seen. Also, prevent the time
28252       period for measurement circuits from becoming larger than twice that
28253       value. Fixes the other part of bug 1772; bugfix on 0.2.2.2-alpha.
28255   o Minor features:
28256     - When we run out of directory information such that we can't build
28257       circuits, but then get enough that we can build circuits, log when
28258       we actually construct a circuit, so the user has a better chance of
28259       knowing what's going on. Fixes bug 1362.
28260     - Be more generous with how much bandwidth we'd use up (with
28261       accounting enabled) before entering "soft hibernation". Previously,
28262       we'd refuse new connections and circuits once we'd used up 95% of
28263       our allotment. Now, we use up 95% of our allotment, AND make sure
28264       that we have no more than 500MB (or 3 hours of expected traffic,
28265       whichever is lower) remaining before we enter soft hibernation.
28266     - If we've configured EntryNodes and our network goes away and/or all
28267       our entrynodes get marked down, optimistically retry them all when
28268       a new socks application request appears. Fixes bug 1882.
28269     - Add some more defensive programming for architectures that can't
28270       handle unaligned integer accesses. We don't know of any actual bugs
28271       right now, but that's the best time to fix them. Fixes bug 1943.
28272     - Support line continuations in the torrc config file. If a line
28273       ends with a single backslash character, the newline is ignored, and
28274       the configuration value is treated as continuing on the next line.
28275       Resolves bug 1929.
28277   o Minor bugfixes (on 0.2.1.x and earlier):
28278     - For bandwidth accounting, calculate our expected bandwidth rate
28279       based on the time during which we were active and not in
28280       soft-hibernation during the last interval. Previously, we were
28281       also considering the time spent in soft-hibernation. If this
28282       was a long time, we would wind up underestimating our bandwidth
28283       by a lot, and skewing our wakeup time towards the start of the
28284       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
28286   o Minor bugfixes (on 0.2.2.x):
28287     - Resume generating CIRC FAILED REASON=TIMEOUT control port messages,
28288       which were disabled by the circuit build timeout changes in
28289       0.2.2.14-alpha. Bugfix on 0.2.2.14-alpha; fixes bug 1739.
28290     - Make sure we don't warn about missing bandwidth weights when
28291       choosing bridges or other relays not in the consensus. Bugfix on
28292       0.2.2.10-alpha; fixes bug 1805.
28293     - In our logs, do not double-report signatures from unrecognized
28294       authorities both as "from unknown authority" and "not
28295       present". Fixes bug 1956, bugfix on 0.2.2.16-alpha.
28298 Changes in version 0.2.2.16-alpha - 2010-09-17
28299   Tor 0.2.2.16-alpha fixes a variety of old stream fairness bugs (most
28300   evident at exit relays), and also continues to resolve all the little
28301   bugs that have been filling up trac lately.
28303   o Major bugfixes (stream-level fairness):
28304     - When receiving a circuit-level SENDME for a blocked circuit, try
28305       to package cells fairly from all the streams that had previously
28306       been blocked on that circuit. Previously, we had started with the
28307       oldest stream, and allowed each stream to potentially exhaust
28308       the circuit's package window. This gave older streams on any
28309       given circuit priority over newer ones. Fixes bug 1937. Detected
28310       originally by Camilo Viecco. This bug was introduced before the
28311       first Tor release, in svn commit r152: it is the new winner of
28312       the longest-lived bug prize.
28313     - When the exit relay got a circuit-level sendme cell, it started
28314       reading on the exit streams, even if had 500 cells queued in the
28315       circuit queue already, so the circuit queue just grew and grew in
28316       some cases. We fix this by not re-enabling reading on receipt of a
28317       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
28318       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
28319       "yetonetime".
28320     - Newly created streams were allowed to read cells onto circuits,
28321       even if the circuit's cell queue was blocked and waiting to drain.
28322       This created potential unfairness, as older streams would be
28323       blocked, but newer streams would gladly fill the queue completely.
28324       We add code to detect this situation and prevent any stream from
28325       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
28326       fixes bug 1298.
28328   o Minor features:
28329     - Update to the September 1 2010 Maxmind GeoLite Country database.
28330     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
28331       not. This would lead to a cookie that is still not group readable.
28332       Closes bug 1843. Suggested by katmagic.
28333     - When logging a rate-limited warning, we now mention how many messages
28334       got suppressed since the last warning.
28335     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
28336       do individual connection-level rate limiting of clients. The torrc
28337       config options with the same names trump the consensus params, if
28338       both are present. Replaces the old "bwconnrate" and "bwconnburst"
28339       consensus params which were broken from 0.2.2.7-alpha through
28340       0.2.2.14-alpha. Closes bug 1947.
28341     - When a router changes IP address or port, authorities now launch
28342       a new reachability test for it. Implements ticket 1899.
28343     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
28344       2 no signature, 4 required" messages about consensus signatures
28345       easier to read, and make sure they get logged at the same severity
28346       as the messages explaining which keys are which. Fixes bug 1290.
28347     - Don't warn when we have a consensus that we can't verify because
28348       of missing certificates, unless those certificates are ones
28349       that we have been trying and failing to download. Fixes bug 1145.
28350     - If you configure your bridge with a known identity fingerprint,
28351       and the bridge authority is unreachable (as it is in at least
28352       one country now), fall back to directly requesting the descriptor
28353       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
28354       closes bug 1138.
28355     - When building with --enable-gcc-warnings on OpenBSD, disable
28356       warnings in system headers. This makes --enable-gcc-warnings
28357       pass on OpenBSD 4.8.
28359   o Minor bugfixes (on 0.2.1.x and earlier):
28360     - Authorities will now attempt to download consensuses if their
28361       own efforts to make a live consensus have failed. This change
28362       means authorities that restart will fetch a valid consensus, and
28363       it means authorities that didn't agree with the current consensus
28364       will still fetch and serve it if it has enough signatures. Bugfix
28365       on 0.2.0.9-alpha; fixes bug 1300.
28366     - Ensure DNS requests launched by "RESOLVE" commands from the
28367       controller respect the __LeaveStreamsUnattached setconf options. The
28368       same goes for requests launched via DNSPort or transparent
28369       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
28370     - Allow handshaking OR connections to take a full KeepalivePeriod
28371       seconds to handshake. Previously, we would close them after
28372       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
28373       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
28374       for analysis help.
28375     - Rate-limit "Failed to hand off onionskin" warnings.
28376     - Never relay a cell for a circuit we have already destroyed.
28377       Between marking a circuit as closeable and finally closing it,
28378       it may have been possible for a few queued cells to get relayed,
28379       even though they would have been immediately dropped by the next
28380       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
28381     - Never queue a cell for a circuit that's already been marked
28382       for close.
28383     - Never vote for a server as "Running" if we have a descriptor for
28384       it claiming to be hibernating, and that descriptor was published
28385       more recently than our last contact with the server. Bugfix on
28386       0.2.0.3-alpha; fixes bug 911.
28387     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
28388       bug 1848.
28390   o Minor bugfixes (on 0.2.2.x):
28391     - Fix a regression introduced in 0.2.2.7-alpha that marked relays
28392       down if a directory fetch fails and you've configured either
28393       bridges or EntryNodes. The intent was to mark the relay as down
28394       _unless_ you're using bridges or EntryNodes, since if you are
28395       then you could quickly run out of entry points.
28396     - Fix the Windows directory-listing code. A bug introduced in
28397       0.2.2.14-alpha could make Windows directory servers forget to load
28398       some of their cached v2 networkstatus files.
28399     - Really allow clients to use relays as bridges. Fixes bug 1776;
28400       bugfix on 0.2.2.15-alpha.
28401     - Demote a warn to info that happens when the CellStatistics option
28402       was just enabled. Bugfix on 0.2.2.15-alpha; fixes bug 1921.
28403       Reported by Moritz Bartl.
28404     - On Windows, build correctly either with or without Unicode support.
28405       This is necessary so that Tor can support fringe platforms like
28406       Windows 98 (which has no Unicode), or Windows CE (which has no
28407       non-Unicode). Bugfix on 0.2.2.14-alpha; fixes bug 1797.
28409   o Testing
28410     - Add a unit test for cross-platform directory-listing code.
28413 Changes in version 0.2.2.15-alpha - 2010-08-18
28414   Tor 0.2.2.15-alpha fixes a big bug in hidden service availability,
28415   fixes a variety of other bugs that were preventing performance
28416   experiments from moving forward, fixes several bothersome memory leaks,
28417   and generally closes a lot of smaller bugs that have been filling up
28418   trac lately.
28420   o Major bugfixes:
28421     - Stop assigning the HSDir flag to relays that disable their
28422       DirPort (and thus will refuse to answer directory requests). This
28423       fix should dramatically improve the reachability of hidden services:
28424       hidden services and hidden service clients pick six HSDir relays
28425       to store and retrieve the hidden service descriptor, and currently
28426       about half of the HSDir relays will refuse to work. Bugfix on
28427       0.2.0.10-alpha; fixes part of bug 1693.
28428     - The PerConnBWRate and Burst config options, along with the
28429       bwconnrate and bwconnburst consensus params, initialized each conn's
28430       token bucket values only when the connection is established. Now we
28431       update them if the config options change, and update them every time
28432       we get a new consensus. Otherwise we can encounter an ugly edge
28433       case where we initialize an OR conn to client-level bandwidth,
28434       but then later the relay joins the consensus and we leave it
28435       throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.
28436     - Fix a regression that caused Tor to rebind its ports if it receives
28437       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
28439   o Major features:
28440     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
28441       should give us approximately 40-50% more Guard-flagged nodes,
28442       improving the anonymity the Tor network can provide and also
28443       decreasing the dropoff in throughput that relays experience when
28444       they first get the Guard flag.
28445     - Allow enabling or disabling the *Statistics config options while
28446       Tor is running.
28448   o Minor features:
28449     - Update to the August 1 2010 Maxmind GeoLite Country database.
28450     - Have the controller interface give a more useful message than
28451       "Internal Error" in response to failed GETINFO requests.
28452     - Warn when the same option is provided more than once in a torrc
28453       file, on the command line, or in a single SETCONF statement, and
28454       the option is one that only accepts a single line. Closes bug 1384.
28455     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
28456       Patch from mingw-san.
28457     - Add support for the country code "{??}" in torrc options like
28458       ExcludeNodes, to indicate all routers of unknown country. Closes
28459       bug 1094.
28460     - Relays report the number of bytes spent on answering directory
28461       requests in extra-info descriptors similar to {read,write}-history.
28462       Implements enhancement 1790.
28464   o Minor bugfixes (on 0.2.1.x and earlier):
28465     - Complain if PublishServerDescriptor is given multiple arguments that
28466       include 0 or 1. This configuration will be rejected in the future.
28467       Bugfix on 0.2.0.1-alpha; closes bug 1107.
28468     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
28469       Bugfix on 0.2.0.13-alpha; closes bug 928.
28470     - Change "Application request when we're believed to be offline."
28471       notice to "Application request when we haven't used client
28472       functionality lately.", to clarify that it's not an error. Bugfix
28473       on 0.0.9.3; fixes bug 1222.
28474     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
28475       would return "551 Internal error" rather than "552 Unrecognized key
28476       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
28477     - Users can't configure a regular relay to be their bridge. It didn't
28478       work because when Tor fetched the bridge descriptor, it found
28479       that it already had it, and didn't realize that the purpose of the
28480       descriptor had changed. Now we replace routers with a purpose other
28481       than bridge with bridge descriptors when fetching them. Bugfix on
28482       0.1.1.9-alpha. Bug 1776 not yet fixed because now we immediately
28483       refetch the descriptor with router purpose 'general', disabling
28484       it as a bridge.
28485     - Fix a rare bug in rend_fn unit tests: we would fail a test when
28486       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
28487       on 0.2.0.10-alpha; fixes bug 1808.
28488     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
28489       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
28490       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
28491       Servers can start sending this code when enough clients recognize
28492       it. Also update the spec to reflect this new reason. Bugfix on
28493       0.1.0.1-rc; fixes part of bug 1793.
28494     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
28495       when we switch from being a public relay to a bridge. Otherwise
28496       there will still be clients that see the relay in their consensus,
28497       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes bug
28498       932 even more.
28499     - Instead of giving an assertion failure on an internal mismatch
28500       on estimated freelist size, just log a BUG warning and try later.
28501       Mitigates but does not fix bug 1125.
28502     - Fix an assertion failure that could occur in caches or bridge users
28503       when using a very short voting interval on a testing network.
28504       Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
28506   o Minor bugfixes (on 0.2.2.x):
28507     - Alter directory authorities to always consider Exit-flagged nodes
28508       as potential Guard nodes in their votes. The actual decision to
28509       use Exits as Guards is done in the consensus bandwidth weights.
28510       Fixes bug 1294; bugfix on 0.2.2.10-alpha.
28511     - When the controller is reporting the purpose of circuits that
28512       didn't finish building before the circuit build timeout, it was
28513       printing UNKNOWN_13. Now print EXPIRED. Bugfix on 0.2.2.14-alpha.
28514     - Our libevent version parsing code couldn't handle versions like
28515       1.4.14b-stable and incorrectly warned the user about using an
28516       old and broken version of libevent. Treat 1.4.14b-stable like
28517       1.4.14-stable when parsing the version. Fixes bug 1731; bugfix
28518       on 0.2.2.1-alpha.
28519     - Don't use substitution references like $(VAR:MOD) when
28520       $(asciidoc_files) is empty -- make(1) on NetBSD transforms
28521       '$(:x)' to 'x' rather than the empty string. This bites us in
28522       doc/ when configured with --disable-asciidoc. Bugfix on
28523       0.2.2.9-alpha; fixes bug 1773.
28524     - Remove a spurious hidden service server-side log notice about
28525       "Ancient non-dirty circuits". Bugfix on 0.2.2.14-alpha; fixes
28526       bug 1741.
28527     - Fix compilation with --with-dmalloc set. Bugfix on 0.2.2.6-alpha;
28528       fixes bug 1832.
28529     - Correctly report written bytes on linked connections. Found while
28530       implementing 1790. Bugfix on 0.2.2.4-alpha.
28531     - Fix three memory leaks: one in circuit_build_times_parse_state(),
28532       one in dirvote_add_signatures_to_pending_consensus(), and one every
28533       time we parse a v3 network consensus. Bugfixes on 0.2.2.14-alpha,
28534       0.2.2.6-alpha, and 0.2.2.10-alpha respectively; fixes bug 1831.
28536   o Code simplifications and refactoring:
28537     - Take a first step towards making or.h smaller by splitting out
28538       function definitions for all source files in src/or/. Leave
28539       structures and defines in or.h for now.
28540     - Remove a bunch of unused function declarations as well as a block of
28541       #if 0'd code from the unit tests. Closes bug 1824.
28542     - New unit tests for exit-port history statistics; refactored exit
28543       statistics code to be more easily tested.
28544     - Remove the old debian/ directory from the main Tor distribution.
28545       The official Tor-for-debian git repository lives at the URL
28546       https://git.torproject.org/debian/tor.git
28549 Changes in version 0.2.2.14-alpha - 2010-07-12
28550   Tor 0.2.2.14-alpha greatly improves client-side handling of
28551   circuit build timeouts, which are used to estimate speed and improve
28552   performance. We also move to a much better GeoIP database, port Tor to
28553   Windows CE, introduce new compile flags that improve code security,
28554   add an eighth v3 directory authority, and address a lot of more
28555   minor issues.
28557   o Major bugfixes:
28558     - Tor directory authorities no longer crash when started with a
28559       cached-microdesc-consensus file in their data directory. Bugfix
28560       on 0.2.2.6-alpha; fixes bug 1532.
28561     - Treat an unset $HOME like an empty $HOME rather than triggering an
28562       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
28563     - Ignore negative and large circuit build timeout values that can
28564       happen during a suspend or hibernate. These values caused various
28565       asserts to fire. Bugfix on 0.2.2.2-alpha; fixes bug 1245.
28566     - Alter calculation of Pareto distribution parameter 'Xm' for
28567       Circuit Build Timeout learning to use the weighted average of the
28568       top N=3 modes (because we have three entry guards). Considering
28569       multiple modes should improve the timeout calculation in some cases,
28570       and prevent extremely high timeout values. Bugfix on 0.2.2.2-alpha;
28571       fixes bug 1335.
28572     - Alter calculation of Pareto distribution parameter 'Alpha' to use a
28573       right censored distribution model. This approach improves over the
28574       synthetic timeout generation approach that was producing insanely
28575       high timeout values. Now we calculate build timeouts using truncated
28576       times. Bugfix on 0.2.2.2-alpha; fixes bugs 1245 and 1335.
28577     - Do not close circuits that are under construction when they reach
28578       the circuit build timeout. Instead, leave them building (but do not
28579       use them) for up until the time corresponding to the 95th percentile
28580       on the Pareto CDF or 60 seconds, whichever is greater. This is done
28581       to provide better data for the new Pareto model. This percentile
28582       can be controlled by the consensus.
28584   o Major features:
28585     - Move to the June 2010 Maxmind GeoLite country db (rather than the
28586       June 2009 ip-to-country GeoIP db) for our statistics that count
28587       how many users relays are seeing from each country. Now we have
28588       more accurate data for many African countries.
28589     - Port Tor to build and run correctly on Windows CE systems, using
28590       the wcecompat library. Contributed by Valerio Lupi.
28591     - New "--enable-gcc-hardening" ./configure flag (off by default)
28592       to turn on gcc compile time hardening options. It ensures
28593       that signed ints have defined behavior (-fwrapv), enables
28594       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
28595       with canaries (-fstack-protector-all), turns on ASLR protection if
28596       supported by the kernel (-fPIE, -pie), and adds additional security
28597       related warnings. Verified to work on Mac OS X and Debian Lenny.
28598     - New "--enable-linker-hardening" ./configure flag (off by default)
28599       to turn on ELF specific hardening features (relro, now). This does
28600       not work with Mac OS X or any other non-ELF binary format.
28602   o New directory authorities:
28603     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
28604       authority.
28606   o Minor features:
28607     - New config option "WarnUnsafeSocks 0" disables the warning that
28608       occurs whenever Tor receives a socks handshake using a version of
28609       the socks protocol that can only provide an IP address (rather
28610       than a hostname). Setups that do DNS locally over Tor are fine,
28611       and we shouldn't spam the logs in that case.
28612     - Convert the HACKING file to asciidoc, and add a few new sections
28613       to it, explaining how we use Git, how we make changelogs, and
28614       what should go in a patch.
28615     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
28616       event, to give information on the current rate of circuit timeouts
28617       over our stored history.
28618     - Add ability to disable circuit build time learning via consensus
28619       parameter and via a LearnCircuitBuildTimeout config option. Also
28620       automatically disable circuit build time calculation if we are
28621       either a AuthoritativeDirectory, or if we fail to write our state
28622       file. Fixes bug 1296.
28623     - More gracefully handle corrupt state files, removing asserts
28624       in favor of saving a backup and resetting state.
28625     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
28626       system headers.
28628   o Minor bugfixes:
28629     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
28630       enabled.
28631     - When a2x fails, mention that the user could disable manpages instead
28632       of trying to fix their asciidoc installation.
28633     - Where available, use Libevent 2.0's periodic timers so that our
28634       once-per-second cleanup code gets called even more closely to
28635       once per second than it would otherwise. Fixes bug 943.
28636     - If you run a bridge that listens on multiple IP addresses, and
28637       some user configures a bridge address that uses a different IP
28638       address than your bridge writes in its router descriptor, and the
28639       user doesn't specify an identity key, their Tor would discard the
28640       descriptor because "it isn't one of our configured bridges", and
28641       fail to bootstrap. Now believe the descriptor and bootstrap anyway.
28642       Bugfix on 0.2.0.3-alpha.
28643     - If OpenSSL fails to make a duplicate of a private or public key, log
28644       an error message and try to exit cleanly. May help with debugging
28645       if bug 1209 ever remanifests.
28646     - Save a couple bytes in memory allocation every time we escape
28647       certain characters in a string. Patch from Florian Zumbiehl.
28648     - Make it explicit that we don't cannibalize one-hop circuits. This
28649       happens in the wild, but doesn't turn out to be a problem because
28650       we fortunately don't use those circuits. Many thanks to outofwords
28651       for the initial analysis and to swissknife who confirmed that
28652       two-hop circuits are actually created.
28653     - Make directory mirrors report non-zero dirreq-v[23]-shares again.
28654       Fixes bug 1564; bugfix on 0.2.2.9-alpha.
28655     - Eliminate a case where a circuit build time warning was displayed
28656       after network connectivity resumed. Bugfix on 0.2.2.2-alpha.
28659 Changes in version 0.2.1.26 - 2010-05-02
28660   Tor 0.2.1.26 addresses the recent connection and memory overload
28661   problems we've been seeing on relays, especially relays with their
28662   DirPort open. If your relay has been crashing, or you turned it off
28663   because it used too many resources, give this release a try.
28665   This release also fixes yet another instance of broken OpenSSL libraries
28666   that was causing some relays to drop out of the consensus.
28668   o Major bugfixes:
28669     - Teach relays to defend themselves from connection overload. Relays
28670       now close idle circuits early if it looks like they were intended
28671       for directory fetches. Relays are also more aggressive about closing
28672       TLS connections that have no circuits on them. Such circuits are
28673       unlikely to be re-used, and tens of thousands of them were piling
28674       up at the fast relays, causing the relays to run out of sockets
28675       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
28676       their directory fetches over TLS).
28677     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
28678       that claim to be earlier than 0.9.8m, but which have in reality
28679       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
28680       behavior. Possible fix for some cases of bug 1346.
28681     - Directory mirrors were fetching relay descriptors only from v2
28682       directory authorities, rather than v3 authorities like they should.
28683       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
28684       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
28686   o Minor bugfixes:
28687     - Finally get rid of the deprecated and now harmful notion of "clique
28688       mode", where directory authorities maintain TLS connections to
28689       every other relay.
28691   o Testsuite fixes:
28692     - In the util/threads test, no longer free the test_mutex before all
28693       worker threads have finished. Bugfix on 0.2.1.6-alpha.
28694     - The master thread could starve the worker threads quite badly on
28695       certain systems, causing them to run only partially in the allowed
28696       window. This resulted in test failures. Now the master thread sleeps
28697       occasionally for a few microseconds while the two worker-threads
28698       compete for the mutex. Bugfix on 0.2.0.1-alpha.
28701 Changes in version 0.2.2.13-alpha - 2010-04-24
28702   Tor 0.2.2.13-alpha addresses the recent connection and memory overload
28703   problems we've been seeing on relays, especially relays with their
28704   DirPort open. If your relay has been crashing, or you turned it off
28705   because it used too many resources, give this release a try.
28707   o Major bugfixes:
28708     - Teach relays to defend themselves from connection overload. Relays
28709       now close idle circuits early if it looks like they were intended
28710       for directory fetches. Relays are also more aggressive about closing
28711       TLS connections that have no circuits on them. Such circuits are
28712       unlikely to be re-used, and tens of thousands of them were piling
28713       up at the fast relays, causing the relays to run out of sockets
28714       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
28715       their directory fetches over TLS).
28717   o Minor features:
28718     - Finally get rid of the deprecated and now harmful notion of "clique
28719       mode", where directory authorities maintain TLS connections to
28720       every other relay.
28721     - Directory authorities now do an immediate reachability check as soon
28722       as they hear about a new relay. This change should slightly reduce
28723       the time between setting up a relay and getting listed as running
28724       in the consensus. It should also improve the time between setting
28725       up a bridge and seeing use by bridge users.
28726     - Directory authorities no longer launch a TLS connection to every
28727       relay as they startup. Now that we have 2k+ descriptors cached,
28728       the resulting network hiccup is becoming a burden. Besides,
28729       authorities already avoid voting about Running for the first half
28730       hour of their uptime.
28733 Changes in version 0.2.2.12-alpha - 2010-04-20
28734   Tor 0.2.2.12-alpha fixes a critical bug in how directory authorities
28735   handle and vote on descriptors. It was causing relays to drop out of
28736   the consensus.
28738   o Major bugfixes:
28739     - Many relays have been falling out of the consensus lately because
28740       not enough authorities know about their descriptor for them to get
28741       a majority of votes. When we deprecated the v2 directory protocol,
28742       we got rid of the only way that v3 authorities can hear from each
28743       other about other descriptors. Now authorities examine every v3
28744       vote for new descriptors, and fetch them from that authority. Bugfix
28745       on 0.2.1.23.
28746     - Fix two typos in tor_vasprintf() that broke the compile on Windows,
28747       and a warning in or.h related to bandwidth_weight_rule_t that
28748       prevented clean compile on OS X. Fixes bug 1363; bugfix on
28749       0.2.2.11-alpha.
28750     - Fix a segfault on relays when DirReqStatistics is enabled
28751       and 24 hours pass. Bug found by keb. Fixes bug 1365; bugfix on
28752       0.2.2.11-alpha.
28754   o Minor bugfixes:
28755     - Demote a confusing TLS warning that relay operators might get when
28756       someone tries to talk to their OrPort. It is neither the operator's
28757       fault nor can they do anything about it. Fixes bug 1364; bugfix
28758       on 0.2.0.14-alpha.
28761 Changes in version 0.2.2.11-alpha - 2010-04-15
28762   Tor 0.2.2.11-alpha fixes yet another instance of broken OpenSSL
28763   libraries that was causing some relays to drop out of the consensus.
28765   o Major bugfixes:
28766     - Directory mirrors were fetching relay descriptors only from v2
28767       directory authorities, rather than v3 authorities like they should.
28768       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
28769       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
28770     - Fix a parsing error that made every possible value of
28771       CircPriorityHalflifeMsec get treated as "1 msec". Bugfix
28772       on 0.2.2.7-alpha. Rename CircPriorityHalflifeMsec to
28773       CircuitPriorityHalflifeMsec, so authorities can tell newer relays
28774       about the option without breaking older ones.
28775     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
28776       that claim to be earlier than 0.9.8m, but which have in reality
28777       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
28778       behavior. Possible fix for some cases of bug 1346.
28780   o Minor features:
28781     - Experiment with a more aggressive approach to preventing clients
28782       from making one-hop exit streams. Exit relays who want to try it
28783       out can set "RefuseUnknownExits 1" in their torrc, and then look
28784       for "Attempt by %s to open a stream" log messages. Let us know
28785       how it goes!
28786     - Add support for statically linking zlib by specifying
28787       --enable-static-zlib, to go with our support for statically linking
28788       openssl and libevent. Resolves bug 1358.
28790   o Minor bugfixes:
28791     - Fix a segfault that happens whenever a Tor client that is using
28792       libevent2's bufferevents gets a hup signal. Bugfix on 0.2.2.5-alpha;
28793       fixes bug 1341.
28794     - When we cleaned up the contrib/tor-exit-notice.html file, we left
28795       out the first line. Fixes bug 1295.
28796     - When building the manpage from a tarball, we required asciidoc, but
28797       the asciidoc -> roff/html conversion was already done for the
28798       tarball. Make 'make' complain only when we need asciidoc (either
28799       because we're compiling directly from git, or because we altered
28800       the asciidoc manpage in the tarball). Bugfix on 0.2.2.9-alpha.
28801     - When none of the directory authorities vote on any params, Tor
28802       segfaulted when trying to make the consensus from the votes. We
28803       didn't trigger the bug in practice, because authorities do include
28804       params in their votes. Bugfix on 0.2.2.10-alpha; fixes bug 1322.
28806   o Testsuite fixes:
28807     - In the util/threads test, no longer free the test_mutex before all
28808       worker threads have finished. Bugfix on 0.2.1.6-alpha.
28809     - The master thread could starve the worker threads quite badly on
28810       certain systems, causing them to run only partially in the allowed
28811       window. This resulted in test failures. Now the master thread sleeps
28812       occasionally for a few microseconds while the two worker-threads
28813       compete for the mutex. Bugfix on 0.2.0.1-alpha.
28816 Changes in version 0.2.2.10-alpha - 2010-03-07
28817   Tor 0.2.2.10-alpha fixes a regression introduced in 0.2.2.9-alpha that
28818   could prevent relays from guessing their IP address correctly. It also
28819   starts the groundwork for another client-side performance boost, since
28820   currently we're not making efficient use of relays that have both the
28821   Guard flag and the Exit flag.
28823   o Major bugfixes:
28824     - Fix a regression from our patch for bug 1244 that caused relays
28825       to guess their IP address incorrectly if they didn't set Address
28826       in their torrc and/or their address fails to resolve. Bugfix on
28827       0.2.2.9-alpha; fixes bug 1269.
28829   o Major features (performance):
28830     - Directory authorities now compute consensus weightings that instruct
28831       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
28832       and no flag. Clients that use these weightings will distribute
28833       network load more evenly across these different relay types. The
28834       weightings are in the consensus so we can change them globally in
28835       the future. Extra thanks to "outofwords" for finding some nasty
28836       security bugs in the first implementation of this feature.
28838   o Minor features (performance):
28839     - Always perform router selections using weighted relay bandwidth,
28840       even if we don't need a high capacity circuit at the time. Non-fast
28841       circuits now only differ from fast ones in that they can use relays
28842       not marked with the Fast flag. This "feature" could turn out to
28843       be a horrible bug; we should investigate more before it goes into
28844       a stable release.
28846   o Minor features:
28847     - Allow disabling building of the manpages. Skipping the manpage
28848       speeds up the build considerably.
28850   o Minor bugfixes (on 0.2.2.x):
28851     - Fix a memleak in the EXTENDCIRCUIT logic. Spotted by coverity.
28852       Bugfix on 0.2.2.9-alpha.
28853     - Disallow values larger than INT32_MAX for PerConnBWRate|Burst
28854       config option. Bugfix on 0.2.2.7-alpha.
28855     - Ship the asciidoc-helper file in the tarball, so that people can
28856       build from source if they want to, and touching the .1.txt files
28857       doesn't break the build. Bugfix on 0.2.2.9-alpha.
28859   o Minor bugfixes (on 0.2.1.x or earlier):
28860     - Fix a dereference-then-NULL-check sequence when publishing
28861       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
28862       bug 1255.
28863     - Fix another dereference-then-NULL-check sequence. Bugfix on
28864       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
28865     - Make sure we treat potentially not NUL-terminated strings correctly.
28866       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
28868   o Code simplifications and refactoring:
28869     - Fix some urls in the exit notice file and make it XHTML1.1 strict
28870       compliant. Based on a patch from Christian Kujau.
28871     - Don't use sed in asciidoc-helper anymore.
28872     - Make the build process fail if asciidoc cannot be found and
28873       building with asciidoc isn't disabled.
28876 Changes in version 0.2.2.9-alpha - 2010-02-22
28877   Tor 0.2.2.9-alpha makes Tor work again on the latest OS X, updates the
28878   location of a directory authority, and cleans up a bunch of small bugs.
28880   o Directory authority changes:
28881     - Change IP address for dannenberg (v3 directory authority), and
28882       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
28883       service directory authority) from the list.
28885   o Major bugfixes:
28886     - Make Tor work again on the latest OS X: when deciding whether to
28887       use strange flags to turn TLS renegotiation on, detect the OpenSSL
28888       version at run-time, not compile time. We need to do this because
28889       Apple doesn't update its dev-tools headers when it updates its
28890       libraries in a security patch.
28891     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
28892       that could happen on 32-bit platforms with 64-bit time_t. Also fix
28893       a memory leak when requesting a hidden service descriptor we've
28894       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
28895       by aakova.
28896     - Authorities could be tricked into giving out the Exit flag to relays
28897       that didn't allow exiting to any ports. This bug could screw
28898       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
28899       1238. Bug discovered by Martin Kowalczyk.
28900     - When freeing a session key, zero it out completely. We only zeroed
28901       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
28902       patched by ekir. Fixes bug 1254.
28904   o Minor bugfixes:
28905     - Fix static compilation by listing the openssl libraries in the right
28906       order. Bugfix on Tor 0.2.2.8-alpha; fixes bug 1237.
28907     - Resume handling .exit hostnames in a special way: originally we
28908       stripped the .exit part and used the requested exit relay. In
28909       0.2.2.1-alpha we stopped treating them in any special way, meaning
28910       if you use a .exit address then Tor will pass it on to the exit
28911       relay. Now we reject the .exit stream outright, since that behavior
28912       might be more expected by the user. Found and diagnosed by Scott
28913       Bennett and Downie on or-talk.
28914     - Don't spam the controller with events when we have no file
28915       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
28916       for log messages was already solved from bug 748.)
28917     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
28918       "memcpyfail".
28919     - Make the DNSPort option work with libevent 2.x. Don't alter the
28920       behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
28921     - Emit a GUARD DROPPED controller event for a case we missed.
28922     - Make more fields in the controller protocol case-insensitive, since
28923       control-spec.txt said they were.
28924     - Refactor resolve_my_address() to not use gethostbyname() anymore.
28925       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
28926     - Fix a spec conformance issue: the network-status-version token
28927       must be the first token in a v3 consensus or vote. Discovered by
28928       parakeep. Bugfix on 0.2.0.3-alpha.
28930   o Code simplifications and refactoring:
28931     - Generate our manpage and HTML documentation using Asciidoc. This
28932       change should make it easier to maintain the documentation, and
28933       produce nicer HTML.
28934     - Remove the --enable-iphone option. According to reports from Marco
28935       Bonetti, Tor builds fine without any special tweaking on recent
28936       iPhone SDK versions.
28937     - Removed some unnecessary files from the source distribution. The
28938       AUTHORS file has now been merged into the people page on the
28939       website. The roadmaps and design doc can now be found in the
28940       projects directory in svn.
28941     - Enabled various circuit build timeout constants to be controlled
28942       by consensus parameters. Also set better defaults for these
28943       parameters based on experimentation on broadband and simulated
28944       high latency links.
28946   o Minor features:
28947     - The 'EXTENDCIRCUIT' control port command can now be used with
28948       a circ id of 0 and no path. This feature will cause Tor to build
28949       a new 'fast' general purpose circuit using its own path selection
28950       algorithms.
28951     - Added a BUILDTIMEOUT_SET controller event to describe changes
28952       to the circuit build timeout.
28953     - Future-proof the controller protocol a bit by ignoring keyword
28954       arguments we do not recognize.
28955     - Expand homedirs passed to tor-checkkey. This should silence a
28956       coverity complaint about passing a user-supplied string into
28957       open() without checking it.
28960 Changes in version 0.2.1.25 - 2010-03-16
28961   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
28962   prevent relays from guessing their IP address correctly. It also fixes
28963   several minor potential security bugs.
28965   o Major bugfixes:
28966     - Fix a regression from our patch for bug 1244 that caused relays
28967       to guess their IP address incorrectly if they didn't set Address
28968       in their torrc and/or their address fails to resolve. Bugfix on
28969       0.2.1.23; fixes bug 1269.
28970     - When freeing a session key, zero it out completely. We only zeroed
28971       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
28972       patched by ekir. Fixes bug 1254.
28974   o Minor bugfixes:
28975     - Fix a dereference-then-NULL-check sequence when publishing
28976       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
28977       bug 1255.
28978     - Fix another dereference-then-NULL-check sequence. Bugfix on
28979       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
28980     - Make sure we treat potentially not NUL-terminated strings correctly.
28981       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
28985 Changes in version 0.2.1.24 - 2010-02-21
28986   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
28987   for sure!
28989   o Minor bugfixes:
28990     - Work correctly out-of-the-box with even more vendor-patched versions
28991       of OpenSSL. In particular, make it so Debian and OS X don't need
28992       customized patches to run/build.
28995 Changes in version 0.2.1.23 - 2010-02-13
28996   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
28997   again on the latest OS X, and updates the location of a directory
28998   authority.
29000   o Major bugfixes (performance):
29001     - We were selecting our guards uniformly at random, and then weighting
29002       which of our guards we'd use uniformly at random. This imbalance
29003       meant that Tor clients were severely limited on throughput (and
29004       probably latency too) by the first hop in their circuit. Now we
29005       select guards weighted by currently advertised bandwidth. We also
29006       automatically discard guards picked using the old algorithm. Fixes
29007       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
29009   o Major bugfixes:
29010     - Make Tor work again on the latest OS X: when deciding whether to
29011       use strange flags to turn TLS renegotiation on, detect the OpenSSL
29012       version at run-time, not compile time. We need to do this because
29013       Apple doesn't update its dev-tools headers when it updates its
29014       libraries in a security patch.
29015     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
29016       that could happen on 32-bit platforms with 64-bit time_t. Also fix
29017       a memory leak when requesting a hidden service descriptor we've
29018       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
29019       by aakova.
29021   o Directory authority changes:
29022     - Change IP address for dannenberg (v3 directory authority), and
29023       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
29024       service directory authority) from the list.
29026   o Minor bugfixes:
29027     - Refactor resolve_my_address() to not use gethostbyname() anymore.
29028       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
29030   o Minor features:
29031     - Avoid a mad rush at the beginning of each month when each client
29032       rotates half of its guards. Instead we spread the rotation out
29033       throughout the month, but we still avoid leaving a precise timestamp
29034       in the state file about when we first picked the guard. Improves
29035       over the behavior introduced in 0.1.2.17.
29038 Changes in version 0.2.2.8-alpha - 2010-01-26
29039   Tor 0.2.2.8-alpha fixes a crash bug in 0.2.2.7-alpha that has been
29040   causing bridge relays to disappear. If you're running a bridge,
29041   please upgrade.
29043   o Major bugfixes:
29044     - Fix a memory corruption bug on bridges that occurred during the
29045       inclusion of stats data in extra-info descriptors. Also fix the
29046       interface for geoip_get_bridge_stats* to prevent similar bugs in
29047       the future. Diagnosis by Tas, patch by Karsten and Sebastian.
29048       Fixes bug 1208; bugfix on 0.2.2.7-alpha.
29050   o Minor bugfixes:
29051     - Ignore OutboundBindAddress when connecting to localhost.
29052       Connections to localhost need to come _from_ localhost, or else
29053       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
29054       refuse to listen.
29057 Changes in version 0.2.2.7-alpha - 2010-01-19
29058   Tor 0.2.2.7-alpha fixes a huge client-side performance bug, as well
29059   as laying the groundwork for further relay-side performance fixes. It
29060   also starts cleaning up client behavior with respect to the EntryNodes,
29061   ExitNodes, and StrictNodes config options.
29063   This release also rotates two directory authority keys, due to a
29064   security breach of some of the Torproject servers.
29066   o Directory authority changes:
29067     - Rotate keys (both v3 identity and relay identity) for moria1
29068       and gabelmoo.
29070   o Major features (performance):
29071     - We were selecting our guards uniformly at random, and then weighting
29072       which of our guards we'd use uniformly at random. This imbalance
29073       meant that Tor clients were severely limited on throughput (and
29074       probably latency too) by the first hop in their circuit. Now we
29075       select guards weighted by currently advertised bandwidth. We also
29076       automatically discard guards picked using the old algorithm. Fixes
29077       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
29078     - When choosing which cells to relay first, relays can now favor
29079       circuits that have been quiet recently, to provide lower latency
29080       for low-volume circuits. By default, relays enable or disable this
29081       feature based on a setting in the consensus. You can override
29082       this default by using the new "CircuitPriorityHalflife" config
29083       option. Design and code by Ian Goldberg, Can Tang, and Chris
29084       Alexander.
29085     - Add separate per-conn write limiting to go with the per-conn read
29086       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
29087       but never per-conn write limits.
29088     - New consensus params "bwconnrate" and "bwconnburst" to let us
29089       rate-limit client connections as they enter the network. It's
29090       controlled in the consensus so we can turn it on and off for
29091       experiments. It's starting out off. Based on proposal 163.
29093   o Major features (relay selection options):
29094     - Switch to a StrictNodes config option, rather than the previous
29095       "StrictEntryNodes" / "StrictExitNodes" separation that was missing a
29096       "StrictExcludeNodes" option.
29097     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
29098       change during a config reload, mark and discard all our origin
29099       circuits. This fix should address edge cases where we change the
29100       config options and but then choose a circuit that we created before
29101       the change.
29102     - If EntryNodes or ExitNodes are set, be more willing to use an
29103       unsuitable (e.g. slow or unstable) circuit. The user asked for it,
29104       they get it.
29105     - Make EntryNodes config option much more aggressive even when
29106       StrictNodes is not set. Before it would prepend your requested
29107       entrynodes to your list of guard nodes, but feel free to use others
29108       after that. Now it chooses only from your EntryNodes if any of
29109       those are available, and only falls back to others if a) they're
29110       all down and b) StrictNodes is not set.
29111     - Now we refresh your entry guards from EntryNodes at each consensus
29112       fetch -- rather than just at startup and then they slowly rot as
29113       the network changes.
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.
29120   o Minor features:
29121     - Log a notice when we get a new control connection. Now it's easier
29122       for security-conscious users to recognize when a local application
29123       is knocking on their controller door. Suggested by bug 1196.
29124     - New config option "CircuitStreamTimeout" to override our internal
29125       timeout schedule for how many seconds until we detach a stream from
29126       a circuit and try a new circuit. If your network is particularly
29127       slow, you might want to set this to a number like 60.
29128     - New controller command "getinfo config-text". It returns the
29129       contents that Tor would write if you send it a SAVECONF command,
29130       so the controller can write the file to disk itself.
29131     - New options for SafeLogging to allow scrubbing only log messages
29132       generated while acting as a relay.
29133     - Ship the bridges spec file in the tarball too.
29134     - Avoid a mad rush at the beginning of each month when each client
29135       rotates half of its guards. Instead we spread the rotation out
29136       throughout the month, but we still avoid leaving a precise timestamp
29137       in the state file about when we first picked the guard. Improves
29138       over the behavior introduced in 0.1.2.17.
29140   o Minor bugfixes (compiling):
29141     - Fix compilation on OS X 10.3, which has a stub mlockall() but
29142       hides it. Bugfix on 0.2.2.6-alpha.
29143     - Fix compilation on Solaris by removing support for the
29144       DisableAllSwap config option. Solaris doesn't have an rlimit for
29145       mlockall, so we cannot use it safely. Fixes bug 1198; bugfix on
29146       0.2.2.6-alpha.
29148   o Minor bugfixes (crashes):
29149     - Do not segfault when writing buffer stats when we haven't observed
29150       a single circuit to report about. Found by Fabian Lanze. Bugfix on
29151       0.2.2.1-alpha.
29152     - If we're in the pathological case where there's no exit bandwidth
29153       but there is non-exit bandwidth, or no guard bandwidth but there
29154       is non-guard bandwidth, don't crash during path selection. Bugfix
29155       on 0.2.0.3-alpha.
29156     - Fix an impossible-to-actually-trigger buffer overflow in relay
29157       descriptor generation. Bugfix on 0.1.0.15.
29159   o Minor bugfixes (privacy):
29160     - Fix an instance where a Tor directory mirror might accidentally
29161       log the IP address of a misbehaving Tor client. Bugfix on
29162       0.1.0.1-rc.
29163     - Don't list Windows capabilities in relay descriptors. We never made
29164       use of them, and maybe it's a bad idea to publish them. Bugfix
29165       on 0.1.1.8-alpha.
29167   o Minor bugfixes (other):
29168     - Resolve an edge case in path weighting that could make us misweight
29169       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
29170     - Fix statistics on client numbers by country as seen by bridges that
29171       were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour
29172       intervals instead of variable 12-to-48-hour intervals.
29173     - After we free an internal connection structure, overwrite it
29174       with a different memory value than we use for overwriting a freed
29175       internal circuit structure. Should help with debugging. Suggested
29176       by bug 1055.
29177     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
29178       too.
29180   o Removed features:
29181     - Remove the HSAuthorityRecordStats option that version 0 hidden
29182       service authorities could have used to track statistics of overall
29183       hidden service usage.
29186 Changes in version 0.2.1.22 - 2010-01-19
29187   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
29188   authorities -- it would tell you its whole history of bridge descriptors
29189   if you make the right directory request. This stable update also
29190   rotates two of the seven v3 directory authority keys and locations.
29192   o Directory authority changes:
29193     - Rotate keys (both v3 identity and relay identity) for moria1
29194       and gabelmoo.
29196   o Major bugfixes:
29197     - Stop bridge directory authorities from answering dbg-stability.txt
29198       directory queries, which would let people fetch a list of all
29199       bridge identities they track. Bugfix on 0.2.1.6-alpha.
29202 Changes in version 0.2.1.21 - 2009-12-21
29203   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
29204   library. If you use Tor on Linux / Unix and you're getting SSL
29205   renegotiation errors, upgrading should help. We also recommend an
29206   upgrade if you're an exit relay.
29208   o Major bugfixes:
29209     - Work around a security feature in OpenSSL 0.9.8l that prevents our
29210       handshake from working unless we explicitly tell OpenSSL that we
29211       are using SSL renegotiation safely. We are, of course, but OpenSSL
29212       0.9.8l won't work unless we say we are.
29213     - Avoid crashing if the client is trying to upload many bytes and the
29214       circuit gets torn down at the same time, or if the flip side
29215       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
29217   o Minor bugfixes:
29218     - Do not refuse to learn about authority certs and v2 networkstatus
29219       documents that are older than the latest consensus. This bug might
29220       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
29221       Spotted and fixed by xmux.
29222     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
29223       trigger platform-specific option misparsing case found by Coverity
29224       Scan.
29225     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
29226       trigger assert. Fixes bug 1173.
29229 Changes in version 0.2.2.6-alpha - 2009-11-19
29230   Tor 0.2.2.6-alpha lays the groundwork for many upcoming features:
29231   support for the new lower-footprint "microdescriptor" directory design,
29232   future-proofing our consensus format against new hash functions or
29233   other changes, and an Android port. It also makes Tor compatible with
29234   the upcoming OpenSSL 0.9.8l release, and fixes a variety of bugs.
29236   o Major features:
29237     - Directory authorities can now create, vote on, and serve multiple
29238       parallel formats of directory data as part of their voting process.
29239       Partially implements Proposal 162: "Publish the consensus in
29240       multiple flavors".
29241     - Directory authorities can now agree on and publish small summaries
29242       of router information that clients can use in place of regular
29243       server descriptors. This transition will eventually allow clients
29244       to use far less bandwidth for downloading information about the
29245       network. Begins the implementation of Proposal 158: "Clients
29246       download consensus + microdescriptors".
29247     - The directory voting system is now extensible to use multiple hash
29248       algorithms for signatures and resource selection. Newer formats
29249       are signed with SHA256, with a possibility for moving to a better
29250       hash algorithm in the future.
29251     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
29252       current and future memory pages via mlockall(). On supported
29253       platforms (modern Linux and probably BSD but not Windows or OS X),
29254       this should effectively disable any and all attempts to page out
29255       memory. This option requires that you start your Tor as root --
29256       if you use DisableAllSwap, please consider using the User option
29257       to properly reduce the privileges of your Tor.
29258     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
29259       to help Tor build correctly for Android phones.
29261   o Major bugfixes:
29262     - Work around a security feature in OpenSSL 0.9.8l that prevents our
29263       handshake from working unless we explicitly tell OpenSSL that we
29264       are using SSL renegotiation safely. We are, but OpenSSL 0.9.8l
29265       won't work unless we say we are.
29267   o Minor bugfixes:
29268     - Fix a crash bug when trying to initialize the evdns module in
29269       Libevent 2. Bugfix on 0.2.1.16-rc.
29270     - Stop logging at severity 'warn' when some other Tor client tries
29271       to establish a circuit with us using weak DH keys. It's a protocol
29272       violation, but that doesn't mean ordinary users need to hear about
29273       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
29274     - Do not refuse to learn about authority certs and v2 networkstatus
29275       documents that are older than the latest consensus. This bug might
29276       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
29277       Spotted and fixed by xmux.
29278     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
29279     - If all authorities restart at once right before a consensus vote,
29280       nobody will vote about "Running", and clients will get a consensus
29281       with no usable relays. Instead, authorities refuse to build a
29282       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
29283     - If your relay can't keep up with the number of incoming create
29284       cells, it would log one warning per failure into your logs. Limit
29285       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
29286     - Bridges now use "reject *:*" as their default exit policy. Bugfix
29287       on 0.2.0.3-alpha; fixes bug 1113.
29288     - Fix a memory leak on directory authorities during voting that was
29289       introduced in 0.2.2.1-alpha. Found via valgrind.
29292 Changes in version 0.2.1.20 - 2009-10-15
29293   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
29294   services at once, prepares for more performance improvements, and
29295   fixes a bunch of smaller bugs.
29297   The Windows and OS X bundles also include a more recent Vidalia,
29298   and switch from Privoxy to Polipo.
29300   The OS X installers are now drag and drop. It's best to un-install
29301   Tor/Vidalia and then install this new bundle, rather than upgrade. If
29302   you want to upgrade, you'll need to update the paths for Tor and Polipo
29303   in the Vidalia Settings window.
29305   o Major bugfixes:
29306     - Send circuit or stream sendme cells when our window has decreased
29307       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
29308       by Karsten when testing the "reduce circuit window" performance
29309       patch. Bugfix on the 54th commit on Tor -- from July 2002,
29310       before the release of Tor 0.0.0. This is the new winner of the
29311       oldest-bug prize.
29312     - Fix a remotely triggerable memory leak when a consensus document
29313       contains more than one signature from the same voter. Bugfix on
29314       0.2.0.3-alpha.
29315     - Avoid segfault in rare cases when finishing an introduction circuit
29316       as a client and finding out that we don't have an introduction key
29317       for it. Fixes bug 1073. Reported by Aaron Swartz.
29319   o Major features:
29320     - Tor now reads the "circwindow" parameter out of the consensus,
29321       and uses that value for its circuit package window rather than the
29322       default of 1000 cells. Begins the implementation of proposal 168.
29324   o New directory authorities:
29325     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
29326       authority.
29327     - Move moria1 and tonga to alternate IP addresses.
29329   o Minor bugfixes:
29330     - Fix a signed/unsigned compile warning in 0.2.1.19.
29331     - Fix possible segmentation fault on directory authorities. Bugfix on
29332       0.2.1.14-rc.
29333     - Fix an extremely rare infinite recursion bug that could occur if
29334       we tried to log a message after shutting down the log subsystem.
29335       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
29336     - Fix an obscure bug where hidden services on 64-bit big-endian
29337       systems might mis-read the timestamp in v3 introduce cells, and
29338       refuse to connect back to the client. Discovered by "rotor".
29339       Bugfix on 0.2.1.6-alpha.
29340     - We were triggering a CLOCK_SKEW controller status event whenever
29341       we connect via the v2 connection protocol to any relay that has
29342       a wrong clock. Instead, we should only inform the controller when
29343       it's a trusted authority that claims our clock is wrong. Bugfix
29344       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
29345     - We were telling the controller about CHECKING_REACHABILITY and
29346       REACHABILITY_FAILED status events whenever we launch a testing
29347       circuit or notice that one has failed. Instead, only tell the
29348       controller when we want to inform the user of overall success or
29349       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
29350       by SwissTorExit.
29351     - Don't warn when we're using a circuit that ends with a node
29352       excluded in ExcludeExitNodes, but the circuit is not used to access
29353       the outside world. This should help fix bug 1090. Bugfix on
29354       0.2.1.6-alpha.
29355     - Work around a small memory leak in some versions of OpenSSL that
29356       stopped the memory used by the hostname TLS extension from being
29357       freed.
29359   o Minor features:
29360     - Add a "getinfo status/accepted-server-descriptor" controller
29361       command, which is the recommended way for controllers to learn
29362       whether our server descriptor has been successfully received by at
29363       least on directory authority. Un-recommend good-server-descriptor
29364       getinfo and status events until we have a better design for them.
29367 Changes in version 0.2.2.5-alpha - 2009-10-11
29368   Tor 0.2.2.5-alpha fixes a few compile problems in 0.2.2.4-alpha.
29370   o Major bugfixes:
29371     - Make the tarball compile again. Oops. Bugfix on 0.2.2.4-alpha.
29373   o Directory authorities:
29374     - Temporarily (just for this release) move dizum to an alternate
29375       IP address.
29378 Changes in version 0.2.2.4-alpha - 2009-10-10
29379   Tor 0.2.2.4-alpha fixes more crash bugs in 0.2.2.2-alpha. It also
29380   introduces a new unit test framework, shifts directry authority
29381   addresses around to reduce the impact from recent blocking events,
29382   and fixes a few smaller bugs.
29384   o Major bugfixes:
29385     - Fix several more asserts in the circuit_build_times code, for
29386       example one that causes Tor to fail to start once we have
29387       accumulated 5000 build times in the state file. Bugfixes on
29388       0.2.2.2-alpha; fixes bug 1108.
29390   o New directory authorities:
29391     - Move moria1 and Tonga to alternate IP addresses.
29393   o Minor features:
29394     - Log SSL state transitions at debug level during handshake, and
29395       include SSL states in error messages. This may help debug future
29396       SSL handshake issues.
29397     - Add a new "Handshake" log domain for activities that happen
29398       during the TLS handshake.
29399     - Revert to the "June 3 2009" ip-to-country file. The September one
29400       seems to have removed most US IP addresses.
29401     - Directory authorities now reject Tor relays with versions less than
29402       0.1.2.14. This step cuts out four relays from the current network,
29403       none of which are very big.
29405   o Minor bugfixes:
29406     - Fix a couple of smaller issues with gathering statistics. Bugfixes
29407       on 0.2.2.1-alpha.
29408     - Fix two memory leaks in the error case of
29409       circuit_build_times_parse_state(). Bugfix on 0.2.2.2-alpha.
29410     - Don't count one-hop circuits when we're estimating how long it
29411       takes circuits to build on average. Otherwise we'll set our circuit
29412       build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
29413     - Directory authorities no longer change their opinion of, or vote on,
29414       whether a router is Running, unless they have themselves been
29415       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
29416       Fixes bug 1023.
29418   o Code simplifications and refactoring:
29419     - Revise our unit tests to use the "tinytest" framework, so we
29420       can run tests in their own processes, have smarter setup/teardown
29421       code, and so on. The unit test code has moved to its own
29422       subdirectory, and has been split into multiple modules.
29425 Changes in version 0.2.2.3-alpha - 2009-09-23
29426   Tor 0.2.2.3-alpha fixes a few crash bugs in 0.2.2.2-alpha.
29428   o Major bugfixes:
29429     - Fix an overzealous assert in our new circuit build timeout code.
29430       Bugfix on 0.2.2.2-alpha; fixes bug 1103.
29432   o Minor bugfixes:
29433     - If the networkstatus consensus tells us that we should use a
29434       negative circuit package window, ignore it. Otherwise we'll
29435       believe it and then trigger an assert. Bugfix on 0.2.2.2-alpha.
29438 Changes in version 0.2.2.2-alpha - 2009-09-21
29439   Tor 0.2.2.2-alpha introduces our latest performance improvement for
29440   clients: Tor tracks the average time it takes to build a circuit, and
29441   avoids using circuits that take too long to build. For fast connections,
29442   this feature can cut your expected latency in half. For slow or flaky
29443   connections, it could ruin your Tor experience. Let us know if it does!
29445   o Major features:
29446     - Tor now tracks how long it takes to build client-side circuits
29447       over time, and adapts its timeout to local network performance.
29448       Since a circuit that takes a long time to build will also provide
29449       bad performance, we get significant latency improvements by
29450       discarding the slowest 20% of circuits. Specifically, Tor creates
29451       circuits more aggressively than usual until it has enough data
29452       points for a good timeout estimate. Implements proposal 151.
29453       We are especially looking for reports (good and bad) from users with
29454       both EDGE and broadband connections that can move from broadband
29455       to EDGE and find out if the build-time data in the .tor/state gets
29456       reset without loss of Tor usability. You should also see a notice
29457       log message telling you that Tor has reset its timeout.
29458     - Directory authorities can now vote on arbitrary integer values as
29459       part of the consensus process. This is designed to help set
29460       network-wide parameters. Implements proposal 167.
29461     - Tor now reads the "circwindow" parameter out of the consensus,
29462       and uses that value for its circuit package window rather than the
29463       default of 1000 cells. Begins the implementation of proposal 168.
29465   o Major bugfixes:
29466     - Fix a remotely triggerable memory leak when a consensus document
29467       contains more than one signature from the same voter. Bugfix on
29468       0.2.0.3-alpha.
29470   o Minor bugfixes:
29471     - Fix an extremely rare infinite recursion bug that could occur if
29472       we tried to log a message after shutting down the log subsystem.
29473       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
29474     - Fix parsing for memory or time units given without a space between
29475       the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
29476     - A networkstatus vote must contain exactly one signature. Spec
29477       conformance issue. Bugfix on 0.2.0.3-alpha.
29478     - Fix an obscure bug where hidden services on 64-bit big-endian
29479       systems might mis-read the timestamp in v3 introduce cells, and
29480       refuse to connect back to the client. Discovered by "rotor".
29481       Bugfix on 0.2.1.6-alpha.
29482     - We were triggering a CLOCK_SKEW controller status event whenever
29483       we connect via the v2 connection protocol to any relay that has
29484       a wrong clock. Instead, we should only inform the controller when
29485       it's a trusted authority that claims our clock is wrong. Bugfix
29486       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
29487     - We were telling the controller about CHECKING_REACHABILITY and
29488       REACHABILITY_FAILED status events whenever we launch a testing
29489       circuit or notice that one has failed. Instead, only tell the
29490       controller when we want to inform the user of overall success or
29491       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
29492       by SwissTorExit.
29493     - Don't warn when we're using a circuit that ends with a node
29494       excluded in ExcludeExitNodes, but the circuit is not used to access
29495       the outside world. This should help fix bug 1090, but more problems
29496       remain. Bugfix on 0.2.1.6-alpha.
29497     - Work around a small memory leak in some versions of OpenSSL that
29498       stopped the memory used by the hostname TLS extension from being
29499       freed.
29500     - Make our 'torify' script more portable; if we have only one of
29501       'torsocks' or 'tsocks' installed, don't complain to the user;
29502       and explain our warning about tsocks better.
29504   o Minor features:
29505     - Add a "getinfo status/accepted-server-descriptor" controller
29506       command, which is the recommended way for controllers to learn
29507       whether our server descriptor has been successfully received by at
29508       least on directory authority. Un-recommend good-server-descriptor
29509       getinfo and status events until we have a better design for them.
29510     - Update to the "September 4 2009" ip-to-country file.
29513 Changes in version 0.2.2.1-alpha - 2009-08-26
29514   Tor 0.2.2.1-alpha disables ".exit" address notation by default, allows
29515   Tor clients to bootstrap on networks where only port 80 is reachable,
29516   makes it more straightforward to support hardware crypto accelerators,
29517   and starts the groundwork for gathering stats safely at relays.
29519   o Security fixes:
29520     - Start the process of disabling ".exit" address notation, since it
29521       can be used for a variety of esoteric application-level attacks
29522       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
29523       on 0.0.9rc5.
29525   o New directory authorities:
29526     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
29527       authority.
29529   o Major features:
29530     - New AccelName and AccelDir options add support for dynamic OpenSSL
29531       hardware crypto acceleration engines.
29532     - Tor now supports tunneling all of its outgoing connections over
29533       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
29534       configuration options. Code by Christopher Davis.
29536   o Major bugfixes:
29537     - Send circuit or stream sendme cells when our window has decreased
29538       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
29539       by Karsten when testing the "reduce circuit window" performance
29540       patch. Bugfix on the 54th commit on Tor -- from July 2002,
29541       before the release of Tor 0.0.0. This is the new winner of the
29542       oldest-bug prize.
29544   o New options for gathering stats safely:
29545     - Directory mirrors that set "DirReqStatistics 1" write statistics
29546       about directory requests to disk every 24 hours. As compared to the
29547       --enable-geoip-stats flag in 0.2.1.x, there are a few improvements:
29548       1) stats are written to disk exactly every 24 hours; 2) estimated
29549       shares of v2 and v3 requests are determined as mean values, not at
29550       the end of a measurement period; 3) unresolved requests are listed
29551       with country code '??'; 4) directories also measure download times.
29552     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
29553       number of exit streams and transferred bytes per port to disk every
29554       24 hours.
29555     - Relays that set "CellStatistics 1" write statistics on how long
29556       cells spend in their circuit queues to disk every 24 hours.
29557     - Entry nodes that set "EntryStatistics 1" write statistics on the
29558       rough number and origins of connecting clients to disk every 24
29559       hours.
29560     - Relays that write any of the above statistics to disk and set
29561       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
29562       their extra-info documents.
29564   o Minor features:
29565     - New --digests command-line switch to output the digests of the
29566       source files Tor was built with.
29567     - The "torify" script now uses torsocks where available.
29568     - The memarea code now uses a sentinel value at the end of each area
29569       to make sure nothing writes beyond the end of an area. This might
29570       help debug some conceivable causes of bug 930.
29571     - Time and memory units in the configuration file can now be set to
29572       fractional units. For example, "2.5 GB" is now a valid value for
29573       AccountingMax.
29574     - Certain Tor clients (such as those behind check.torproject.org) may
29575       want to fetch the consensus in an extra early manner. To enable this
29576       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
29577       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
29578       as only certain clients who must have this information sooner should
29579       set this option.
29580     - Instead of adding the svn revision to the Tor version string, report
29581       the git commit (when we're building from a git checkout).
29583   o Minor bugfixes:
29584     - If any of the v3 certs we download are unparseable, we should
29585       actually notice the failure so we don't retry indefinitely. Bugfix
29586       on 0.2.0.x; reported by "rotator".
29587     - If the cached cert file is unparseable, warn but don't exit.
29588     - Fix possible segmentation fault on directory authorities. Bugfix on
29589       0.2.1.14-rc.
29590     - When Tor fails to parse a descriptor of any kind, dump it to disk.
29591       Might help diagnosing bug 1051.
29593   o Deprecated and removed features:
29594     - The controller no longer accepts the old obsolete "addr-mappings/"
29595       or "unregistered-servers-" GETINFO values.
29596     - Hidden services no longer publish version 0 descriptors, and clients
29597       do not request or use version 0 descriptors. However, the old hidden
29598       service authorities still accept and serve version 0 descriptors
29599       when contacted by older hidden services/clients.
29600     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
29601       always on; using them is necessary for correct forward-compatible
29602       controllers.
29603     - Remove support for .noconnect style addresses. Nobody was using
29604       them, and they provided another avenue for detecting Tor users
29605       via application-level web tricks.
29607   o Packaging changes:
29608     - Upgrade Vidalia from 0.1.15 to 0.2.3 in the Windows and OS X
29609       installer bundles. See
29610       https://trac.vidalia-project.net/browser/vidalia/tags/vidalia-0.2.3/CHANGELOG
29611       for details of what's new in Vidalia 0.2.3.
29612     - Windows Vidalia Bundle: update Privoxy from 3.0.6 to 3.0.14-beta.
29613     - OS X Vidalia Bundle: move to Polipo 1.0.4 with Tor specific
29614       configuration file, rather than the old Privoxy.
29615     - OS X Vidalia Bundle: Vidalia, Tor, and Polipo are compiled as
29616       x86-only for better compatibility with OS X 10.6, aka Snow Leopard.
29617     - OS X Tor Expert Bundle: Tor is compiled as x86-only for
29618       better compatibility with OS X 10.6, aka Snow Leopard.
29619     - OS X Vidalia Bundle: The multi-package installer is now replaced
29620       by a simple drag and drop to the /Applications folder. This change
29621       occurred with the upgrade to Vidalia 0.2.3.
29624 Changes in version 0.2.1.19 - 2009-07-28
29625   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
29626   services on Tor 0.2.1.3-alpha through 0.2.1.18.
29628   o Major bugfixes:
29629     - Make accessing hidden services on 0.2.1.x work right again.
29630       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
29631       part of patch provided by "optimist".
29633   o Minor features:
29634     - When a relay/bridge is writing out its identity key fingerprint to
29635       the "fingerprint" file and to its logs, write it without spaces. Now
29636       it will look like the fingerprints in our bridges documentation,
29637       and confuse fewer users.
29639   o Minor bugfixes:
29640     - Relays no longer publish a new server descriptor if they change
29641       their MaxAdvertisedBandwidth config option but it doesn't end up
29642       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
29643       fixes bug 1026. Patch from Sebastian.
29644     - Avoid leaking memory every time we get a create cell but we have
29645       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
29646       fixes bug 1034. Reported by BarkerJr.
29649 Changes in version 0.2.1.18 - 2009-07-24
29650   Tor 0.2.1.18 lays the foundations for performance improvements,
29651   adds status events to help users diagnose bootstrap problems, adds
29652   optional authentication/authorization for hidden services, fixes a
29653   variety of potential anonymity problems, and includes a huge pile of
29654   other features and bug fixes.
29656   o Build fixes:
29657     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
29660 Changes in version 0.2.1.17-rc - 2009-07-07
29661   Tor 0.2.1.17-rc marks the fourth -- and hopefully last -- release
29662   candidate for the 0.2.1.x series. It lays the groundwork for further
29663   client performance improvements, and also fixes a big bug with directory
29664   authorities that were causing them to assign Guard and Stable flags
29665   poorly.
29667   The Windows bundles also finally include the geoip database that we
29668   thought we'd been shipping since 0.2.0.x (oops), and the OS X bundles
29669   should actually install Torbutton rather than giving you a cryptic
29670   failure message (oops).
29672   o Major features:
29673     - Clients now use the bandwidth values in the consensus, rather than
29674       the bandwidth values in each relay descriptor. This approach opens
29675       the door to more accurate bandwidth estimates once the directory
29676       authorities start doing active measurements. Implements more of
29677       proposal 141.
29679   o Major bugfixes:
29680     - When Tor clients restart after 1-5 days, they discard all their
29681       cached descriptors as too old, but they still use the cached
29682       consensus document. This approach is good for robustness, but
29683       bad for performance: since they don't know any bandwidths, they
29684       end up choosing at random rather than weighting their choice by
29685       speed. Fixed by the above feature of putting bandwidths in the
29686       consensus. Bugfix on 0.2.0.x.
29687     - Directory authorities were neglecting to mark relays down in their
29688       internal histories if the relays fall off the routerlist without
29689       ever being found unreachable. So there were relays in the histories
29690       that haven't been seen for eight months, and are listed as being
29691       up for eight months. This wreaked havoc on the "median wfu"
29692       and "median mtbf" calculations, in turn making Guard and Stable
29693       flags very wrong, hurting network performance. Fixes bugs 696 and
29694       969. Bugfix on 0.2.0.6-alpha.
29696   o Minor bugfixes:
29697     - Serve the DirPortFrontPage page even when we have been approaching
29698       our quotas recently. Fixes bug 1013; bugfix on 0.2.1.8-alpha.
29699     - The control port would close the connection before flushing long
29700       replies, such as the network consensus, if a QUIT command was issued
29701       before the reply had completed. Now, the control port flushes all
29702       pending replies before closing the connection. Also fixed a spurious
29703       warning when a QUIT command is issued after a malformed or rejected
29704       AUTHENTICATE command, but before the connection was closed. Patch
29705       by Marcus Griep. Bugfix on 0.2.0.x; fixes bugs 1015 and 1016.
29706     - When we can't find an intro key for a v2 hidden service descriptor,
29707       fall back to the v0 hidden service descriptor and log a bug message.
29708       Workaround for bug 1024.
29709     - Fix a log message that did not respect the SafeLogging option.
29710       Resolves bug 1027.
29712   o Minor features:
29713     - If we're a relay and we change our IP address, be more verbose
29714       about the reason that made us change. Should help track down
29715       further bugs for relays on dynamic IP addresses.
29718 Changes in version 0.2.0.35 - 2009-06-24
29719   o Security fix:
29720     - Avoid crashing in the presence of certain malformed descriptors.
29721       Found by lark, and by automated fuzzing.
29722     - Fix an edge case where a malicious exit relay could convince a
29723       controller that the client's DNS question resolves to an internal IP
29724       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
29726   o Major bugfixes:
29727     - Finally fix the bug where dynamic-IP relays disappear when their
29728       IP address changes: directory mirrors were mistakenly telling
29729       them their old address if they asked via begin_dir, so they
29730       never got an accurate answer about their new address, so they
29731       just vanished after a day. For belt-and-suspenders, relays that
29732       don't set Address in their config now avoid using begin_dir for
29733       all direct connections. Should fix bugs 827, 883, and 900.
29734     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
29735       that would occur on some exit nodes when DNS failures and timeouts
29736       occurred in certain patterns. Fix for bug 957.
29738   o Minor bugfixes:
29739     - When starting with a cache over a few days old, do not leak
29740       memory for the obsolete router descriptors in it. Bugfix on
29741       0.2.0.33; fixes bug 672.
29742     - Hidden service clients didn't use a cached service descriptor that
29743       was older than 15 minutes, but wouldn't fetch a new one either,
29744       because there was already one in the cache. Now, fetch a v2
29745       descriptor unless the same descriptor was added to the cache within
29746       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
29749 Changes in version 0.2.1.16-rc - 2009-06-20
29750   Tor 0.2.1.16-rc speeds up performance for fast exit relays, and fixes
29751   a bunch of minor bugs.
29753   o Security fixes:
29754     - Fix an edge case where a malicious exit relay could convince a
29755       controller that the client's DNS question resolves to an internal IP
29756       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
29758   o Major performance improvements (on 0.2.0.x):
29759     - Disable and refactor some debugging checks that forced a linear scan
29760       over the whole server-side DNS cache. These accounted for over 50%
29761       of CPU time on a relatively busy exit node's gprof profile. Found
29762       by Jacob.
29763     - Disable some debugging checks that appeared in exit node profile
29764       data.
29766   o Minor features:
29767     - Update to the "June 3 2009" ip-to-country file.
29768     - Do not have tor-resolve automatically refuse all .onion addresses;
29769       if AutomapHostsOnResolve is set in your torrc, this will work fine.
29771   o Minor bugfixes (on 0.2.0.x):
29772     - Log correct error messages for DNS-related network errors on
29773       Windows.
29774     - Fix a race condition that could cause crashes or memory corruption
29775       when running as a server with a controller listening for log
29776       messages.
29777     - Avoid crashing when we have a policy specified in a DirPolicy or
29778       SocksPolicy or ReachableAddresses option with ports set on it,
29779       and we re-load the policy. May fix bug 996.
29780     - Hidden service clients didn't use a cached service descriptor that
29781       was older than 15 minutes, but wouldn't fetch a new one either,
29782       because there was already one in the cache. Now, fetch a v2
29783       descriptor unless the same descriptor was added to the cache within
29784       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
29786   o Minor bugfixes (on 0.2.1.x):
29787     - Don't warn users about low port and hibernation mix when they
29788       provide a *ListenAddress directive to fix that. Bugfix on
29789       0.2.1.15-rc.
29790     - When switching back and forth between bridge mode, do not start
29791       gathering GeoIP data until two hours have passed.
29792     - Do not complain that the user has requested an excluded node as
29793       an exit when the node is not really an exit. This could happen
29794       because the circuit was for testing, or an introduction point.
29795       Fix for bug 984.
29798 Changes in version 0.2.1.15-rc - 2009-05-25
29799   Tor 0.2.1.15-rc marks the second release candidate for the 0.2.1.x
29800   series. It fixes a major bug on fast exit relays, as well as a variety
29801   of more minor bugs.
29803   o Major bugfixes (on 0.2.0.x):
29804     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
29805       that would occur on some exit nodes when DNS failures and timeouts
29806       occurred in certain patterns. Fix for bug 957.
29808   o Minor bugfixes (on 0.2.0.x):
29809     - Actually return -1 in the error case for read_bandwidth_usage().
29810       Harmless bug, since we currently don't care about the return value
29811       anywhere. Bugfix on 0.2.0.9-alpha.
29812     - Provide a more useful log message if bug 977 (related to buffer
29813       freelists) ever reappears, and do not crash right away.
29814     - Fix an assertion failure on 64-bit platforms when we allocated
29815       memory right up to the end of a memarea, then realigned the memory
29816       one step beyond the end. Fixes a possible cause of bug 930.
29817     - Protect the count of open sockets with a mutex, so we can't
29818       corrupt it when two threads are closing or opening sockets at once.
29819       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
29820     - Don't allow a bridge to publish its router descriptor to a
29821       non-bridge directory authority. Fixes part of bug 932.
29822     - When we change to or from being a bridge, reset our counts of
29823       client usage by country. Fixes bug 932.
29824     - Fix a bug that made stream bandwidth get misreported to the
29825       controller.
29826     - Stop using malloc_usable_size() to use more area than we had
29827       actually allocated: it was safe, but made valgrind really unhappy.
29828     - Fix a memory leak when v3 directory authorities load their keys
29829       and cert from disk. Bugfix on 0.2.0.1-alpha.
29831   o Minor bugfixes (on 0.2.1.x):
29832     - Fix use of freed memory when deciding to mark a non-addable
29833       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
29836 Changes in version 0.2.1.14-rc - 2009-04-12
29837   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
29838   series. It begins fixing some major performance problems, and also
29839   finally addresses the bug that was causing relays on dynamic IP
29840   addresses to fall out of the directory.
29842   o Major features:
29843     - Clients replace entry guards that were chosen more than a few months
29844       ago. This change should significantly improve client performance,
29845       especially once more people upgrade, since relays that have been
29846       a guard for a long time are currently overloaded.
29848   o Major bugfixes (on 0.2.0):
29849     - Finally fix the bug where dynamic-IP relays disappear when their
29850       IP address changes: directory mirrors were mistakenly telling
29851       them their old address if they asked via begin_dir, so they
29852       never got an accurate answer about their new address, so they
29853       just vanished after a day. For belt-and-suspenders, relays that
29854       don't set Address in their config now avoid using begin_dir for
29855       all direct connections. Should fix bugs 827, 883, and 900.
29856     - Relays were falling out of the networkstatus consensus for
29857       part of a day if they changed their local config but the
29858       authorities discarded their new descriptor as "not sufficiently
29859       different". Now directory authorities accept a descriptor as changed
29860       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
29861       patch by Sebastian.
29862     - Avoid crashing in the presence of certain malformed descriptors.
29863       Found by lark, and by automated fuzzing.
29865   o Minor features:
29866     - When generating circuit events with verbose nicknames for
29867       controllers, try harder to look up nicknames for routers on a
29868       circuit. (Previously, we would look in the router descriptors we had
29869       for nicknames, but not in the consensus.) Partial fix for bug 941.
29870     - If the bridge config line doesn't specify a port, assume 443.
29871       This makes bridge lines a bit smaller and easier for users to
29872       understand.
29873     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
29874       bytes (aka 20KB/s), to match our documentation. Also update
29875       directory authorities so they always assign the Fast flag to relays
29876       with 20KB/s of capacity. Now people running relays won't suddenly
29877       find themselves not seeing any use, if the network gets faster
29878       on average.
29879     - Update to the "April 3 2009" ip-to-country file.
29881   o Minor bugfixes:
29882     - Avoid trying to print raw memory to the logs when we decide to
29883       give up on downloading a given relay descriptor. Bugfix on
29884       0.2.1.9-alpha.
29885     - In tor-resolve, when the Tor client to use is specified by
29886       <hostname>:<port>, actually use the specified port rather than
29887       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
29888     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
29889     - When starting with a cache over a few days old, do not leak
29890       memory for the obsolete router descriptors in it. Bugfix on
29891       0.2.0.33.
29892     - Avoid double-free on list of successfully uploaded hidden
29893       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
29894     - Change memarea_strndup() implementation to work even when
29895       duplicating a string at the end of a page. This bug was
29896       harmless for now, but could have meant crashes later. Fix by
29897       lark. Bugfix on 0.2.1.1-alpha.
29898     - Limit uploaded directory documents to be 16M rather than 500K.
29899       The directory authorities were refusing v3 consensus votes from
29900       other authorities, since the votes are now 504K. Fixes bug 959;
29901       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
29902     - Directory authorities should never send a 503 "busy" response to
29903       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
29904       bug 959.
29907 Changes in version 0.2.1.13-alpha - 2009-03-09
29908   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
29909   cleanups. We're finally getting close to a release candidate.
29911   o Major bugfixes:
29912     - Correctly update the list of which countries we exclude as
29913       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
29914       lark. Bugfix on 0.2.1.6-alpha.
29916   o Minor bugfixes (on 0.2.0.x and earlier):
29917     - Automatically detect MacOSX versions earlier than 10.4.0, and
29918       disable kqueue from inside Tor when running with these versions.
29919       We previously did this from the startup script, but that was no
29920       help to people who didn't use the startup script. Resolves bug 863.
29921     - When we had picked an exit node for a connection, but marked it as
29922       "optional", and it turned out we had no onion key for the exit,
29923       stop wanting that exit and try again. This situation may not
29924       be possible now, but will probably become feasible with proposal
29925       158. Spotted by rovv. Fixes another case of bug 752.
29926     - Clients no longer cache certificates for authorities they do not
29927       recognize. Bugfix on 0.2.0.9-alpha.
29928     - When we can't transmit a DNS request due to a network error, retry
29929       it after a while, and eventually transmit a failing response to
29930       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
29931     - If the controller claimed responsibility for a stream, but that
29932       stream never finished making its connection, it would live
29933       forever in circuit_wait state. Now we close it after SocksTimeout
29934       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
29935     - Drop begin cells to a hidden service if they come from the middle
29936       of a circuit. Patch from lark.
29937     - When we erroneously receive two EXTEND cells for the same circuit
29938       ID on the same connection, drop the second. Patch from lark.
29939     - Fix a crash that occurs on exit nodes when a nameserver request
29940       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
29941       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
29942       bug 929.
29943     - Do not assume that a stack-allocated character array will be
29944       64-bit aligned on platforms that demand that uint64_t access is
29945       aligned. Possible fix for bug 604.
29946     - Parse dates and IPv4 addresses in a locale- and libc-independent
29947       manner, to avoid platform-dependent behavior on malformed input.
29948     - Build correctly when configured to build outside the main source
29949       path. Patch from Michael Gold.
29950     - We were already rejecting relay begin cells with destination port
29951       of 0. Now also reject extend cells with destination port or address
29952       of 0. Suggested by lark.
29954   o Minor bugfixes (on 0.2.1.x):
29955     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
29956       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
29957     - If we're an exit node, scrub the IP address to which we are exiting
29958       in the logs. Bugfix on 0.2.1.8-alpha.
29960   o Minor features:
29961     - On Linux, use the prctl call to re-enable core dumps when the user
29962       is option is set.
29963     - New controller event NEWCONSENSUS that lists the networkstatus
29964       lines for every recommended relay. Now controllers like Torflow
29965       can keep up-to-date on which relays they should be using.
29966     - Update to the "February 26 2009" ip-to-country file.
29969 Changes in version 0.2.0.34 - 2009-02-08
29970   Tor 0.2.0.34 features several more security-related fixes. You should
29971   upgrade, especially if you run an exit relay (remote crash) or a
29972   directory authority (remote infinite loop), or you're on an older
29973   (pre-XP) or not-recently-patched Windows (remote exploit).
29975   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
29976   have many known flaws, and nobody should be using them. You should
29977   upgrade. If you're using a Linux or BSD and its packages are obsolete,
29978   stop using those packages and upgrade anyway.
29980   o Security fixes:
29981     - Fix an infinite-loop bug on handling corrupt votes under certain
29982       circumstances. Bugfix on 0.2.0.8-alpha.
29983     - Fix a temporary DoS vulnerability that could be performed by
29984       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
29985     - Avoid a potential crash on exit nodes when processing malformed
29986       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
29987     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
29988       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
29990   o Minor bugfixes:
29991     - Fix compilation on systems where time_t is a 64-bit integer.
29992       Patch from Matthias Drochner.
29993     - Don't consider expiring already-closed client connections. Fixes
29994       bug 893. Bugfix on 0.0.2pre20.
29997 Changes in version 0.2.1.12-alpha - 2009-02-08
29998   Tor 0.2.1.12-alpha features several more security-related fixes. You
29999   should upgrade, especially if you run an exit relay (remote crash) or
30000   a directory authority (remote infinite loop), or you're on an older
30001   (pre-XP) or not-recently-patched Windows (remote exploit). It also
30002   includes a big pile of minor bugfixes and cleanups.
30004   o Security fixes:
30005     - Fix an infinite-loop bug on handling corrupt votes under certain
30006       circumstances. Bugfix on 0.2.0.8-alpha.
30007     - Fix a temporary DoS vulnerability that could be performed by
30008       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
30009     - Avoid a potential crash on exit nodes when processing malformed
30010       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
30012   o Minor bugfixes:
30013     - Let controllers actually ask for the "clients_seen" event for
30014       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
30015       reported by Matt Edman.
30016     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
30017       0.2.1.11-alpha.
30018     - Fix a bug in address parsing that was preventing bridges or hidden
30019       service targets from being at IPv6 addresses.
30020     - Solve a bug that kept hardware crypto acceleration from getting
30021       enabled when accounting was turned on. Fixes bug 907. Bugfix on
30022       0.0.9pre6.
30023     - Remove a bash-ism from configure.in to build properly on non-Linux
30024       platforms. Bugfix on 0.2.1.1-alpha.
30025     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
30026       headers. Bugfix on 0.2.0.10-alpha.
30027     - Don't consider expiring already-closed client connections. Fixes
30028       bug 893. Bugfix on 0.0.2pre20.
30029     - Fix another interesting corner-case of bug 891 spotted by rovv:
30030       Previously, if two hosts had different amounts of clock drift, and
30031       one of them created a new connection with just the wrong timing,
30032       the other might decide to deprecate the new connection erroneously.
30033       Bugfix on 0.1.1.13-alpha.
30034     - Resolve a very rare crash bug that could occur when the user forced
30035       a nameserver reconfiguration during the middle of a nameserver
30036       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
30037     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
30038       Bugfix on 0.2.1.7-alpha.
30039     - If we're using bridges and our network goes away, be more willing
30040       to forgive our bridges and try again when we get an application
30041       request. Bugfix on 0.2.0.x.
30043   o Minor features:
30044     - Support platforms where time_t is 64 bits long. (Congratulations,
30045       NetBSD!) Patch from Matthias Drochner.
30046     - Add a 'getinfo status/clients-seen' controller command, in case
30047       controllers want to hear clients_seen events but connect late.
30049   o Build changes:
30050     - Disable GCC's strict alias optimization by default, to avoid the
30051       likelihood of its introducing subtle bugs whenever our code violates
30052       the letter of C99's alias rules.
30055 Changes in version 0.2.0.33 - 2009-01-21
30056   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
30057   useful to users. It also finally fixes a bug where a relay or client
30058   that's been off for many days would take a long time to bootstrap.
30060   This update also fixes an important security-related bug reported by
30061   Ilja van Sprundel. You should upgrade. (We'll send out more details
30062   about the bug once people have had some time to upgrade.)
30064   o Security fixes:
30065     - Fix a heap-corruption bug that may be remotely triggerable on
30066       some platforms. Reported by Ilja van Sprundel.
30068   o Major bugfixes:
30069     - When a stream at an exit relay is in state "resolving" or
30070       "connecting" and it receives an "end" relay cell, the exit relay
30071       would silently ignore the end cell and not close the stream. If
30072       the client never closes the circuit, then the exit relay never
30073       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
30074       reported by "wood".
30075     - When sending CREATED cells back for a given circuit, use a 64-bit
30076       connection ID to find the right connection, rather than an addr:port
30077       combination. Now that we can have multiple OR connections between
30078       the same ORs, it is no longer possible to use addr:port to uniquely
30079       identify a connection.
30080     - Bridge relays that had DirPort set to 0 would stop fetching
30081       descriptors shortly after startup, and then briefly resume
30082       after a new bandwidth test and/or after publishing a new bridge
30083       descriptor. Bridge users that try to bootstrap from them would
30084       get a recent networkstatus but would get descriptors from up to
30085       18 hours earlier, meaning most of the descriptors were obsolete
30086       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
30087     - Prevent bridge relays from serving their 'extrainfo' document
30088       to anybody who asks, now that extrainfo docs include potentially
30089       sensitive aggregated client geoip summaries. Bugfix on
30090       0.2.0.13-alpha.
30091     - If the cached networkstatus consensus is more than five days old,
30092       discard it rather than trying to use it. In theory it could be
30093       useful because it lists alternate directory mirrors, but in practice
30094       it just means we spend many minutes trying directory mirrors that
30095       are long gone from the network. Also discard router descriptors as
30096       we load them if they are more than five days old, since the onion
30097       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
30099   o Minor bugfixes:
30100     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
30101       could make gcc generate non-functional binary search code. Bugfix
30102       on 0.2.0.10-alpha.
30103     - Build correctly on platforms without socklen_t.
30104     - Compile without warnings on solaris.
30105     - Avoid potential crash on internal error during signature collection.
30106       Fixes bug 864. Patch from rovv.
30107     - Correct handling of possible malformed authority signing key
30108       certificates with internal signature types. Fixes bug 880.
30109       Bugfix on 0.2.0.3-alpha.
30110     - Fix a hard-to-trigger resource leak when logging credential status.
30111       CID 349.
30112     - When we can't initialize DNS because the network is down, do not
30113       automatically stop Tor from starting. Instead, we retry failed
30114       dns_init() every 10 minutes, and change the exit policy to reject
30115       *:* until one succeeds. Fixes bug 691.
30116     - Use 64 bits instead of 32 bits for connection identifiers used with
30117       the controller protocol, to greatly reduce risk of identifier reuse.
30118     - When we're choosing an exit node for a circuit, and we have
30119       no pending streams, choose a good general exit rather than one that
30120       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
30121     - Fix another case of assuming, when a specific exit is requested,
30122       that we know more than the user about what hosts it allows.
30123       Fixes one case of bug 752. Patch from rovv.
30124     - Clip the MaxCircuitDirtiness config option to a minimum of 10
30125       seconds. Warn the user if lower values are given in the
30126       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
30127     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
30128       user if lower values are given in the configuration. Bugfix on
30129       0.1.1.17-rc. Patch by Sebastian.
30130     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
30131       the cache because we already had a v0 descriptor with the same ID.
30132       Bugfix on 0.2.0.18-alpha.
30133     - Fix a race condition when freeing keys shared between main thread
30134       and CPU workers that could result in a memory leak. Bugfix on
30135       0.1.0.1-rc. Fixes bug 889.
30136     - Send a valid END cell back when a client tries to connect to a
30137       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
30138       840. Patch from rovv.
30139     - Check which hops rendezvous stream cells are associated with to
30140       prevent possible guess-the-streamid injection attacks from
30141       intermediate hops. Fixes another case of bug 446. Based on patch
30142       from rovv.
30143     - If a broken client asks a non-exit router to connect somewhere,
30144       do not even do the DNS lookup before rejecting the connection.
30145       Fixes another case of bug 619. Patch from rovv.
30146     - When a relay gets a create cell it can't decrypt (e.g. because it's
30147       using the wrong onion key), we were dropping it and letting the
30148       client time out. Now actually answer with a destroy cell. Fixes
30149       bug 904. Bugfix on 0.0.2pre8.
30151   o Minor bugfixes (hidden services):
30152     - Do not throw away existing introduction points on SIGHUP. Bugfix on
30153       0.0.6pre1. Patch by Karsten. Fixes bug 874.
30155   o Minor features:
30156     - Report the case where all signatures in a detached set are rejected
30157       differently than the case where there is an error handling the
30158       detached set.
30159     - When we realize that another process has modified our cached
30160       descriptors, print out a more useful error message rather than
30161       triggering an assertion. Fixes bug 885. Patch from Karsten.
30162     - Implement the 0x20 hack to better resist DNS poisoning: set the
30163       case on outgoing DNS requests randomly, and reject responses that do
30164       not match the case correctly. This logic can be disabled with the
30165       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
30166       of servers that do not reliably preserve case in replies. See
30167       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
30168       for more info.
30169     - Check DNS replies for more matching fields to better resist DNS
30170       poisoning.
30171     - Never use OpenSSL compression: it wastes RAM and CPU trying to
30172       compress cells, which are basically all encrypted, compressed, or
30173       both.
30176 Changes in version 0.2.1.11-alpha - 2009-01-20
30177   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
30178   week it will take a long time to bootstrap again" bug. It also fixes
30179   an important security-related bug reported by Ilja van Sprundel. You
30180   should upgrade. (We'll send out more details about the bug once people
30181   have had some time to upgrade.)
30183   o Security fixes:
30184     - Fix a heap-corruption bug that may be remotely triggerable on
30185       some platforms. Reported by Ilja van Sprundel.
30187   o Major bugfixes:
30188     - Discard router descriptors as we load them if they are more than
30189       five days old. Otherwise if Tor is off for a long time and then
30190       starts with cached descriptors, it will try to use the onion
30191       keys in those obsolete descriptors when building circuits. Bugfix
30192       on 0.2.0.x. Fixes bug 887.
30194   o Minor features:
30195     - Try to make sure that the version of Libevent we're running with
30196       is binary-compatible with the one we built with. May address bug
30197       897 and others.
30198     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
30199       for bug 905. Bugfix on 0.2.1.7-alpha.
30200     - Add a new --enable-local-appdata configuration switch to change
30201       the default location of the datadir on win32 from APPDATA to
30202       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
30203       entirely. Patch from coderman.
30205   o Minor bugfixes:
30206     - Make outbound DNS packets respect the OutboundBindAddress setting.
30207       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
30208     - When our circuit fails at the first hop (e.g. we get a destroy
30209       cell back), avoid using that OR connection anymore, and also
30210       tell all the one-hop directory requests waiting for it that they
30211       should fail. Bugfix on 0.2.1.3-alpha.
30212     - In the torify(1) manpage, mention that tsocks will leak your
30213       DNS requests.
30216 Changes in version 0.2.1.10-alpha - 2009-01-06
30217   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
30218   would make the bridge relay not so useful if it had DirPort set to 0,
30219   and one that could let an attacker learn a little bit of information
30220   about the bridge's users), and a bug that would cause your Tor relay
30221   to ignore a circuit create request it can't decrypt (rather than reply
30222   with an error). It also fixes a wide variety of other bugs.
30224   o Major bugfixes:
30225     - If the cached networkstatus consensus is more than five days old,
30226       discard it rather than trying to use it. In theory it could
30227       be useful because it lists alternate directory mirrors, but in
30228       practice it just means we spend many minutes trying directory
30229       mirrors that are long gone from the network. Helps bug 887 a bit;
30230       bugfix on 0.2.0.x.
30231     - Bridge relays that had DirPort set to 0 would stop fetching
30232       descriptors shortly after startup, and then briefly resume
30233       after a new bandwidth test and/or after publishing a new bridge
30234       descriptor. Bridge users that try to bootstrap from them would
30235       get a recent networkstatus but would get descriptors from up to
30236       18 hours earlier, meaning most of the descriptors were obsolete
30237       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
30238     - Prevent bridge relays from serving their 'extrainfo' document
30239       to anybody who asks, now that extrainfo docs include potentially
30240       sensitive aggregated client geoip summaries. Bugfix on
30241       0.2.0.13-alpha.
30243   o Minor features:
30244     - New controller event "clients_seen" to report a geoip-based summary
30245       of which countries we've seen clients from recently. Now controllers
30246       like Vidalia can show bridge operators that they're actually making
30247       a difference.
30248     - Build correctly against versions of OpenSSL 0.9.8 or later built
30249       without support for deprecated functions.
30250     - Update to the "December 19 2008" ip-to-country file.
30252   o Minor bugfixes (on 0.2.0.x):
30253     - Authorities now vote for the Stable flag for any router whose
30254       weighted MTBF is at least 5 days, regardless of the mean MTBF.
30255     - Do not remove routers as too old if we do not have any consensus
30256       document. Bugfix on 0.2.0.7-alpha.
30257     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
30258       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
30259     - When an exit relay resolves a stream address to a local IP address,
30260       do not just keep retrying that same exit relay over and
30261       over. Instead, just close the stream. Addresses bug 872. Bugfix
30262       on 0.2.0.32. Patch from rovv.
30263     - If a hidden service sends us an END cell, do not consider
30264       retrying the connection; just close it. Patch from rovv.
30265     - When we made bridge authorities stop serving bridge descriptors over
30266       unencrypted links, we also broke DirPort reachability testing for
30267       bridges. So bridges with a non-zero DirPort were printing spurious
30268       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
30269     - When a relay gets a create cell it can't decrypt (e.g. because it's
30270       using the wrong onion key), we were dropping it and letting the
30271       client time out. Now actually answer with a destroy cell. Fixes
30272       bug 904. Bugfix on 0.0.2pre8.
30273     - Squeeze 2-5% out of client performance (according to oprofile) by
30274       improving the implementation of some policy-manipulation functions.
30276   o Minor bugfixes (on 0.2.1.x):
30277     - Make get_interface_address() function work properly again; stop
30278       guessing the wrong parts of our address as our address.
30279     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
30280       send on that circuit. Otherwise we might violate the proposal-110
30281       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
30282       thanks to Karsten.
30283     - When we're sending non-EXTEND cells to the first hop in a circuit,
30284       for example to use an encrypted directory connection, we don't need
30285       to use RELAY_EARLY cells: the first hop knows what kind of cell
30286       it is, and nobody else can even see the cell type. Conserving
30287       RELAY_EARLY cells makes it easier to cannibalize circuits like
30288       this later.
30289     - Stop logging nameserver addresses in reverse order.
30290     - If we are retrying a directory download slowly over and over, do
30291       not automatically give up after the 254th failure. Bugfix on
30292       0.2.1.9-alpha.
30293     - Resume reporting accurate "stream end" reasons to the local control
30294       port. They were lost in the changes for Proposal 148. Bugfix on
30295       0.2.1.9-alpha.
30297   o Deprecated and removed features:
30298     - The old "tor --version --version" command, which would print out
30299       the subversion "Id" of most of the source files, is now removed. It
30300       turned out to be less useful than we'd expected, and harder to
30301       maintain.
30303   o Code simplifications and refactoring:
30304     - Change our header file guard macros to be less likely to conflict
30305       with system headers. Adam Langley noticed that we were conflicting
30306       with log.h on Android.
30307     - Tool-assisted documentation cleanup. Nearly every function or
30308       static variable in Tor should have its own documentation now.
30311 Changes in version 0.2.1.9-alpha - 2008-12-25
30312   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
30314   o New directory authorities:
30315     - gabelmoo (the authority run by Karsten Loesing) now has a new
30316       IP address.
30318   o Security fixes:
30319     - Never use a connection with a mismatched address to extend a
30320       circuit, unless that connection is canonical. A canonical
30321       connection is one whose address is authenticated by the router's
30322       identity key, either in a NETINFO cell or in a router descriptor.
30323     - Avoid a possible memory corruption bug when receiving hidden service
30324       descriptors. Bugfix on 0.2.1.6-alpha.
30326   o Major bugfixes:
30327     - Fix a logic error that would automatically reject all but the first
30328       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
30329       part of bug 813/868. Bug spotted by coderman.
30330     - When a stream at an exit relay is in state "resolving" or
30331       "connecting" and it receives an "end" relay cell, the exit relay
30332       would silently ignore the end cell and not close the stream. If
30333       the client never closes the circuit, then the exit relay never
30334       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
30335       reported by "wood".
30336     - When we can't initialize DNS because the network is down, do not
30337       automatically stop Tor from starting. Instead, retry failed
30338       dns_init() every 10 minutes, and change the exit policy to reject
30339       *:* until one succeeds. Fixes bug 691.
30341   o Minor features:
30342     - Give a better error message when an overzealous init script says
30343       "sudo -u username tor --user username". Makes Bug 882 easier for
30344       users to diagnose.
30345     - When a directory authority gives us a new guess for our IP address,
30346       log which authority we used. Hopefully this will help us debug
30347       the recent complaints about bad IP address guesses.
30348     - Detect svn revision properly when we're using git-svn.
30349     - Try not to open more than one descriptor-downloading connection
30350       to an authority at once. This should reduce load on directory
30351       authorities. Fixes bug 366.
30352     - Add cross-certification to newly generated certificates, so that
30353       a signing key is enough information to look up a certificate.
30354       Partial implementation of proposal 157.
30355     - Start serving certificates by <identity digest, signing key digest>
30356       pairs. Partial implementation of proposal 157.
30357     - Clients now never report any stream end reason except 'MISC'.
30358       Implements proposal 148.
30359     - On platforms with a maximum syslog string length, truncate syslog
30360       messages to that length ourselves, rather than relying on the
30361       system to do it for us.
30362     - Optimize out calls to time(NULL) that occur for every IO operation,
30363       or for every cell. On systems where time() is a slow syscall,
30364       this fix will be slightly helpful.
30365     - Exit servers can now answer resolve requests for ip6.arpa addresses.
30366     - When we download a descriptor that we then immediately (as
30367       a directory authority) reject, do not retry downloading it right
30368       away. Should save some bandwidth on authorities. Fix for bug
30369       888. Patch by Sebastian Hahn.
30370     - When a download gets us zero good descriptors, do not notify
30371       Tor that new directory information has arrived.
30372     - Avoid some nasty corner cases in the logic for marking connections
30373       as too old or obsolete or noncanonical for circuits. Partial
30374       bugfix on bug 891.
30376   o Minor features (controller):
30377     - New CONSENSUS_ARRIVED event to note when a new consensus has
30378       been fetched and validated.
30379     - When we realize that another process has modified our cached
30380       descriptors file, print out a more useful error message rather
30381       than triggering an assertion. Fixes bug 885. Patch from Karsten.
30382     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
30383       controllers to prevent SIGHUP from reloading the
30384       configuration. Fixes bug 856.
30386   o Minor bugfixes:
30387     - Resume using the correct "REASON=" stream when telling the
30388       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
30389     - When a canonical connection appears later in our internal list
30390       than a noncanonical one for a given OR ID, always use the
30391       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
30392       Spotted by rovv.
30393     - Clip the MaxCircuitDirtiness config option to a minimum of 10
30394       seconds. Warn the user if lower values are given in the
30395       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
30396     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
30397       user if lower values are given in the configuration. Bugfix on
30398       0.1.1.17-rc. Patch by Sebastian.
30399     - Fix a race condition when freeing keys shared between main thread
30400       and CPU workers that could result in a memory leak. Bugfix on
30401       0.1.0.1-rc. Fixes bug 889.
30403   o Minor bugfixes (hidden services):
30404     - Do not throw away existing introduction points on SIGHUP (bugfix on
30405       0.0.6pre1); also, do not stall hidden services because we're
30406       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
30407       by John Brooks. Patch by Karsten. Fixes bug 874.
30408     - Fix a memory leak when we decline to add a v2 rendezvous
30409       descriptor to the cache because we already had a v0 descriptor
30410       with the same ID. Bugfix on 0.2.0.18-alpha.
30412   o Deprecated and removed features:
30413     - RedirectExits has been removed. It was deprecated since
30414       0.2.0.3-alpha.
30415     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
30416       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
30417     - Cell pools are now always enabled; --disable-cell-pools is ignored.
30419   o Code simplifications and refactoring:
30420     - Rename the confusing or_is_obsolete field to the more appropriate
30421       is_bad_for_new_circs, and move it to or_connection_t where it
30422       belongs.
30423     - Move edge-only flags from connection_t to edge_connection_t: not
30424       only is this better coding, but on machines of plausible alignment,
30425       it should save 4-8 bytes per connection_t. "Every little bit helps."
30426     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
30427       for consistency; keep old option working for backward compatibility.
30428     - Simplify the code for finding connections to use for a circuit.
30431 Changes in version 0.2.1.8-alpha - 2008-12-08
30432   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
30433   builds better on unusual platforms like Solaris and old OS X, and
30434   fixes a variety of other issues.
30436   o Major features:
30437     - New DirPortFrontPage option that takes an html file and publishes
30438       it as "/" on the DirPort. Now relay operators can provide a
30439       disclaimer without needing to set up a separate webserver. There's
30440       a sample disclaimer in contrib/tor-exit-notice.html.
30442   o Security fixes:
30443     - When the client is choosing entry guards, now it selects at most
30444       one guard from a given relay family. Otherwise we could end up with
30445       all of our entry points into the network run by the same operator.
30446       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
30448   o Major bugfixes:
30449     - Fix a DOS opportunity during the voting signature collection process
30450       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
30451     - Fix a possible segfault when establishing an exit connection. Bugfix
30452       on 0.2.1.5-alpha.
30454   o Minor bugfixes:
30455     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
30456       bug 859.
30457     - Made Tor a little less aggressive about deleting expired
30458       certificates. Partial fix for bug 854.
30459     - Stop doing unaligned memory access that generated bus errors on
30460       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
30461     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
30462       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
30463     - Make USR2 log-level switch take effect immediately. Bugfix on
30464       0.1.2.8-beta.
30465     - If one win32 nameserver fails to get added, continue adding the
30466       rest, and don't automatically fail.
30467     - Use fcntl() for locking when flock() is not available. Should fix
30468       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
30469     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
30470       could make gcc generate non-functional binary search code. Bugfix
30471       on 0.2.0.10-alpha.
30472     - Build correctly on platforms without socklen_t.
30473     - Avoid potential crash on internal error during signature collection.
30474       Fixes bug 864. Patch from rovv.
30475     - Do not use C's stdio library for writing to log files. This will
30476       improve logging performance by a minute amount, and will stop
30477       leaking fds when our disk is full. Fixes bug 861.
30478     - Stop erroneous use of O_APPEND in cases where we did not in fact
30479       want to re-seek to the end of a file before every last write().
30480     - Correct handling of possible malformed authority signing key
30481       certificates with internal signature types. Fixes bug 880. Bugfix
30482       on 0.2.0.3-alpha.
30483     - Fix a hard-to-trigger resource leak when logging credential status.
30484       CID 349.
30486   o Minor features:
30487     - Directory mirrors no longer fetch the v1 directory or
30488       running-routers files. They are obsolete, and nobody asks for them
30489       anymore. This is the first step to making v1 authorities obsolete.
30491   o Minor features (controller):
30492     - Return circuit purposes in response to GETINFO circuit-status. Fixes
30493       bug 858.
30496 Changes in version 0.2.0.32 - 2008-11-20
30497   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
30498   packages (and maybe other packages) noticed by Theo de Raadt, fixes
30499   a smaller security flaw that might allow an attacker to access local
30500   services, further improves hidden service performance, and fixes a
30501   variety of other issues.
30503   o Security fixes:
30504     - The "User" and "Group" config options did not clear the
30505       supplementary group entries for the Tor process. The "User" option
30506       is now more robust, and we now set the groups to the specified
30507       user's primary group. The "Group" option is now ignored. For more
30508       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
30509       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
30510       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
30511     - The "ClientDNSRejectInternalAddresses" config option wasn't being
30512       consistently obeyed: if an exit relay refuses a stream because its
30513       exit policy doesn't allow it, we would remember what IP address
30514       the relay said the destination address resolves to, even if it's
30515       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
30517   o Major bugfixes:
30518     - Fix a DOS opportunity during the voting signature collection process
30519       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
30521   o Major bugfixes (hidden services):
30522     - When fetching v0 and v2 rendezvous service descriptors in parallel,
30523       we were failing the whole hidden service request when the v0
30524       descriptor fetch fails, even if the v2 fetch is still pending and
30525       might succeed. Similarly, if the last v2 fetch fails, we were
30526       failing the whole hidden service request even if a v0 fetch is
30527       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
30528     - When extending a circuit to a hidden service directory to upload a
30529       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
30530       requests failed, because the router descriptor has not been
30531       downloaded yet. In these cases, do not attempt to upload the
30532       rendezvous descriptor, but wait until the router descriptor is
30533       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
30534       descriptor from a hidden service directory for which the router
30535       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
30536       on 0.2.0.10-alpha.
30538   o Minor bugfixes:
30539     - Fix several infrequent memory leaks spotted by Coverity.
30540     - When testing for libevent functions, set the LDFLAGS variable
30541       correctly. Found by Riastradh.
30542     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
30543       bootstrapping with tunneled directory connections. Bugfix on
30544       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
30545     - When asked to connect to A.B.exit:80, if we don't know the IP for A
30546       and we know that server B rejects most-but-not all connections to
30547       port 80, we would previously reject the connection. Now, we assume
30548       the user knows what they were asking for. Fixes bug 752. Bugfix
30549       on 0.0.9rc5. Diagnosed by BarkerJr.
30550     - If we overrun our per-second write limits a little, count this as
30551       having used up our write allocation for the second, and choke
30552       outgoing directory writes. Previously, we had only counted this when
30553       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
30554       Bugfix on 0.2.0.x (??).
30555     - Remove the old v2 directory authority 'lefkada' from the default
30556       list. It has been gone for many months.
30557     - Stop doing unaligned memory access that generated bus errors on
30558       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
30559     - Make USR2 log-level switch take effect immediately. Bugfix on
30560       0.1.2.8-beta.
30562   o Minor bugfixes (controller):
30563     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
30564       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
30567 Changes in version 0.2.1.7-alpha - 2008-11-08
30568   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
30569   packages (and maybe other packages) noticed by Theo de Raadt, fixes
30570   a smaller security flaw that might allow an attacker to access local
30571   services, adds better defense against DNS poisoning attacks on exit
30572   relays, further improves hidden service performance, and fixes a
30573   variety of other issues.
30575   o Security fixes:
30576     - The "ClientDNSRejectInternalAddresses" config option wasn't being
30577       consistently obeyed: if an exit relay refuses a stream because its
30578       exit policy doesn't allow it, we would remember what IP address
30579       the relay said the destination address resolves to, even if it's
30580       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
30581     - The "User" and "Group" config options did not clear the
30582       supplementary group entries for the Tor process. The "User" option
30583       is now more robust, and we now set the groups to the specified
30584       user's primary group. The "Group" option is now ignored. For more
30585       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
30586       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
30587       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
30588     - Do not use or believe expired v3 authority certificates. Patch
30589       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
30591   o Minor features:
30592     - Now NodeFamily and MyFamily config options allow spaces in
30593       identity fingerprints, so it's easier to paste them in.
30594       Suggested by Lucky Green.
30595     - Implement the 0x20 hack to better resist DNS poisoning: set the
30596       case on outgoing DNS requests randomly, and reject responses that do
30597       not match the case correctly. This logic can be disabled with the
30598       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
30599       of servers that do not reliably preserve case in replies. See
30600       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
30601       for more info.
30602     - Preserve case in replies to DNSPort requests in order to support
30603       the 0x20 hack for resisting DNS poisoning attacks.
30605   o Hidden service performance improvements:
30606     - When the client launches an introduction circuit, retry with a
30607       new circuit after 30 seconds rather than 60 seconds.
30608     - Launch a second client-side introduction circuit in parallel
30609       after a delay of 15 seconds (based on work by Christian Wilms).
30610     - Hidden services start out building five intro circuits rather
30611       than three, and when the first three finish they publish a service
30612       descriptor using those. Now we publish our service descriptor much
30613       faster after restart.
30615   o Minor bugfixes:
30616     - Minor fix in the warning messages when you're having problems
30617       bootstrapping; also, be more forgiving of bootstrap problems when
30618       we're still making incremental progress on a given bootstrap phase.
30619     - When we're choosing an exit node for a circuit, and we have
30620       no pending streams, choose a good general exit rather than one that
30621       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
30622     - Send a valid END cell back when a client tries to connect to a
30623       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
30624       840. Patch from rovv.
30625     - If a broken client asks a non-exit router to connect somewhere,
30626       do not even do the DNS lookup before rejecting the connection.
30627       Fixes another case of bug 619. Patch from rovv.
30628     - Fix another case of assuming, when a specific exit is requested,
30629       that we know more than the user about what hosts it allows.
30630       Fixes another case of bug 752. Patch from rovv.
30631     - Check which hops rendezvous stream cells are associated with to
30632       prevent possible guess-the-streamid injection attacks from
30633       intermediate hops. Fixes another case of bug 446. Based on patch
30634       from rovv.
30635     - Avoid using a negative right-shift when comparing 32-bit
30636       addresses. Possible fix for bug 845 and bug 811.
30637     - Make the assert_circuit_ok() function work correctly on circuits that
30638       have already been marked for close.
30639     - Fix read-off-the-end-of-string error in unit tests when decoding
30640       introduction points.
30641     - Fix uninitialized size field for memory area allocation: may improve
30642       memory performance during directory parsing.
30643     - Treat duplicate certificate fetches as failures, so that we do
30644       not try to re-fetch an expired certificate over and over and over.
30645     - Do not say we're fetching a certificate when we'll in fact skip it
30646       because of a pending download.
30649 Changes in version 0.2.1.6-alpha - 2008-09-30
30650   Tor 0.2.1.6-alpha further improves performance and robustness of
30651   hidden services, starts work on supporting per-country relay selection,
30652   and fixes a variety of smaller issues.
30654   o Major features:
30655     - Implement proposal 121: make it possible to build hidden services
30656       that only certain clients are allowed to connect to. This is
30657       enforced at several points, so that unauthorized clients are unable
30658       to send INTRODUCE cells to the service, or even (depending on the
30659       type of authentication) to learn introduction points. This feature
30660       raises the bar for certain kinds of active attacks against hidden
30661       services. Code by Karsten Loesing.
30662     - Relays now store and serve v2 hidden service descriptors by default,
30663       i.e., the new default value for HidServDirectoryV2 is 1. This is
30664       the last step in proposal 114, which aims to make hidden service
30665       lookups more reliable.
30666     - Start work to allow node restrictions to include country codes. The
30667       syntax to exclude nodes in a country with country code XX is
30668       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
30669       refinement to decide what config options should take priority if
30670       you ask to both use a particular node and exclude it.
30671     - Allow ExitNodes list to include IP ranges and country codes, just
30672       like the Exclude*Nodes lists. Patch from Robert Hogan.
30674   o Major bugfixes:
30675     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
30676       Tor to fail to start if you had it configured to use a bridge
30677       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
30678     - When extending a circuit to a hidden service directory to upload a
30679       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
30680       requests failed, because the router descriptor had not been
30681       downloaded yet. In these cases, we now wait until the router
30682       descriptor is downloaded, and then retry. Likewise, clients
30683       now skip over a hidden service directory if they don't yet have
30684       its router descriptor, rather than futilely requesting it and
30685       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
30686       on 0.2.0.10-alpha.
30687     - When fetching v0 and v2 rendezvous service descriptors in parallel,
30688       we were failing the whole hidden service request when the v0
30689       descriptor fetch fails, even if the v2 fetch is still pending and
30690       might succeed. Similarly, if the last v2 fetch fails, we were
30691       failing the whole hidden service request even if a v0 fetch is
30692       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
30693     - DNS replies need to have names matching their requests, but
30694       these names should be in the questions section, not necessarily
30695       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
30697   o Minor features:
30698     - Update to the "September 1 2008" ip-to-country file.
30699     - Allow ports 465 and 587 in the default exit policy again. We had
30700       rejected them in 0.1.0.15, because back in 2005 they were commonly
30701       misconfigured and ended up as spam targets. We hear they are better
30702       locked down these days.
30703     - Use a lockfile to make sure that two Tor processes are not
30704       simultaneously running with the same datadir.
30705     - Serve the latest v3 networkstatus consensus via the control
30706       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
30707     - Better logging about stability/reliability calculations on directory
30708       servers.
30709     - Drop the requirement to have an open dir port for storing and
30710       serving v2 hidden service descriptors.
30711     - Directory authorities now serve a /tor/dbg-stability.txt URL to
30712       help debug WFU and MTBF calculations.
30713     - Implement most of Proposal 152: allow specialized servers to permit
30714       single-hop circuits, and clients to use those servers to build
30715       single-hop circuits when using a specialized controller. Patch
30716       from Josh Albrecht. Resolves feature request 768.
30717     - Add a -p option to tor-resolve for specifying the SOCKS port: some
30718       people find host:port too confusing.
30719     - Make TrackHostExit mappings expire a while after their last use, not
30720       after their creation. Patch from Robert Hogan.
30721     - Provide circuit purposes along with circuit events to the controller.
30723   o Minor bugfixes:
30724     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
30725       Reported by Tas.
30726     - Fixed some memory leaks -- some quite frequent, some almost
30727       impossible to trigger -- based on results from Coverity.
30728     - When testing for libevent functions, set the LDFLAGS variable
30729       correctly. Found by Riastradh.
30730     - Fix an assertion bug in parsing policy-related options; possible fix
30731       for bug 811.
30732     - Catch and report a few more bootstrapping failure cases when Tor
30733       fails to establish a TCP connection. Cleanup on 0.2.1.x.
30734     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
30735       bootstrapping with tunneled directory connections. Bugfix on
30736       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
30737     - When asked to connect to A.B.exit:80, if we don't know the IP for A
30738       and we know that server B rejects most-but-not all connections to
30739       port 80, we would previously reject the connection. Now, we assume
30740       the user knows what they were asking for. Fixes bug 752. Bugfix
30741       on 0.0.9rc5. Diagnosed by BarkerJr.
30742     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
30743       service directories if they have no advertised dir port. Bugfix
30744       on 0.2.0.10-alpha.
30745     - If we overrun our per-second write limits a little, count this as
30746       having used up our write allocation for the second, and choke
30747       outgoing directory writes. Previously, we had only counted this when
30748       we had met our limits precisely. Fixes bug 824. Patch by rovv.
30749       Bugfix on 0.2.0.x (??).
30750     - Avoid a "0 divided by 0" calculation when calculating router uptime
30751       at directory authorities. Bugfix on 0.2.0.8-alpha.
30752     - Make DNS resolved controller events into "CLOSED", not
30753       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
30754       bug 807.
30755     - Fix a bug where an unreachable relay would establish enough
30756       reachability testing circuits to do a bandwidth test -- if
30757       we already have a connection to the middle hop of the testing
30758       circuit, then it could establish the last hop by using the existing
30759       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
30760       circuits no longer use entry guards in 0.2.1.3-alpha.
30761     - If we have correct permissions on $datadir, we complain to stdout
30762       and fail to start. But dangerous permissions on
30763       $datadir/cached-status/ would cause us to open a log and complain
30764       there. Now complain to stdout and fail to start in both cases. Fixes
30765       bug 820, reported by seeess.
30766     - Remove the old v2 directory authority 'lefkada' from the default
30767       list. It has been gone for many months.
30769   o Code simplifications and refactoring:
30770     - Revise the connection_new functions so that a more typesafe variant
30771       exists. This will work better with Coverity, and let us find any
30772       actual mistakes we're making here.
30773     - Refactor unit testing logic so that dmalloc can be used sensibly
30774       with unit tests to check for memory leaks.
30775     - Move all hidden-service related fields from connection and circuit
30776       structure to substructures: this way they won't eat so much memory.
30779 Changes in version 0.2.0.31 - 2008-09-03
30780   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
30781   a big bug we're seeing where in rare cases traffic from one Tor stream
30782   gets mixed into another stream, and fixes a variety of smaller issues.
30784   o Major bugfixes:
30785     - Make sure that two circuits can never exist on the same connection
30786       with the same circuit ID, even if one is marked for close. This
30787       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
30788     - Relays now reject risky extend cells: if the extend cell includes
30789       a digest of all zeroes, or asks to extend back to the relay that
30790       sent the extend cell, tear down the circuit. Ideas suggested
30791       by rovv.
30792     - If not enough of our entry guards are available so we add a new
30793       one, we might use the new one even if it overlapped with the
30794       current circuit's exit relay (or its family). Anonymity bugfix
30795       pointed out by rovv.
30797   o Minor bugfixes:
30798     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
30799       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
30800     - Correctly detect the presence of the linux/netfilter_ipv4.h header
30801       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
30802     - Pick size of default geoip filename string correctly on windows.
30803       Fixes bug 806. Bugfix on 0.2.0.30.
30804     - Make the autoconf script accept the obsolete --with-ssl-dir
30805       option as an alias for the actually-working --with-openssl-dir
30806       option. Fix the help documentation to recommend --with-openssl-dir.
30807       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
30808     - When using the TransPort option on OpenBSD, and using the User
30809       option to change UID and drop privileges, make sure to open
30810       /dev/pf before dropping privileges. Fixes bug 782. Patch from
30811       Christopher Davis. Bugfix on 0.1.2.1-alpha.
30812     - Try to attach connections immediately upon receiving a RENDEZVOUS2
30813       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
30814       on the client side when connecting to a hidden service. Bugfix
30815       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
30816     - When closing an application-side connection because its circuit is
30817       getting torn down, generate the stream event correctly. Bugfix on
30818       0.1.2.x. Anonymous patch.
30821 Changes in version 0.2.1.5-alpha - 2008-08-31
30822   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
30823   in a lot of the infrastructure for adding authorization to hidden
30824   services, lays the groundwork for having clients read their load
30825   balancing information out of the networkstatus consensus rather than
30826   the individual router descriptors, addresses two potential anonymity
30827   issues, and fixes a variety of smaller issues.
30829   o Major features:
30830     - Convert many internal address representations to optionally hold
30831       IPv6 addresses.
30832     - Generate and accept IPv6 addresses in many protocol elements.
30833     - Make resolver code handle nameservers located at ipv6 addresses.
30834     - Begin implementation of proposal 121 ("Client authorization for
30835       hidden services"): configure hidden services with client
30836       authorization, publish descriptors for them, and configure
30837       authorization data for hidden services at clients. The next
30838       step is to actually access hidden services that perform client
30839       authorization.
30840     - More progress toward proposal 141: Network status consensus
30841       documents and votes now contain bandwidth information for each
30842       router and a summary of that router's exit policy. Eventually this
30843       will be used by clients so that they do not have to download every
30844       known descriptor before building circuits.
30846   o Major bugfixes (on 0.2.0.x and before):
30847     - When sending CREATED cells back for a given circuit, use a 64-bit
30848       connection ID to find the right connection, rather than an addr:port
30849       combination. Now that we can have multiple OR connections between
30850       the same ORs, it is no longer possible to use addr:port to uniquely
30851       identify a connection.
30852     - Relays now reject risky extend cells: if the extend cell includes
30853       a digest of all zeroes, or asks to extend back to the relay that
30854       sent the extend cell, tear down the circuit. Ideas suggested
30855       by rovv.
30856     - If not enough of our entry guards are available so we add a new
30857       one, we might use the new one even if it overlapped with the
30858       current circuit's exit relay (or its family). Anonymity bugfix
30859       pointed out by rovv.
30861   o Minor bugfixes:
30862     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
30863       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
30864     - When using the TransPort option on OpenBSD, and using the User
30865       option to change UID and drop privileges, make sure to open /dev/pf
30866       before dropping privileges. Fixes bug 782. Patch from Christopher
30867       Davis. Bugfix on 0.1.2.1-alpha.
30868     - Correctly detect the presence of the linux/netfilter_ipv4.h header
30869       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
30870     - Add a missing safe_str() call for a debug log message.
30871     - Use 64 bits instead of 32 bits for connection identifiers used with
30872       the controller protocol, to greatly reduce risk of identifier reuse.
30873     - Make the autoconf script accept the obsolete --with-ssl-dir
30874       option as an alias for the actually-working --with-openssl-dir
30875       option. Fix the help documentation to recommend --with-openssl-dir.
30876       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
30878   o Minor features:
30879     - Rate-limit too-many-sockets messages: when they happen, they happen
30880       a lot. Resolves bug 748.
30881     - Resist DNS poisoning a little better by making sure that names in
30882       answer sections match.
30883     - Print the SOCKS5 error message string as well as the error code
30884       when a tor-resolve request fails. Patch from Jacob.
30887 Changes in version 0.2.1.4-alpha - 2008-08-04
30888   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
30890   o Major bugfixes:
30891     - The address part of exit policies was not correctly written
30892       to router descriptors. This generated router descriptors that failed
30893       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
30894       on 0.2.1.3-alpha.
30895     - Tor triggered a false assert when extending a circuit to a relay
30896       but we already have a connection open to that relay. Noticed by
30897       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
30899   o Minor bugfixes:
30900     - Fix a hidden service logging bug: in some edge cases, the router
30901       descriptor of a previously picked introduction point becomes
30902       obsolete and we need to give up on it rather than continually
30903       complaining that it has become obsolete. Observed by xiando. Bugfix
30904       on 0.2.1.3-alpha.
30906   o Removed features:
30907     - Take out the TestVia config option, since it was a workaround for
30908       a bug that was fixed in Tor 0.1.1.21.
30911 Changes in version 0.2.1.3-alpha - 2008-08-03
30912   Tor 0.2.1.3-alpha implements most of the pieces to prevent
30913   infinite-length circuit attacks (see proposal 110); fixes a bug that
30914   might cause exit relays to corrupt streams they send back; allows
30915   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
30916   ExcludeExitNodes config options; and fixes a big pile of bugs.
30918   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
30919     - Send a bootstrap problem "warn" event on the first problem if the
30920       reason is NO_ROUTE (that is, our network is down).
30922   o Major features:
30923     - Implement most of proposal 110: The first K cells to be sent
30924       along a circuit are marked as special "early" cells; only K "early"
30925       cells will be allowed. Once this code is universal, we can block
30926       certain kinds of DOS attack by requiring that EXTEND commands must
30927       be sent using an "early" cell.
30929   o Major bugfixes:
30930     - Try to attach connections immediately upon receiving a RENDEZVOUS2
30931       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
30932       on the client side when connecting to a hidden service. Bugfix
30933       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
30934     - Ensure that two circuits can never exist on the same connection
30935       with the same circuit ID, even if one is marked for close. This
30936       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
30938   o Minor features:
30939     - When relays do their initial bandwidth measurement, don't limit
30940       to just our entry guards for the test circuits. Otherwise we tend
30941       to have multiple test circuits going through a single entry guard,
30942       which makes our bandwidth test less accurate. Fixes part of bug 654;
30943       patch contributed by Josh Albrecht.
30944     - Add an ExcludeExitNodes option so users can list a set of nodes
30945       that should be be excluded from the exit node position, but
30946       allowed elsewhere. Implements proposal 151.
30947     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
30948       ExcludeNodes and ExcludeExitNodes lists.
30949     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
30950       be more efficient. Formerly it was quadratic in the number of
30951       servers; now it should be linear. Fixes bug 509.
30952     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
30953       and n_conn_id_digest fields into a separate structure that's
30954       only needed when the circuit has not yet attached to an n_conn.
30956   o Minor bugfixes:
30957     - Change the contrib/tor.logrotate script so it makes the new
30958       logs as "_tor:_tor" rather than the default, which is generally
30959       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
30960     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
30961       warnings (occasionally), but it can also cause the compiler to
30962       eliminate error-checking code. Suggested by Peter Gutmann.
30963     - When a hidden service is giving up on an introduction point candidate
30964       that was not included in the last published rendezvous descriptor,
30965       don't reschedule publication of the next descriptor. Fixes bug 763.
30966       Bugfix on 0.0.9.3.
30967     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
30968       HiddenServiceExcludeNodes as obsolete: they never worked properly,
30969       and nobody claims to be using them. Fixes bug 754. Bugfix on
30970       0.1.0.1-rc. Patch from Christian Wilms.
30971     - Fix a small alignment and memory-wasting bug on buffer chunks.
30972       Spotted by rovv.
30974   o Minor bugfixes (controller):
30975     - When closing an application-side connection because its circuit
30976       is getting torn down, generate the stream event correctly.
30977       Bugfix on 0.1.2.x. Anonymous patch.
30979   o Removed features:
30980     - Remove all backward-compatibility code to support relays running
30981       versions of Tor so old that they no longer work at all on the
30982       Tor network.
30985 Changes in version 0.2.0.30 - 2008-07-15
30986   o Minor bugfixes:
30987     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
30988       warnings (occasionally), but it can also cause the compiler to
30989       eliminate error-checking code. Suggested by Peter Gutmann.
30992 Changes in version 0.2.0.29-rc - 2008-07-08
30993   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
30994   hidden-service performance bugs, and fixes a bunch of smaller bugs.
30996   o Major bugfixes:
30997     - If you have more than one bridge but don't know their keys,
30998       you would only launch a request for the descriptor of the first one
30999       on your list. (Tor considered launching requests for the others, but
31000       found that it already had a connection on the way for $0000...0000
31001       so it didn't open another.) Bugfix on 0.2.0.x.
31002     - If you have more than one bridge but don't know their keys, and the
31003       connection to one of the bridges failed, you would cancel all
31004       pending bridge connections. (After all, they all have the same
31005       digest.) Bugfix on 0.2.0.x.
31006     - When a hidden service was trying to establish an introduction point,
31007       and Tor had built circuits preemptively for such purposes, we
31008       were ignoring all the preemptive circuits and launching a new one
31009       instead. Bugfix on 0.2.0.14-alpha.
31010     - When a hidden service was trying to establish an introduction point,
31011       and Tor *did* manage to reuse one of the preemptively built
31012       circuits, it didn't correctly remember which one it used,
31013       so it asked for another one soon after, until there were no
31014       more preemptive circuits, at which point it launched one from
31015       scratch. Bugfix on 0.0.9.x.
31016     - Make directory servers include the X-Your-Address-Is: http header in
31017       their responses even for begin_dir conns. Now clients who only
31018       ever use begin_dir connections still have a way to learn their IP
31019       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
31021   o Minor bugfixes:
31022     - Fix a macro/CPP interaction that was confusing some compilers:
31023       some GCCs don't like #if/#endif pairs inside macro arguments.
31024       Fixes bug 707.
31025     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
31026       Fixes bug 704; fix from Steven Murdoch.
31027     - When opening /dev/null in finish_daemonize(), do not pass the
31028       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
31029       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
31030     - Correctly detect transparent proxy support on Linux hosts that
31031       require in.h to be included before netfilter_ipv4.h. Patch
31032       from coderman.
31033     - Disallow session resumption attempts during the renegotiation
31034       stage of the v2 handshake protocol. Clients should never be trying
31035       session resumption at this point, but apparently some did, in
31036       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
31037       found by Geoff Goodell.
31040 Changes in version 0.2.1.2-alpha - 2008-06-20
31041   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
31042   make it easier to set up your own private Tor network; fixes several
31043   big bugs with using more than one bridge relay; fixes a big bug with
31044   offering hidden services quickly after Tor starts; and uses a better
31045   API for reporting potential bootstrapping problems to the controller.
31047   o Major features:
31048     - New TestingTorNetwork config option to allow adjustment of
31049       previously constant values that, while reasonable, could slow
31050       bootstrapping. Implements proposal 135. Patch from Karsten.
31052   o Major bugfixes:
31053     - If you have more than one bridge but don't know their digests,
31054       you would only learn a request for the descriptor of the first one
31055       on your list. (Tor considered launching requests for the others, but
31056       found that it already had a connection on the way for $0000...0000
31057       so it didn't open another.) Bugfix on 0.2.0.x.
31058     - If you have more than one bridge but don't know their digests,
31059       and the connection to one of the bridges failed, you would cancel
31060       all pending bridge connections. (After all, they all have the
31061       same digest.) Bugfix on 0.2.0.x.
31062     - When establishing a hidden service, introduction points that
31063       originate from cannibalized circuits are completely ignored and not
31064       included in rendezvous service descriptors. This might be another
31065       reason for delay in making a hidden service available. Bugfix
31066       from long ago (0.0.9.x?)
31068   o Minor features:
31069     - Allow OpenSSL to use dynamic locks if it wants.
31070     - When building a consensus, do not include routers that are down.
31071       This will cut down 30% to 40% on consensus size. Implements
31072       proposal 138.
31073     - In directory authorities' approved-routers files, allow
31074       fingerprints with or without space.
31075     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
31076       controller can query our current bootstrap state in case it attaches
31077       partway through and wants to catch up.
31078     - Send an initial "Starting" bootstrap status event, so we have a
31079       state to start out in.
31081   o Minor bugfixes:
31082     - Asking for a conditional consensus at .../consensus/<fingerprints>
31083       would crash a dirserver if it did not already have a
31084       consensus. Bugfix on 0.2.1.1-alpha.
31085     - Clean up some macro/CPP interactions: some GCC versions don't like
31086       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
31087       0.2.0.x.
31089   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
31090     - Directory authorities shouldn't complain about bootstrapping
31091       problems just because they do a lot of reachability testing and
31092       some of the connection attempts fail.
31093     - Start sending "count" and "recommendation" key/value pairs in
31094       bootstrap problem status events, so the controller can hear about
31095       problems even before Tor decides they're worth reporting for sure.
31096     - If you're using bridges, generate "bootstrap problem" warnings
31097       as soon as you run out of working bridges, rather than waiting
31098       for ten failures -- which will never happen if you have less than
31099       ten bridges.
31100     - If we close our OR connection because there's been a circuit
31101       pending on it for too long, we were telling our bootstrap status
31102       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
31105 Changes in version 0.2.1.1-alpha - 2008-06-13
31106   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
31107   were making the Tor process bloat especially on Linux; makes our TLS
31108   handshake blend in better; sends "bootstrap phase" status events to
31109   the controller, so it can keep the user informed of progress (and
31110   problems) fetching directory information and establishing circuits;
31111   and adds a variety of smaller features.
31113   o Major features:
31114     - More work on making our TLS handshake blend in: modify the list
31115       of ciphers advertised by OpenSSL in client mode to even more
31116       closely resemble a common web browser. We cheat a little so that
31117       we can advertise ciphers that the locally installed OpenSSL doesn't
31118       know about.
31119     - Start sending "bootstrap phase" status events to the controller,
31120       so it can keep the user informed of progress fetching directory
31121       information and establishing circuits. Also inform the controller
31122       if we think we're stuck at a particular bootstrap phase. Implements
31123       proposal 137.
31124     - Resume using OpenSSL's RAND_poll() for better (and more portable)
31125       cross-platform entropy collection again. We used to use it, then
31126       stopped using it because of a bug that could crash systems that
31127       called RAND_poll when they had a lot of fds open. It looks like the
31128       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
31129       at startup, and to call RAND_poll() when we reseed later only if
31130       we have a non-buggy OpenSSL version.
31132   o Major bugfixes:
31133     - When we choose to abandon a new entry guard because we think our
31134       older ones might be better, close any circuits pending on that
31135       new entry guard connection. This fix should make us recover much
31136       faster when our network is down and then comes back. Bugfix on
31137       0.1.2.8-beta; found by lodger.
31139   o Memory fixes and improvements:
31140     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
31141       to avoid unused RAM in buffer chunks and memory pools.
31142     - Speed up parsing and cut down on memory fragmentation by using
31143       stack-style allocations for parsing directory objects. Previously,
31144       this accounted for over 40% of allocations from within Tor's code
31145       on a typical directory cache.
31146     - Use a Bloom filter rather than a digest-based set to track which
31147       descriptors we need to keep around when we're cleaning out old
31148       router descriptors. This speeds up the computation significantly,
31149       and may reduce fragmentation.
31150     - Reduce the default smartlist size from 32 to 16; it turns out that
31151       most smartlists hold around 8-12 elements tops.
31152     - Make dumpstats() log the fullness and size of openssl-internal
31153       buffers.
31154     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
31155       patch to their OpenSSL, turn it on to save memory on servers. This
31156       patch will (with any luck) get included in a mainline distribution
31157       before too long.
31158     - Never use OpenSSL compression: it wastes RAM and CPU trying to
31159       compress cells, which are basically all encrypted, compressed,
31160       or both.
31162   o Minor bugfixes:
31163     - Stop reloading the router list from disk for no reason when we
31164       run out of reachable directory mirrors. Once upon a time reloading
31165       it would set the 'is_running' flag back to 1 for them. It hasn't
31166       done that for a long time.
31167     - In very rare situations new hidden service descriptors were
31168       published earlier than 30 seconds after the last change to the
31169       service. (We currently think that a hidden service descriptor
31170       that's been stable for 30 seconds is worth publishing.)
31172   o Minor features:
31173     - Allow separate log levels to be configured for different logging
31174       domains. For example, this allows one to log all notices, warnings,
31175       or errors, plus all memory management messages of level debug or
31176       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
31177     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
31178       and stop using a warning that had become unfixably verbose under
31179       GCC 4.3.
31180     - New --hush command-line option similar to --quiet. While --quiet
31181       disables all logging to the console on startup, --hush limits the
31182       output to messages of warning and error severity.
31183     - Servers support a new URL scheme for consensus downloads that
31184       allows the client to specify which authorities are trusted.
31185       The server then only sends the consensus if the client will trust
31186       it. Otherwise a 404 error is sent back. Clients use this
31187       new scheme when the server supports it (meaning it's running
31188       0.2.1.1-alpha or later). Implements proposal 134.
31189     - New configure/torrc options (--enable-geoip-stats,
31190       DirRecordUsageByCountry) to record how many IPs we've served
31191       directory info to in each country code, how many status documents
31192       total we've sent to each country code, and what share of the total
31193       directory requests we should expect to see.
31194     - Use the TLS1 hostname extension to more closely resemble browser
31195       behavior.
31196     - Lots of new unit tests.
31197     - Add a macro to implement the common pattern of iterating through
31198       two parallel lists in lockstep.
31201 Changes in version 0.2.0.28-rc - 2008-06-13
31202   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
31203   performance bug, and fixes a bunch of smaller bugs.
31205   o Anonymity fixes:
31206     - Fix a bug where, when we were choosing the 'end stream reason' to
31207       put in our relay end cell that we send to the exit relay, Tor
31208       clients on Windows were sometimes sending the wrong 'reason'. The
31209       anonymity problem is that exit relays may be able to guess whether
31210       the client is running Windows, thus helping partition the anonymity
31211       set. Down the road we should stop sending reasons to exit relays,
31212       or otherwise prevent future versions of this bug.
31214   o Major bugfixes:
31215     - While setting up a hidden service, some valid introduction circuits
31216       were overlooked and abandoned. This might be the reason for
31217       the long delay in making a hidden service available. Bugfix on
31218       0.2.0.14-alpha.
31220   o Minor features:
31221     - Update to the "June 9 2008" ip-to-country file.
31222     - Run 'make test' as part of 'make dist', so we stop releasing so
31223       many development snapshots that fail their unit tests.
31225   o Minor bugfixes:
31226     - When we're checking if we have enough dir info for each relay
31227       to begin establishing circuits, make sure that we actually have
31228       the descriptor listed in the consensus, not just any descriptor.
31229       Bugfix on 0.1.2.x.
31230     - Bridge relays no longer print "xx=0" in their extrainfo document
31231       for every single country code in the geoip db. Bugfix on
31232       0.2.0.27-rc.
31233     - Only warn when we fail to load the geoip file if we were planning to
31234       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
31235     - If we change our MaxAdvertisedBandwidth and then reload torrc,
31236       Tor won't realize it should publish a new relay descriptor. Fixes
31237       bug 688, reported by mfr. Bugfix on 0.1.2.x.
31238     - When we haven't had any application requests lately, don't bother
31239       logging that we have expired a bunch of descriptors. Bugfix
31240       on 0.1.2.x.
31241     - Make relay cells written on a connection count as non-padding when
31242       tracking how long a connection has been in use. Bugfix on
31243       0.2.0.1-alpha. Spotted by lodger.
31244     - Fix unit tests in 0.2.0.27-rc.
31245     - Fix compile on Windows.
31248 Changes in version 0.2.0.27-rc - 2008-06-03
31249   Tor 0.2.0.27-rc adds a few features we left out of the earlier
31250   release candidates. In particular, we now include an IP-to-country
31251   GeoIP database, so controllers can easily look up what country a
31252   given relay is in, and so bridge relays can give us some sanitized
31253   summaries about which countries are making use of bridges. (See proposal
31254   126-geoip-fetching.txt for details.)
31256   o Major features:
31257     - Include an IP-to-country GeoIP file in the tarball, so bridge
31258       relays can report sanitized summaries of the usage they're seeing.
31260   o Minor features:
31261     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
31262       Robert Hogan. Fixes the first part of bug 681.
31263     - Make bridge authorities never serve extrainfo docs.
31264     - Add support to detect Libevent versions in the 1.4.x series
31265       on mingw.
31266     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
31267     - Include a new contrib/tor-exit-notice.html file that exit relay
31268       operators can put on their website to help reduce abuse queries.
31270   o Minor bugfixes:
31271     - When tunneling an encrypted directory connection, and its first
31272       circuit fails, do not leave it unattached and ask the controller
31273       to deal. Fixes the second part of bug 681.
31274     - Make bridge authorities correctly expire old extrainfo documents
31275       from time to time.
31278 Changes in version 0.2.0.26-rc - 2008-05-13
31279   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
31280   in Debian's OpenSSL packages. All users running any 0.2.0.x version
31281   should upgrade, whether they're running Debian or not.
31283   o Major security fixes:
31284     - Use new V3 directory authority keys on the tor26, gabelmoo, and
31285       moria1 V3 directory authorities. The old keys were generated with
31286       a vulnerable version of Debian's OpenSSL package, and must be
31287       considered compromised. Other authorities' keys were not generated
31288       with an affected version of OpenSSL.
31290   o Major bugfixes:
31291     - List authority signatures as "unrecognized" based on DirServer
31292       lines, not on cert cache. Bugfix on 0.2.0.x.
31294   o Minor features:
31295     - Add a new V3AuthUseLegacyKey option to make it easier for
31296       authorities to change their identity keys if they have to.
31299 Changes in version 0.2.0.25-rc - 2008-04-23
31300   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
31302   o Major bugfixes:
31303     - Remember to initialize threading before initializing logging.
31304       Otherwise, many BSD-family implementations will crash hard on
31305       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
31307   o Minor bugfixes:
31308     - Authorities correctly free policies on bad servers on
31309       exit. Fixes bug 672. Bugfix on 0.2.0.x.
31312 Changes in version 0.2.0.24-rc - 2008-04-22
31313   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
31314   v3 directory authority, makes relays with dynamic IP addresses and no
31315   DirPort notice more quickly when their IP address changes, fixes a few
31316   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
31318   o New directory authorities:
31319     - Take lefkada out of the list of v3 directory authorities, since
31320       it has been down for months.
31321     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
31322       authority.
31324   o Major bugfixes:
31325     - Detect address changes more quickly on non-directory mirror
31326       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
31328   o Minor features (security):
31329     - Reject requests for reverse-dns lookup of names that are in
31330       a private address space. Patch from lodger.
31331     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
31332       from lodger.
31334   o Minor bugfixes (crashes):
31335     - Avoid a rare assert that can trigger when Tor doesn't have much
31336       directory information yet and it tries to fetch a v2 hidden
31337       service descriptor. Fixes bug 651, reported by nwf.
31338     - Initialize log mutex before initializing dmalloc. Otherwise,
31339       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
31340     - Use recursive pthread mutexes in order to avoid deadlock when
31341       logging debug-level messages to a controller. Bug spotted by nwf,
31342       bugfix on 0.2.0.16-alpha.
31344   o Minor bugfixes (resource management):
31345     - Keep address policies from leaking memory: start their refcount
31346       at 1, not 2. Bugfix on 0.2.0.16-alpha.
31347     - Free authority certificates on exit, so they don't look like memory
31348       leaks. Bugfix on 0.2.0.19-alpha.
31349     - Free static hashtables for policy maps and for TLS connections on
31350       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
31351     - Avoid allocating extra space when computing consensuses on 64-bit
31352       platforms. Bug spotted by aakova.
31354   o Minor bugfixes (misc):
31355     - Do not read the configuration file when we've only been told to
31356       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
31357       based on patch from Sebastian Hahn.
31358     - Exit relays that are used as a client can now reach themselves
31359       using the .exit notation, rather than just launching an infinite
31360       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
31361     - When attempting to open a logfile fails, tell us why.
31362     - Fix a dumb bug that was preventing us from knowing that we should
31363       preemptively build circuits to handle expected directory requests.
31364       Fixes bug 660. Bugfix on 0.1.2.x.
31365     - Warn less verbosely about clock skew from netinfo cells from
31366       untrusted sources. Fixes bug 663.
31367     - Make controller stream events for DNS requests more consistent,
31368       by adding "new stream" events for DNS requests, and removing
31369       spurious "stream closed" events" for cached reverse resolves.
31370       Patch from mwenge. Fixes bug 646.
31371     - Correctly notify one-hop connections when a circuit build has
31372       failed. Possible fix for bug 669. Found by lodger.
31375 Changes in version 0.2.0.23-rc - 2008-03-24
31376   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
31377   makes bootstrapping faster if the first directory mirror you contact
31378   is down. The bundles also include the new Vidalia 0.1.2 release.
31380   o Major bugfixes:
31381     - When a tunneled directory request is made to a directory server
31382       that's down, notice after 30 seconds rather than 120 seconds. Also,
31383       fail any begindir streams that are pending on it, so they can
31384       retry elsewhere. This was causing multi-minute delays on bootstrap.
31387 Changes in version 0.2.0.22-rc - 2008-03-18
31388   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
31389   enables encrypted directory connections by default for non-relays, fixes
31390   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
31391   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
31393   o Major features:
31394     - Enable encrypted directory connections by default for non-relays,
31395       so censor tools that block Tor directory connections based on their
31396       plaintext patterns will no longer work. This means Tor works in
31397       certain censored countries by default again.
31399   o Major bugfixes:
31400     - Make sure servers always request certificates from clients during
31401       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
31402     - Do not enter a CPU-eating loop when a connection is closed in
31403       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
31404       diagnosed by lodger; bugfix on 0.2.0.20-rc.
31405     - Fix assertion failure that could occur when a blocked circuit
31406       became unblocked, and it had pending client DNS requests. Bugfix
31407       on 0.2.0.1-alpha. Fixes bug 632.
31409   o Minor bugfixes (on 0.1.2.x):
31410     - Generate "STATUS_SERVER" events rather than misspelled
31411       "STATUS_SEVER" events. Caught by mwenge.
31412     - When counting the number of bytes written on a TLS connection,
31413       look at the BIO actually used for writing to the network, not
31414       at the BIO used (sometimes) to buffer data for the network.
31415       Looking at different BIOs could result in write counts on the
31416       order of ULONG_MAX. Fixes bug 614.
31417     - On Windows, correctly detect errors when listing the contents of
31418       a directory. Fix from lodger.
31420   o Minor bugfixes (on 0.2.0.x):
31421     - Downgrade "sslv3 alert handshake failure" message to INFO.
31422     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
31423       left BandwidthRate and BandwidthBurst at the default, we would be
31424       silently limited by those defaults. Now raise them to match the
31425       RelayBandwidth* values.
31426     - Fix the SVK version detection logic to work correctly on a branch.
31427     - Make --enable-openbsd-malloc work correctly on Linux with alpha
31428       CPUs. Fixes bug 625.
31429     - Logging functions now check that the passed severity is sane.
31430     - Use proper log levels in the testsuite call of
31431       get_interface_address6().
31432     - When using a nonstandard malloc, do not use the platform values for
31433       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
31434     - Make the openbsd malloc code use 8k pages on alpha CPUs and
31435       16k pages on ia64.
31436     - Detect mismatched page sizes when using --enable-openbsd-malloc.
31437     - Avoid double-marked-for-close warning when certain kinds of invalid
31438       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
31439       for bug 617. Bugfix on 0.2.0.1-alpha.
31440     - Make sure that the "NULL-means-reject *:*" convention is followed by
31441       all the policy manipulation functions, avoiding some possible crash
31442       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
31443     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
31444       actually works, and doesn't warn about every single reverse lookup.
31445       Fixes the other part of bug 617. Bugfix on 0.2.0.1-alpha.
31447   o Minor features:
31448     - Only log guard node status when guard node status has changed.
31449     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
31450       make "INFO" 75% less verbose.
31453 Changes in version 0.2.0.21-rc - 2008-03-02
31454   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
31455   makes Tor work well with Vidalia again, fixes a rare assert bug,
31456   and fixes a pair of more minor bugs. The bundles also include Vidalia
31457   0.1.0 and Torbutton 1.1.16.
31459   o Major bugfixes:
31460     - The control port should declare that it requires password auth
31461       when HashedControlSessionPassword is set too. Patch from Matt Edman;
31462       bugfix on 0.2.0.20-rc. Fixes bug 615.
31463     - Downgrade assert in connection_buckets_decrement() to a log message.
31464       This may help us solve bug 614, and in any case will make its
31465       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
31466     - We were sometimes miscounting the number of bytes read from the
31467       network, causing our rate limiting to not be followed exactly.
31468       Bugfix on 0.2.0.16-alpha. Reported by lodger.
31470   o Minor bugfixes:
31471     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
31472       OpenSSL versions should have been working fine. Diagnosis and patch
31473       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
31474       Bugfix on 0.2.0.20-rc.
31477 Changes in version 0.2.0.20-rc - 2008-02-24
31478   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
31479   makes more progress towards normalizing Tor's TLS handshake, makes
31480   hidden services work better again, helps relays bootstrap if they don't
31481   know their IP address, adds optional support for linking in openbsd's
31482   allocator or tcmalloc, allows really fast relays to scale past 15000
31483   sockets, and fixes a bunch of minor bugs reported by Veracode.
31485   o Major features:
31486     - Enable the revised TLS handshake based on the one designed by
31487       Steven Murdoch in proposal 124, as revised in proposal 130. It
31488       includes version negotiation for OR connections as described in
31489       proposal 105. The new handshake is meant to be harder for censors
31490       to fingerprint, and it adds the ability to detect certain kinds of
31491       man-in-the-middle traffic analysis attacks. The version negotiation
31492       feature will allow us to improve Tor's link protocol more safely
31493       in the future.
31494     - Choose which bridge to use proportional to its advertised bandwidth,
31495       rather than uniformly at random. This should speed up Tor for
31496       bridge users. Also do this for people who set StrictEntryNodes.
31497     - When a TrackHostExits-chosen exit fails too many times in a row,
31498       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
31500   o Major bugfixes:
31501     - Resolved problems with (re-)fetching hidden service descriptors.
31502       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
31503       and 0.2.0.19-alpha.
31504     - If we only ever used Tor for hidden service lookups or posts, we
31505       would stop building circuits and start refusing connections after
31506       24 hours, since we falsely believed that Tor was dormant. Reported
31507       by nwf; bugfix on 0.1.2.x.
31508     - Servers that don't know their own IP address should go to the
31509       authorities for their first directory fetch, even if their DirPort
31510       is off or if they don't know they're reachable yet. This will help
31511       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
31512     - When counting the number of open sockets, count not only the number
31513       of sockets we have received from the socket() call, but also
31514       the number we've gotten from accept() and socketpair(). This bug
31515       made us fail to count all sockets that we were using for incoming
31516       connections. Bugfix on 0.2.0.x.
31517     - Fix code used to find strings within buffers, when those strings
31518       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
31519     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
31520     - Add a new __HashedControlSessionPassword option for controllers
31521       to use for one-off session password hashes that shouldn't get
31522       saved to disk by SAVECONF --- Vidalia users were accumulating a
31523       pile of HashedControlPassword lines in their torrc files, one for
31524       each time they had restarted Tor and then clicked Save. Make Tor
31525       automatically convert "HashedControlPassword" to this new option but
31526       only when it's given on the command line. Partial fix for bug 586.
31528   o Minor features (performance):
31529     - Tune parameters for cell pool allocation to minimize amount of
31530       RAM overhead used.
31531     - Add OpenBSD malloc code from phk as an optional malloc
31532       replacement on Linux: some glibc libraries do very poorly
31533       with Tor's memory allocation patterns. Pass
31534       --enable-openbsd-malloc to get the replacement malloc code.
31535     - Add a --with-tcmalloc option to the configure script to link
31536       against tcmalloc (if present). Does not yet search for
31537       non-system include paths.
31538     - Stop imposing an arbitrary maximum on the number of file descriptors
31539       used for busy servers. Bug reported by Olaf Selke; patch from
31540       Sebastian Hahn.
31542   o Minor features (other):
31543     - When SafeLogging is disabled, log addresses along with all TLS
31544       errors.
31545     - When building with --enable-gcc-warnings, check for whether Apple's
31546       warning "-Wshorten-64-to-32" is available.
31547     - Add a --passphrase-fd argument to the tor-gencert command for
31548       scriptability.
31550   o Minor bugfixes (memory leaks and code problems):
31551     - We were leaking a file descriptor if Tor started with a zero-length
31552       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
31553     - Detect size overflow in zlib code. Reported by Justin Ferguson and
31554       Dan Kaminsky.
31555     - We were comparing the raw BridgePassword entry with a base64'ed
31556       version of it, when handling a "/tor/networkstatus-bridges"
31557       directory request. Now compare correctly. Noticed by Veracode.
31558     - Recover from bad tracked-since value in MTBF-history file.
31559       Should fix bug 537.
31560     - Alter the code that tries to recover from unhandled write
31561       errors, to not try to flush onto a socket that's given us
31562       unhandled errors. Bugfix on 0.1.2.x.
31563     - Make Unix controlsockets work correctly on OpenBSD. Patch from
31564       tup. Bugfix on 0.2.0.3-alpha.
31566   o Minor bugfixes (other):
31567     - If we have an extra-info document for our server, always make
31568       it available on the control port, even if we haven't gotten
31569       a copy of it from an authority yet. Patch from mwenge.
31570     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
31571     - Directory mirrors no longer include a guess at the client's IP
31572       address if the connection appears to be coming from the same /24
31573       network; it was producing too many wrong guesses.
31574     - Make the new hidden service code respect the SafeLogging setting.
31575       Bugfix on 0.2.0.x. Patch from Karsten.
31576     - When starting as an authority, do not overwrite all certificates
31577       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
31578     - If we're trying to flush the last bytes on a connection (for
31579       example, when answering a directory request), reset the
31580       time-to-give-up timeout every time we manage to write something
31581       on the socket. Bugfix on 0.1.2.x.
31582     - Change the behavior of "getinfo status/good-server-descriptor"
31583       so it doesn't return failure when any authority disappears.
31584     - Even though the man page said that "TrackHostExits ." should
31585       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
31586     - Report TLS "zero return" case as a "clean close" and "IO error"
31587       as a "close". Stop calling closes "unexpected closes": existing
31588       Tors don't use SSL_close(), so having a connection close without
31589       the TLS shutdown handshake is hardly unexpected.
31590     - Send NAMESERVER_STATUS messages for a single failed nameserver
31591       correctly.
31593   o Code simplifications and refactoring:
31594     - Remove the tor_strpartition function: its logic was confused,
31595       and it was only used for one thing that could be implemented far
31596       more easily.
31599 Changes in version 0.2.0.19-alpha - 2008-02-09
31600   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
31601   handshake, makes path selection for relays more secure and IP address
31602   guessing more robust, and generally fixes a lot of bugs in preparation
31603   for calling the 0.2.0 branch stable.
31605   o Major features:
31606     - Do not include recognizeable strings in the commonname part of
31607       Tor's x509 certificates.
31609   o Major bugfixes:
31610     - If we're a relay, avoid picking ourselves as an introduction point,
31611       a rendezvous point, or as the final hop for internal circuits. Bug
31612       reported by taranis and lodger. Bugfix on 0.1.2.x.
31613     - Patch from "Andrew S. Lists" to catch when we contact a directory
31614       mirror at IP address X and he says we look like we're coming from
31615       IP address X. Bugfix on 0.1.2.x.
31617   o Minor features (security):
31618     - Be more paranoid about overwriting sensitive memory on free(),
31619       as a defensive programming tactic to ensure forward secrecy.
31621   o Minor features (directory authority):
31622     - Actually validate the options passed to AuthDirReject,
31623       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
31624     - Reject router descriptors with out-of-range bandwidthcapacity or
31625       bandwidthburst values.
31627   o Minor features (controller):
31628     - Reject controller commands over 1MB in length. This keeps rogue
31629       processes from running us out of memory.
31631   o Minor features (misc):
31632     - Give more descriptive well-formedness errors for out-of-range
31633       hidden service descriptor/protocol versions.
31634     - Make memory debugging information describe more about history
31635       of cell allocation, so we can help reduce our memory use.
31637   o Deprecated features (controller):
31638     - The status/version/num-versioning and status/version/num-concurring
31639       GETINFO options are no longer useful in the v3 directory protocol:
31640       treat them as deprecated, and warn when they're used.
31642   o Minor bugfixes:
31643     - When our consensus networkstatus has been expired for a while, stop
31644       being willing to build circuits using it. Fixes bug 401. Bugfix
31645       on 0.1.2.x.
31646     - Directory caches now fetch certificates from all authorities
31647       listed in a networkstatus consensus, even when they do not
31648       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
31649     - When connecting to a bridge without specifying its key, insert
31650       the connection into the identity-to-connection map as soon as
31651       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
31652     - Detect versions of OS X where malloc_good_size() is present in the
31653       library but never actually declared. Resolves bug 587. Bugfix
31654       on 0.2.0.x.
31655     - Stop incorrectly truncating zlib responses to directory authority
31656       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
31657     - Stop recommending that every server operator send mail to tor-ops.
31658       Resolves bug 597. Bugfix on 0.1.2.x.
31659     - Don't trigger an assert if we start a directory authority with a
31660       private IP address (like 127.0.0.1).
31661     - Avoid possible failures when generating a directory with routers
31662       with over-long versions strings, or too many flags set. Bugfix
31663       on 0.1.2.x.
31664     - If an attempt to launch a DNS resolve request over the control
31665       port fails because we have overrun the limit on the number of
31666       connections, tell the controller that the request has failed.
31667     - Avoid using too little bandwidth when our clock skips a few
31668       seconds. Bugfix on 0.1.2.x.
31669     - Fix shell error when warning about missing packages in configure
31670       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
31671     - Do not become confused when receiving a spurious VERSIONS-like
31672       cell from a confused v1 client. Bugfix on 0.2.0.x.
31673     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
31674       introduction points for a hidden service have failed. Patch from
31675       Karsten Loesing. Bugfix on 0.2.0.x.
31677   o Code simplifications and refactoring:
31678     - Remove some needless generality from cpuworker code, for improved
31679       type-safety.
31680     - Stop overloading the circuit_t.onionskin field for both "onionskin
31681       from a CREATE cell that we are waiting for a cpuworker to be
31682       assigned" and "onionskin from an EXTEND cell that we are going to
31683       send to an OR as soon as we are connected". Might help with bug 600.
31684     - Add an in-place version of aes_crypt() so that we can avoid doing a
31685       needless memcpy() call on each cell payload.
31688 Changes in version 0.2.0.18-alpha - 2008-01-25
31689   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
31690   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
31691   that can warn or reject connections to ports generally associated with
31692   vulnerable-plaintext protocols.
31694   o New directory authorities:
31695     - Set up dannenberg (run by CCC) as the sixth v3 directory
31696       authority.
31698   o Major bugfixes:
31699     - Fix a major memory leak when attempting to use the v2 TLS
31700       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
31701     - We accidentally enabled the under-development v2 TLS handshake
31702       code, which was causing log entries like "TLS error while
31703       renegotiating handshake". Disable it again. Resolves bug 590.
31704     - We were computing the wrong Content-Length: header for directory
31705       responses that need to be compressed on the fly, causing clients
31706       asking for those items to always fail. Bugfix on 0.2.0.x; partially
31707       fixes bug 593.
31709   o Major features:
31710     - Avoid going directly to the directory authorities even if you're a
31711       relay, if you haven't found yourself reachable yet or if you've
31712       decided not to advertise your dirport yet. Addresses bug 556.
31713     - If we've gone 12 hours since our last bandwidth check, and we
31714       estimate we have less than 50KB bandwidth capacity but we could
31715       handle more, do another bandwidth test.
31716     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
31717       Tor can warn and/or refuse connections to ports commonly used with
31718       vulnerable-plaintext protocols. Currently we warn on ports 23,
31719       109, 110, and 143, but we don't reject any.
31721   o Minor bugfixes:
31722     - When we setconf ClientOnly to 1, close any current OR and Dir
31723       listeners. Reported by mwenge.
31724     - When we get a consensus that's been signed by more people than
31725       we expect, don't log about it; it's not a big deal. Reported
31726       by Kyle Williams.
31728   o Minor features:
31729     - Don't answer "/tor/networkstatus-bridges" directory requests if
31730       the request isn't encrypted.
31731     - Make "ClientOnly 1" config option disable directory ports too.
31732     - Patches from Karsten Loesing to make v2 hidden services more
31733       robust: work even when there aren't enough HSDir relays available;
31734       retry when a v2 rend desc fetch fails; but don't retry if we
31735       already have a usable v0 rend desc.
31738 Changes in version 0.2.0.17-alpha - 2008-01-17
31739   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
31741   o Compile fixes:
31742     - Make the tor-gencert man page get included correctly in the tarball.
31745 Changes in version 0.2.0.16-alpha - 2008-01-17
31746   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
31747   Loesing, and generally cleans up a lot of features and minor bugs.
31749   o New directory authorities:
31750     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
31751       authority.
31753   o Major performance improvements:
31754     - Switch our old ring buffer implementation for one more like that
31755       used by free Unix kernels. The wasted space in a buffer with 1mb
31756       of data will now be more like 8k than 1mb. The new implementation
31757       also avoids realloc();realloc(); patterns that can contribute to
31758       memory fragmentation.
31760   o Minor features:
31761     - Configuration files now accept C-style strings as values. This
31762       helps encode characters not allowed in the current configuration
31763       file format, such as newline or #. Addresses bug 557.
31764     - Although we fixed bug 539 (where servers would send HTTP status 503
31765       responses _and_ send a body too), there are still servers out
31766       there that haven't upgraded. Therefore, make clients parse such
31767       bodies when they receive them.
31768     - When we're not serving v2 directory information, there is no reason
31769       to actually keep any around. Remove the obsolete files and directory
31770       on startup if they are very old and we aren't going to serve them.
31772   o Minor performance improvements:
31773     - Reference-count and share copies of address policy entries; only 5%
31774       of them were actually distinct.
31775     - Never walk through the list of logs if we know that no log is
31776       interested in a given message.
31778   o Minor bugfixes:
31779     - When an authority has not signed a consensus, do not try to
31780       download a nonexistent "certificate with key 00000000". Bugfix
31781       on 0.2.0.x. Fixes bug 569.
31782     - Fix a rare assert error when we're closing one of our threads:
31783       use a mutex to protect the list of logs, so we never write to the
31784       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
31785       bug 575, which is kind of the revenge of bug 222.
31786     - Patch from Karsten Loesing to complain less at both the client
31787       and the relay when a relay used to have the HSDir flag but doesn't
31788       anymore, and we try to upload a hidden service descriptor.
31789     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
31790       0.2.0.15-alpha.
31791     - Do not try to download missing certificates until we have tried
31792       to check our fallback consensus. Fixes bug 583.
31793     - Make bridges round reported GeoIP stats info up to the nearest
31794       estimate, not down. Now we can distinguish between "0 people from
31795       this country" and "1 person from this country".
31796     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
31797     - Avoid possible segfault if key generation fails in
31798       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
31799     - Avoid segfault in the case where a badly behaved v2 versioning
31800       directory sends a signed networkstatus with missing client-versions.
31801       Bugfix on 0.1.2.
31802     - Avoid segfaults on certain complex invocations of
31803       router_get_by_hexdigest(). Bugfix on 0.1.2.
31804     - Correct bad index on array access in parse_http_time(). Bugfix
31805       on 0.2.0.
31806     - Fix possible bug in vote generation when server versions are present
31807       but client versions are not.
31808     - Fix rare bug on REDIRECTSTREAM control command when called with no
31809       port set: it could erroneously report an error when none had
31810       happened.
31811     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
31812       compressing large objects and find ourselves with more than 4k
31813       left over. Bugfix on 0.2.0.
31814     - Fix a small memory leak when setting up a hidden service.
31815     - Fix a few memory leaks that could in theory happen under bizarre
31816       error conditions.
31817     - Fix an assert if we post a general-purpose descriptor via the
31818       control port but that descriptor isn't mentioned in our current
31819       network consensus. Bug reported by Jon McLachlan; bugfix on
31820       0.2.0.9-alpha.
31822   o Minor features (controller):
31823     - Get NS events working again. Patch from tup.
31824     - The GETCONF command now escapes and quotes configuration values
31825       that don't otherwise fit into the torrc file.
31826     - The SETCONF command now handles quoted values correctly.
31828   o Minor features (directory authorities):
31829     - New configuration options to override default maximum number of
31830       servers allowed on a single IP address. This is important for
31831       running a test network on a single host.
31832     - Actually implement the -s option to tor-gencert.
31833     - Add a manual page for tor-gencert.
31835   o Minor features (bridges):
31836     - Bridge authorities no longer serve bridge descriptors over
31837       unencrypted connections.
31839   o Minor features (other):
31840     - Add hidden services and DNSPorts to the list of things that make
31841       Tor accept that it has running ports. Change starting Tor with no
31842       ports from a fatal error to a warning; we might change it back if
31843       this turns out to confuse anybody. Fixes bug 579.
31846 Changes in version 0.1.2.19 - 2008-01-17
31847   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
31848   exit policy a little bit more conservative so it's safer to run an
31849   exit relay on a home system, and fixes a variety of smaller issues.
31851   o Security fixes:
31852     - Exit policies now reject connections that are addressed to a
31853       relay's public (external) IP address too, unless
31854       ExitPolicyRejectPrivate is turned off. We do this because too
31855       many relays are running nearby to services that trust them based
31856       on network address.
31858   o Major bugfixes:
31859     - When the clock jumps forward a lot, do not allow the bandwidth
31860       buckets to become negative. Fixes bug 544.
31861     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
31862       on every successful resolve. Reported by Mike Perry.
31863     - Purge old entries from the "rephist" database and the hidden
31864       service descriptor database even when DirPort is zero.
31865     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
31866       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
31867       crashing or mis-answering these requests.
31868     - When we decide to send a 503 response to a request for servers, do
31869       not then also send the server descriptors: this defeats the whole
31870       purpose. Fixes bug 539.
31872   o Minor bugfixes:
31873     - Changing the ExitPolicyRejectPrivate setting should cause us to
31874       rebuild our server descriptor.
31875     - Fix handling of hex nicknames when answering controller requests for
31876       networkstatus by name, or when deciding whether to warn about
31877       unknown routers in a config option. (Patch from mwenge.)
31878     - Fix a couple of hard-to-trigger autoconf problems that could result
31879       in really weird results on platforms whose sys/types.h files define
31880       nonstandard integer types.
31881     - Don't try to create the datadir when running --verify-config or
31882       --hash-password. Resolves bug 540.
31883     - If we were having problems getting a particular descriptor from the
31884       directory caches, and then we learned about a new descriptor for
31885       that router, we weren't resetting our failure count. Reported
31886       by lodger.
31887     - Although we fixed bug 539 (where servers would send HTTP status 503
31888       responses _and_ send a body too), there are still servers out there
31889       that haven't upgraded. Therefore, make clients parse such bodies
31890       when they receive them.
31891     - Run correctly on systems where rlim_t is larger than unsigned long.
31892       This includes some 64-bit systems.
31893     - Run correctly on platforms (like some versions of OS X 10.5) where
31894       the real limit for number of open files is OPEN_FILES, not rlim_max
31895       from getrlimit(RLIMIT_NOFILES).
31896     - Avoid a spurious free on base64 failure.
31897     - Avoid segfaults on certain complex invocations of
31898       router_get_by_hexdigest().
31899     - Fix rare bug on REDIRECTSTREAM control command when called with no
31900       port set: it could erroneously report an error when none had
31901       happened.
31904 Changes in version 0.2.0.15-alpha - 2007-12-25
31905   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
31906   features added in 0.2.0.13-alpha.
31908   o Major bugfixes:
31909     - Fix several remotely triggerable asserts based on DirPort requests
31910       for a v2 or v3 networkstatus object before we were prepared. This
31911       was particularly bad for 0.2.0.13 and later bridge relays, who
31912       would never have a v2 networkstatus and would thus always crash
31913       when used. Bugfixes on 0.2.0.x.
31914     - Estimate the v3 networkstatus size more accurately, rather than
31915       estimating it at zero bytes and giving it artificially high priority
31916       compared to other directory requests. Bugfix on 0.2.0.x.
31918   o Minor bugfixes:
31919     - Fix configure.in logic for cross-compilation.
31920     - When we load a bridge descriptor from the cache, and it was
31921       previously unreachable, mark it as retriable so we won't just
31922       ignore it. Also, try fetching a new copy immediately. Bugfixes
31923       on 0.2.0.13-alpha.
31924     - The bridge GeoIP stats were counting other relays, for example
31925       self-reachability and authority-reachability tests.
31927   o Minor features:
31928     - Support compilation to target iPhone; patch from cjacker huang.
31929       To build for iPhone, pass the --enable-iphone option to configure.
31932 Changes in version 0.2.0.14-alpha - 2007-12-23
31933   o Major bugfixes:
31934     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
31935       without a datadirectory from a previous Tor install. Reported
31936       by Zax.
31937     - Fix a crash when we fetch a descriptor that turns out to be
31938       unexpected (it used to be in our networkstatus when we started
31939       fetching it, but it isn't in our current networkstatus), and we
31940       aren't using bridges. Bugfix on 0.2.0.x.
31941     - Fix a crash when accessing hidden services: it would work the first
31942       time you use a given introduction point for your service, but
31943       on subsequent requests we'd be using garbage memory. Fixed by
31944       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
31945     - Fix a crash when we load a bridge descriptor from disk but we don't
31946       currently have a Bridge line for it in our torrc. Bugfix on
31947       0.2.0.13-alpha.
31949   o Major features:
31950     - If bridge authorities set BridgePassword, they will serve a
31951       snapshot of known bridge routerstatuses from their DirPort to
31952       anybody who knows that password. Unset by default.
31954   o Minor bugfixes:
31955     - Make the unit tests build again.
31956     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
31957     - Make PublishServerDescriptor default to 1, so the default doesn't
31958       have to change as we invent new directory protocol versions.
31959     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
31960       be included unless sys/time.h is already included. Fixes
31961       bug 553. Bugfix on 0.2.0.x.
31962     - If we receive a general-purpose descriptor and then receive an
31963       identical bridge-purpose descriptor soon after, don't discard
31964       the next one as a duplicate.
31966   o Minor features:
31967     - If BridgeRelay is set to 1, then the default for
31968       PublishServerDescriptor is now "bridge" rather than "v2,v3".
31969     - If the user sets RelayBandwidthRate but doesn't set
31970       RelayBandwidthBurst, then make them equal rather than erroring out.
31973 Changes in version 0.2.0.13-alpha - 2007-12-21
31974   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
31975   Goodell, fixes many more bugs, and adds a lot of infrastructure for
31976   upcoming features.
31978   o New directory authorities:
31979     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
31980       authority.
31982   o Major bugfixes:
31983     - Only update guard status (usable / not usable) once we have
31984       enough directory information. This was causing us to always pick
31985       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
31986       causing us to discard all our guards on startup if we hadn't been
31987       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
31988     - Purge old entries from the "rephist" database and the hidden
31989       service descriptor databases even when DirPort is zero. Bugfix
31990       on 0.1.2.x.
31991     - We were ignoring our RelayBandwidthRate for the first 30 seconds
31992       after opening a circuit -- even a relayed circuit. Bugfix on
31993       0.2.0.3-alpha.
31994     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
31995       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
31996       crashing or mis-answering these types of requests.
31997     - Relays were publishing their server descriptor to v1 and v2
31998       directory authorities, but they didn't try publishing to v3-only
31999       authorities. Fix this; and also stop publishing to v1 authorities.
32000       Bugfix on 0.2.0.x.
32001     - When we were reading router descriptors from cache, we were ignoring
32002       the annotations -- so for example we were reading in bridge-purpose
32003       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
32004     - When we decided to send a 503 response to a request for servers, we
32005       were then also sending the server descriptors: this defeats the
32006       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
32008   o Major features:
32009     - Bridge relays now behave like clients with respect to time
32010       intervals for downloading new consensus documents -- otherwise they
32011       stand out. Bridge users now wait until the end of the interval,
32012       so their bridge relay will be sure to have a new consensus document.
32013     - Three new config options (AlternateDirAuthority,
32014       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
32015       user selectively replace the default directory authorities by type,
32016       rather than the all-or-nothing replacement that DirServer offers.
32017     - Tor can now be configured to read a GeoIP file from disk in one
32018       of two formats. This can be used by controllers to map IP addresses
32019       to countries. Eventually, it may support exit-by-country.
32020     - When possible, bridge relays remember which countries users
32021       are coming from, and report aggregate information in their
32022       extra-info documents, so that the bridge authorities can learn
32023       where Tor is blocked.
32024     - Bridge directory authorities now do reachability testing on the
32025       bridges they know. They provide router status summaries to the
32026       controller via "getinfo ns/purpose/bridge", and also dump summaries
32027       to a file periodically.
32028     - Stop fetching directory info so aggressively if your DirPort is
32029       on but your ORPort is off; stop fetching v2 dir info entirely.
32030       You can override these choices with the new FetchDirInfoEarly
32031       config option.
32033   o Minor bugfixes:
32034     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
32035       consensus documents when there are too many relays at a single
32036       IP address. Now clear it in v2 network status documents too, and
32037       also clear it in routerinfo_t when the relay is no longer listed
32038       in the relevant networkstatus document.
32039     - Don't crash if we get an unexpected value for the
32040       PublishServerDescriptor config option. Reported by Matt Edman;
32041       bugfix on 0.2.0.9-alpha.
32042     - Our new v2 hidden service descriptor format allows descriptors
32043       that have no introduction points. But Tor crashed when we tried
32044       to build a descriptor with no intro points (and it would have
32045       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
32046       by Karsten Loesing.
32047     - Fix building with dmalloc 5.5.2 with glibc.
32048     - Reject uploaded descriptors and extrainfo documents if they're
32049       huge. Otherwise we'll cache them all over the network and it'll
32050       clog everything up. Reported by Aljosha Judmayer.
32051     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
32052       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
32053     - When the DANGEROUS_VERSION controller status event told us we're
32054       running an obsolete version, it used the string "OLD" to describe
32055       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
32056       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
32057     - If we can't expand our list of entry guards (e.g. because we're
32058       using bridges or we have StrictEntryNodes set), don't mark relays
32059       down when they fail a directory request. Otherwise we're too quick
32060       to mark all our entry points down. Bugfix on 0.1.2.x.
32061     - Fix handling of hex nicknames when answering controller requests for
32062       networkstatus by name, or when deciding whether to warn about unknown
32063       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
32064     - Fix a couple of hard-to-trigger autoconf problems that could result
32065       in really weird results on platforms whose sys/types.h files define
32066       nonstandard integer types. Bugfix on 0.1.2.x.
32067     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
32068     - Don't crash on name lookup when we have no current consensus. Fixes
32069       bug 538; bugfix on 0.2.0.x.
32070     - Only Tors that want to mirror the v2 directory info should
32071       create the "cached-status" directory in their datadir. (All Tors
32072       used to create it.) Bugfix on 0.2.0.9-alpha.
32073     - Directory authorities should only automatically download Extra Info
32074       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
32076   o Minor features:
32077     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
32078       consumers. (We already do this on HUP.)
32079     - Authorities and caches fetch the v2 networkstatus documents
32080       less often, now that v3 is encouraged.
32081     - Add a new config option BridgeRelay that specifies you want to
32082       be a bridge relay. Right now the only difference is that it makes
32083       you answer begin_dir requests, and it makes you cache dir info,
32084       even if your DirPort isn't on.
32085     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
32086       ask about source, timestamp of arrival, purpose, etc. We need
32087       something like this to help Vidalia not do GeoIP lookups on bridge
32088       addresses.
32089     - Allow multiple HashedControlPassword config lines, to support
32090       multiple controller passwords.
32091     - Authorities now decide whether they're authoritative for a given
32092       router based on the router's purpose.
32093     - New config options AuthDirBadDir and AuthDirListBadDirs for
32094       authorities to mark certain relays as "bad directories" in the
32095       networkstatus documents. Also supports the "!baddir" directive in
32096       the approved-routers file.
32099 Changes in version 0.2.0.12-alpha - 2007-11-16
32100   This twelfth development snapshot fixes some more build problems as
32101   well as a few minor bugs.
32103   o Compile fixes:
32104     - Make it build on OpenBSD again. Patch from tup.
32105     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
32106       package-building for Red Hat, OS X, etc.
32108   o Minor bugfixes (on 0.1.2.x):
32109     - Changing the ExitPolicyRejectPrivate setting should cause us to
32110       rebuild our server descriptor.
32112   o Minor bugfixes (on 0.2.0.x):
32113     - When we're lacking a consensus, don't try to perform rendezvous
32114       operations. Reported by Karsten Loesing.
32115     - Fix a small memory leak whenever we decide against using a
32116       newly picked entry guard. Reported by Mike Perry.
32117     - When authorities detected more than two relays running on the same
32118       IP address, they were clearing all the status flags but forgetting
32119       to clear the "hsdir" flag. So clients were being told that a
32120       given relay was the right choice for a v2 hsdir lookup, yet they
32121       never had its descriptor because it was marked as 'not running'
32122       in the consensus.
32123     - If we're trying to fetch a bridge descriptor and there's no way
32124       the bridge authority could help us (for example, we don't know
32125       a digest, or there is no bridge authority), don't be so eager to
32126       fall back to asking the bridge authority.
32127     - If we're using bridges or have strictentrynodes set, and our
32128       chosen exit is in the same family as all our bridges/entry guards,
32129       then be flexible about families.
32131   o Minor features:
32132     - When we negotiate a v2 link-layer connection (not yet implemented),
32133       accept RELAY_EARLY cells and turn them into RELAY cells if we've
32134       negotiated a v1 connection for their next step. Initial code for
32135       proposal 110.
32138 Changes in version 0.2.0.11-alpha - 2007-11-12
32139   This eleventh development snapshot fixes some build problems with
32140   the previous snapshot. It also includes a more secure-by-default exit
32141   policy for relays, fixes an enormous memory leak for exit relays, and
32142   fixes another bug where servers were falling out of the directory list.
32144   o Security fixes:
32145     - Exit policies now reject connections that are addressed to a
32146       relay's public (external) IP address too, unless
32147       ExitPolicyRejectPrivate is turned off. We do this because too
32148       many relays are running nearby to services that trust them based
32149       on network address. Bugfix on 0.1.2.x.
32151   o Major bugfixes:
32152     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
32153       on every successful resolve. Reported by Mike Perry; bugfix
32154       on 0.1.2.x.
32155     - On authorities, never downgrade to old router descriptors simply
32156       because they're listed in the consensus. This created a catch-22
32157       where we wouldn't list a new descriptor because there was an
32158       old one in the consensus, and we couldn't get the new one in the
32159       consensus because we wouldn't list it. Possible fix for bug 548.
32160       Also, this might cause bug 543 to appear on authorities; if so,
32161       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
32163   o Packaging fixes on 0.2.0.10-alpha:
32164     - We were including instructions about what to do with the
32165       src/config/fallback-consensus file, but we weren't actually
32166       including it in the tarball. Disable all of that for now.
32168   o Minor features:
32169     - Allow people to say PreferTunnelledDirConns rather than
32170       PreferTunneledDirConns, for those alternate-spellers out there.
32172   o Minor bugfixes:
32173     - Don't reevaluate all the information from our consensus document
32174       just because we've downloaded a v2 networkstatus that we intend
32175       to cache. Fixes bug 545; bugfix on 0.2.0.x.
32178 Changes in version 0.2.0.10-alpha - 2007-11-10
32179   This tenth development snapshot adds a third v3 directory authority
32180   run by Mike Perry, adds most of Karsten Loesing's new hidden service
32181   descriptor format, fixes a bad crash bug and new bridge bugs introduced
32182   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
32183   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
32184   addresses many more minor issues.
32186   o New directory authorities:
32187     - Set up ides (run by Mike Perry) as the third v3 directory authority.
32189   o Major features:
32190     - Allow tunnelled directory connections to ask for an encrypted
32191       "begin_dir" connection or an anonymized "uses a full Tor circuit"
32192       connection independently. Now we can make anonymized begin_dir
32193       connections for (e.g.) more secure hidden service posting and
32194       fetching.
32195     - More progress on proposal 114: code from Karsten Loesing to
32196       implement new hidden service descriptor format.
32197     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
32198       accommodate the growing number of servers that use the default
32199       and are reaching it.
32200     - Directory authorities use a new formula for selecting which nodes
32201       to advertise as Guards: they must be in the top 7/8 in terms of
32202       how long we have known about them, and above the median of those
32203       nodes in terms of weighted fractional uptime.
32204     - Make "not enough dir info yet" warnings describe *why* Tor feels
32205       it doesn't have enough directory info yet.
32207   o Major bugfixes:
32208     - Stop servers from crashing if they set a Family option (or
32209       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
32210       by Fabian Keil.
32211     - Make bridge users work again -- the move to v3 directories in
32212       0.2.0.9-alpha had introduced a number of bugs that made bridges
32213       no longer work for clients.
32214     - When the clock jumps forward a lot, do not allow the bandwidth
32215       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
32217   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
32218     - When the consensus lists a router descriptor that we previously were
32219       mirroring, but that we considered non-canonical, reload the
32220       descriptor as canonical. This fixes bug 543 where Tor servers
32221       would start complaining after a few days that they don't have
32222       enough directory information to build a circuit.
32223     - Consider replacing the current consensus when certificates arrive
32224       that make the pending consensus valid. Previously, we were only
32225       considering replacement when the new certs _didn't_ help.
32226     - Fix an assert error on startup if we didn't already have the
32227       consensus and certs cached in our datadirectory: we were caching
32228       the consensus in consensus_waiting_for_certs but then free'ing it
32229       right after.
32230     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
32231       Request) if we need more v3 certs but we've already got pending
32232       requests for all of them.
32233     - Correctly back off from failing certificate downloads. Fixes
32234       bug 546.
32235     - Authorities don't vote on the Running flag if they have been running
32236       for less than 30 minutes themselves. Fixes bug 547, where a newly
32237       started authority would vote that everyone was down.
32239   o New requirements:
32240     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
32241       it, it had no AES, and it hasn't seen any security patches since
32242       2004.
32244   o Minor features:
32245     - Clients now hold circuitless TLS connections open for 1.5 times
32246       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
32247       rebuild a new circuit over them within that timeframe. Previously,
32248       they held them open only for KeepalivePeriod (5 minutes).
32249     - Use "If-Modified-Since" to avoid retrieving consensus
32250       networkstatuses that we already have.
32251     - When we have no consensus, check FallbackNetworkstatusFile (defaults
32252       to $PREFIX/share/tor/fallback-consensus) for a consensus. This way
32253       we start knowing some directory caches.
32254     - When we receive a consensus from the future, warn about skew.
32255     - Improve skew reporting: try to give the user a better log message
32256       about how skewed they are, and how much this matters.
32257     - When we have a certificate for an authority, believe that
32258       certificate's claims about the authority's IP address.
32259     - New --quiet command-line option to suppress the default console log.
32260       Good in combination with --hash-password.
32261     - Authorities send back an X-Descriptor-Not-New header in response to
32262       an accepted-but-discarded descriptor upload. Partially implements
32263       fix for bug 535.
32264     - Make the log message for "tls error. breaking." more useful.
32265     - Better log messages about certificate downloads, to attempt to
32266       track down the second incarnation of bug 546.
32268   o Minor features (bridges):
32269     - If bridge users set UpdateBridgesFromAuthority, but the digest
32270       they ask for is a 404 from the bridge authority, they now fall
32271       back to trying the bridge directly.
32272     - Bridges now use begin_dir to publish their server descriptor to
32273       the bridge authority, even when they haven't set TunnelDirConns.
32275   o Minor features (controller):
32276     - When reporting clock skew, and we know that the clock is _at least
32277       as skewed_ as some value, but we don't know the actual value,
32278       report the value as a "minimum skew."
32280   o Utilities:
32281     - Update linux-tor-prio.sh script to allow QoS based on the uid of
32282       the Tor process. Patch from Marco Bonetti with tweaks from Mike
32283       Perry.
32285   o Minor bugfixes:
32286     - Refuse to start if both ORPort and UseBridges are set. Bugfix
32287       on 0.2.0.x, suggested by Matt Edman.
32288     - Don't stop fetching descriptors when FetchUselessDescriptors is
32289       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
32290       reported by tup and ioerror.
32291     - Better log message on vote from unknown authority.
32292     - Don't log "Launching 0 request for 0 router" message.
32294   o Minor bugfixes (memory leaks):
32295     - Stop leaking memory every time we parse a v3 certificate. Bugfix
32296       on 0.2.0.1-alpha.
32297     - Stop leaking memory every time we load a v3 certificate. Bugfix
32298       on 0.2.0.1-alpha. Fixes bug 536.
32299     - Stop leaking a cached networkstatus on exit. Bugfix on
32300       0.2.0.3-alpha.
32301     - Stop leaking voter information every time we free a consensus.
32302       Bugfix on 0.2.0.3-alpha.
32303     - Stop leaking signed data every time we check a voter signature.
32304       Bugfix on 0.2.0.3-alpha.
32305     - Stop leaking a signature every time we fail to parse a consensus or
32306       a vote. Bugfix on 0.2.0.3-alpha.
32307     - Stop leaking v2_download_status_map on shutdown. Bugfix on
32308       0.2.0.9-alpha.
32309     - Stop leaking conn->nickname every time we make a connection to a
32310       Tor relay without knowing its expected identity digest (e.g. when
32311       using bridges). Bugfix on 0.2.0.3-alpha.
32313   - Minor bugfixes (portability):
32314     - Run correctly on platforms where rlim_t is larger than unsigned
32315       long, and/or where the real limit for number of open files is
32316       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
32317       particular, these may be needed for OS X 10.5.
32320 Changes in version 0.1.2.18 - 2007-10-28
32321   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
32322   hidden service introduction that were causing huge delays, and a big
32323   bug that was causing some servers to disappear from the network status
32324   lists for a few hours each day.
32326   o Major bugfixes (crashes):
32327     - If a connection is shut down abruptly because of something that
32328       happened inside connection_flushed_some(), do not call
32329       connection_finished_flushing(). Should fix bug 451:
32330       "connection_stop_writing: Assertion conn->write_event failed"
32331       Bugfix on 0.1.2.7-alpha.
32332     - Fix possible segfaults in functions called from
32333       rend_process_relay_cell().
32335   o Major bugfixes (hidden services):
32336     - Hidden services were choosing introduction points uniquely by
32337       hexdigest, but when constructing the hidden service descriptor
32338       they merely wrote the (potentially ambiguous) nickname.
32339     - Clients now use the v2 intro format for hidden service
32340       connections: they specify their chosen rendezvous point by identity
32341       digest rather than by (potentially ambiguous) nickname. These
32342       changes could speed up hidden service connections dramatically.
32344   o Major bugfixes (other):
32345     - Stop publishing a new server descriptor just because we get a
32346       HUP signal. This led (in a roundabout way) to some servers getting
32347       dropped from the networkstatus lists for a few hours each day.
32348     - When looking for a circuit to cannibalize, consider family as well
32349       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
32350       circuit cannibalization).
32351     - When a router wasn't listed in a new networkstatus, we were leaving
32352       the flags for that router alone -- meaning it remained Named,
32353       Running, etc -- even though absence from the networkstatus means
32354       that it shouldn't be considered to exist at all anymore. Now we
32355       clear all the flags for routers that fall out of the networkstatus
32356       consensus. Fixes bug 529.
32358   o Minor bugfixes:
32359     - Don't try to access (or alter) the state file when running
32360       --list-fingerprint or --verify-config or --hash-password. Resolves
32361       bug 499.
32362     - When generating information telling us how to extend to a given
32363       router, do not try to include the nickname if it is
32364       absent. Resolves bug 467.
32365     - Fix a user-triggerable segfault in expand_filename(). (There isn't
32366       a way to trigger this remotely.)
32367     - When sending a status event to the controller telling it that an
32368       OR address is reachable, set the port correctly. (Previously we
32369       were reporting the dir port.)
32370     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
32371       command. Bugfix on 0.1.2.17.
32372     - When loading bandwidth history, do not believe any information in
32373       the future. Fixes bug 434.
32374     - When loading entry guard information, do not believe any information
32375       in the future.
32376     - When we have our clock set far in the future and generate an
32377       onion key, then re-set our clock to be correct, we should not stop
32378       the onion key from getting rotated.
32379     - On some platforms, accept() can return a broken address. Detect
32380       this more quietly, and deal accordingly. Fixes bug 483.
32381     - It's not actually an error to find a non-pending entry in the DNS
32382       cache when canceling a pending resolve. Don't log unless stuff
32383       is fishy. Resolves bug 463.
32384     - Don't reset trusted dir server list when we set a configuration
32385       option. Patch from Robert Hogan.
32386     - Don't try to create the datadir when running --verify-config or
32387       --hash-password. Resolves bug 540.
32390 Changes in version 0.2.0.9-alpha - 2007-10-24
32391   This ninth development snapshot switches clients to the new v3 directory
32392   system; allows servers to be listed in the network status even when they
32393   have the same nickname as a registered server; and fixes many other
32394   bugs including a big one that was causing some servers to disappear
32395   from the network status lists for a few hours each day.
32397   o Major features (directory system):
32398     - Clients now download v3 consensus networkstatus documents instead
32399       of v2 networkstatus documents. Clients and caches now base their
32400       opinions about routers on these consensus documents. Clients only
32401       download router descriptors listed in the consensus.
32402     - Authorities now list servers who have the same nickname as
32403       a different named server, but list them with a new flag,
32404       "Unnamed". Now we can list servers that happen to pick the same
32405       nickname as a server that registered two years ago and then
32406       disappeared. Partially implements proposal 122.
32407     - If the consensus lists a router as "Unnamed", the name is assigned
32408       to a different router: do not identify the router by that name.
32409       Partially implements proposal 122.
32410     - Authorities can now come to a consensus on which method to use to
32411       compute the consensus. This gives us forward compatibility.
32413   o Major bugfixes:
32414     - Stop publishing a new server descriptor just because we HUP or
32415       when we find our DirPort to be reachable but won't actually publish
32416       it. New descriptors without any real changes are dropped by the
32417       authorities, and can screw up our "publish every 18 hours" schedule.
32418       Bugfix on 0.1.2.x.
32419     - When a router wasn't listed in a new networkstatus, we were leaving
32420       the flags for that router alone -- meaning it remained Named,
32421       Running, etc -- even though absence from the networkstatus means
32422       that it shouldn't be considered to exist at all anymore. Now we
32423       clear all the flags for routers that fall out of the networkstatus
32424       consensus. Fixes bug 529; bugfix on 0.1.2.x.
32425     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
32426       extrainfo documents and then discard them immediately for not
32427       matching the latest router. Bugfix on 0.2.0.1-alpha.
32429   o Minor features (v3 directory protocol):
32430     - Allow tor-gencert to generate a new certificate without replacing
32431       the signing key.
32432     - Allow certificates to include an address.
32433     - When we change our directory-cache settings, reschedule all voting
32434       and download operations.
32435     - Reattempt certificate downloads immediately on failure, as long as
32436       we haven't failed a threshold number of times yet.
32437     - Delay retrying consensus downloads while we're downloading
32438       certificates to verify the one we just got. Also, count getting a
32439       consensus that we already have (or one that isn't valid) as a failure,
32440       and count failing to get the certificates after 20 minutes as a
32441       failure.
32442     - Build circuits and download descriptors even if our consensus is a
32443       little expired. (This feature will go away once authorities are
32444       more reliable.)
32446   o Minor features (router descriptor cache):
32447     - If we find a cached-routers file that's been sitting around for more
32448       than 28 days unmodified, then most likely it's a leftover from
32449       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
32450       routers anyway.
32451     - When we (as a cache) download a descriptor because it was listed
32452       in a consensus, remember when the consensus was supposed to expire,
32453       and don't expire the descriptor until then.
32455   o Minor features (performance):
32456     - Call routerlist_remove_old_routers() much less often. This should
32457       speed startup, especially on directory caches.
32458     - Don't try to launch new descriptor downloads quite so often when we
32459       already have enough directory information to build circuits.
32460     - Base64 decoding was actually showing up on our profile when parsing
32461       the initial descriptor file; switch to an in-process all-at-once
32462       implementation that's about 3.5x times faster than calling out to
32463       OpenSSL.
32465   o Minor features (compilation):
32466     - Detect non-ASCII platforms (if any still exist) and refuse to
32467       build there: some of our code assumes that 'A' is 65 and so on.
32469   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
32470     - Make the "next period" votes into "current period" votes immediately
32471       after publishing the consensus; avoid a heisenbug that made them
32472       stick around indefinitely.
32473     - When we discard a vote as a duplicate, do not report this as
32474       an error.
32475     - Treat missing v3 keys or certificates as an error when running as a
32476       v3 directory authority.
32477     - When we're configured to be a v3 authority, but we're only listed
32478       as a non-v3 authority in our DirServer line for ourself, correct
32479       the listing.
32480     - If an authority doesn't have a qualified hostname, just put
32481       its address in the vote. This fixes the problem where we referred to
32482       "moria on moria:9031."
32483     - Distinguish between detached signatures for the wrong period, and
32484       detached signatures for a divergent vote.
32485     - Fix a small memory leak when computing a consensus.
32486     - When there's no consensus, we were forming a vote every 30
32487       minutes, but writing the "valid-after" line in our vote based
32488       on our configured V3AuthVotingInterval: so unless the intervals
32489       matched up, we immediately rejected our own vote because it didn't
32490       start at the voting interval that caused us to construct a vote.
32492   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
32493     - Delete unverified-consensus when the real consensus is set.
32494     - Consider retrying a consensus networkstatus fetch immediately
32495       after one fails: don't wait 60 seconds to notice.
32496     - When fetching a consensus as a cache, wait until a newer consensus
32497       should exist before trying to replace the current one.
32498     - Use a more forgiving schedule for retrying failed consensus
32499       downloads than for other types.
32501   o Minor bugfixes (other directory issues):
32502     - Correct the implementation of "download votes by digest." Bugfix on
32503       0.2.0.8-alpha.
32504     - Authorities no longer send back "400 you're unreachable please fix
32505       it" errors to Tor servers that aren't online all the time. We're
32506       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
32508   o Minor bugfixes (controller):
32509     - Don't reset trusted dir server list when we set a configuration
32510       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
32511     - Respond to INT and TERM SIGNAL commands before we execute the
32512       signal, in case the signal shuts us down. We had a patch in
32513       0.1.2.1-alpha that tried to do this by queueing the response on
32514       the connection's buffer before shutting down, but that really
32515       isn't the same thing at all. Bug located by Matt Edman.
32517   o Minor bugfixes (misc):
32518     - Correctly check for bad options to the "PublishServerDescriptor"
32519       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
32520     - Stop leaking memory on failing case of base32_decode, and make
32521       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
32522     - Don't try to download extrainfo documents when we're trying to
32523       fetch enough directory info to build a circuit: having enough
32524       info should get priority. Bugfix on 0.2.0.x.
32525     - Don't complain that "your server has not managed to confirm that its
32526       ports are reachable" if we haven't been able to build any circuits
32527       yet. Bug found by spending four hours without a v3 consensus. Bugfix
32528       on 0.1.2.x.
32529     - Detect the reason for failing to mmap a descriptor file we just
32530       wrote, and give a more useful log message. Fixes bug 533. Bugfix
32531       on 0.1.2.x.
32533   o Code simplifications and refactoring:
32534     - Remove support for the old bw_accounting file: we've been storing
32535       bandwidth accounting information in the state file since
32536       0.1.2.5-alpha. This may result in bandwidth accounting errors
32537       if you try to upgrade from 0.1.1.x or earlier, or if you try to
32538       downgrade to 0.1.1.x or earlier.
32539     - New convenience code to locate a file within the DataDirectory.
32540     - Move non-authority functionality out of dirvote.c.
32541     - Refactor the arguments for router_pick_{directory_|trusteddir}server
32542       so that they all take the same named flags.
32544   o Utilities
32545     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
32546       Unix users an easy way to script their Tor process (e.g. by
32547       adjusting bandwidth based on the time of the day).
32550 Changes in version 0.2.0.8-alpha - 2007-10-12
32551   This eighth development snapshot fixes a crash bug that's been bothering
32552   us since February 2007, lets bridge authorities store a list of bridge
32553   descriptors they've seen, gets v3 directory voting closer to working,
32554   starts caching v3 directory consensus documents on directory mirrors,
32555   and fixes a variety of smaller issues including some minor memory leaks.
32557   o Major features (router descriptor cache):
32558     - Store routers in a file called cached-descriptors instead of in
32559       cached-routers. Initialize cached-descriptors from cached-routers
32560       if the old format is around. The new format allows us to store
32561       annotations along with descriptors.
32562     - Use annotations to record the time we received each descriptor, its
32563       source, and its purpose.
32564     - Disable the SETROUTERPURPOSE controller command: it is now
32565       obsolete.
32566     - Controllers should now specify cache=no or cache=yes when using
32567       the +POSTDESCRIPTOR command.
32568     - Bridge authorities now write bridge descriptors to disk, meaning
32569       we can export them to other programs and begin distributing them
32570       to blocked users.
32572   o Major features (directory authorities):
32573     - When a v3 authority is missing votes or signatures, it now tries
32574       to fetch them.
32575     - Directory authorities track weighted fractional uptime as well as
32576       weighted mean-time-between failures. WFU is suitable for deciding
32577       whether a node is "usually up", while MTBF is suitable for deciding
32578       whether a node is "likely to stay up." We need both, because
32579       "usually up" is a good requirement for guards, while "likely to
32580       stay up" is a good requirement for long-lived connections.
32582   o Major features (v3 directory system):
32583     - Caches now download v3 network status documents as needed,
32584       and download the descriptors listed in them.
32585     - All hosts now attempt to download and keep fresh v3 authority
32586       certificates, and re-attempt after failures.
32587     - More internal-consistency checks for vote parsing.
32589   o Major bugfixes (crashes):
32590     - If a connection is shut down abruptly because of something that
32591       happened inside connection_flushed_some(), do not call
32592       connection_finished_flushing(). Should fix bug 451. Bugfix on
32593       0.1.2.7-alpha.
32595   o Major bugfixes (performance):
32596     - Fix really bad O(n^2) performance when parsing a long list of
32597       routers: Instead of searching the entire list for an "extra-info "
32598       string which usually wasn't there, once for every routerinfo
32599       we read, just scan lines forward until we find one we like.
32600       Bugfix on 0.2.0.1.
32601     - When we add data to a write buffer in response to the data on that
32602       write buffer getting low because of a flush, do not consider the
32603       newly added data as a candidate for immediate flushing, but rather
32604       make it wait until the next round of writing. Otherwise, we flush
32605       and refill recursively, and a single greedy TLS connection can
32606       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
32608   o Minor features (v3 authority system):
32609     - Add more ways for tools to download the votes that lead to the
32610       current consensus.
32611     - Send a 503 when low on bandwidth and a vote, consensus, or
32612       certificate is requested.
32613     - If-modified-since is now implemented properly for all kinds of
32614       certificate requests.
32616   o Minor bugfixes (network statuses):
32617     - Tweak the implementation of proposal 109 slightly: allow at most
32618       two Tor servers on the same IP address, except if it's the location
32619       of a directory authority, in which case allow five. Bugfix on
32620       0.2.0.3-alpha.
32622   o Minor bugfixes (controller):
32623     - When sending a status event to the controller telling it that an
32624       OR address is reachable, set the port correctly. (Previously we
32625       were reporting the dir port.) Bugfix on 0.1.2.x.
32627   o Minor bugfixes (v3 directory system):
32628     - Fix logic to look up a cert by its signing key digest. Bugfix on
32629       0.2.0.7-alpha.
32630     - Only change the reply to a vote to "OK" if it's not already
32631       set. This gets rid of annoying "400 OK" log messages, which may
32632       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
32633     - When we get a valid consensus, recompute the voting schedule.
32634     - Base the valid-after time of a vote on the consensus voting
32635       schedule, not on our preferred schedule.
32636     - Make the return values and messages from signature uploads and
32637       downloads more sensible.
32638     - Fix a memory leak when serving votes and consensus documents, and
32639       another when serving certificates.
32641   o Minor bugfixes (performance):
32642     - Use a slightly simpler string hashing algorithm (copying Python's
32643       instead of Java's) and optimize our digest hashing algorithm to take
32644       advantage of 64-bit platforms and to remove some possibly-costly
32645       voodoo.
32646     - Fix a minor memory leak whenever we parse guards from our state
32647       file. Bugfix on 0.2.0.7-alpha.
32648     - Fix a minor memory leak whenever we write out a file. Bugfix on
32649       0.2.0.7-alpha.
32650     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
32651       command. Bugfix on 0.2.0.5-alpha.
32653   o Minor bugfixes (portability):
32654     - On some platforms, accept() can return a broken address. Detect
32655       this more quietly, and deal accordingly. Fixes bug 483.
32656     - Stop calling tor_strlower() on uninitialized memory in some cases.
32657       Bugfix in 0.2.0.7-alpha.
32659   o Minor bugfixes (usability):
32660     - Treat some 403 responses from directory servers as INFO rather than
32661       WARN-severity events.
32662     - It's not actually an error to find a non-pending entry in the DNS
32663       cache when canceling a pending resolve. Don't log unless stuff is
32664       fishy. Resolves bug 463.
32666   o Minor bugfixes (anonymity):
32667     - Never report that we've used more bandwidth than we're willing to
32668       relay: it leaks how much non-relay traffic we're using. Resolves
32669       bug 516.
32670     - When looking for a circuit to cannibalize, consider family as well
32671       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
32672       circuit cannibalization).
32674   o Code simplifications and refactoring:
32675     - Make a bunch of functions static. Remove some dead code.
32676     - Pull out about a third of the really big routerlist.c; put it in a
32677       new module, networkstatus.c.
32678     - Merge the extra fields in local_routerstatus_t back into
32679       routerstatus_t: we used to need one routerstatus_t for each
32680       authority's opinion, plus a local_routerstatus_t for the locally
32681       computed consensus opinion. To save space, we put the locally
32682       modified fields into local_routerstatus_t, and only the common
32683       stuff into routerstatus_t. But once v3 directories are in use,
32684       clients and caches will no longer need to hold authority opinions;
32685       thus, the rationale for keeping the types separate is now gone.
32686     - Make the code used to reschedule and reattempt downloads more
32687       uniform.
32688     - Turn all 'Are we a directory server/mirror?' logic into a call to
32689       dirserver_mode().
32690     - Remove the code to generate the oldest (v1) directory format.
32691       The code has been disabled since 0.2.0.5-alpha.
32694 Changes in version 0.2.0.7-alpha - 2007-09-21
32695   This seventh development snapshot makes bridges work again, makes bridge
32696   authorities work for the first time, fixes two huge performance flaws
32697   in hidden services, and fixes a variety of minor issues.
32699   o New directory authorities:
32700     - Set up moria1 and tor26 as the first v3 directory authorities. See
32701       doc/spec/dir-spec.txt for details on the new directory design.
32703   o Major bugfixes (crashes):
32704     - Fix possible segfaults in functions called from
32705       rend_process_relay_cell(). Bugfix on 0.1.2.x.
32707   o Major bugfixes (bridges):
32708     - Fix a bug that made servers send a "404 Not found" in response to
32709       attempts to fetch their server descriptor. This caused Tor servers
32710       to take many minutes to establish reachability for their DirPort,
32711       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
32712     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
32713       users configure that and specify a bridge with an identity
32714       fingerprint, now they will lookup the bridge descriptor at the
32715       default bridge authority via a one-hop tunnel, but once circuits
32716       are established they will switch to a three-hop tunnel for later
32717       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
32719   o Major bugfixes (hidden services):
32720     - Hidden services were choosing introduction points uniquely by
32721       hexdigest, but when constructing the hidden service descriptor
32722       they merely wrote the (potentially ambiguous) nickname.
32723     - Clients now use the v2 intro format for hidden service
32724       connections: they specify their chosen rendezvous point by identity
32725       digest rather than by (potentially ambiguous) nickname. Both
32726       are bugfixes on 0.1.2.x, and they could speed up hidden service
32727       connections dramatically. Thanks to Karsten Loesing.
32729   o Minor features (security):
32730     - As a client, do not believe any server that tells us that an
32731       address maps to an internal address space.
32732     - Make it possible to enable HashedControlPassword and
32733       CookieAuthentication at the same time.
32735   o Minor features (guard nodes):
32736     - Tag every guard node in our state file with the version that
32737       we believe added it, or with our own version if we add it. This way,
32738       if a user temporarily runs an old version of Tor and then switches
32739       back to a new one, she doesn't automatically lose her guards.
32741   o Minor features (speed):
32742     - When implementing AES counter mode, update only the portions of the
32743       counter buffer that need to change, and don't keep separate
32744       network-order and host-order counters when they are the same (i.e.,
32745       on big-endian hosts.)
32747   o Minor features (controller):
32748     - Accept LF instead of CRLF on controller, since some software has a
32749       hard time generating real Internet newlines.
32750     - Add GETINFO values for the server status events
32751       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
32752       Robert Hogan.
32754   o Removed features:
32755      - Routers no longer include bandwidth-history lines in their
32756        descriptors; this information is already available in extra-info
32757        documents, and including it in router descriptors took up 60%
32758        (!) of compressed router descriptor downloads. Completes
32759        implementation of proposal 104.
32760      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
32761        and TorControl.py, as they use the old v0 controller protocol,
32762        and are obsoleted by TorFlow anyway.
32763      - Drop support for v1 rendezvous descriptors, since we never used
32764        them anyway, and the code has probably rotted by now. Based on
32765        patch from Karsten Loesing.
32766      - On OSX, stop warning the user that kqueue support in libevent is
32767       "experimental", since it seems to have worked fine for ages.
32769   o Minor bugfixes:
32770     - When generating information telling us how to extend to a given
32771       router, do not try to include the nickname if it is absent. Fixes
32772       bug 467. Bugfix on 0.2.0.3-alpha.
32773     - Fix a user-triggerable (but not remotely-triggerable) segfault
32774       in expand_filename(). Bugfix on 0.1.2.x.
32775     - Fix a memory leak when freeing incomplete requests from DNSPort.
32776       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
32777     - Don't try to access (or alter) the state file when running
32778       --list-fingerprint or --verify-config or --hash-password. (Resolves
32779       bug 499.) Bugfix on 0.1.2.x.
32780     - Servers used to decline to publish their DirPort if their
32781       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
32782       were below a threshold. Now they only look at BandwidthRate and
32783       RelayBandwidthRate. Bugfix on 0.1.2.x.
32784     - Remove an optimization in the AES counter-mode code that assumed
32785       that the counter never exceeded 2^68. When the counter can be set
32786       arbitrarily as an IV (as it is by Karsten's new hidden services
32787       code), this assumption no longer holds. Bugfix on 0.1.2.x.
32788     - Resume listing "AUTHORITY" flag for authorities in network status.
32789       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
32791   o Code simplifications and refactoring:
32792     - Revamp file-writing logic so we don't need to have the entire
32793       contents of a file in memory at once before we write to disk. Tor,
32794       meet stdio.
32795     - Turn "descriptor store" into a full-fledged type.
32796     - Move all NT services code into a separate source file.
32797     - Unify all code that computes medians, percentile elements, etc.
32798     - Get rid of a needless malloc when parsing address policies.
32801 Changes in version 0.1.2.17 - 2007-08-30
32802   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
32803   X bundles. Vidalia 0.0.14 makes authentication required for the
32804   ControlPort in the default configuration, which addresses important
32805   security risks. Everybody who uses Vidalia (or another controller)
32806   should upgrade.
32808   In addition, this Tor update fixes major load balancing problems with
32809   path selection, which should speed things up a lot once many people
32810   have upgraded.
32812   o Major bugfixes (security):
32813     - We removed support for the old (v0) control protocol. It has been
32814       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
32815       become more of a headache than it's worth.
32817   o Major bugfixes (load balancing):
32818     - When choosing nodes for non-guard positions, weight guards
32819       proportionally less, since they already have enough load. Patch
32820       from Mike Perry.
32821     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
32822       will allow fast Tor servers to get more attention.
32823     - When we're upgrading from an old Tor version, forget our current
32824       guards and pick new ones according to the new weightings. These
32825       three load balancing patches could raise effective network capacity
32826       by a factor of four. Thanks to Mike Perry for measurements.
32828   o Major bugfixes (stream expiration):
32829     - Expire not-yet-successful application streams in all cases if
32830       they've been around longer than SocksTimeout. Right now there are
32831       some cases where the stream will live forever, demanding a new
32832       circuit every 15 seconds. Fixes bug 454; reported by lodger.
32834   o Minor features (controller):
32835     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
32836       is valid before any authentication has been received. It tells
32837       a controller what kind of authentication is expected, and what
32838       protocol is spoken. Implements proposal 119.
32840   o Minor bugfixes (performance):
32841     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
32842       greatly speeding up loading cached-routers from disk on startup.
32843     - Disable sentinel-based debugging for buffer code: we squashed all
32844       the bugs that this was supposed to detect a long time ago, and now
32845       its only effect is to change our buffer sizes from nice powers of
32846       two (which platform mallocs tend to like) to values slightly over
32847       powers of two (which make some platform mallocs sad).
32849   o Minor bugfixes (misc):
32850     - If exit bandwidth ever exceeds one third of total bandwidth, then
32851       use the correct formula to weight exit nodes when choosing paths.
32852       Based on patch from Mike Perry.
32853     - Choose perfectly fairly among routers when choosing by bandwidth and
32854       weighting by fraction of bandwidth provided by exits. Previously, we
32855       would choose with only approximate fairness, and correct ourselves
32856       if we ran off the end of the list.
32857     - If we require CookieAuthentication but we fail to write the
32858       cookie file, we would warn but not exit, and end up in a state
32859       where no controller could authenticate. Now we exit.
32860     - If we require CookieAuthentication, stop generating a new cookie
32861       every time we change any piece of our config.
32862     - Refuse to start with certain directory authority keys, and
32863       encourage people using them to stop.
32864     - Terminate multi-line control events properly. Original patch
32865       from tup.
32866     - Fix a minor memory leak when we fail to find enough suitable
32867       servers to choose a circuit.
32868     - Stop leaking part of the descriptor when we run into a particularly
32869       unparseable piece of it.
32872 Changes in version 0.2.0.6-alpha - 2007-08-26
32873   This sixth development snapshot features a new Vidalia version in the
32874   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
32875   the ControlPort in the default configuration, which addresses important
32876   security risks.
32878   In addition, this snapshot fixes major load balancing problems
32879   with path selection, which should speed things up a lot once many
32880   people have upgraded. The directory authorities also use a new
32881   mean-time-between-failure approach to tracking which servers are stable,
32882   rather than just looking at the most recent uptime.
32884   o New directory authorities:
32885     - Set up Tonga as the default bridge directory authority.
32887   o Major features:
32888     - Directory authorities now track servers by weighted
32889       mean-times-between-failures. When we have 4 or more days of data,
32890       use measured MTBF rather than declared uptime to decide whether
32891       to call a router Stable. Implements proposal 108.
32893   o Major bugfixes (load balancing):
32894     - When choosing nodes for non-guard positions, weight guards
32895       proportionally less, since they already have enough load. Patch
32896       from Mike Perry.
32897     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
32898       will allow fast Tor servers to get more attention.
32899     - When we're upgrading from an old Tor version, forget our current
32900       guards and pick new ones according to the new weightings. These
32901       three load balancing patches could raise effective network capacity
32902       by a factor of four. Thanks to Mike Perry for measurements.
32904   o Major bugfixes (descriptor parsing):
32905     - Handle unexpected whitespace better in malformed descriptors. Bug
32906       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
32908   o Minor features:
32909     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
32910       GETINFO for Torstat to use until it can switch to using extrainfos.
32911     - Optionally (if built with -DEXPORTMALLINFO) export the output
32912       of mallinfo via http, as tor/mallinfo.txt. Only accessible
32913       from localhost.
32915   o Minor bugfixes:
32916     - Do not intermix bridge routers with controller-added
32917       routers. (Bugfix on 0.2.0.x)
32918     - Do not fail with an assert when accept() returns an unexpected
32919       address family. Addresses but does not wholly fix bug 483. (Bugfix
32920       on 0.2.0.x)
32921     - Let directory authorities startup even when they can't generate
32922       a descriptor immediately, e.g. because they don't know their
32923       address.
32924     - Stop putting the authentication cookie in a file called "0"
32925       in your working directory if you don't specify anything for the
32926       new CookieAuthFile option. Reported by Matt Edman.
32927     - Make it possible to read the PROTOCOLINFO response in a way that
32928       conforms to our control-spec. Reported by Matt Edman.
32929     - Fix a minor memory leak when we fail to find enough suitable
32930       servers to choose a circuit. Bugfix on 0.1.2.x.
32931     - Stop leaking part of the descriptor when we run into a particularly
32932       unparseable piece of it. Bugfix on 0.1.2.x.
32933     - Unmap the extrainfo cache file on exit.
32936 Changes in version 0.2.0.5-alpha - 2007-08-19
32937   This fifth development snapshot fixes compilation on Windows again;
32938   fixes an obnoxious client-side bug that slowed things down and put
32939   extra load on the network; gets us closer to using the v3 directory
32940   voting scheme; makes it easier for Tor controllers to use cookie-based
32941   authentication; and fixes a variety of other bugs.
32943   o Removed features:
32944     - Version 1 directories are no longer generated in full. Instead,
32945       authorities generate and serve "stub" v1 directories that list
32946       no servers. This will stop Tor versions 0.1.0.x and earlier from
32947       working, but (for security reasons) nobody should be running those
32948       versions anyway.
32950   o Major bugfixes (compilation, 0.2.0.x):
32951     - Try to fix Win32 compilation again: improve checking for IPv6 types.
32952     - Try to fix MSVC compilation: build correctly on platforms that do
32953       not define s6_addr16 or s6_addr32.
32954     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
32955       Zhou.
32957   o Major bugfixes (stream expiration):
32958     - Expire not-yet-successful application streams in all cases if
32959       they've been around longer than SocksTimeout. Right now there are
32960       some cases where the stream will live forever, demanding a new
32961       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
32962       reported by lodger.
32964   o Minor features (directory servers):
32965     - When somebody requests a list of statuses or servers, and we have
32966       none of those, return a 404 rather than an empty 200.
32968   o Minor features (directory voting):
32969     - Store v3 consensus status consensuses on disk, and reload them
32970       on startup.
32972   o Minor features (security):
32973     - Warn about unsafe ControlPort configurations.
32974     - Refuse to start with certain directory authority keys, and
32975       encourage people using them to stop.
32977   o Minor features (controller):
32978     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
32979       is valid before any authentication has been received. It tells
32980       a controller what kind of authentication is expected, and what
32981       protocol is spoken. Implements proposal 119.
32982     - New config option CookieAuthFile to choose a new location for the
32983       cookie authentication file, and config option
32984       CookieAuthFileGroupReadable to make it group-readable.
32986   o Minor features (unit testing):
32987     - Add command-line arguments to unit-test executable so that we can
32988       invoke any chosen test from the command line rather than having
32989       to run the whole test suite at once; and so that we can turn on
32990       logging for the unit tests.
32992   o Minor bugfixes (on 0.1.2.x):
32993     - If we require CookieAuthentication but we fail to write the
32994       cookie file, we would warn but not exit, and end up in a state
32995       where no controller could authenticate. Now we exit.
32996     - If we require CookieAuthentication, stop generating a new cookie
32997       every time we change any piece of our config.
32998     - When loading bandwidth history, do not believe any information in
32999       the future. Fixes bug 434.
33000     - When loading entry guard information, do not believe any information
33001       in the future.
33002     - When we have our clock set far in the future and generate an
33003       onion key, then re-set our clock to be correct, we should not stop
33004       the onion key from getting rotated.
33005     - Clean up torrc sample config file.
33006     - Do not automatically run configure from autogen.sh. This
33007       non-standard behavior tended to annoy people who have built other
33008       programs.
33010   o Minor bugfixes (on 0.2.0.x):
33011     - Fix a bug with AutomapHostsOnResolve that would always cause
33012       the second request to fail. Bug reported by Kate. Bugfix on
33013       0.2.0.3-alpha.
33014     - Fix a bug in ADDRMAP controller replies that would sometimes
33015       try to print a NULL. Patch from tup.
33016     - Read v3 directory authority keys from the right location.
33017     - Numerous bugfixes to directory voting code.
33020 Changes in version 0.1.2.16 - 2007-08-01
33021   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
33022   remote attacker in certain situations to rewrite the user's torrc
33023   configuration file. This can completely compromise anonymity of users
33024   in most configurations, including those running the Vidalia bundles,
33025   TorK, etc. Or worse.
33027   o Major security fixes:
33028     - Close immediately after missing authentication on control port;
33029       do not allow multiple authentication attempts.
33032 Changes in version 0.2.0.4-alpha - 2007-08-01
33033   This fourth development snapshot fixes a critical security vulnerability
33034   for most users, specifically those running Vidalia, TorK, etc. Everybody
33035   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
33037   o Major security fixes:
33038     - Close immediately after missing authentication on control port;
33039       do not allow multiple authentication attempts.
33041   o Major bugfixes (compilation):
33042     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
33043       defined there.
33045   o Minor features (performance):
33046     - Be even more aggressive about releasing RAM from small
33047       empty buffers. Thanks to our free-list code, this shouldn't be too
33048       performance-intensive.
33049     - Disable sentinel-based debugging for buffer code: we squashed all
33050       the bugs that this was supposed to detect a long time ago, and
33051       now its only effect is to change our buffer sizes from nice
33052       powers of two (which platform mallocs tend to like) to values
33053       slightly over powers of two (which make some platform mallocs sad).
33054     - Log malloc statistics from mallinfo() on platforms where it
33055       exists.
33058 Changes in version 0.2.0.3-alpha - 2007-07-29
33059   This third development snapshot introduces new experimental
33060   blocking-resistance features and a preliminary version of the v3
33061   directory voting design, and includes many other smaller features
33062   and bugfixes.
33064   o Major features:
33065     - The first pieces of our "bridge" design for blocking-resistance
33066       are implemented. People can run bridge directory authorities;
33067       people can run bridges; and people can configure their Tor clients
33068       with a set of bridges to use as the first hop into the Tor network.
33069       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
33070       details.
33071     - Create listener connections before we setuid to the configured
33072       User and Group. Now non-Windows users can choose port values
33073       under 1024, start Tor as root, and have Tor bind those ports
33074       before it changes to another UID. (Windows users could already
33075       pick these ports.)
33076     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
33077       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
33078       on "vserver" accounts. (Patch from coderman.)
33079     - Be even more aggressive about separating local traffic from relayed
33080       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
33082   o Major features (experimental):
33083     - First cut of code for "v3 dir voting": directory authorities will
33084       vote on a common network status document rather than each publishing
33085       their own opinion. This code needs more testing and more corner-case
33086       handling before it's ready for use.
33088   o Security fixes:
33089     - Directory authorities now call routers Fast if their bandwidth is
33090       at least 100KB/s, and consider their bandwidth adequate to be a
33091       Guard if it is at least 250KB/s, no matter the medians. This fix
33092       complements proposal 107. [Bugfix on 0.1.2.x]
33093     - Directory authorities now never mark more than 3 servers per IP as
33094       Valid and Running. (Implements proposal 109, by Kevin Bauer and
33095       Damon McCoy.)
33096     - Minor change to organizationName and commonName generation
33097       procedures in TLS certificates during Tor handshakes, to invalidate
33098       some earlier censorware approaches. This is not a long-term
33099       solution, but applying it will give us a bit of time to look into
33100       the epidemiology of countermeasures as they spread.
33102   o Major bugfixes (directory):
33103     - Rewrite directory tokenization code to never run off the end of
33104       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
33106   o Minor features (controller):
33107     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
33108       match requests to applications. (Patch from Robert Hogan.)
33109     - Report address and port correctly on connections to DNSPort. (Patch
33110       from Robert Hogan.)
33111     - Add a RESOLVE command to launch hostname lookups. (Original patch
33112       from Robert Hogan.)
33113     - Add GETINFO status/enough-dir-info to let controllers tell whether
33114       Tor has downloaded sufficient directory information. (Patch
33115       from Tup.)
33116     - You can now use the ControlSocket option to tell Tor to listen for
33117       controller connections on Unix domain sockets on systems that
33118       support them. (Patch from Peter Palfrader.)
33119     - STREAM NEW events are generated for DNSPort requests and for
33120       tunneled directory connections. (Patch from Robert Hogan.)
33121     - New "GETINFO address-mappings/*" command to get address mappings
33122       with expiry information. "addr-mappings/*" is now deprecated.
33123       (Patch from Tup.)
33125   o Minor features (misc):
33126     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
33127       from croup.)
33128     - The tor-gencert tool for v3 directory authorities now creates all
33129       files as readable to the file creator only, and write-protects
33130       the authority identity key.
33131     - When dumping memory usage, list bytes used in buffer memory
33132       free-lists.
33133     - When running with dmalloc, dump more stats on hup and on exit.
33134     - Directory authorities now fail quickly and (relatively) harmlessly
33135       if they generate a network status document that is somehow
33136       malformed.
33138   o Traffic load balancing improvements:
33139     - If exit bandwidth ever exceeds one third of total bandwidth, then
33140       use the correct formula to weight exit nodes when choosing paths.
33141       (Based on patch from Mike Perry.)
33142     - Choose perfectly fairly among routers when choosing by bandwidth and
33143       weighting by fraction of bandwidth provided by exits. Previously, we
33144       would choose with only approximate fairness, and correct ourselves
33145       if we ran off the end of the list. [Bugfix on 0.1.2.x]
33147   o Performance improvements:
33148     - Be more aggressive with freeing buffer RAM or putting it on the
33149       memory free lists.
33150     - Use Critical Sections rather than Mutexes for synchronizing threads
33151       on win32; Mutexes are heavier-weight, and designed for synchronizing
33152       between processes.
33154   o Deprecated and removed features:
33155     - RedirectExits is now deprecated.
33156     - Stop allowing address masks that do not correspond to bit prefixes.
33157       We have warned about these for a really long time; now it's time
33158       to reject them. (Patch from croup.)
33160   o Minor bugfixes (directory):
33161     - Fix another crash bug related to extra-info caching. (Bug found by
33162       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
33163     - Directories no longer return a "304 not modified" when they don't
33164       have the networkstatus the client asked for. Also fix a memory
33165       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
33166     - We had accidentally labelled 0.1.2.x directory servers as not
33167       suitable for begin_dir requests, and had labelled no directory
33168       servers as suitable for uploading extra-info documents. [Bugfix
33169       on 0.2.0.1-alpha]
33171   o Minor bugfixes (dns):
33172     - Fix a crash when DNSPort is set more than once. (Patch from Robert
33173       Hogan.) [Bugfix on 0.2.0.2-alpha]
33174     - Add DNSPort connections to the global connection list, so that we
33175       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
33176       on 0.2.0.2-alpha]
33177     - Fix a dangling reference that could lead to a crash when DNSPort is
33178       changed or closed (Patch from Robert Hogan.) [Bugfix on
33179       0.2.0.2-alpha]
33181   o Minor bugfixes (controller):
33182     - Provide DNS expiry times in GMT, not in local time. For backward
33183       compatibility, ADDRMAP events only provide GMT expiry in an extended
33184       field. "GETINFO address-mappings" always does the right thing.
33185     - Use CRLF line endings properly in NS events.
33186     - Terminate multi-line control events properly. (Original patch
33187       from tup.) [Bugfix on 0.1.2.x-alpha]
33188     - Do not include spaces in SOURCE_ADDR fields in STREAM
33189       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
33192 Changes in version 0.1.2.15 - 2007-07-17
33193   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
33194   problems, fixes compilation on BSD, and fixes a variety of other
33195   bugs. Everybody should upgrade.
33197   o Major bugfixes (compilation):
33198     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
33200   o Major bugfixes (crashes):
33201     - Try even harder not to dereference the first character after
33202       an mmap(). Reported by lodger.
33203     - Fix a crash bug in directory authorities when we re-number the
33204       routerlist while inserting a new router.
33205     - When the cached-routers file is an even multiple of the page size,
33206       don't run off the end and crash. (Fixes bug 455; based on idea
33207       from croup.)
33208     - Fix eventdns.c behavior on Solaris: It is critical to include
33209       orconfig.h _before_ sys/types.h, so that we can get the expected
33210       definition of _FILE_OFFSET_BITS.
33212   o Major bugfixes (security):
33213     - Fix a possible buffer overrun when using BSD natd support. Bug
33214       found by croup.
33215     - When sending destroy cells from a circuit's origin, don't include
33216       the reason for tearing down the circuit. The spec says we didn't,
33217       and now we actually don't. Reported by lodger.
33218     - Keep streamids from different exits on a circuit separate. This
33219       bug may have allowed other routers on a given circuit to inject
33220       cells into streams. Reported by lodger; fixes bug 446.
33221     - If there's a never-before-connected-to guard node in our list,
33222       never choose any guards past it. This way we don't expand our
33223       guard list unless we need to.
33225   o Minor bugfixes (guard nodes):
33226     - Weight guard selection by bandwidth, so that low-bandwidth nodes
33227       don't get overused as guards.
33229   o Minor bugfixes (directory):
33230     - Correctly count the number of authorities that recommend each
33231       version. Previously, we were under-counting by 1.
33232     - Fix a potential crash bug when we load many server descriptors at
33233       once and some of them make others of them obsolete. Fixes bug 458.
33235   o Minor bugfixes (hidden services):
33236     - Stop tearing down the whole circuit when the user asks for a
33237       connection to a port that the hidden service didn't configure.
33238       Resolves bug 444.
33240   o Minor bugfixes (misc):
33241     - On Windows, we were preventing other processes from reading
33242       cached-routers while Tor was running. Reported by janbar.
33243     - Fix a possible (but very unlikely) bug in picking routers by
33244       bandwidth. Add a log message to confirm that it is in fact
33245       unlikely. Patch from lodger.
33246     - Backport a couple of memory leak fixes.
33247     - Backport miscellaneous cosmetic bugfixes.
33250 Changes in version 0.2.0.2-alpha - 2007-06-02
33251   o Major bugfixes on 0.2.0.1-alpha:
33252     - Fix an assertion failure related to servers without extra-info digests.
33253       Resolves bugs 441 and 442.
33255   o Minor features (directory):
33256     - Support "If-Modified-Since" when answering HTTP requests for
33257       directories, running-routers documents, and network-status documents.
33258       (There's no need to support it for router descriptors, since those
33259       are downloaded by descriptor digest.)
33261   o Minor build issues:
33262     - Clear up some MIPSPro compiler warnings.
33263     - When building from a tarball on a machine that happens to have SVK
33264       installed, report the micro-revision as whatever version existed
33265       in the tarball, not as "x".
33268 Changes in version 0.2.0.1-alpha - 2007-06-01
33269   This early development snapshot provides new features for people running
33270   Tor as both a client and a server (check out the new RelayBandwidth
33271   config options); lets Tor run as a DNS proxy; and generally moves us
33272   forward on a lot of fronts.
33274   o Major features, server usability:
33275     - New config options RelayBandwidthRate and RelayBandwidthBurst:
33276       a separate set of token buckets for relayed traffic. Right now
33277       relayed traffic is defined as answers to directory requests, and
33278       OR connections that don't have any local circuits on them.
33280   o Major features, client usability:
33281     - A client-side DNS proxy feature to replace the need for
33282       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
33283       for DNS requests on port 9999, use the Tor network to resolve them
33284       anonymously, and send the reply back like a regular DNS server.
33285       The code still only implements a subset of DNS.
33286     - Make PreferTunneledDirConns and TunnelDirConns work even when
33287       we have no cached directory info. This means Tor clients can now
33288       do all of their connections protected by TLS.
33290   o Major features, performance and efficiency:
33291     - Directory authorities accept and serve "extra info" documents for
33292       routers. These documents contain fields from router descriptors
33293       that aren't usually needed, and that use a lot of excess
33294       bandwidth. Once these fields are removed from router descriptors,
33295       the bandwidth savings should be about 60%. [Partially implements
33296       proposal 104.]
33297     - Servers upload extra-info documents to any authority that accepts
33298       them. Authorities (and caches that have been configured to download
33299       extra-info documents) download them as needed. [Partially implements
33300       proposal 104.]
33301     - Change the way that Tor buffers data that it is waiting to write.
33302       Instead of queueing data cells in an enormous ring buffer for each
33303       client->OR or OR->OR connection, we now queue cells on a separate
33304       queue for each circuit. This lets us use less slack memory, and
33305       will eventually let us be smarter about prioritizing different kinds
33306       of traffic.
33307     - Use memory pools to allocate cells with better speed and memory
33308       efficiency, especially on platforms where malloc() is inefficient.
33309     - Stop reading on edge connections when their corresponding circuit
33310       buffers are full; start again as the circuits empty out.
33312   o Major features, other:
33313     - Add an HSAuthorityRecordStats option that hidden service authorities
33314       can use to track statistics of overall hidden service usage without
33315       logging information that would be very useful to an attacker.
33316     - Start work implementing multi-level keys for directory authorities:
33317       Add a standalone tool to generate key certificates. (Proposal 103.)
33319   o Security fixes:
33320     - Directory authorities now call routers Stable if they have an
33321       uptime of at least 30 days, even if that's not the median uptime
33322       in the network. Implements proposal 107, suggested by Kevin Bauer
33323       and Damon McCoy.
33325   o Minor fixes (resource management):
33326     - Count the number of open sockets separately from the number
33327       of active connection_t objects. This will let us avoid underusing
33328       our allocated connection limit.
33329     - We no longer use socket pairs to link an edge connection to an
33330       anonymous directory connection or a DirPort test connection.
33331       Instead, we track the link internally and transfer the data
33332       in-process. This saves two sockets per "linked" connection (at the
33333       client and at the server), and avoids the nasty Windows socketpair()
33334       workaround.
33335     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
33336       for every single inactive connection_t. Free items from the
33337       4k/16k-buffer free lists when they haven't been used for a while.
33339   o Minor features (build):
33340     - Make autoconf search for libevent, openssl, and zlib consistently.
33341     - Update deprecated macros in configure.in.
33342     - When warning about missing headers, tell the user to let us
33343       know if the compile succeeds anyway, so we can downgrade the
33344       warning.
33345     - Include the current subversion revision as part of the version
33346       string: either fetch it directly if we're in an SVN checkout, do
33347       some magic to guess it if we're in an SVK checkout, or use
33348       the last-detected version if we're building from a .tar.gz.
33349       Use this version consistently in log messages.
33351   o Minor features (logging):
33352     - Always prepend "Bug: " to any log message about a bug.
33353     - Put a platform string (e.g. "Linux i686") in the startup log
33354       message, so when people paste just their logs, we know if it's
33355       OpenBSD or Windows or what.
33356     - When logging memory usage, break down memory used in buffers by
33357       buffer type.
33359   o Minor features (directory system):
33360     - New config option V2AuthoritativeDirectory that all directory
33361       authorities should set. This will let future authorities choose
33362       not to serve V2 directory information.
33363     - Directory authorities allow multiple router descriptors and/or extra
33364       info documents to be uploaded in a single go. This will make
33365       implementing proposal 104 simpler.
33367   o Minor features (controller):
33368     - Add a new config option __DisablePredictedCircuits designed for
33369       use by the controller, when we don't want Tor to build any circuits
33370       preemptively.
33371     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
33372       so we can exit from the middle of the circuit.
33373     - Implement "getinfo status/circuit-established".
33374     - Implement "getinfo status/version/..." so a controller can tell
33375       whether the current version is recommended, and whether any versions
33376       are good, and how many authorities agree. (Patch from shibz.)
33378   o Minor features (hidden services):
33379     - Allow multiple HiddenServicePort directives with the same virtual
33380       port; when they occur, the user is sent round-robin to one
33381       of the target ports chosen at random. Partially fixes bug 393 by
33382       adding limited ad-hoc round-robining.
33384   o Minor features (other):
33385     - More unit tests.
33386     - Add a new AutomapHostsOnResolve option: when it is enabled, any
33387       resolve request for hosts matching a given pattern causes Tor to
33388       generate an internal virtual address mapping for that host. This
33389       allows DNSPort to work sensibly with hidden service users. By
33390       default, .exit and .onion addresses are remapped; the list of
33391       patterns can be reconfigured with AutomapHostsSuffixes.
33392     - Add an "-F" option to tor-resolve to force a resolve for a .onion
33393       address. Thanks to the AutomapHostsOnResolve option, this is no
33394       longer a completely silly thing to do.
33395     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
33396       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
33397     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
33398       minus 1 byte: the actual maximum declared bandwidth.
33400   o Removed features:
33401     - Removed support for the old binary "version 0" controller protocol.
33402       This has been deprecated since 0.1.1, and warnings have been issued
33403       since 0.1.2. When we encounter a v0 control message, we now send
33404       back an error and close the connection.
33405     - Remove the old "dns worker" server DNS code: it hasn't been default
33406       since 0.1.2.2-alpha, and all the servers seem to be using the new
33407       eventdns code.
33409   o Minor bugfixes (portability):
33410     - Even though Windows is equally happy with / and \ as path separators,
33411       try to use \ consistently on Windows and / consistently on Unix: it
33412       makes the log messages nicer.
33413     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
33414     - Read resolv.conf files correctly on platforms where read() returns
33415       partial results on small file reads.
33417   o Minor bugfixes (directory):
33418     - Correctly enforce that elements of directory objects do not appear
33419       more often than they are allowed to appear.
33420     - When we are reporting the DirServer line we just parsed, we were
33421       logging the second stanza of the key fingerprint, not the first.
33423   o Minor bugfixes (logging):
33424     - When we hit an EOF on a log (probably because we're shutting down),
33425       don't try to remove the log from the list: just mark it as
33426       unusable. (Bulletproofs against bug 222.)
33428   o Minor bugfixes (other):
33429     - In the exitlist script, only consider the most recently published
33430       server descriptor for each server. Also, when the user requests
33431       a list of servers that _reject_ connections to a given address,
33432       explicitly exclude the IPs that also have servers that accept
33433       connections to that address. (Resolves bug 405.)
33434     - Stop allowing hibernating servers to be "stable" or "fast".
33435     - On Windows, we were preventing other processes from reading
33436       cached-routers while Tor was running. (Reported by janbar)
33437     - Make the NodeFamilies config option work. (Reported by
33438       lodger -- it has never actually worked, even though we added it
33439       in Oct 2004.)
33440     - Check return values from pthread_mutex functions.
33441     - Don't save non-general-purpose router descriptors to the disk cache,
33442       because we have no way of remembering what their purpose was when
33443       we restart.
33444     - Add even more asserts to hunt down bug 417.
33445     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
33446     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
33447       Add a log message to confirm that it is in fact unlikely.
33449   o Minor bugfixes (controller):
33450     - Make 'getinfo fingerprint' return a 551 error if we're not a
33451       server, so we match what the control spec claims we do. Reported
33452       by daejees.
33453     - Fix a typo in an error message when extendcircuit fails that
33454       caused us to not follow the \r\n-based delimiter protocol. Reported
33455       by daejees.
33457   o Code simplifications and refactoring:
33458     - Stop passing around circuit_t and crypt_path_t pointers that are
33459       implicit in other procedure arguments.
33460     - Drop the old code to choke directory connections when the
33461       corresponding OR connections got full: thanks to the cell queue
33462       feature, OR conns don't get full any more.
33463     - Make dns_resolve() handle attaching connections to circuits
33464       properly, so the caller doesn't have to.
33465     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
33466     - Keep the connection array as a dynamic smartlist_t, rather than as
33467       a fixed-sized array. This is important, as the number of connections
33468       is becoming increasingly decoupled from the number of sockets.
33471 Changes in version 0.1.2.14 - 2007-05-25
33472   Tor 0.1.2.14 changes the addresses of two directory authorities (this
33473   change especially affects those who serve or use hidden services),
33474   and fixes several other crash- and security-related bugs.
33476   o Directory authority changes:
33477     - Two directory authorities (moria1 and moria2) just moved to new
33478       IP addresses. This change will particularly affect those who serve
33479       or use hidden services.
33481   o Major bugfixes (crashes):
33482     - If a directory server runs out of space in the connection table
33483       as it's processing a begin_dir request, it will free the exit stream
33484       but leave it attached to the circuit, leading to unpredictable
33485       behavior. (Reported by seeess, fixes bug 425.)
33486     - Fix a bug in dirserv_remove_invalid() that would cause authorities
33487       to corrupt memory under some really unlikely scenarios.
33488     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
33489     - Avoid segfaults when reading from mmaped descriptor file. (Reported
33490       by lodger.)
33492   o Major bugfixes (security):
33493     - When choosing an entry guard for a circuit, avoid using guards
33494       that are in the same family as the chosen exit -- not just guards
33495       that are exactly the chosen exit. (Reported by lodger.)
33497   o Major bugfixes (resource management):
33498     - If a directory authority is down, skip it when deciding where to get
33499       networkstatus objects or descriptors. Otherwise we keep asking
33500       every 10 seconds forever. Fixes bug 384.
33501     - Count it as a failure if we fetch a valid network-status but we
33502       don't want to keep it. Otherwise we'll keep fetching it and keep
33503       not wanting to keep it. Fixes part of bug 422.
33504     - If all of our dirservers have given us bad or no networkstatuses
33505       lately, then stop hammering them once per minute even when we
33506       think they're failed. Fixes another part of bug 422.
33508   o Minor bugfixes:
33509     - Actually set the purpose correctly for descriptors inserted with
33510       purpose=controller.
33511     - When we have k non-v2 authorities in our DirServer config,
33512       we ignored the last k authorities in the list when updating our
33513       network-statuses.
33514     - Correctly back-off from requesting router descriptors that we are
33515       having a hard time downloading.
33516     - Read resolv.conf files correctly on platforms where read() returns
33517       partial results on small file reads.
33518     - Don't rebuild the entire router store every time we get 32K of
33519       routers: rebuild it when the journal gets very large, or when
33520       the gaps in the store get very large.
33522   o Minor features:
33523     - When routers publish SVN revisions in their router descriptors,
33524       authorities now include those versions correctly in networkstatus
33525       documents.
33526     - Warn when using a version of libevent before 1.3b to run a server on
33527       OSX or BSD: these versions interact badly with userspace threads.
33530 Changes in version 0.1.2.13 - 2007-04-24
33531   This release features some major anonymity fixes, such as safer path
33532   selection; better client performance; faster bootstrapping, better
33533   address detection, and better DNS support for servers; write limiting as
33534   well as read limiting to make servers easier to run; and a huge pile of
33535   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
33537   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
33538   of the Freenode IRC network, remembering his patience and vision for
33539   free speech on the Internet.
33541   o Minor fixes:
33542     - Fix a memory leak when we ask for "all" networkstatuses and we
33543       get one we don't recognize.
33544     - Add more asserts to hunt down bug 417.
33545     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
33548 Changes in version 0.1.2.12-rc - 2007-03-16
33549   o Major bugfixes:
33550     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
33551       directory information requested inside Tor connections (i.e. via
33552       begin_dir cells). It only triggered when the same connection was
33553       serving other data at the same time. Reported by seeess.
33555   o Minor bugfixes:
33556     - When creating a circuit via the controller, send a 'launched'
33557       event when we're done, so we follow the spec better.
33560 Changes in version 0.1.2.11-rc - 2007-03-15
33561   o Minor bugfixes (controller), reported by daejees:
33562     - Correct the control spec to match how the code actually responds
33563       to 'getinfo addr-mappings/*'.
33564     - The control spec described a GUARDS event, but the code
33565       implemented a GUARD event. Standardize on GUARD, but let people
33566       ask for GUARDS too.
33569 Changes in version 0.1.2.10-rc - 2007-03-07
33570   o Major bugfixes (Windows):
33571     - Do not load the NT services library functions (which may not exist)
33572       just to detect if we're a service trying to shut down. Now we run
33573       on Win98 and friends again.
33575   o Minor bugfixes (other):
33576     - Clarify a couple of log messages.
33577     - Fix a misleading socks5 error number.
33580 Changes in version 0.1.2.9-rc - 2007-03-02
33581   o Major bugfixes (Windows):
33582     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
33583       of the usual GCC "%llu". This prevents a bug when saving 64-bit
33584       int configuration values: the high-order 32 bits would get
33585       truncated. In particular, we were being bitten by the default
33586       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
33587       and maybe also bug 397.)
33589   o Minor bugfixes (performance):
33590     - Use OpenSSL's AES implementation on platforms where it's faster.
33591       This could save us as much as 10% CPU usage.
33593   o Minor bugfixes (server):
33594     - Do not rotate onion key immediately after setting it for the first
33595       time.
33597   o Minor bugfixes (directory authorities):
33598     - Stop calling servers that have been hibernating for a long time
33599       "stable". Also, stop letting hibernating or obsolete servers affect
33600       uptime and bandwidth cutoffs.
33601     - Stop listing hibernating servers in the v1 directory.
33603   o Minor bugfixes (hidden services):
33604     - Upload hidden service descriptors slightly less often, to reduce
33605       load on authorities.
33607   o Minor bugfixes (other):
33608     - Fix an assert that could trigger if a controller quickly set then
33609       cleared EntryNodes. Bug found by Udo van den Heuvel.
33610     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
33611       to INT32_MAX.
33612     - Fix a potential race condition in the rpm installer. Found by
33613       Stefan Nordhausen.
33614     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
33615       of 2 as indicating that the server is completely bad; it sometimes
33616       means that the server is just bad for the request in question. (may fix
33617       the last of bug 326.)
33618     - Disable encrypted directory connections when we don't have a server
33619       descriptor for the destination. We'll get this working again in
33620       the 0.2.0 branch.
33623 Changes in version 0.1.2.8-beta - 2007-02-26
33624   o Major bugfixes (crashes):
33625     - Stop crashing when the controller asks us to resetconf more than
33626       one config option at once. (Vidalia 0.0.11 does this.)
33627     - Fix a crash that happened on Win98 when we're given command-line
33628       arguments: don't try to load NT service functions from advapi32.dll
33629       except when we need them. (Bug introduced in 0.1.2.7-alpha;
33630       resolves bug 389.)
33631     - Fix a longstanding obscure crash bug that could occur when
33632       we run out of DNS worker processes. (Resolves bug 390.)
33634   o Major bugfixes (hidden services):
33635     - Correctly detect whether hidden service descriptor downloads are
33636       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
33638   o Major bugfixes (accounting):
33639     - When we start during an accounting interval before it's time to wake
33640       up, remember to wake up at the correct time. (May fix bug 342.)
33642   o Minor bugfixes (controller):
33643     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
33644       clear the corresponding on_circuit variable, and remember later
33645       that we don't need to send a redundant CLOSED event. Resolves part
33646       3 of bug 367.
33647     - Report events where a resolve succeeded or where we got a socks
33648       protocol error correctly, rather than calling both of them
33649       "INTERNAL".
33650     - Change reported stream target addresses to IP consistently when
33651       we finally get the IP from an exit node.
33652     - Send log messages to the controller even if they happen to be very
33653       long.
33655   o Minor bugfixes (other):
33656     - Display correct results when reporting which versions are
33657       recommended, and how recommended they are. (Resolves bug 383.)
33658     - Improve our estimates for directory bandwidth to be less random:
33659       guess that an unrecognized directory will have the average bandwidth
33660       from all known directories, not that it will have the average
33661       bandwidth from those directories earlier than it on the list.
33662     - If we start a server with ClientOnly 1, then set ClientOnly to 0
33663       and hup, stop triggering an assert based on an empty onion_key.
33664     - On platforms with no working mmap() equivalent, don't warn the
33665       user when cached-routers doesn't exist.
33666     - Warn the user when mmap() [or its equivalent] fails for some reason
33667       other than file-not-found.
33668     - Don't warn the user when cached-routers.new doesn't exist: that's
33669       perfectly fine when starting up for the first time.
33670     - When EntryNodes are configured, rebuild the guard list to contain,
33671       in order: the EntryNodes that were guards before; the rest of the
33672       EntryNodes; the nodes that were guards before.
33673     - Mask out all signals in sub-threads; only the libevent signal
33674       handler should be processing them. This should prevent some crashes
33675       on some machines using pthreads. (Patch from coderman.)
33676     - Fix switched arguments on memset in the implementation of
33677       tor_munmap() for systems with no mmap() call.
33678     - When Tor receives a router descriptor that it asked for, but
33679       no longer wants (because it has received fresh networkstatuses
33680       in the meantime), do not warn the user. Cache the descriptor if
33681       we're a cache; drop it if we aren't.
33682     - Make earlier entry guards _really_ get retried when the network
33683       comes back online.
33684     - On a malformed DNS reply, always give an error to the corresponding
33685       DNS request.
33686     - Build with recent libevents on platforms that do not define the
33687       nonstandard types "u_int8_t" and friends.
33689   o Minor features (controller):
33690     - Warn the user when an application uses the obsolete binary v0
33691       control protocol. We're planning to remove support for it during
33692       the next development series, so it's good to give people some
33693       advance warning.
33694     - Add STREAM_BW events to report per-entry-stream bandwidth
33695       use. (Patch from Robert Hogan.)
33696     - Rate-limit SIGNEWNYM signals in response to controllers that
33697       impolitely generate them for every single stream. (Patch from
33698       mwenge; closes bug 394.)
33699     - Make REMAP stream events have a SOURCE (cache or exit), and
33700       make them generated in every case where we get a successful
33701       connected or resolved cell.
33703   o Minor bugfixes (performance):
33704     - Call router_have_min_dir_info half as often. (This is showing up in
33705       some profiles, but not others.)
33706     - When using GCC, make log_debug never get called at all, and its
33707       arguments never get evaluated, when no debug logs are configured.
33708       (This is showing up in some profiles, but not others.)
33710   o Minor features:
33711     - Remove some never-implemented options. Mark PathlenCoinWeight as
33712       obsolete.
33713     - Implement proposal 106: Stop requiring clients to have well-formed
33714       certificates; stop checking nicknames in certificates. (Clients
33715       have certificates so that they can look like Tor servers, but in
33716       the future we might want to allow them to look like regular TLS
33717       clients instead. Nicknames in certificates serve no purpose other
33718       than making our protocol easier to recognize on the wire.)
33719     - Revise messages on handshake failure again to be even more clear about
33720       which are incoming connections and which are outgoing.
33721     - Discard any v1 directory info that's over 1 month old (for
33722       directories) or over 1 week old (for running-routers lists).
33723     - Do not warn when individual nodes in the configuration's EntryNodes,
33724       ExitNodes, etc are down: warn only when all possible nodes
33725       are down. (Fixes bug 348.)
33726     - Always remove expired routers and networkstatus docs before checking
33727       whether we have enough information to build circuits. (Fixes
33728       bug 373.)
33729     - Put a lower-bound on MaxAdvertisedBandwidth.
33732 Changes in version 0.1.2.7-alpha - 2007-02-06
33733   o Major bugfixes (rate limiting):
33734     - Servers decline directory requests much more aggressively when
33735       they're low on bandwidth. Otherwise they end up queueing more and
33736       more directory responses, which can't be good for latency.
33737     - But never refuse directory requests from local addresses.
33738     - Fix a memory leak when sending a 503 response for a networkstatus
33739       request.
33740     - Be willing to read or write on local connections (e.g. controller
33741       connections) even when the global rate limiting buckets are empty.
33742     - If our system clock jumps back in time, don't publish a negative
33743       uptime in the descriptor. Also, don't let the global rate limiting
33744       buckets go absurdly negative.
33745     - Flush local controller connection buffers periodically as we're
33746       writing to them, so we avoid queueing 4+ megabytes of data before
33747       trying to flush.
33749   o Major bugfixes (NT services):
33750     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
33751       command-line flag so that admins can override the default by saying
33752       "tor --service install --user "SomeUser"". This will not affect
33753       existing installed services. Also, warn the user that the service
33754       will look for its configuration file in the service user's
33755       %appdata% directory. (We can't do the 'hardwire the user's appdata
33756       directory' trick any more, since we may not have read access to that
33757       directory.)
33759   o Major bugfixes (other):
33760     - Previously, we would cache up to 16 old networkstatus documents
33761       indefinitely, if they came from nontrusted authorities. Now we
33762       discard them if they are more than 10 days old.
33763     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
33764       Del Vecchio).
33765     - Detect and reject malformed DNS responses containing circular
33766       pointer loops.
33767     - If exits are rare enough that we're not marking exits as guards,
33768       ignore exit bandwidth when we're deciding the required bandwidth
33769       to become a guard.
33770     - When we're handling a directory connection tunneled over Tor,
33771       don't fill up internal memory buffers with all the data we want
33772       to tunnel; instead, only add it if the OR connection that will
33773       eventually receive it has some room for it. (This can lead to
33774       slowdowns in tunneled dir connections; a better solution will have
33775       to wait for 0.2.0.)
33777   o Minor bugfixes (dns):
33778     - Add some defensive programming to eventdns.c in an attempt to catch
33779       possible memory-stomping bugs.
33780     - Detect and reject DNS replies containing IPv4 or IPv6 records with
33781       an incorrect number of bytes. (Previously, we would ignore the
33782       extra bytes.)
33783     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
33784       in the correct order, and doesn't crash.
33785     - Free memory held in recently-completed DNS lookup attempts on exit.
33786       This was not a memory leak, but may have been hiding memory leaks.
33787     - Handle TTL values correctly on reverse DNS lookups.
33788     - Treat failure to parse resolv.conf as an error.
33790   o Minor bugfixes (other):
33791     - Fix crash with "tor --list-fingerprint" (reported by seeess).
33792     - When computing clock skew from directory HTTP headers, consider what
33793       time it was when we finished asking for the directory, not what
33794       time it is now.
33795     - Expire socks connections if they spend too long waiting for the
33796       handshake to finish. Previously we would let them sit around for
33797       days, if the connecting application didn't close them either.
33798     - And if the socks handshake hasn't started, don't send a
33799       "DNS resolve socks failed" handshake reply; just close it.
33800     - Stop using C functions that OpenBSD's linker doesn't like.
33801     - Don't launch requests for descriptors unless we have networkstatuses
33802       from at least half of the authorities. This delays the first
33803       download slightly under pathological circumstances, but can prevent
33804       us from downloading a bunch of descriptors we don't need.
33805     - Do not log IPs with TLS failures for incoming TLS
33806       connections. (Fixes bug 382.)
33807     - If the user asks to use invalid exit nodes, be willing to use
33808       unstable ones.
33809     - Stop using the reserved ac_cv namespace in our configure script.
33810     - Call stat() slightly less often; use fstat() when possible.
33811     - Refactor the way we handle pending circuits when an OR connection
33812       completes or fails, in an attempt to fix a rare crash bug.
33813     - Only rewrite a conn's address based on X-Forwarded-For: headers
33814       if it's a parseable public IP address; and stop adding extra quotes
33815       to the resulting address.
33817   o Major features:
33818     - Weight directory requests by advertised bandwidth. Now we can
33819       let servers enable write limiting but still allow most clients to
33820       succeed at their directory requests. (We still ignore weights when
33821       choosing a directory authority; I hope this is a feature.)
33823   o Minor features:
33824     - Create a new file ReleaseNotes which was the old ChangeLog. The
33825       new ChangeLog file now includes the summaries for all development
33826       versions too.
33827     - Check for addresses with invalid characters at the exit as well
33828       as at the client, and warn less verbosely when they fail. You can
33829       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
33830     - Adapt a patch from goodell to let the contrib/exitlist script
33831       take arguments rather than require direct editing.
33832     - Inform the server operator when we decide not to advertise a
33833       DirPort due to AccountingMax enabled or a low BandwidthRate. It
33834       was confusing Zax, so now we're hopefully more helpful.
33835     - Bring us one step closer to being able to establish an encrypted
33836       directory tunnel without knowing a descriptor first. Still not
33837       ready yet. As part of the change, now assume we can use a
33838       create_fast cell if we don't know anything about a router.
33839     - Allow exit nodes to use nameservers running on ports other than 53.
33840     - Servers now cache reverse DNS replies.
33841     - Add an --ignore-missing-torrc command-line option so that we can
33842       get the "use sensible defaults if the configuration file doesn't
33843       exist" behavior even when specifying a torrc location on the command
33844       line.
33846   o Minor features (controller):
33847     - Track reasons for OR connection failure; make these reasons
33848       available via the controller interface. (Patch from Mike Perry.)
33849     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
33850       can learn when clients are sending malformed hostnames to Tor.
33851     - Clean up documentation for controller status events.
33852     - Add a REMAP status to stream events to note that a stream's
33853       address has changed because of a cached address or a MapAddress
33854       directive.
33857 Changes in version 0.1.2.6-alpha - 2007-01-09
33858   o Major bugfixes:
33859     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
33860       connection handles more than 4 gigs in either direction, we crash.
33861     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
33862       advertised exit node, somebody might try to exit from us when
33863       we're bootstrapping and before we've built our descriptor yet.
33864       Refuse the connection rather than crashing.
33866   o Minor bugfixes:
33867     - Warn if we (as a server) find that we've resolved an address that we
33868       weren't planning to resolve.
33869     - Warn that using select() on any libevent version before 1.1 will be
33870       unnecessarily slow (even for select()).
33871     - Flush ERR-level controller status events just like we currently
33872       flush ERR-level log events, so that a Tor shutdown doesn't prevent
33873       the controller from learning about current events.
33875   o Minor features (more controller status events):
33876     - Implement EXTERNAL_ADDRESS server status event so controllers can
33877       learn when our address changes.
33878     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
33879       can learn when directories reject our descriptor.
33880     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
33881       can learn when a client application is speaking a non-socks protocol
33882       to our SocksPort.
33883     - Implement DANGEROUS_SOCKS client status event so controllers
33884       can learn when a client application is leaking DNS addresses.
33885     - Implement BUG general status event so controllers can learn when
33886       Tor is unhappy about its internal invariants.
33887     - Implement CLOCK_SKEW general status event so controllers can learn
33888       when Tor thinks the system clock is set incorrectly.
33889     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
33890       server status events so controllers can learn when their descriptors
33891       are accepted by a directory.
33892     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
33893       server status events so controllers can learn about Tor's progress in
33894       deciding whether it's reachable from the outside.
33895     - Implement BAD_LIBEVENT general status event so controllers can learn
33896       when we have a version/method combination in libevent that needs to
33897       be changed.
33898     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
33899       and DNS_USELESS server status events so controllers can learn
33900       about changes to DNS server status.
33902   o Minor features (directory):
33903     - Authorities no longer recommend exits as guards if this would shift
33904       too much load to the exit nodes.
33907 Changes in version 0.1.2.5-alpha - 2007-01-06
33908   o Major features:
33909     - Enable write limiting as well as read limiting. Now we sacrifice
33910       capacity if we're pushing out lots of directory traffic, rather
33911       than overrunning the user's intended bandwidth limits.
33912     - Include TLS overhead when counting bandwidth usage; previously, we
33913       would count only the bytes sent over TLS, but not the bytes used
33914       to send them.
33915     - Support running the Tor service with a torrc not in the same
33916       directory as tor.exe and default to using the torrc located in
33917       the %appdata%\Tor\ of the user who installed the service. Patch
33918       from Matt Edman.
33919     - Servers now check for the case when common DNS requests are going to
33920       wildcarded addresses (i.e. all getting the same answer), and change
33921       their exit policy to reject *:* if it's happening.
33922     - Implement BEGIN_DIR cells, so we can connect to the directory
33923       server via TLS to do encrypted directory requests rather than
33924       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
33925       config options if you like.
33927   o Minor features (config and docs):
33928     - Start using the state file to store bandwidth accounting data:
33929       the bw_accounting file is now obsolete. We'll keep generating it
33930       for a while for people who are still using 0.1.2.4-alpha.
33931     - Try to batch changes to the state file so that we do as few
33932       disk writes as possible while still storing important things in
33933       a timely fashion.
33934     - The state file and the bw_accounting file get saved less often when
33935       the AvoidDiskWrites config option is set.
33936     - Make PIDFile work on Windows (untested).
33937     - Add internal descriptions for a bunch of configuration options:
33938       accessible via controller interface and in comments in saved
33939       options files.
33940     - Reject *:563 (NNTPS) in the default exit policy. We already reject
33941       NNTP by default, so this seems like a sensible addition.
33942     - Clients now reject hostnames with invalid characters. This should
33943       avoid some inadvertent info leaks. Add an option
33944       AllowNonRFC953Hostnames to disable this behavior, in case somebody
33945       is running a private network with hosts called @, !, and #.
33946     - Add a maintainer script to tell us which options are missing
33947       documentation: "make check-docs".
33948     - Add a new address-spec.txt document to describe our special-case
33949       addresses: .exit, .onion, and .noconnnect.
33951   o Minor features (DNS):
33952     - Ongoing work on eventdns infrastructure: now it has dns server
33953       and ipv6 support. One day Tor will make use of it.
33954     - Add client-side caching for reverse DNS lookups.
33955     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
33956     - When we change nameservers or IP addresses, reset and re-launch
33957       our tests for DNS hijacking.
33959   o Minor features (directory):
33960     - Authorities now specify server versions in networkstatus. This adds
33961       about 2% to the size of compressed networkstatus docs, and allows
33962       clients to tell which servers support BEGIN_DIR and which don't.
33963       The implementation is forward-compatible with a proposed future
33964       protocol version scheme not tied to Tor versions.
33965     - DirServer configuration lines now have an orport= option so
33966       clients can open encrypted tunnels to the authorities without
33967       having downloaded their descriptors yet. Enabled for moria1,
33968       moria2, tor26, and lefkada now in the default configuration.
33969     - Directory servers are more willing to send a 503 "busy" if they
33970       are near their write limit, especially for v1 directory requests.
33971       Now they can use their limited bandwidth for actual Tor traffic.
33972     - Clients track responses with status 503 from dirservers. After a
33973       dirserver has given us a 503, we try not to use it until an hour has
33974       gone by, or until we have no dirservers that haven't given us a 503.
33975     - When we get a 503 from a directory, and we're not a server, we don't
33976       count the failure against the total number of failures allowed
33977       for the thing we're trying to download.
33978     - Report X-Your-Address-Is correctly from tunneled directory
33979       connections; don't report X-Your-Address-Is when it's an internal
33980       address; and never believe reported remote addresses when they're
33981       internal.
33982     - Protect against an unlikely DoS attack on directory servers.
33983     - Add a BadDirectory flag to network status docs so that authorities
33984       can (eventually) tell clients about caches they believe to be
33985       broken.
33987   o Minor features (controller):
33988     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
33989     - Reimplement GETINFO so that info/names stays in sync with the
33990       actual keys.
33991     - Implement "GETINFO fingerprint".
33992     - Implement "SETEVENTS GUARD" so controllers can get updates on
33993       entry guard status as it changes.
33995   o Minor features (clean up obsolete pieces):
33996     - Remove some options that have been deprecated since at least
33997       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
33998       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
33999       to set log options.
34000     - We no longer look for identity and onion keys in "identity.key" and
34001       "onion.key" -- these were replaced by secret_id_key and
34002       secret_onion_key in 0.0.8pre1.
34003     - We no longer require unrecognized directory entries to be
34004       preceded by "opt".
34006   o Major bugfixes (security):
34007     - Stop sending the HttpProxyAuthenticator string to directory
34008       servers when directory connections are tunnelled through Tor.
34009     - Clients no longer store bandwidth history in the state file.
34010     - Do not log introduction points for hidden services if SafeLogging
34011       is set.
34012     - When generating bandwidth history, round down to the nearest
34013       1k. When storing accounting data, round up to the nearest 1k.
34014     - When we're running as a server, remember when we last rotated onion
34015       keys, so that we will rotate keys once they're a week old even if
34016       we never stay up for a week ourselves.
34018   o Major bugfixes (other):
34019     - Fix a longstanding bug in eventdns that prevented the count of
34020       timed-out resolves from ever being reset. This bug caused us to
34021       give up on a nameserver the third time it timed out, and try it
34022       10 seconds later... and to give up on it every time it timed out
34023       after that.
34024     - Take out the '5 second' timeout from the connection retry
34025       schedule. Now the first connect attempt will wait a full 10
34026       seconds before switching to a new circuit. Perhaps this will help
34027       a lot. Based on observations from Mike Perry.
34028     - Fix a bug on the Windows implementation of tor_mmap_file() that
34029       would prevent the cached-routers file from ever loading. Reported
34030       by John Kimble.
34032   o Minor bugfixes:
34033     - Fix an assert failure when a directory authority sets
34034       AuthDirRejectUnlisted and then receives a descriptor from an
34035       unlisted router. Reported by seeess.
34036     - Avoid a double-free when parsing malformed DirServer lines.
34037     - Fix a bug when a BSD-style PF socket is first used. Patch from
34038       Fabian Keil.
34039     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
34040       to resolve an address at a given exit node even when they ask for
34041       it by name.
34042     - Servers no longer ever list themselves in their "family" line,
34043       even if configured to do so. This makes it easier to configure
34044       family lists conveniently.
34045     - When running as a server, don't fall back to 127.0.0.1 when no
34046       nameservers are configured in /etc/resolv.conf; instead, make the
34047       user fix resolv.conf or specify nameservers explicitly. (Resolves
34048       bug 363.)
34049     - Stop accepting certain malformed ports in configured exit policies.
34050     - Don't re-write the fingerprint file every restart, unless it has
34051       changed.
34052     - Stop warning when a single nameserver fails: only warn when _all_ of
34053       our nameservers have failed. Also, when we only have one nameserver,
34054       raise the threshold for deciding that the nameserver is dead.
34055     - Directory authorities now only decide that routers are reachable
34056       if their identity keys are as expected.
34057     - When the user uses bad syntax in the Log config line, stop
34058       suggesting other bad syntax as a replacement.
34059     - Correctly detect ipv6 DNS capability on OpenBSD.
34061   o Minor bugfixes (controller):
34062     - Report the circuit number correctly in STREAM CLOSED events. Bug
34063       reported by Mike Perry.
34064     - Do not report bizarre values for results of accounting GETINFOs
34065       when the last second's write or read exceeds the allotted bandwidth.
34066     - Report "unrecognized key" rather than an empty string when the
34067       controller tries to fetch a networkstatus that doesn't exist.
34070 Changes in version 0.1.1.26 - 2006-12-14
34071   o Security bugfixes:
34072     - Stop sending the HttpProxyAuthenticator string to directory
34073       servers when directory connections are tunnelled through Tor.
34074     - Clients no longer store bandwidth history in the state file.
34075     - Do not log introduction points for hidden services if SafeLogging
34076       is set.
34078   o Minor bugfixes:
34079     - Fix an assert failure when a directory authority sets
34080       AuthDirRejectUnlisted and then receives a descriptor from an
34081       unlisted router (reported by seeess).
34084 Changes in version 0.1.2.4-alpha - 2006-12-03
34085   o Major features:
34086     - Add support for using natd; this allows FreeBSDs earlier than
34087       5.1.2 to have ipfw send connections through Tor without using
34088       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
34090   o Minor features:
34091     - Make all connections to addresses of the form ".noconnect"
34092       immediately get closed. This lets application/controller combos
34093       successfully test whether they're talking to the same Tor by
34094       watching for STREAM events.
34095     - Make cross.sh cross-compilation script work even when autogen.sh
34096       hasn't been run. (Patch from Michael Mohr.)
34097     - Statistics dumped by -USR2 now include a breakdown of public key
34098       operations, for profiling.
34100   o Major bugfixes:
34101     - Fix a major leak when directory authorities parse their
34102       approved-routers list, a minor memory leak when we fail to pick
34103       an exit node, and a few rare leaks on errors.
34104     - Handle TransPort connections even when the server sends data before
34105       the client sends data. Previously, the connection would just hang
34106       until the client sent data. (Patch from tup based on patch from
34107       Zajcev Evgeny.)
34108     - Avoid assert failure when our cached-routers file is empty on
34109       startup.
34111   o Minor bugfixes:
34112     - Don't log spurious warnings when we see a circuit close reason we
34113       don't recognize; it's probably just from a newer version of Tor.
34114     - Have directory authorities allow larger amounts of drift in uptime
34115       without replacing the server descriptor: previously, a server that
34116       restarted every 30 minutes could have 48 "interesting" descriptors
34117       per day.
34118     - Start linking to the Tor specification and Tor reference manual
34119       correctly in the Windows installer.
34120     - Add Vidalia to the OS X uninstaller script, so when we uninstall
34121       Tor/Privoxy we also uninstall Vidalia.
34122     - Resume building on Irix64, and fix a lot of warnings from its
34123       MIPSpro C compiler.
34124     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
34125       when we're running as a client.
34128 Changes in version 0.1.1.25 - 2006-11-04
34129   o Major bugfixes:
34130     - When a client asks us to resolve (rather than connect to)
34131       an address, and we have a cached answer, give them the cached
34132       answer. Previously, we would give them no answer at all.
34133     - We were building exactly the wrong circuits when we predict
34134       hidden service requirements, meaning Tor would have to build all
34135       its circuits on demand.
34136     - If none of our live entry guards have a high uptime, but we
34137       require a guard with a high uptime, try adding a new guard before
34138       we give up on the requirement. This patch should make long-lived
34139       connections more stable on average.
34140     - When testing reachability of our DirPort, don't launch new
34141       tests when there's already one in progress -- unreachable
34142       servers were stacking up dozens of testing streams.
34144   o Security bugfixes:
34145     - When the user sends a NEWNYM signal, clear the client-side DNS
34146       cache too. Otherwise we continue to act on previous information.
34148   o Minor bugfixes:
34149     - Avoid a memory corruption bug when creating a hash table for
34150       the first time.
34151     - Avoid possibility of controller-triggered crash when misusing
34152       certain commands from a v0 controller on platforms that do not
34153       handle printf("%s",NULL) gracefully.
34154     - Avoid infinite loop on unexpected controller input.
34155     - Don't log spurious warnings when we see a circuit close reason we
34156       don't recognize; it's probably just from a newer version of Tor.
34157     - Add Vidalia to the OS X uninstaller script, so when we uninstall
34158       Tor/Privoxy we also uninstall Vidalia.
34161 Changes in version 0.1.2.3-alpha - 2006-10-29
34162   o Minor features:
34163     - Prepare for servers to publish descriptors less often: never
34164       discard a descriptor simply for being too old until either it is
34165       recommended by no authorities, or until we get a better one for
34166       the same router. Make caches consider retaining old recommended
34167       routers for even longer.
34168     - If most authorities set a BadExit flag for a server, clients
34169       don't think of it as a general-purpose exit. Clients only consider
34170       authorities that advertise themselves as listing bad exits.
34171     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
34172       headers for content, so that we can work better in the presence of
34173       caching HTTP proxies.
34174     - Allow authorities to list nodes as bad exits by fingerprint or by
34175       address.
34177   o Minor features, controller:
34178     - Add a REASON field to CIRC events; for backward compatibility, this
34179       field is sent only to controllers that have enabled the extended
34180       event format. Also, add additional reason codes to explain why
34181       a given circuit has been destroyed or truncated. (Patches from
34182       Mike Perry)
34183     - Add a REMOTE_REASON field to extended CIRC events to tell the
34184       controller about why a remote OR told us to close a circuit.
34185     - Stream events also now have REASON and REMOTE_REASON fields,
34186       working much like those for circuit events.
34187     - There's now a GETINFO ns/... field so that controllers can ask Tor
34188       about the current status of a router.
34189     - A new event type "NS" to inform a controller when our opinion of
34190       a router's status has changed.
34191     - Add a GETINFO events/names and GETINFO features/names so controllers
34192       can tell which events and features are supported.
34193     - A new CLEARDNSCACHE signal to allow controllers to clear the
34194       client-side DNS cache without expiring circuits.
34196   o Security bugfixes:
34197     - When the user sends a NEWNYM signal, clear the client-side DNS
34198       cache too. Otherwise we continue to act on previous information.
34200   o Minor bugfixes:
34201     - Avoid sending junk to controllers or segfaulting when a controller
34202       uses EVENT_NEW_DESC with verbose nicknames.
34203     - Stop triggering asserts if the controller tries to extend hidden
34204       service circuits (reported by mwenge).
34205     - Avoid infinite loop on unexpected controller input.
34206     - When the controller does a "GETINFO network-status", tell it
34207       about even those routers whose descriptors are very old, and use
34208       long nicknames where appropriate.
34209     - Change NT service functions to be loaded on demand. This lets us
34210       build with MinGW without breaking Tor for Windows 98 users.
34211     - Do DirPort reachability tests less often, since a single test
34212       chews through many circuits before giving up.
34213     - In the hidden service example in torrc.sample, stop recommending
34214       esoteric and discouraged hidden service options.
34215     - When stopping an NT service, wait up to 10 sec for it to actually
34216       stop. Patch from Matt Edman; resolves bug 295.
34217     - Fix handling of verbose nicknames with ORCONN controller events:
34218       make them show up exactly when requested, rather than exactly when
34219       not requested.
34220     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
34221       printing a duplicate "$" in the keys we send (reported by mwenge).
34222     - Correctly set maximum connection limit on Cygwin. (This time
34223       for sure!)
34224     - Try to detect Windows correctly when cross-compiling.
34225     - Detect the size of the routers file correctly even if it is
34226       corrupted (on systems without mmap) or not page-aligned (on systems
34227       with mmap). This bug was harmless.
34228     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
34229       to open a stream fails; now we do in more cases. This should
34230       make clients able to find a good exit faster in some cases, since
34231       unhandleable requests will now get an error rather than timing out.
34232     - Resolve two memory leaks when rebuilding the on-disk router cache
34233       (reported by fookoowa).
34234     - Clean up minor code warnings suggested by the MIPSpro C compiler,
34235       and reported by some Centos users.
34236     - Controller signals now work on non-Unix platforms that don't define
34237       SIGUSR1 and SIGUSR2 the way we expect.
34238     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
34239       values before failing, and always enables eventdns.
34240     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
34241       Try to fix this in configure.in by checking for most functions
34242       before we check for libevent.
34245 Changes in version 0.1.2.2-alpha - 2006-10-07
34246   o Major features:
34247     - Make our async eventdns library on-by-default for Tor servers,
34248       and plan to deprecate the separate dnsworker threads.
34249     - Add server-side support for "reverse" DNS lookups (using PTR
34250       records so clients can determine the canonical hostname for a given
34251       IPv4 address). Only supported by servers using eventdns; servers
34252       now announce in their descriptors whether they support eventdns.
34253     - Specify and implement client-side SOCKS5 interface for reverse DNS
34254       lookups (see doc/socks-extensions.txt).
34255     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
34256       connect to directory servers through Tor. Previously, clients needed
34257       to find Tor exits to make private connections to directory servers.
34258     - Avoid choosing Exit nodes for entry or middle hops when the
34259       total bandwidth available from non-Exit nodes is much higher than
34260       the total bandwidth available from Exit nodes.
34261     - Workaround for name servers (like Earthlink's) that hijack failing
34262       DNS requests and replace the no-such-server answer with a "helpful"
34263       redirect to an advertising-driven search portal. Also work around
34264       DNS hijackers who "helpfully" decline to hijack known-invalid
34265       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
34266       lets you turn it off.
34267     - Send out a burst of long-range padding cells once we've established
34268       that we're reachable. Spread them over 4 circuits, so hopefully
34269       a few will be fast. This exercises our bandwidth and bootstraps
34270       us into the directory more quickly.
34272   o New/improved config options:
34273     - Add new config option "ResolvConf" to let the server operator
34274       choose an alternate resolve.conf file when using eventdns.
34275     - Add an "EnforceDistinctSubnets" option to control our "exclude
34276       servers on the same /16" behavior. It's still on by default; this
34277       is mostly for people who want to operate private test networks with
34278       all the machines on the same subnet.
34279     - If one of our entry guards is on the ExcludeNodes list, or the
34280       directory authorities don't think it's a good guard, treat it as
34281       if it were unlisted: stop using it as a guard, and throw it off
34282       the guards list if it stays that way for a long time.
34283     - Allow directory authorities to be marked separately as authorities
34284       for the v1 directory protocol, the v2 directory protocol, and
34285       as hidden service directories, to make it easier to retire old
34286       authorities. V1 authorities should set "HSAuthoritativeDir 1"
34287       to continue being hidden service authorities too.
34288     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
34290   o Minor features, controller:
34291     - Fix CIRC controller events so that controllers can learn the
34292       identity digests of non-Named servers used in circuit paths.
34293     - Let controllers ask for more useful identifiers for servers. Instead
34294       of learning identity digests for un-Named servers and nicknames
34295       for Named servers, the new identifiers include digest, nickname,
34296       and indication of Named status. Off by default; see control-spec.txt
34297       for more information.
34298     - Add a "getinfo address" controller command so it can display Tor's
34299       best guess to the user.
34300     - New controller event to alert the controller when our server
34301       descriptor has changed.
34302     - Give more meaningful errors on controller authentication failure.
34304   o Minor features, other:
34305     - When asked to resolve a hostname, don't use non-exit servers unless
34306       requested to do so. This allows servers with broken DNS to be
34307       useful to the network.
34308     - Divide eventdns log messages into warn and info messages.
34309     - Reserve the nickname "Unnamed" for routers that can't pick
34310       a hostname: any router can call itself Unnamed; directory
34311       authorities will never allocate Unnamed to any particular router;
34312       clients won't believe that any router is the canonical Unnamed.
34313     - Only include function names in log messages for info/debug messages.
34314       For notice/warn/err, the content of the message should be clear on
34315       its own, and printing the function name only confuses users.
34316     - Avoid some false positives during reachability testing: don't try
34317       to test via a server that's on the same /24 as us.
34318     - If we fail to build a circuit to an intended enclave, and it's
34319       not mandatory that we use that enclave, stop wanting it.
34320     - When eventdns is enabled, allow multithreaded builds on NetBSD and
34321       OpenBSD. (We had previously disabled threads on these platforms
34322       because they didn't have working thread-safe resolver functions.)
34324   o Major bugfixes, anonymity/security:
34325     - If a client asked for a server by name, and there's a named server
34326       in our network-status but we don't have its descriptor yet, we
34327       could return an unnamed server instead.
34328     - Fix NetBSD bug that could allow someone to force uninitialized RAM
34329       to be sent to a server's DNS resolver. This only affects NetBSD
34330       and other platforms that do not bounds-check tolower().
34331     - Reject (most) attempts to use Tor circuits with length one. (If
34332       many people start using Tor as a one-hop proxy, exit nodes become
34333       a more attractive target for compromise.)
34334     - Just because your DirPort is open doesn't mean people should be
34335       able to remotely teach you about hidden service descriptors. Now
34336       only accept rendezvous posts if you've got HSAuthoritativeDir set.
34338   o Major bugfixes, other:
34339     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
34340     - When a client asks the server to resolve (not connect to)
34341       an address, and it has a cached answer, give them the cached answer.
34342       Previously, the server would give them no answer at all.
34343     - Allow really slow clients to not hang up five minutes into their
34344       directory downloads (suggested by Adam J. Richter).
34345     - We were building exactly the wrong circuits when we anticipated
34346       hidden service requirements, meaning Tor would have to build all
34347       its circuits on demand.
34348     - Avoid crashing when we mmap a router cache file of size 0.
34349     - When testing reachability of our DirPort, don't launch new
34350       tests when there's already one in progress -- unreachable
34351       servers were stacking up dozens of testing streams.
34353   o Minor bugfixes, correctness:
34354     - If we're a directory mirror and we ask for "all" network status
34355       documents, we would discard status documents from authorities
34356       we don't recognize.
34357     - Avoid a memory corruption bug when creating a hash table for
34358       the first time.
34359     - Avoid controller-triggered crash when misusing certain commands
34360       from a v0 controller on platforms that do not handle
34361       printf("%s",NULL) gracefully.
34362     - Don't crash when a controller sends a third argument to an
34363       "extendcircuit" request.
34364     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
34365       response; fix error code when "getinfo dir/status/" fails.
34366     - Avoid crash when telling controller stream-status and a stream
34367       is detached.
34368     - Patch from Adam Langley to fix assert() in eventdns.c.
34369     - Fix a debug log message in eventdns to say "X resolved to Y"
34370       instead of "X resolved to X".
34371     - Make eventdns give strings for DNS errors, not just error numbers.
34372     - Track unreachable entry guards correctly: don't conflate
34373       'unreachable by us right now' with 'listed as down by the directory
34374       authorities'. With the old code, if a guard was unreachable by
34375       us but listed as running, it would clog our guard list forever.
34376     - Behave correctly in case we ever have a network with more than
34377       2GB/s total advertised capacity.
34378     - Make TrackExitHosts case-insensitive, and fix the behavior of
34379       ".suffix" TrackExitHosts items to avoid matching in the middle of
34380       an address.
34381     - Finally fix the openssl warnings from newer gccs that believe that
34382       ignoring a return value is okay, but casting a return value and
34383       then ignoring it is a sign of madness.
34384     - Prevent the contrib/exitlist script from printing the same
34385       result more than once.
34386     - Patch from Steve Hildrey: Generate network status correctly on
34387       non-versioning dirservers.
34388     - Don't listen to the X-Your-Address-Is hint if you did the lookup
34389       via Tor; otherwise you'll think you're the exit node's IP address.
34391   o Minor bugfixes, performance:
34392     - Two small performance improvements on parsing descriptors.
34393     - Major performance improvement on inserting descriptors: change
34394       algorithm from O(n^2) to O(n).
34395     - Make the common memory allocation path faster on machines where
34396       malloc(0) returns a pointer.
34397     - Start remembering X-Your-Address-Is directory hints even if you're
34398       a client, so you can become a server more smoothly.
34399     - Avoid duplicate entries on MyFamily line in server descriptor.
34401   o Packaging, features:
34402     - Remove architecture from OS X builds. The official builds are
34403       now universal binaries.
34404     - The Debian package now uses --verify-config when (re)starting,
34405       to distinguish configuration errors from other errors.
34406     - Update RPMs to require libevent 1.1b.
34408   o Packaging, bugfixes:
34409     - Patches so Tor builds with MinGW on Windows.
34410     - Patches so Tor might run on Cygwin again.
34411     - Resume building on non-gcc compilers and ancient gcc. Resume
34412       building with the -O0 compile flag. Resume building cleanly on
34413       Debian woody.
34414     - Run correctly on OS X platforms with case-sensitive filesystems.
34415     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
34416     - Add autoconf checks so Tor can build on Solaris x86 again.
34418   o Documentation
34419     - Documented (and renamed) ServerDNSSearchDomains and
34420       ServerDNSResolvConfFile options.
34421     - Be clearer that the *ListenAddress directives can be repeated
34422       multiple times.
34425 Changes in version 0.1.1.24 - 2006-09-29
34426   o Major bugfixes:
34427     - Allow really slow clients to not hang up five minutes into their
34428       directory downloads (suggested by Adam J. Richter).
34429     - Fix major performance regression from 0.1.0.x: instead of checking
34430       whether we have enough directory information every time we want to
34431       do something, only check when the directory information has changed.
34432       This should improve client CPU usage by 25-50%.
34433     - Don't crash if, after a server has been running for a while,
34434       it can't resolve its hostname.
34436   o Minor bugfixes:
34437     - Allow Tor to start when RunAsDaemon is set but no logs are set.
34438     - Don't crash when the controller receives a third argument to an
34439       "extendcircuit" request.
34440     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
34441       response; fix error code when "getinfo dir/status/" fails.
34442     - Fix configure.in to not produce broken configure files with
34443       more recent versions of autoconf. Thanks to Clint for his auto*
34444       voodoo.
34445     - Fix security bug on NetBSD that could allow someone to force
34446       uninitialized RAM to be sent to a server's DNS resolver. This
34447       only affects NetBSD and other platforms that do not bounds-check
34448       tolower().
34449     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
34450       methods: these are known to be buggy.
34451     - If we're a directory mirror and we ask for "all" network status
34452       documents, we would discard status documents from authorities
34453       we don't recognize.
34456 Changes in version 0.1.2.1-alpha - 2006-08-27
34457   o Major features:
34458     - Add "eventdns" async dns library from Adam Langley, tweaked to
34459       build on OSX and Windows. Only enabled if you pass the
34460       --enable-eventdns argument to configure.
34461     - Allow servers with no hostname or IP address to learn their
34462       IP address by asking the directory authorities. This code only
34463       kicks in when you would normally have exited with a "no address"
34464       error. Nothing's authenticated, so use with care.
34465     - Rather than waiting a fixed amount of time between retrying
34466       application connections, we wait only 5 seconds for the first,
34467       10 seconds for the second, and 15 seconds for each retry after
34468       that. Hopefully this will improve the expected user experience.
34469     - Patch from Tup to add support for transparent AP connections:
34470       this basically bundles the functionality of trans-proxy-tor
34471       into the Tor mainline. Now hosts with compliant pf/netfilter
34472       implementations can redirect TCP connections straight to Tor
34473       without diverting through SOCKS. Needs docs.
34474     - Busy directory servers save lots of memory by spooling server
34475       descriptors, v1 directories, and v2 networkstatus docs to buffers
34476       as needed rather than en masse. Also mmap the cached-routers
34477       files, so we don't need to keep the whole thing in memory too.
34478     - Automatically avoid picking more than one node from the same
34479       /16 network when constructing a circuit.
34480     - Revise and clean up the torrc.sample that we ship with; add
34481       a section for BandwidthRate and BandwidthBurst.
34483   o Minor features:
34484     - Split circuit_t into origin_circuit_t and or_circuit_t, and
34485       split connection_t into edge, or, dir, control, and base structs.
34486       These will save quite a bit of memory on busy servers, and they'll
34487       also help us track down bugs in the code and bugs in the spec.
34488     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
34489       or later. Log when we are doing this, so we can diagnose it when
34490       it fails. (Also, recommend libevent 1.1b for kqueue and
34491       win32 methods; deprecate libevent 1.0b harder; make libevent
34492       recommendation system saner.)
34493     - Start being able to build universal binaries on OS X (thanks
34494       to Phobos).
34495     - Export the default exit policy via the control port, so controllers
34496       don't need to guess what it is / will be later.
34497     - Add a man page entry for ProtocolWarnings.
34498     - Add TestVia config option to the man page.
34499     - Remove even more protocol-related warnings from Tor server logs,
34500       such as bad TLS handshakes and malformed begin cells.
34501     - Stop fetching descriptors if you're not a dir mirror and you
34502       haven't tried to establish any circuits lately. [This currently
34503       causes some dangerous behavior, because when you start up again
34504       you'll use your ancient server descriptors.]
34505     - New DirPort behavior: if you have your dirport set, you download
34506       descriptors aggressively like a directory mirror, whether or not
34507       your ORPort is set.
34508     - Get rid of the router_retry_connections notion. Now routers
34509       no longer try to rebuild long-term connections to directory
34510       authorities, and directory authorities no longer try to rebuild
34511       long-term connections to all servers. We still don't hang up
34512       connections in these two cases though -- we need to look at it
34513       more carefully to avoid flapping, and we likely need to wait til
34514       0.1.1.x is obsolete.
34515     - Drop compatibility with obsolete Tors that permit create cells
34516       to have the wrong circ_id_type.
34517     - Re-enable per-connection rate limiting. Get rid of the "OP
34518       bandwidth" concept. Lay groundwork for "bandwidth classes" --
34519       separate global buckets that apply depending on what sort of conn
34520       it is.
34521     - Start publishing one minute or so after we find our ORPort
34522       to be reachable. This will help reduce the number of descriptors
34523       we have for ourselves floating around, since it's quite likely
34524       other things (e.g. DirPort) will change during that minute too.
34525     - Fork the v1 directory protocol into its own spec document,
34526       and mark dir-spec.txt as the currently correct (v2) spec.
34528   o Major bugfixes:
34529     - When we find our DirPort to be reachable, publish a new descriptor
34530       so we'll tell the world (reported by pnx).
34531     - Publish a new descriptor after we hup/reload. This is important
34532       if our config has changed such that we'll want to start advertising
34533       our DirPort now, etc.
34534     - Allow Tor to start when RunAsDaemon is set but no logs are set.
34535     - When we have a state file we cannot parse, tell the user and
34536       move it aside. Now we avoid situations where the user starts
34537       Tor in 1904, Tor writes a state file with that timestamp in it,
34538       the user fixes her clock, and Tor refuses to start.
34539     - Fix configure.in to not produce broken configure files with
34540       more recent versions of autoconf. Thanks to Clint for his auto*
34541       voodoo.
34542     - "tor --verify-config" now exits with -1(255) or 0 depending on
34543       whether the config options are bad or good.
34544     - Resolve bug 321 when using dnsworkers: append a period to every
34545       address we resolve at the exit node, so that we do not accidentally
34546       pick up local addresses, and so that failing searches are retried
34547       in the resolver search domains. (This is already solved for
34548       eventdns.) (This breaks Blossom servers for now.)
34549     - If we are using an exit enclave and we can't connect, e.g. because
34550       its webserver is misconfigured to not listen on localhost, then
34551       back off and try connecting from somewhere else before we fail.
34553   o Minor bugfixes:
34554     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
34555     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
34556     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
34557       when the IP address is mapped through MapAddress to a hostname.
34558     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
34559       useless IPv6 DNS resolves.
34560     - Patch suggested by Karsten Loesing: respond to SIGNAL command
34561       before we execute the signal, in case the signal shuts us down.
34562     - Clean up AllowInvalidNodes man page entry.
34563     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
34564     - Add more asserts to track down an assert error on a windows Tor
34565       server with connection_add being called with socket == -1.
34566     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
34567     - Fix misleading log messages: an entry guard that is "unlisted",
34568       as well as not known to be "down" (because we've never heard
34569       of it), is not therefore "up".
34570     - Remove code to special-case "-cvs" ending, since it has not
34571       actually mattered since 0.0.9.
34572     - Make our socks5 handling more robust to broken socks clients:
34573       throw out everything waiting on the buffer in between socks
34574       handshake phases, since they can't possibly (so the theory
34575       goes) have predicted what we plan to respond to them.
34578 Changes in version 0.1.1.23 - 2006-07-30
34579   o Major bugfixes:
34580     - Fast Tor servers, especially exit nodes, were triggering asserts
34581       due to a bug in handling the list of pending DNS resolves. Some
34582       bugs still remain here; we're hunting them.
34583     - Entry guards could crash clients by sending unexpected input.
34584     - More fixes on reachability testing: if you find yourself reachable,
34585       then don't ever make any client requests (so you stop predicting
34586       circuits), then hup or have your clock jump, then later your IP
34587       changes, you won't think circuits are working, so you won't try to
34588       test reachability, so you won't publish.
34590   o Minor bugfixes:
34591     - Avoid a crash if the controller does a resetconf firewallports
34592       and then a setconf fascistfirewall=1.
34593     - Avoid an integer underflow when the dir authority decides whether
34594       a router is stable: we might wrongly label it stable, and compute
34595       a slightly wrong median stability, when a descriptor is published
34596       later than now.
34597     - Fix a place where we might trigger an assert if we can't build our
34598       own server descriptor yet.
34601 Changes in version 0.1.1.22 - 2006-07-05
34602   o Major bugfixes:
34603     - Fix a big bug that was causing servers to not find themselves
34604       reachable if they changed IP addresses. Since only 0.1.1.22+
34605       servers can do reachability testing correctly, now we automatically
34606       make sure to test via one of these.
34607     - Fix to allow clients and mirrors to learn directory info from
34608       descriptor downloads that get cut off partway through.
34609     - Directory authorities had a bug in deciding if a newly published
34610       descriptor was novel enough to make everybody want a copy -- a few
34611       servers seem to be publishing new descriptors many times a minute.
34612   o Minor bugfixes:
34613     - Fix a rare bug that was causing some servers to complain about
34614       "closing wedged cpuworkers" and skip some circuit create requests.
34615     - Make the Exit flag in directory status documents actually work.
34618 Changes in version 0.1.1.21 - 2006-06-10
34619   o Crash and assert fixes from 0.1.1.20:
34620     - Fix a rare crash on Tor servers that have enabled hibernation.
34621     - Fix a seg fault on startup for Tor networks that use only one
34622       directory authority.
34623     - Fix an assert from a race condition that occurs on Tor servers
34624       while exiting, where various threads are trying to log that they're
34625       exiting, and delete the logs, at the same time.
34626     - Make our unit tests pass again on certain obscure platforms.
34628   o Other fixes:
34629     - Add support for building SUSE RPM packages.
34630     - Speed up initial bootstrapping for clients: if we are making our
34631       first ever connection to any entry guard, then don't mark it down
34632       right after that.
34633     - When only one Tor server in the network is labelled as a guard,
34634       and we've already picked him, we would cycle endlessly picking him
34635       again, being unhappy about it, etc. Now we specifically exclude
34636       current guards when picking a new guard.
34637     - Servers send create cells more reliably after the TLS connection
34638       is established: we were sometimes forgetting to send half of them
34639       when we had more than one pending.
34640     - If we get a create cell that asks us to extend somewhere, but the
34641       Tor server there doesn't match the expected digest, we now send
34642       a destroy cell back, rather than silently doing nothing.
34643     - Make options->RedirectExit work again.
34644     - Make cookie authentication for the controller work again.
34645     - Stop being picky about unusual characters in the arguments to
34646       mapaddress. It's none of our business.
34647     - Add a new config option "TestVia" that lets you specify preferred
34648       middle hops to use for test circuits. Perhaps this will let me
34649       debug the reachability problems better.
34651   o Log / documentation fixes:
34652     - If we're a server and some peer has a broken TLS certificate, don't
34653       log about it unless ProtocolWarnings is set, i.e., we want to hear
34654       about protocol violations by others.
34655     - Fix spelling of VirtualAddrNetwork in man page.
34656     - Add a better explanation at the top of the autogenerated torrc file
34657       about what happened to our old torrc.
34660 Changes in version 0.1.1.20 - 2006-05-23
34661   o Bugfixes:
34662     - Downgrade a log severity where servers complain that they're
34663       invalid.
34664     - Avoid a compile warning on FreeBSD.
34665     - Remove string size limit on NEWDESC messages; solve bug 291.
34666     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
34667       more thoroughly when we're running on windows.
34670 Changes in version 0.1.1.19-rc - 2006-05-03
34671   o Minor bugs:
34672     - Regenerate our local descriptor if it's dirty and we try to use
34673       it locally (e.g. if it changes during reachability detection).
34674     - If we setconf our ORPort to 0, we continued to listen on the
34675       old ORPort and receive connections.
34676     - Avoid a second warning about machine/limits.h on Debian
34677       GNU/kFreeBSD.
34678     - Be willing to add our own routerinfo into the routerlist.
34679       Now authorities will include themselves in their directories
34680       and network-statuses.
34681     - Stop trying to upload rendezvous descriptors to every
34682       directory authority: only try the v1 authorities.
34683     - Servers no longer complain when they think they're not
34684       registered with the directory authorities. There were too many
34685       false positives.
34686     - Backport dist-rpm changes so rpms can be built without errors.
34688   o Features:
34689     - Implement an option, VirtualAddrMask, to set which addresses
34690       get handed out in response to mapaddress requests. This works
34691       around a bug in tsocks where 127.0.0.0/8 is never socksified.
34694 Changes in version 0.1.1.18-rc - 2006-04-10
34695   o Major fixes:
34696     - Work harder to download live network-statuses from all the
34697       directory authorities we know about. Improve the threshold
34698       decision logic so we're more robust to edge cases.
34699     - When fetching rendezvous descriptors, we were willing to ask
34700       v2 authorities too, which would always return 404.
34702   o Minor fixes:
34703     - Stop listing down or invalid nodes in the v1 directory. This will
34704       reduce its bulk by about 1/3, and reduce load on directory
34705       mirrors.
34706     - When deciding whether a router is Fast or Guard-worthy, consider
34707       his advertised BandwidthRate and not just the BandwidthCapacity.
34708     - No longer ship INSTALL and README files -- they are useless now.
34709     - Force rpmbuild to behave and honor target_cpu.
34710     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
34711     - Start to include translated versions of the tor-doc-*.html
34712       files, along with the screenshots. Still needs more work.
34713     - Start sending back 512 and 451 errors if mapaddress fails,
34714       rather than not sending anything back at all.
34715     - When we fail to bind or listen on an incoming or outgoing
34716       socket, we should close it before failing. otherwise we just
34717       leak it. (thanks to weasel for finding.)
34718     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
34719       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
34720     - Make NoPublish (even though deprecated) work again.
34721     - Fix a minor security flaw where a versioning auth dirserver
34722       could list a recommended version many times in a row to make
34723       clients more convinced that it's recommended.
34724     - Fix crash bug if there are two unregistered servers running
34725       with the same nickname, one of them is down, and you ask for
34726       them by nickname in your EntryNodes or ExitNodes. Also, try
34727       to pick the one that's running rather than an arbitrary one.
34728     - Fix an infinite loop we could hit if we go offline for too long.
34729     - Complain when we hit WSAENOBUFS on recv() or write() too.
34730       Perhaps this will help us hunt the bug.
34731     - If you're not a versioning dirserver, don't put the string
34732       "client-versions \nserver-versions \n" in your network-status.
34733     - Lower the minimum required number of file descriptors to 1000,
34734       so we can have some overhead for Valgrind on Linux, where the
34735       default ulimit -n is 1024.
34737   o New features:
34738     - Add tor.dizum.com as the fifth authoritative directory server.
34739     - Add a new config option FetchUselessDescriptors, off by default,
34740       for when you plan to run "exitlist" on your client and you want
34741       to know about even the non-running descriptors.
34744 Changes in version 0.1.1.17-rc - 2006-03-28
34745   o Major fixes:
34746     - Clients and servers since 0.1.1.10-alpha have been expiring
34747       connections whenever they are idle for 5 minutes and they *do*
34748       have circuits on them. Oops. With this new version, clients will
34749       discard their previous entry guard choices and avoid choosing
34750       entry guards running these flawed versions.
34751     - Fix memory leak when uncompressing concatenated zlib streams. This
34752       was causing substantial leaks over time on Tor servers.
34753     - The v1 directory was including servers as much as 48 hours old,
34754       because that's how the new routerlist->routers works. Now only
34755       include them if they're 20 hours old or less.
34757   o Minor fixes:
34758     - Resume building on irix64, netbsd 2.0, etc.
34759     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
34760       "-Wall -g -O2".
34761     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
34762       and it is confusing some users.
34763     - Mirrors stop caching the v1 directory so often.
34764     - Make the max number of old descriptors that a cache will hold
34765       rise with the number of directory authorities, so we can scale.
34766     - Change our win32 uname() hack to be more forgiving about what
34767       win32 versions it thinks it's found.
34769   o New features:
34770     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
34771       server.
34772     - When the controller's *setconf commands fail, collect an error
34773       message in a string and hand it back to the controller.
34774     - Make the v2 dir's "Fast" flag based on relative capacity, just
34775       like "Stable" is based on median uptime. Name everything in the
34776       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
34777     - Log server fingerprint on startup, so new server operators don't
34778       have to go hunting around their filesystem for it.
34779     - Return a robots.txt on our dirport to discourage google indexing.
34780     - Let the controller ask for GETINFO dir/status/foo so it can ask
34781       directly rather than connecting to the dir port. Only works when
34782       dirport is set for now.
34784   o New config options rather than constants in the code:
34785     - SocksTimeout: How long do we let a socks connection wait
34786       unattached before we fail it?
34787     - CircuitBuildTimeout: Cull non-open circuits that were born
34788       at least this many seconds ago.
34789     - CircuitIdleTimeout: Cull open clean circuits that were born
34790       at least this many seconds ago.
34793 Changes in version 0.1.1.16-rc - 2006-03-18
34794   o Bugfixes on 0.1.1.15-rc:
34795     - Fix assert when the controller asks to attachstream a connect-wait
34796       or resolve-wait stream.
34797     - Now do address rewriting when the controller asks us to attach
34798       to a particular circuit too. This will let Blossom specify
34799       "moria2.exit" without having to learn what moria2's IP address is.
34800     - Make the "tor --verify-config" command-line work again, so people
34801       can automatically check if their torrc will parse.
34802     - Authoritative dirservers no longer require an open connection from
34803       a server to consider him "reachable". We need this change because
34804       when we add new auth dirservers, old servers won't know not to
34805       hang up on them.
34806     - Let Tor build on Sun CC again.
34807     - Fix an off-by-one buffer size in dirserv.c that magically never
34808       hit our three authorities but broke sjmurdoch's own tor network.
34809     - If we as a directory mirror don't know of any v1 directory
34810       authorities, then don't try to cache any v1 directories.
34811     - Stop warning about unknown servers in our family when they are
34812       given as hex digests.
34813     - Stop complaining as quickly to the server operator that he
34814       hasn't registered his nickname/key binding.
34815     - Various cleanups so we can add new V2 Auth Dirservers.
34816     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
34817       reflect the updated flags in our v2 dir protocol.
34818     - Resume allowing non-printable characters for exit streams (both
34819       for connecting and for resolving). Now we tolerate applications
34820       that don't follow the RFCs. But continue to block malformed names
34821       at the socks side.
34823   o Bugfixes on 0.1.0.x:
34824     - Fix assert bug in close_logs(): when we close and delete logs,
34825       remove them all from the global "logfiles" list.
34826     - Fix minor integer overflow in calculating when we expect to use up
34827       our bandwidth allocation before hibernating.
34828     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
34829       there are multiple SSLs installed with different versions.
34830     - When we try to be a server and Address is not explicitly set and
34831       our hostname resolves to a private IP address, try to use an
34832       interface address if it has a public address. Now Windows machines
34833       that think of themselves as localhost can work by default.
34835   o New features:
34836     - Let the controller ask for GETINFO dir/server/foo so it can ask
34837       directly rather than connecting to the dir port.
34838     - Let the controller tell us about certain router descriptors
34839       that it doesn't want Tor to use in circuits. Implement
34840       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
34841     - New config option SafeSocks to reject all application connections
34842       using unsafe socks protocols. Defaults to off.
34845 Changes in version 0.1.1.15-rc - 2006-03-11
34846   o Bugfixes and cleanups:
34847     - When we're printing strings from the network, don't try to print
34848       non-printable characters. This protects us against shell escape
34849       sequence exploits, and also against attacks to fool humans into
34850       misreading their logs.
34851     - Fix a bug where Tor would fail to establish any connections if you
34852       left it off for 24 hours and then started it: we were happy with
34853       the obsolete network statuses, but they all referred to router
34854       descriptors that were too old to fetch, so we ended up with no
34855       valid router descriptors.
34856     - Fix a seg fault in the controller's "getinfo orconn-status"
34857       command while listing status on incoming handshaking connections.
34858       Introduce a status name "NEW" for these connections.
34859     - If we get a linelist or linelist_s config option from the torrc
34860       (e.g. ExitPolicy) and it has no value, warn and skip rather than
34861       silently resetting it to its default.
34862     - Don't abandon entry guards until they've been down or gone for
34863       a whole month.
34864     - Cleaner and quieter log messages.
34866   o New features:
34867     - New controller signal NEWNYM that makes new application requests
34868       use clean circuits.
34869     - Add a new circuit purpose 'controller' to let the controller ask
34870       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
34871       controller command to let you specify the purpose if you're
34872       starting a new circuit. Add a new SETCIRCUITPURPOSE controller
34873       command to let you change a circuit's purpose after it's been
34874       created.
34875     - Accept "private:*" in routerdesc exit policies; not generated yet
34876       because older Tors do not understand it.
34877     - Add BSD-style contributed startup script "rc.subr" from Peter
34878       Thoenen.
34881 Changes in version 0.1.1.14-alpha - 2006-02-20
34882   o Bugfixes on 0.1.1.x:
34883     - Don't die if we ask for a stdout or stderr log (even implicitly)
34884       and we're set to RunAsDaemon -- just warn.
34885     - We still had a few bugs in the OR connection rotation code that
34886       caused directory servers to slowly aggregate connections to other
34887       fast Tor servers. This time for sure!
34888     - Make log entries on Win32 include the name of the function again.
34889     - We were treating a pair of exit policies if they were equal even
34890       if one said accept and the other said reject -- causing us to
34891       not always publish a new descriptor since we thought nothing
34892       had changed.
34893     - Retry pending server downloads as well as pending networkstatus
34894       downloads when we unexpectedly get a socks request.
34895     - We were ignoring the IS_FAST flag in the directory status,
34896       meaning we were willing to pick trivial-bandwidth nodes for "fast"
34897       connections.
34898     - If the controller's SAVECONF command fails (e.g. due to file
34899       permissions), let the controller know that it failed.
34901   o Features:
34902     - If we're trying to be a Tor server and running Windows 95/98/ME
34903       as a server, explain that we'll likely crash.
34904     - When we're a server, a client asks for an old-style directory,
34905       and our write bucket is empty, don't give it to him. This way
34906       small servers can continue to serve the directory *sometimes*,
34907       without getting overloaded.
34908     - Compress exit policies even more -- look for duplicate lines
34909       and remove them.
34910     - Clients now honor the "guard" flag in the router status when
34911       picking entry guards, rather than looking at is_fast or is_stable.
34912     - Retain unrecognized lines in $DATADIR/state file, so that we can
34913       be forward-compatible.
34914     - Generate 18.0.0.0/8 address policy format in descs when we can;
34915       warn when the mask is not reducible to a bit-prefix.
34916     - Let the user set ControlListenAddress in the torrc. This can be
34917       dangerous, but there are some cases (like a secured LAN) where it
34918       makes sense.
34919     - Split ReachableAddresses into ReachableDirAddresses and
34920       ReachableORAddresses, so we can restrict Dir conns to port 80
34921       and OR conns to port 443.
34922     - Now we can target arch and OS in rpm builds (contributed by
34923       Phobos). Also make the resulting dist-rpm filename match the
34924       target arch.
34925     - New config options to help controllers: FetchServerDescriptors
34926       and FetchHidServDescriptors for whether to fetch server
34927       info and hidserv info or let the controller do it, and
34928       PublishServerDescriptor and PublishHidServDescriptors.
34929     - Also let the controller set the __AllDirActionsPrivate config
34930       option if you want all directory fetches/publishes to happen via
34931       Tor (it assumes your controller bootstraps your circuits).
34934 Changes in version 0.1.0.17 - 2006-02-17
34935   o Crash bugfixes on 0.1.0.x:
34936     - When servers with a non-zero DirPort came out of hibernation,
34937       sometimes they would trigger an assert.
34939   o Other important bugfixes:
34940     - On platforms that don't have getrlimit (like Windows), we were
34941       artificially constraining ourselves to a max of 1024
34942       connections. Now just assume that we can handle as many as 15000
34943       connections. Hopefully this won't cause other problems.
34945   o Backported features:
34946     - When we're a server, a client asks for an old-style directory,
34947       and our write bucket is empty, don't give it to him. This way
34948       small servers can continue to serve the directory *sometimes*,
34949       without getting overloaded.
34950     - Whenever you get a 503 in response to a directory fetch, try
34951       once more. This will become important once servers start sending
34952       503's whenever they feel busy.
34953     - Fetch a new directory every 120 minutes, not every 40 minutes.
34954       Now that we have hundreds of thousands of users running the old
34955       directory algorithm, it's starting to hurt a lot.
34956     - Bump up the period for forcing a hidden service descriptor upload
34957       from 20 minutes to 1 hour.
34960 Changes in version 0.1.1.13-alpha - 2006-02-09
34961   o Crashes in 0.1.1.x:
34962     - When you tried to setconf ORPort via the controller, Tor would
34963       crash. So people using TorCP to become a server were sad.
34964     - Solve (I hope) the stack-smashing bug that we were seeing on fast
34965       servers. The problem appears to be something do with OpenSSL's
34966       random number generation, or how we call it, or something. Let me
34967       know if the crashes continue.
34968     - Turn crypto hardware acceleration off by default, until we find
34969       somebody smart who can test it for us. (It appears to produce
34970       seg faults in at least some cases.)
34971     - Fix a rare assert error when we've tried all intro points for
34972       a hidden service and we try fetching the service descriptor again:
34973       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
34975   o Major fixes:
34976     - Fix a major load balance bug: we were round-robining in 16 KB
34977       chunks, and servers with bandwidthrate of 20 KB, while downloading
34978       a 600 KB directory, would starve their other connections. Now we
34979       try to be a bit more fair.
34980     - Dir authorities and mirrors were never expiring the newest
34981       descriptor for each server, causing memory and directory bloat.
34982     - Fix memory-bloating and connection-bloating bug on servers: We
34983       were never closing any connection that had ever had a circuit on
34984       it, because we were checking conn->n_circuits == 0, yet we had a
34985       bug that let it go negative.
34986     - Make Tor work using squid as your http proxy again -- squid
34987       returns an error if you ask for a URL that's too long, and it uses
34988       a really generic error message. Plus, many people are behind a
34989       transparent squid so they don't even realize it.
34990     - On platforms that don't have getrlimit (like Windows), we were
34991       artificially constraining ourselves to a max of 1024
34992       connections. Now just assume that we can handle as many as 15000
34993       connections. Hopefully this won't cause other problems.
34994     - Add a new config option ExitPolicyRejectPrivate which defaults to
34995       1. This means all exit policies will begin with rejecting private
34996       addresses, unless the server operator explicitly turns it off.
34998   o Major features:
34999     - Clients no longer download descriptors for non-running
35000       descriptors.
35001     - Before we add new directory authorities, we should make it
35002       clear that only v1 authorities should receive/publish hidden
35003       service descriptors.
35005   o Minor features:
35006     - As soon as we've fetched some more directory info, immediately
35007       try to download more server descriptors. This way we don't have
35008       a 10 second pause during initial bootstrapping.
35009     - Remove even more loud log messages that the server operator can't
35010       do anything about.
35011     - When we're running an obsolete or un-recommended version, make
35012       the log message more clear about what the problem is and what
35013       versions *are* still recommended.
35014     - Provide a more useful warn message when our onion queue gets full:
35015       the CPU is too slow or the exit policy is too liberal.
35016     - Don't warn when we receive a 503 from a dirserver/cache -- this
35017       will pave the way for them being able to refuse if they're busy.
35018     - When we fail to bind a listener, try to provide a more useful
35019       log message: e.g., "Is Tor already running?"
35020     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
35021       Goldberg can prove things about our handshake protocol more
35022       easily.
35023     - MaxConn has been obsolete for a while now. Document the ConnLimit
35024       config option, which is a *minimum* number of file descriptors
35025       that must be available else Tor refuses to start.
35026     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
35027       if you log to syslog and want something other than LOG_DAEMON.
35028     - Make dirservers generate a separate "guard" flag to mean,
35029       "would make a good entry guard". Make clients parse it and vote
35030       on it. Not used by clients yet.
35031     - Implement --with-libevent-dir option to ./configure. Also, improve
35032       search techniques to find libevent, and use those for openssl too.
35033     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
35034     - Only start testing reachability once we've established a
35035       circuit. This will make startup on dirservers less noisy.
35036     - Don't try to upload hidden service descriptors until we have
35037       established a circuit.
35038     - Fix the controller's "attachstream 0" command to treat conn like
35039       it just connected, doing address remapping, handling .exit and
35040       .onion idioms, and so on. Now we're more uniform in making sure
35041       that the controller hears about new and closing connections.
35044 Changes in version 0.1.1.12-alpha - 2006-01-11
35045   o Bugfixes on 0.1.1.x:
35046     - The fix to close duplicate server connections was closing all
35047       Tor client connections if they didn't establish a circuit
35048       quickly enough. Oops.
35049     - Fix minor memory issue (double-free) that happened on exit.
35051   o Bugfixes on 0.1.0.x:
35052     - Tor didn't warn when it failed to open a log file.
35055 Changes in version 0.1.1.11-alpha - 2006-01-10
35056   o Crashes in 0.1.1.x:
35057     - Include all the assert/crash fixes from 0.1.0.16.
35058     - If you start Tor and then quit very quickly, there were some
35059       races that tried to free things that weren't allocated yet.
35060     - Fix a rare memory stomp if you're running hidden services.
35061     - Fix segfault when specifying DirServer in config without nickname.
35062     - Fix a seg fault when you finish connecting to a server but at
35063       that moment you dump his server descriptor.
35064     - Extendcircuit and Attachstream controller commands would
35065       assert/crash if you don't give them enough arguments.
35066     - Fix an assert error when we're out of space in the connection_list
35067       and we try to post a hidden service descriptor (reported by weasel).
35068     - If you specify a relative torrc path and you set RunAsDaemon in
35069       your torrc, then it chdir()'s to the new directory. If you HUP,
35070       it tries to load the new torrc location, fails, and exits.
35071       The fix: no longer allow a relative path to torrc using -f.
35073   o Major features:
35074     - Implement "entry guards": automatically choose a handful of entry
35075       nodes and stick with them for all circuits. Only pick new guards
35076       when the ones you have are unsuitable, and if the old guards
35077       become suitable again, switch back. This will increase security
35078       dramatically against certain end-point attacks. The EntryNodes
35079       config option now provides some hints about which entry guards you
35080       want to use most; and StrictEntryNodes means to only use those.
35081     - New directory logic: download by descriptor digest, not by
35082       fingerprint. Caches try to download all listed digests from
35083       authorities; clients try to download "best" digests from caches.
35084       This avoids partitioning and isolating attacks better.
35085     - Make the "stable" router flag in network-status be the median of
35086       the uptimes of running valid servers, and make clients pay
35087       attention to the network-status flags. Thus the cutoff adapts
35088       to the stability of the network as a whole, making IRC, IM, etc
35089       connections more reliable.
35091   o Major fixes:
35092     - Tor servers with dynamic IP addresses were needing to wait 18
35093       hours before they could start doing reachability testing using
35094       the new IP address and ports. This is because they were using
35095       the internal descriptor to learn what to test, yet they were only
35096       rebuilding the descriptor once they decided they were reachable.
35097     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
35098       to download certain server descriptors, throw them away, and then
35099       fetch them again after 30 minutes. Now mirrors throw away these
35100       server descriptors so clients can't get them.
35101     - We were leaving duplicate connections to other ORs open for a week,
35102       rather than closing them once we detect a duplicate. This only
35103       really affected authdirservers, but it affected them a lot.
35104     - Spread the authdirservers' reachability testing over the entire
35105       testing interval, so we don't try to do 500 TLS's at once every
35106       20 minutes.
35108   o Minor fixes:
35109     - If the network is down, and we try to connect to a conn because
35110       we have a circuit in mind, and we timeout (30 seconds) because the
35111       network never answers, we were expiring the circuit, but we weren't
35112       obsoleting the connection or telling the entry_guards functions.
35113     - Some Tor servers process billions of cells per day. These statistics
35114       need to be uint64_t's.
35115     - Check for integer overflows in more places, when adding elements
35116       to smartlists. This could possibly prevent a buffer overflow
35117       on malicious huge inputs. I don't see any, but I haven't looked
35118       carefully.
35119     - ReachableAddresses kept growing new "reject *:*" lines on every
35120       setconf/reload.
35121     - When you "setconf log" via the controller, it should remove all
35122       logs. We were automatically adding back in a "log notice stdout".
35123     - Newly bootstrapped Tor networks couldn't establish hidden service
35124       circuits until they had nodes with high uptime. Be more tolerant.
35125     - We were marking servers down when they could not answer every piece
35126       of the directory request we sent them. This was far too harsh.
35127     - Fix the torify (tsocks) config file to not use Tor for localhost
35128       connections.
35129     - Directory authorities now go to the proper authority when asking for
35130       a networkstatus, even when they want a compressed one.
35131     - Fix a harmless bug that was causing Tor servers to log
35132       "Got an end because of misc error, but we're not an AP. Closing."
35133     - Authorities were treating their own descriptor changes as cosmetic,
35134       meaning the descriptor available in the network-status and the
35135       descriptor that clients downloaded were different.
35136     - The OS X installer was adding a symlink for tor_resolve but
35137       the binary was called tor-resolve (reported by Thomas Hardly).
35138     - Workaround a problem with some http proxies where they refuse GET
35139       requests that specify "Content-Length: 0" (reported by Adrian).
35140     - Fix wrong log message when you add a "HiddenServiceNodes" config
35141       line without any HiddenServiceDir line (reported by Chris Thomas).
35143   o Minor features:
35144     - Write the TorVersion into the state file so we have a prayer of
35145       keeping forward and backward compatibility.
35146     - Revive the FascistFirewall config option rather than eliminating it:
35147       now it's a synonym for ReachableAddresses *:80,*:443.
35148     - Clients choose directory servers from the network status lists,
35149       not from their internal list of router descriptors. Now they can
35150       go to caches directly rather than needing to go to authorities
35151       to bootstrap.
35152     - Directory authorities ignore router descriptors that have only
35153       cosmetic differences: do this for 0.1.0.x servers now too.
35154     - Add a new flag to network-status indicating whether the server
35155       can answer v2 directory requests too.
35156     - Authdirs now stop whining so loudly about bad descriptors that
35157       they fetch from other dirservers. So when there's a log complaint,
35158       it's for sure from a freshly uploaded descriptor.
35159     - Reduce memory requirements in our structs by changing the order
35160       of fields.
35161     - There used to be two ways to specify your listening ports in a
35162       server descriptor: on the "router" line and with a separate "ports"
35163       line. Remove support for the "ports" line.
35164     - New config option "AuthDirRejectUnlisted" for auth dirservers as
35165       a panic button: if we get flooded with unusable servers we can
35166       revert to only listing servers in the approved-routers file.
35167     - Auth dir servers can now mark a fingerprint as "!reject" or
35168       "!invalid" in the approved-routers file (as its nickname), to
35169       refuse descriptors outright or include them but marked as invalid.
35170     - Servers store bandwidth history across restarts/crashes.
35171     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
35172       get a better idea of why their circuits failed. Not used yet.
35173     - Directory mirrors now cache up to 16 unrecognized network-status
35174       docs. Now we can add new authdirservers and they'll be cached too.
35175     - When picking a random directory, prefer non-authorities if any
35176       are known.
35177     - New controller option "getinfo desc/all-recent" to fetch the
35178       latest server descriptor for every router that Tor knows about.
35181 Changes in version 0.1.0.16 - 2006-01-02
35182   o Crash bugfixes on 0.1.0.x:
35183     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
35184       corrupting the heap, losing FDs, or crashing when we need to resize
35185       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
35186     - It turns out sparc64 platforms crash on unaligned memory access
35187       too -- so detect and avoid this.
35188     - Handle truncated compressed data correctly (by detecting it and
35189       giving an error).
35190     - Fix possible-but-unlikely free(NULL) in control.c.
35191     - When we were closing connections, there was a rare case that
35192       stomped on memory, triggering seg faults and asserts.
35193     - Avoid potential infinite recursion when building a descriptor. (We
35194       don't know that it ever happened, but better to fix it anyway.)
35195     - We were neglecting to unlink marked circuits from soon-to-close OR
35196       connections, which caused some rare scribbling on freed memory.
35197     - Fix a memory stomping race bug when closing the joining point of two
35198       rendezvous circuits.
35199     - Fix an assert in time parsing found by Steven Murdoch.
35201   o Other bugfixes on 0.1.0.x:
35202     - When we're doing reachability testing, provide more useful log
35203       messages so the operator knows what to expect.
35204     - Do not check whether DirPort is reachable when we are suppressing
35205       advertising it because of hibernation.
35206     - When building with -static or on Solaris, we sometimes needed -ldl.
35207     - When we're deciding whether a stream has enough circuits around
35208       that can handle it, count the freshly dirty ones and not the ones
35209       that are so dirty they won't be able to handle it.
35210     - When we're expiring old circuits, we had a logic error that caused
35211       us to close new rendezvous circuits rather than old ones.
35212     - Give a more helpful log message when you try to change ORPort via
35213       the controller: you should upgrade Tor if you want that to work.
35214     - We were failing to parse Tor versions that start with "Tor ".
35215     - Tolerate faulty streams better: when a stream fails for reason
35216       exitpolicy, stop assuming that the router is lying about his exit
35217       policy. When a stream fails for reason misc, allow it to retry just
35218       as if it was resolvefailed. When a stream has failed three times,
35219       reset its failure count so we can try again and get all three tries.
35222 Changes in version 0.1.1.10-alpha - 2005-12-11
35223   o Correctness bugfixes on 0.1.0.x:
35224     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
35225       corrupting the heap, losing FDs, or crashing when we need to resize
35226       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
35227     - Stop doing the complex voodoo overkill checking for insecure
35228       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
35229     - When we were closing connections, there was a rare case that
35230       stomped on memory, triggering seg faults and asserts.
35231     - We were neglecting to unlink marked circuits from soon-to-close OR
35232       connections, which caused some rare scribbling on freed memory.
35233     - When we're deciding whether a stream has enough circuits around
35234       that can handle it, count the freshly dirty ones and not the ones
35235       that are so dirty they won't be able to handle it.
35236     - Recover better from TCP connections to Tor servers that are
35237       broken but don't tell you (it happens!); and rotate TLS
35238       connections once a week.
35239     - When we're expiring old circuits, we had a logic error that caused
35240       us to close new rendezvous circuits rather than old ones.
35241     - Fix a scary-looking but apparently harmless bug where circuits
35242       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
35243       servers, and never switch to state CIRCUIT_STATE_OPEN.
35244     - When building with -static or on Solaris, we sometimes needed to
35245       build with -ldl.
35246     - Give a useful message when people run Tor as the wrong user,
35247       rather than telling them to start chowning random directories.
35248     - We were failing to inform the controller about new .onion streams.
35250   o Security bugfixes on 0.1.0.x:
35251     - Refuse server descriptors if the fingerprint line doesn't match
35252       the included identity key. Tor doesn't care, but other apps (and
35253       humans) might actually be trusting the fingerprint line.
35254     - We used to kill the circuit when we receive a relay command we
35255       don't recognize. Now we just drop it.
35256     - Start obeying our firewall options more rigorously:
35257       . If we can't get to a dirserver directly, try going via Tor.
35258       . Don't ever try to connect (as a client) to a place our
35259         firewall options forbid.
35260       . If we specify a proxy and also firewall options, obey the
35261         firewall options even when we're using the proxy: some proxies
35262         can only proxy to certain destinations.
35263     - Fix a bug found by Lasse Overlier: when we were making internal
35264       circuits (intended to be cannibalized later for rendezvous and
35265       introduction circuits), we were picking them so that they had
35266       useful exit nodes. There was no need for this, and it actually
35267       aids some statistical attacks.
35268     - Start treating internal circuits and exit circuits separately.
35269       It's important to keep them separate because internal circuits
35270       have their last hops picked like middle hops, rather than like
35271       exit hops. So exiting on them will break the user's expectations.
35273   o Bugfixes on 0.1.1.x:
35274     - Take out the mis-feature where we tried to detect IP address
35275       flapping for people with DynDNS, and chose not to upload a new
35276       server descriptor sometimes.
35277     - Try to be compatible with OpenSSL 0.9.6 again.
35278     - Log fix: when the controller is logging about .onion addresses,
35279       sometimes it didn't include the ".onion" part of the address.
35280     - Don't try to modify options->DirServers internally -- if the
35281       user didn't specify any, just add the default ones directly to
35282       the trusted dirserver list. This fixes a bug where people running
35283       controllers would use SETCONF on some totally unrelated config
35284       option, and Tor would start yelling at them about changing their
35285       DirServer lines.
35286     - Let the controller's redirectstream command specify a port, in
35287       case the controller wants to change that too.
35288     - When we requested a pile of server descriptors, we sometimes
35289       accidentally launched a duplicate request for the first one.
35290     - Bugfix for trackhostexits: write down the fingerprint of the
35291       chosen exit, not its nickname, because the chosen exit might not
35292       be verified.
35293     - When parsing foo.exit, if foo is unknown, and we are leaving
35294       circuits unattached, set the chosen_exit field and leave the
35295       address empty. This matters because controllers got confused
35296       otherwise.
35297     - Directory authorities no longer try to download server
35298       descriptors that they know they will reject.
35300   o Features and updates:
35301     - Replace balanced trees with hash tables: this should make stuff
35302       significantly faster.
35303     - Resume using the AES counter-mode implementation that we ship,
35304       rather than OpenSSL's. Ours is significantly faster.
35305     - Many other CPU and memory improvements.
35306     - Add a new config option FastFirstHopPK (on by default) so clients
35307       do a trivial crypto handshake for their first hop, since TLS has
35308       already taken care of confidentiality and authentication.
35309     - Add a new config option TestSocks so people can see if their
35310       applications are using socks4, socks4a, socks5-with-ip, or
35311       socks5-with-hostname. This way they don't have to keep mucking
35312       with tcpdump and wondering if something got cached somewhere.
35313     - Warn when listening on a public address for socks. I suspect a
35314       lot of people are setting themselves up as open socks proxies,
35315       and they have no idea that jerks on the Internet are using them,
35316       since they simply proxy the traffic into the Tor network.
35317     - Add "private:*" as an alias in configuration for policies. Now
35318       you can simplify your exit policy rather than needing to list
35319       every single internal or nonroutable network space.
35320     - Add a new controller event type that allows controllers to get
35321       all server descriptors that were uploaded to a router in its role
35322       as authoritative dirserver.
35323     - Start shipping socks-extensions.txt, tor-doc-unix.html,
35324       tor-doc-server.html, and stylesheet.css in the tarball.
35325     - Stop shipping tor-doc.html in the tarball.
35328 Changes in version 0.1.1.9-alpha - 2005-11-15
35329   o Usability improvements:
35330     - Start calling it FooListenAddress rather than FooBindAddress,
35331       since few of our users know what it means to bind an address
35332       or port.
35333     - Reduce clutter in server logs. We're going to try to make
35334       them actually usable now. New config option ProtocolWarnings that
35335       lets you hear about how _other Tors_ are breaking the protocol. Off
35336       by default.
35337     - Divide log messages into logging domains. Once we put some sort
35338       of interface on this, it will let people looking at more verbose
35339       log levels specify the topics they want to hear more about.
35340     - Make directory servers return better http 404 error messages
35341       instead of a generic "Servers unavailable".
35342     - Check for even more Windows version flags when writing the platform
35343       string in server descriptors, and note any we don't recognize.
35344     - Clean up more of the OpenSSL memory when exiting, so we can detect
35345       memory leaks better.
35346     - Make directory authorities be non-versioning, non-naming by
35347       default. Now we can add new directory servers without requiring
35348       their operators to pay close attention.
35349     - When logging via syslog, include the pid whenever we provide
35350       a log entry. Suggested by Todd Fries.
35352   o Performance improvements:
35353     - Directory servers now silently throw away new descriptors that
35354       haven't changed much if the timestamps are similar. We do this to
35355       tolerate older Tor servers that upload a new descriptor every 15
35356       minutes. (It seemed like a good idea at the time.)
35357     - Inline bottleneck smartlist functions; use fast versions by default.
35358     - Add a "Map from digest to void*" abstraction digestmap_t so we
35359       can do less hex encoding/decoding. Use it in router_get_by_digest()
35360       to resolve a performance bottleneck.
35361     - Allow tor_gzip_uncompress to extract as much as possible from
35362       truncated compressed data. Try to extract as many
35363       descriptors as possible from truncated http responses (when
35364       DIR_PURPOSE_FETCH_ROUTERDESC).
35365     - Make circ->onionskin a pointer, not a static array. moria2 was using
35366       125000 circuit_t's after it had been up for a few weeks, which
35367       translates to 20+ megs of wasted space.
35368     - The private half of our EDH handshake keys are now chosen out
35369       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
35371   o Security improvements:
35372     - Start making directory caches retain old routerinfos, so soon
35373       clients can start asking by digest of descriptor rather than by
35374       fingerprint of server.
35375     - Add half our entropy from RAND_poll in OpenSSL. This knows how
35376       to use egd (if present), openbsd weirdness (if present), vms/os2
35377       weirdness (if we ever port there), and more in the future.
35379   o Bugfixes on 0.1.0.x:
35380     - Do round-robin writes of at most 16 kB per write. This might be
35381       more fair on loaded Tor servers, and it might resolve our Windows
35382       crash bug. It might also slow things down.
35383     - Our TLS handshakes were generating a single public/private
35384       keypair for the TLS context, rather than making a new one for
35385       each new connections. Oops. (But we were still rotating them
35386       periodically, so it's not so bad.)
35387     - When we were cannibalizing a circuit with a particular exit
35388       node in mind, we weren't checking to see if that exit node was
35389       already present earlier in the circuit. Oops.
35390     - When a Tor server's IP changes (e.g. from a dyndns address),
35391       upload a new descriptor so clients will learn too.
35392     - Really busy servers were keeping enough circuits open on stable
35393       connections that they were wrapping around the circuit_id
35394       space. (It's only two bytes.) This exposed a bug where we would
35395       feel free to reuse a circuit_id even if it still exists but has
35396       been marked for close. Try to fix this bug. Some bug remains.
35397     - If we would close a stream early (e.g. it asks for a .exit that
35398       we know would refuse it) but the LeaveStreamsUnattached config
35399       option is set by the controller, then don't close it.
35401   o Bugfixes on 0.1.1.8-alpha:
35402     - Fix a big pile of memory leaks, some of them serious.
35403     - Do not try to download a routerdesc if we would immediately reject
35404       it as obsolete.
35405     - Resume inserting a newline between all router descriptors when
35406       generating (old style) signed directories, since our spec says
35407       we do.
35408     - When providing content-type application/octet-stream for
35409       server descriptors using .z, we were leaving out the
35410       content-encoding header. Oops. (Everything tolerated this just
35411       fine, but that doesn't mean we need to be part of the problem.)
35412     - Fix a potential seg fault in getconf and getinfo using version 1
35413       of the controller protocol.
35414     - Avoid crash: do not check whether DirPort is reachable when we
35415       are suppressing it because of hibernation.
35416     - Make --hash-password not crash on exit.
35419 Changes in version 0.1.1.8-alpha - 2005-10-07
35420   o New features (major):
35421     - Clients don't download or use the directory anymore. Now they
35422       download and use network-statuses from the trusted dirservers,
35423       and fetch individual server descriptors as needed from mirrors.
35424       See dir-spec.txt for all the gory details.
35425     - Be more conservative about whether to advertise our DirPort.
35426       The main change is to not advertise if we're running at capacity
35427       and either a) we could hibernate or b) our capacity is low and
35428       we're using a default DirPort.
35429     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
35431   o New features (minor):
35432     - Try to be smart about when to retry network-status and
35433       server-descriptor fetches. Still needs some tuning.
35434     - Stop parsing, storing, or using running-routers output (but
35435       mirrors still cache and serve it).
35436     - Consider a threshold of versioning dirservers (dirservers who have
35437       an opinion about which Tor versions are still recommended) before
35438       deciding whether to warn the user that he's obsolete.
35439     - Dirservers can now reject/invalidate by key and IP, with the
35440       config options "AuthDirInvalid" and "AuthDirReject". This is
35441       useful since currently we automatically list servers as running
35442       and usable even if we know they're jerks.
35443     - Provide dire warnings to any users who set DirServer; move it out
35444       of torrc.sample and into torrc.complete.
35445     - Add MyFamily to torrc.sample in the server section.
35446     - Add nicknames to the DirServer line, so we can refer to them
35447       without requiring all our users to memorize their IP addresses.
35448     - When we get an EOF or a timeout on a directory connection, note
35449       how many bytes of serverdesc we are dropping. This will help
35450       us determine whether it is smart to parse incomplete serverdesc
35451       responses.
35452     - Add a new function to "change pseudonyms" -- that is, to stop
35453       using any currently-dirty circuits for new streams, so we don't
35454       link new actions to old actions. Currently it's only called on
35455       HUP (or SIGNAL RELOAD).
35456     - On sighup, if UseHelperNodes changed to 1, use new circuits.
35457     - Start using RAND_bytes rather than RAND_pseudo_bytes from
35458       OpenSSL. Also, reseed our entropy every hour, not just at
35459       startup. And entropy in 512-bit chunks, not 160-bit chunks.
35461   o Fixes on 0.1.1.7-alpha:
35462     - Nobody ever implemented EVENT_ADDRMAP for control protocol
35463       version 0, so don't let version 0 controllers ask for it.
35464     - If you requested something with too many newlines via the
35465       v1 controller protocol, you could crash tor.
35466     - Fix a number of memory leaks, including some pretty serious ones.
35467     - Re-enable DirPort testing again, so Tor servers will be willing
35468       to advertise their DirPort if it's reachable.
35469     - On TLS handshake, only check the other router's nickname against
35470       its expected nickname if is_named is set.
35472   o Fixes forward-ported from 0.1.0.15:
35473     - Don't crash when we don't have any spare file descriptors and we
35474       try to spawn a dns or cpu worker.
35475     - Make the numbers in read-history and write-history into uint64s,
35476       so they don't overflow and publish negatives in the descriptor.
35478   o Fixes on 0.1.0.x:
35479     - For the OS X package's modified privoxy config file, comment
35480       out the "logfile" line so we don't log everything passed
35481       through privoxy.
35482     - We were whining about using socks4 or socks5-with-local-lookup
35483       even when it's an IP in the "virtual" range we designed exactly
35484       for this case.
35485     - We were leaking some memory every time the client changes IPs.
35486     - Never call free() on tor_malloc()d memory. This will help us
35487       use dmalloc to detect memory leaks.
35488     - Check for named servers when looking them up by nickname;
35489       warn when we'recalling a non-named server by its nickname;
35490       don't warn twice about the same name.
35491     - Try to list MyFamily elements by key, not by nickname, and warn
35492       if we've not heard of the server.
35493     - Make windows platform detection (uname equivalent) smarter.
35494     - It turns out sparc64 doesn't like unaligned access either.
35497 Changes in version 0.1.0.15 - 2005-09-23
35498   o Bugfixes on 0.1.0.x:
35499     - Reject ports 465 and 587 (spam targets) in default exit policy.
35500     - Don't crash when we don't have any spare file descriptors and we
35501       try to spawn a dns or cpu worker.
35502     - Get rid of IgnoreVersion undocumented config option, and make us
35503       only warn, never exit, when we're running an obsolete version.
35504     - Don't try to print a null string when your server finds itself to
35505       be unreachable and the Address config option is empty.
35506     - Make the numbers in read-history and write-history into uint64s,
35507       so they don't overflow and publish negatives in the descriptor.
35508     - Fix a minor memory leak in smartlist_string_remove().
35509     - We were only allowing ourselves to upload a server descriptor at
35510       most every 20 minutes, even if it changed earlier than that.
35511     - Clean up log entries that pointed to old URLs.
35514 Changes in version 0.1.1.7-alpha - 2005-09-14
35515   o Fixes on 0.1.1.6-alpha:
35516     - Exit servers were crashing when people asked them to make a
35517       connection to an address not in their exit policy.
35518     - Looking up a non-existent stream for a v1 control connection would
35519       cause a segfault.
35520     - Fix a seg fault if we ask a dirserver for a descriptor by
35521       fingerprint but he doesn't know about him.
35522     - SETCONF was appending items to linelists, not clearing them.
35523     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
35524       out and refuse the setconf if it would fail.
35525     - Downgrade the dirserver log messages when whining about
35526       unreachability.
35528   o New features:
35529     - Add Peter Palfrader's check-tor script to tor/contrib/
35530       It lets you easily check whether a given server (referenced by
35531       nickname) is reachable by you.
35532     - Numerous changes to move towards client-side v2 directories. Not
35533       enabled yet.
35535   o Fixes on 0.1.0.x:
35536     - If the user gave tor an odd number of command-line arguments,
35537       we were silently ignoring the last one. Now we complain and fail.
35538       [This wins the oldest-bug prize -- this bug has been present since
35539        November 2002, as released in Tor 0.0.0.]
35540     - Do not use unaligned memory access on alpha, mips, or mipsel.
35541       It *works*, but is very slow, so we treat them as if it doesn't.
35542     - Retry directory requests if we fail to get an answer we like
35543       from a given dirserver (we were retrying before, but only if
35544       we fail to connect).
35545     - When writing the RecommendedVersions line, sort them first.
35546     - When the client asked for a rendezvous port that the hidden
35547       service didn't want to provide, we were sending an IP address
35548       back along with the end cell. Fortunately, it was zero. But stop
35549       that anyway.
35550     - Correct "your server is reachable" log entries to indicate that
35551       it was self-testing that told us so.
35554 Changes in version 0.1.1.6-alpha - 2005-09-09
35555   o Fixes on 0.1.1.5-alpha:
35556     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
35557     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
35558     - Fix bug with tor_memmem finding a match at the end of the string.
35559     - Make unit tests run without segfaulting.
35560     - Resolve some solaris x86 compile warnings.
35561     - Handle duplicate lines in approved-routers files without warning.
35562     - Fix bug where as soon as a server refused any requests due to his
35563       exit policy (e.g. when we ask for localhost and he tells us that's
35564       127.0.0.1 and he won't do it), we decided he wasn't obeying his
35565       exit policy using him for any exits.
35566     - Only do openssl hardware accelerator stuff if openssl version is
35567       at least 0.9.7.
35569   o New controller features/fixes:
35570     - Add a "RESETCONF" command so you can set config options like
35571       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
35572       a config option in the torrc with no value, then it clears it
35573       entirely (rather than setting it to its default).
35574     - Add a "GETINFO config-file" to tell us where torrc is.
35575     - Avoid sending blank lines when GETINFO replies should be empty.
35576     - Add a QUIT command for the controller (for using it manually).
35577     - Fix a bug in SAVECONF that was adding default dirservers and
35578       other redundant entries to the torrc file.
35580   o Start on the new directory design:
35581     - Generate, publish, cache, serve new network-status format.
35582     - Publish individual descriptors (by fingerprint, by "all", and by
35583       "tell me yours").
35584     - Publish client and server recommended versions separately.
35585     - Allow tor_gzip_uncompress() to handle multiple concatenated
35586       compressed strings. Serve compressed groups of router
35587       descriptors. The compression logic here could be more
35588       memory-efficient.
35589     - Distinguish v1 authorities (all currently trusted directories)
35590       from v2 authorities (all trusted directories).
35591     - Change DirServers config line to note which dirs are v1 authorities.
35592     - Add configuration option "V1AuthoritativeDirectory 1" which
35593       moria1, moria2, and tor26 should set.
35594     - Remove option when getting directory cache to see whether they
35595       support running-routers; they all do now. Replace it with one
35596       to see whether caches support v2 stuff.
35598   o New features:
35599     - Dirservers now do their own external reachability testing of each
35600       Tor server, and only list them as running if they've been found to
35601       be reachable. We also send back warnings to the server's logs if
35602       it uploads a descriptor that we already believe is unreachable.
35603     - Implement exit enclaves: if we know an IP address for the
35604       destination, and there's a running Tor server at that address
35605       which allows exit to the destination, then extend the circuit to
35606       that exit first. This provides end-to-end encryption and end-to-end
35607       authentication. Also, if the user wants a .exit address or enclave,
35608       use 4 hops rather than 3, and cannibalize a general circ for it
35609       if you can.
35610     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
35611       controller. Also, rotate dns and cpu workers if the controller
35612       changes options that will affect them; and initialize the dns
35613       worker cache tree whether or not we start out as a server.
35614     - Only upload a new server descriptor when options change, 18
35615       hours have passed, uptime is reset, or bandwidth changes a lot.
35616     - Check [X-]Forwarded-For headers in HTTP requests when generating
35617       log messages. This lets people run dirservers (and caches) behind
35618       Apache but still know which IP addresses are causing warnings.
35620   o Config option changes:
35621     - Replace (Fascist)Firewall* config options with a new
35622       ReachableAddresses option that understands address policies.
35623       For example, "ReachableAddresses *:80,*:443"
35624     - Get rid of IgnoreVersion undocumented config option, and make us
35625       only warn, never exit, when we're running an obsolete version.
35626     - Make MonthlyAccountingStart config option truly obsolete now.
35628   o Fixes on 0.1.0.x:
35629     - Reject ports 465 and 587 in the default exit policy, since
35630       people have started using them for spam too.
35631     - It turns out we couldn't bootstrap a network since we added
35632       reachability detection in 0.1.0.1-rc. Good thing the Tor network
35633       has never gone down. Add an AssumeReachable config option to let
35634       servers and dirservers bootstrap. When we're trying to build a
35635       high-uptime or high-bandwidth circuit but there aren't enough
35636       suitable servers, try being less picky rather than simply failing.
35637     - Our logic to decide if the OR we connected to was the right guy
35638       was brittle and maybe open to a mitm for unverified routers.
35639     - We weren't cannibalizing circuits correctly for
35640       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
35641       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
35642       build those from scratch. This should make hidden services faster.
35643     - Predict required circuits better, with an eye toward making hidden
35644       services faster on the service end.
35645     - Retry streams if the exit node sends back a 'misc' failure. This
35646       should result in fewer random failures. Also, after failing
35647       from resolve failed or misc, reset the num failures, so we give
35648       it a fair shake next time we try.
35649     - Clean up the rendezvous warn log msgs, and downgrade some to info.
35650     - Reduce severity on logs about dns worker spawning and culling.
35651     - When we're shutting down and we do something like try to post a
35652       server descriptor or rendezvous descriptor, don't complain that
35653       we seem to be unreachable. Of course we are, we're shutting down.
35654     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
35655       We don't use them yet, but maybe one day our DNS resolver will be
35656       able to discover them.
35657     - Make ContactInfo mandatory for authoritative directory servers.
35658     - Require server descriptors to list IPv4 addresses -- hostnames
35659       are no longer allowed. This also fixes some potential security
35660       problems with people providing hostnames as their address and then
35661       preferentially resolving them to partition users.
35662     - Change log line for unreachability to explicitly suggest /etc/hosts
35663       as the culprit. Also make it clearer what IP address and ports we're
35664       testing for reachability.
35665     - Put quotes around user-supplied strings when logging so users are
35666       more likely to realize if they add bad characters (like quotes)
35667       to the torrc.
35668     - Let auth dir servers start without specifying an Address config
35669       option.
35670     - Make unit tests (and other invocations that aren't the real Tor)
35671       run without launching listeners, creating subdirectories, and so on.
35674 Changes in version 0.1.1.5-alpha - 2005-08-08
35675   o Bugfixes included in 0.1.0.14.
35677   o Bugfixes on 0.1.0.x:
35678     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
35679       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
35680       it would silently using ignore the 6668.
35683 Changes in version 0.1.0.14 - 2005-08-08
35684   o Bugfixes on 0.1.0.x:
35685       - Fix the other half of the bug with crypto handshakes
35686         (CVE-2005-2643).
35687       - Fix an assert trigger if you send a 'signal term' via the
35688         controller when it's listening for 'event info' messages.
35691 Changes in version 0.1.1.4-alpha - 2005-08-04
35692   o Bugfixes included in 0.1.0.13.
35694   o Features:
35695     - Improve tor_gettimeofday() granularity on windows.
35696     - Make clients regenerate their keys when their IP address changes.
35697     - Implement some more GETINFO goodness: expose helper nodes, config
35698       options, getinfo keys.
35701 Changes in version 0.1.0.13 - 2005-08-04
35702   o Bugfixes on 0.1.0.x:
35703     - Fix a critical bug in the security of our crypto handshakes.
35704     - Fix a size_t underflow in smartlist_join_strings2() that made
35705       it do bad things when you hand it an empty smartlist.
35706     - Fix Windows installer to ship Tor license (thanks to Aphex for
35707       pointing out this oversight) and put a link to the doc directory
35708       in the start menu.
35709     - Explicitly set no-unaligned-access for sparc: it turns out the
35710       new gcc's let you compile broken code, but that doesn't make it
35711       not-broken.
35714 Changes in version 0.1.1.3-alpha - 2005-07-23
35715   o Bugfixes on 0.1.1.2-alpha:
35716     - Fix a bug in handling the controller's "post descriptor"
35717       function.
35718     - Fix several bugs in handling the controller's "extend circuit"
35719       function.
35720     - Fix a bug in handling the controller's "stream status" event.
35721     - Fix an assert failure if we have a controller listening for
35722       circuit events and we go offline.
35723     - Re-allow hidden service descriptors to publish 0 intro points.
35724     - Fix a crash when generating your hidden service descriptor if
35725       you don't have enough intro points already.
35727   o New features on 0.1.1.2-alpha:
35728     - New controller function "getinfo accounting", to ask how
35729       many bytes we've used in this time period.
35730     - Experimental support for helper nodes: a lot of the risk from
35731       a small static adversary comes because users pick new random
35732       nodes every time they rebuild a circuit. Now users will try to
35733       stick to the same small set of entry nodes if they can. Not
35734       enabled by default yet.
35736   o Bugfixes on 0.1.0.12:
35737     - If you're an auth dir server, always publish your dirport,
35738       even if you haven't yet found yourself to be reachable.
35739     - Fix a size_t underflow in smartlist_join_strings2() that made
35740       it do bad things when you hand it an empty smartlist.
35743 Changes in version 0.1.0.12 - 2005-07-18
35744   o New directory servers:
35745       - tor26 has changed IP address.
35747   o Bugfixes on 0.1.0.x:
35748     - Fix a possible double-free in tor_gzip_uncompress().
35749     - When --disable-threads is set, do not search for or link against
35750       pthreads libraries.
35751     - Don't trigger an assert if an authoritative directory server
35752       claims its dirport is 0.
35753     - Fix bug with removing Tor as an NT service: some people were
35754       getting "The service did not return an error." Thanks to Matt
35755       Edman for the fix.
35758 Changes in version 0.1.1.2-alpha - 2005-07-15
35759   o New directory servers:
35760     - tor26 has changed IP address.
35762   o Bugfixes on 0.1.0.x, crashes/leaks:
35763     - Port the servers-not-obeying-their-exit-policies fix from
35764       0.1.0.11.
35765     - Fix an fd leak in start_daemon().
35766     - On Windows, you can't always reopen a port right after you've
35767       closed it. So change retry_listeners() to only close and re-open
35768       ports that have changed.
35769     - Fix a possible double-free in tor_gzip_uncompress().
35771   o Bugfixes on 0.1.0.x, usability:
35772     - When tor_socketpair() fails in Windows, give a reasonable
35773       Windows-style errno back.
35774     - Let people type "tor --install" as well as "tor -install" when
35775       they
35776       want to make it an NT service.
35777     - NT service patch from Matt Edman to improve error messages.
35778     - When the controller asks for a config option with an abbreviated
35779       name, give the full name in our response.
35780     - Correct the man page entry on TrackHostExitsExpire.
35781     - Looks like we were never delivering deflated (i.e. compressed)
35782       running-routers lists, even when asked. Oops.
35783     - When --disable-threads is set, do not search for or link against
35784       pthreads libraries.
35786   o Bugfixes on 0.1.1.x:
35787     - Fix a seg fault with autodetecting which controller version is
35788       being used.
35790   o Features:
35791     - New hidden service descriptor format: put a version in it, and
35792       let people specify introduction/rendezvous points that aren't
35793       in "the directory" (which is subjective anyway).
35794     - Allow the DEBUG controller event to work again. Mark certain log
35795       entries as "don't tell this to controllers", so we avoid cycles.
35798 Changes in version 0.1.0.11 - 2005-06-30
35799   o Bugfixes on 0.1.0.x:
35800     - Fix major security bug: servers were disregarding their
35801       exit policies if clients behaved unexpectedly.
35802     - Make OS X init script check for missing argument, so we don't
35803       confuse users who invoke it incorrectly.
35804     - Fix a seg fault in "tor --hash-password foo".
35805     - The MAPADDRESS control command was broken.
35808 Changes in version 0.1.1.1-alpha - 2005-06-29
35809   o Bugfixes:
35810     - Make OS X init script check for missing argument, so we don't
35811       confuse users who invoke it incorrectly.
35812     - Fix a seg fault in "tor --hash-password foo".
35813     - Fix a possible way to DoS dirservers.
35814     - When we complain that your exit policy implicitly allows local or
35815       private address spaces, name them explicitly so operators can
35816       fix it.
35817     - Make the log message less scary when all the dirservers are
35818       temporarily unreachable.
35819     - We were printing the number of idle dns workers incorrectly when
35820       culling them.
35822   o Features:
35823     - Revised controller protocol (version 1) that uses ascii rather
35824       than binary. Add supporting libraries in python and java so you
35825       can use the controller from your applications without caring how
35826       our protocol works.
35827     - Spiffy new support for crypto hardware accelerators. Can somebody
35828       test this?
35831 Changes in version 0.0.9.10 - 2005-06-16
35832   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
35833     - Refuse relay cells that claim to have a length larger than the
35834       maximum allowed. This prevents a potential attack that could read
35835       arbitrary memory (e.g. keys) from an exit server's process
35836       (CVE-2005-2050).
35839 Changes in version 0.1.0.10 - 2005-06-14
35840   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
35841     libevent before 1.1a.
35844 Changes in version 0.1.0.9-rc - 2005-06-09
35845   o Bugfixes:
35846     - Reset buf->highwater every time buf_shrink() is called, not just on
35847       a successful shrink. This was causing significant memory bloat.
35848     - Fix buffer overflow when checking hashed passwords.
35849     - Security fix: if seeding the RNG on Win32 fails, quit.
35850     - Allow seeding the RNG on Win32 even when you're not running as
35851       Administrator.
35852     - Disable threading on Solaris too. Something is wonky with it,
35853       cpuworkers, and reentrant libs.
35854     - Reenable the part of the code that tries to flush as soon as an
35855       OR outbuf has a full TLS record available. Perhaps this will make
35856       OR outbufs not grow as huge except in rare cases, thus saving lots
35857       of CPU time plus memory.
35858     - Reject malformed .onion addresses rather then passing them on as
35859       normal web requests.
35860     - Adapt patch from Adam Langley: fix possible memory leak in
35861       tor_lookup_hostname().
35862     - Initialize libevent later in the startup process, so the logs are
35863       already established by the time we start logging libevent warns.
35864     - Use correct errno on win32 if libevent fails.
35865     - Check and warn about known-bad/slow libevent versions.
35866     - Pay more attention to the ClientOnly config option.
35867     - Have torctl.in/tor.sh.in check for location of su binary (needed
35868       on FreeBSD)
35869     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
35870       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
35871       HttpProxyAuthenticator
35872     - Stop warning about sigpipes in the logs. We're going to
35873       pretend that getting these occasionally is normal and fine.
35874     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
35875       certain
35876       installer screens; and don't put stuff into StartupItems unless
35877       the user asks you to.
35878     - Require servers that use the default dirservers to have public IP
35879       addresses. We have too many servers that are configured with private
35880       IPs and their admins never notice the log entries complaining that
35881       their descriptors are being rejected.
35882     - Add OSX uninstall instructions. An actual uninstall script will
35883       come later.
35886 Changes in version 0.1.0.8-rc - 2005-05-23
35887   o Bugfixes:
35888     - It turns out that kqueue on OS X 10.3.9 was causing kernel
35889       panics. Disable kqueue on all OS X Tors.
35890     - Fix RPM: remove duplicate line accidentally added to the rpm
35891       spec file.
35892     - Disable threads on openbsd too, since its gethostaddr is not
35893       reentrant either.
35894     - Tolerate libevent 0.8 since it still works, even though it's
35895       ancient.
35896     - Enable building on Red Hat 9.0 again.
35897     - Allow the middle hop of the testing circuit to be running any
35898       version, now that most of them have the bugfix to let them connect
35899       to unknown servers. This will allow reachability testing to work
35900       even when 0.0.9.7-0.0.9.9 become obsolete.
35901     - Handle relay cells with rh.length too large. This prevents
35902       a potential attack that could read arbitrary memory (maybe even
35903       keys) from the exit server's process.
35904     - We screwed up the dirport reachability testing when we don't yet
35905       have a cached version of the directory. Hopefully now fixed.
35906     - Clean up router_load_single_router() (used by the controller),
35907       so it doesn't seg fault on error.
35908     - Fix a minor memory leak when somebody establishes an introduction
35909       point at your Tor server.
35910     - If a socks connection ends because read fails, don't warn that
35911       you're not sending a socks reply back.
35913   o Features:
35914     - Add HttpProxyAuthenticator config option too, that works like
35915       the HttpsProxyAuthenticator config option.
35916     - Encode hashed controller passwords in hex instead of base64,
35917       to make it easier to write controllers.
35920 Changes in version 0.1.0.7-rc - 2005-05-17
35921   o Bugfixes:
35922     - Fix a bug in the OS X package installer that prevented it from
35923       installing on Tiger.
35924     - Fix a script bug in the OS X package installer that made it
35925       complain during installation.
35926     - Find libevent even if it's hiding in /usr/local/ and your
35927       CFLAGS and LDFLAGS don't tell you to look there.
35928     - Be able to link with libevent as a shared library (the default
35929       after 1.0d), even if it's hiding in /usr/local/lib and even
35930       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
35931       assuming you're running gcc. Otherwise fail and give a useful
35932       error message.
35933     - Fix a bug in the RPM packager: set home directory for _tor to
35934       something more reasonable when first installing.
35935     - Free a minor amount of memory that is still reachable on exit.
35938 Changes in version 0.1.0.6-rc - 2005-05-14
35939   o Bugfixes:
35940     - Implement --disable-threads configure option. Disable threads on
35941       netbsd by default, because it appears to have no reentrant resolver
35942       functions.
35943     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
35944       release (1.1) detects and disables kqueue if it's broken.
35945     - Append default exit policy before checking for implicit internal
35946       addresses. Now we don't log a bunch of complaints on startup
35947       when using the default exit policy.
35948     - Some people were putting "Address  " in their torrc, and they had
35949       a buggy resolver that resolved " " to 0.0.0.0. Oops.
35950     - If DataDir is ~/.tor, and that expands to /.tor, then default to
35951       LOCALSTATEDIR/tor instead.
35952     - Fix fragmented-message bug in TorControl.py.
35953     - Resolve a minor bug which would prevent unreachable dirports
35954       from getting suppressed in the published descriptor.
35955     - When the controller gave us a new descriptor, we weren't resolving
35956       it immediately, so Tor would think its address was 0.0.0.0 until
35957       we fetched a new directory.
35958     - Fix an uppercase/lowercase case error in suppressing a bogus
35959       libevent warning on some Linuxes.
35961   o Features:
35962     - Begin scrubbing sensitive strings from logs by default. Turn off
35963       the config option SafeLogging if you need to do debugging.
35964     - Switch to a new buffer management algorithm, which tries to avoid
35965       reallocing and copying quite as much. In first tests it looks like
35966       it uses *more* memory on average, but less cpu.
35967     - First cut at support for "create-fast" cells. Clients can use
35968       these when extending to their first hop, since the TLS already
35969       provides forward secrecy and authentication. Not enabled on
35970       clients yet.
35971     - When dirservers refuse a router descriptor, we now log its
35972       contactinfo, platform, and the poster's IP address.
35973     - Call tor_free_all instead of connections_free_all after forking, to
35974       save memory on systems that need to fork.
35975     - Whine at you if you're a server and you don't set your contactinfo.
35976     - Implement --verify-config command-line option to check if your torrc
35977       is valid without actually launching Tor.
35978     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
35979       rather than just rejecting it.
35982 Changes in version 0.1.0.5-rc - 2005-04-27
35983   o Bugfixes:
35984     - Stop trying to print a null pointer if an OR conn fails because
35985       we didn't like its cert.
35986   o Features:
35987     - Switch our internal buffers implementation to use a ring buffer,
35988       to hopefully improve performance for fast servers a lot.
35989     - Add HttpsProxyAuthenticator support (basic auth only), based
35990       on patch from Adam Langley.
35991     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
35992       the fast servers that have been joining lately.
35993     - Give hidden service accesses extra time on the first attempt,
35994       since 60 seconds is often only barely enough. This might improve
35995       robustness more.
35996     - Improve performance for dirservers: stop re-parsing the whole
35997       directory every time you regenerate it.
35998     - Add more debugging info to help us find the weird dns freebsd
35999       pthreads bug; cleaner debug messages to help track future issues.
36002 Changes in version 0.0.9.9 - 2005-04-23
36003   o Bugfixes on 0.0.9.x:
36004     - If unofficial Tor clients connect and send weird TLS certs, our
36005       Tor server triggers an assert. This release contains a minimal
36006       backport from the broader fix that we put into 0.1.0.4-rc.
36009 Changes in version 0.1.0.4-rc - 2005-04-23
36010   o Bugfixes:
36011     - If unofficial Tor clients connect and send weird TLS certs, our
36012       Tor server triggers an assert. Stop asserting, and start handling
36013       TLS errors better in other situations too.
36014     - When the controller asks us to tell it about all the debug-level
36015       logs, it turns out we were generating debug-level logs while
36016       telling it about them, which turns into a bad loop. Now keep
36017       track of whether you're sending a debug log to the controller,
36018       and don't log when you are.
36019     - Fix the "postdescriptor" feature of the controller interface: on
36020       non-complete success, only say "done" once.
36021   o Features:
36022     - Clients are now willing to load balance over up to 2mB, not 1mB,
36023       of advertised bandwidth capacity.
36024     - Add a NoPublish config option, so you can be a server (e.g. for
36025       testing running Tor servers in other Tor networks) without
36026       publishing your descriptor to the primary dirservers.
36029 Changes in version 0.1.0.3-rc - 2005-04-08
36030   o Improvements on 0.1.0.2-rc:
36031     - Client now retries when streams end early for 'hibernating' or
36032       'resource limit' reasons, rather than failing them.
36033     - More automated handling for dirserver operators:
36034       - Automatically approve nodes running 0.1.0.2-rc or later,
36035         now that the the reachability detection stuff is working.
36036       - Now we allow two unverified servers with the same nickname
36037         but different keys. But if a nickname is verified, only that
36038         nickname+key are allowed.
36039       - If you're an authdirserver connecting to an address:port,
36040         and it's not the OR you were expecting, forget about that
36041         descriptor. If he *was* the one you were expecting, then forget
36042         about all other descriptors for that address:port.
36043       - Allow servers to publish descriptors from 12 hours in the future.
36044         Corollary: only whine about clock skew from the dirserver if
36045         he's a trusted dirserver (since now even verified servers could
36046         have quite wrong clocks).
36047     - Adjust maximum skew and age for rendezvous descriptors: let skew
36048       be 48 hours rather than 90 minutes.
36049     - Efficiency improvements:
36050       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
36051         it much faster to look up a circuit for each relay cell.
36052       - Remove most calls to assert_all_pending_dns_resolves_ok(),
36053         since they're eating our cpu on exit nodes.
36054       - Stop wasting time doing a case insensitive comparison for every
36055         dns name every time we do any lookup. Canonicalize the names to
36056         lowercase and be done with it.
36057     - Start sending 'truncated' cells back rather than destroy cells,
36058       if the circuit closes in front of you. This means we won't have
36059       to abandon partially built circuits.
36060     - Only warn once per nickname from add_nickname_list_to_smartlist
36061       per failure, so an entrynode or exitnode choice that's down won't
36062       yell so much.
36063     - Put a note in the torrc about abuse potential with the default
36064       exit policy.
36065     - Revise control spec and implementation to allow all log messages to
36066       be sent to controller with their severities intact (suggested by
36067       Matt Edman). Update TorControl to handle new log event types.
36068     - Provide better explanation messages when controller's POSTDESCRIPTOR
36069       fails.
36070     - Stop putting nodename in the Platform string in server descriptors.
36071       It doesn't actually help, and it is confusing/upsetting some people.
36073   o Bugfixes on 0.1.0.2-rc:
36074     - We were printing the host mask wrong in exit policies in server
36075       descriptors. This isn't a critical bug though, since we were still
36076       obeying the exit policy internally.
36077     - Fix Tor when compiled with libevent but without pthreads: move
36078       connection_unregister() from _connection_free() to
36079       connection_free().
36080     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
36081       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
36082       when we look through the connection array, we'll find any of the
36083       cpu/dnsworkers. This is no good.
36085   o Bugfixes on 0.0.9.8:
36086     - Fix possible bug on threading platforms (e.g. win32) which was
36087       leaking a file descriptor whenever a cpuworker or dnsworker died.
36088     - When using preferred entry or exit nodes, ignore whether the
36089       circuit wants uptime or capacity. They asked for the nodes, they
36090       get the nodes.
36091     - chdir() to your datadirectory at the *end* of the daemonize process,
36092       not the beginning. This was a problem because the first time you
36093       run tor, if your datadir isn't there, and you have runasdaemon set
36094       to 1, it will try to chdir to it before it tries to create it. Oops.
36095     - Handle changed router status correctly when dirserver reloads
36096       fingerprint file. We used to be dropping all unverified descriptors
36097       right then. The bug was hidden because we would immediately
36098       fetch a directory from another dirserver, which would include the
36099       descriptors we just dropped.
36100     - When we're connecting to an OR and he's got a different nickname/key
36101       than we were expecting, only complain loudly if we're an OP or a
36102       dirserver. Complaining loudly to the OR admins just confuses them.
36103     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
36104       artificially capped at 500kB.
36107 Changes in version 0.0.9.8 - 2005-04-07
36108   o Bugfixes on 0.0.9.x:
36109     - We have a bug that I haven't found yet. Sometimes, very rarely,
36110       cpuworkers get stuck in the 'busy' state, even though the cpuworker
36111       thinks of itself as idle. This meant that no new circuits ever got
36112       established. Here's a workaround to kill any cpuworker that's been
36113       busy for more than 100 seconds.
36116 Changes in version 0.1.0.2-rc - 2005-04-01
36117   o Bugfixes on 0.1.0.1-rc:
36118     - Fixes on reachability detection:
36119       - Don't check for reachability while hibernating.
36120       - If ORPort is reachable but DirPort isn't, still publish the
36121         descriptor, but zero out DirPort until it's found reachable.
36122       - When building testing circs for ORPort testing, use only
36123         high-bandwidth nodes, so fewer circuits fail.
36124       - Complain about unreachable ORPort separately from unreachable
36125         DirPort, so the user knows what's going on.
36126       - Make sure we only conclude ORPort reachability if we didn't
36127         initiate the conn. Otherwise we could falsely conclude that
36128         we're reachable just because we connected to the guy earlier
36129         and he used that same pipe to extend to us.
36130       - Authdirservers shouldn't do ORPort reachability detection,
36131         since they're in clique mode, so it will be rare to find a
36132         server not already connected to them.
36133       - When building testing circuits, always pick middle hops running
36134         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
36135         bug. (This is a kludge; it will go away when 0.0.9.x becomes
36136         obsolete.)
36137       - When we decide we're reachable, actually publish our descriptor
36138         right then.
36139     - Fix bug in redirectstream in the controller.
36140     - Fix the state descriptor strings so logs don't claim edge streams
36141       are in a different state than they actually are.
36142     - Use recent libevent features when possible (this only really affects
36143       win32 and osx right now, because the new libevent with these
36144       features hasn't been released yet). Add code to suppress spurious
36145       libevent log msgs.
36146     - Prevent possible segfault in connection_close_unattached_ap().
36147     - Fix newlines on torrc in win32.
36148     - Improve error msgs when tor-resolve fails.
36150   o Improvements on 0.0.9.x:
36151     - New experimental script tor/contrib/ExerciseServer.py (needs more
36152       work) that uses the controller interface to build circuits and
36153       fetch pages over them. This will help us bootstrap servers that
36154       have lots of capacity but haven't noticed it yet.
36155     - New experimental script tor/contrib/PathDemo.py (needs more work)
36156       that uses the controller interface to let you choose whole paths
36157       via addresses like
36158       "<hostname>.<path,separated by dots>.<length of path>.path"
36159     - When we've connected to an OR and handshaked but didn't like
36160       the result, we were closing the conn without sending destroy
36161       cells back for pending circuits. Now send those destroys.
36164 Changes in version 0.0.9.7 - 2005-04-01
36165   o Bugfixes on 0.0.9.x:
36166     - Fix another race crash bug (thanks to Glenn Fink for reporting).
36167     - Compare identity to identity, not to nickname, when extending to
36168       a router not already in the directory. This was preventing us from
36169       extending to unknown routers. Oops.
36170     - Make sure to create OS X Tor user in <500 range, so we aren't
36171       creating actual system users.
36172     - Note where connection-that-hasn't-sent-end was marked, and fix
36173       a few really loud instances of this harmless bug (it's fixed more
36174       in 0.1.0.x).
36177 Changes in version 0.1.0.1-rc - 2005-03-28
36178   o New features:
36179     - Add reachability testing. Your Tor server will automatically try
36180       to see if its ORPort and DirPort are reachable from the outside,
36181       and it won't upload its descriptor until it decides they are.
36182     - Handle unavailable hidden services better. Handle slow or busy
36183       hidden services better.
36184     - Add support for CONNECTing through https proxies, with "HttpsProxy"
36185       config option.
36186     - New exit policy: accept most low-numbered ports, rather than
36187       rejecting most low-numbered ports.
36188     - More Tor controller support (still experimental). See
36189       http://tor.eff.org/doc/control-spec.txt for all the new features,
36190       including signals to emulate unix signals from any platform;
36191       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
36192       closestream; closecircuit; etc.
36193     - Make nt services work and start on startup on win32 (based on
36194       patch by Matt Edman).
36195     - Add a new AddressMap config directive to rewrite incoming socks
36196       addresses. This lets you, for example, declare an implicit
36197       required exit node for certain sites.
36198     - Add a new TrackHostExits config directive to trigger addressmaps
36199       for certain incoming socks addresses -- for sites that break when
36200       your exit keeps changing (based on patch by Mike Perry).
36201     - Redo the client-side dns cache so it's just an addressmap too.
36202     - Notice when our IP changes, and reset stats/uptime/reachability.
36203     - When an application is using socks5, give him the whole variety of
36204       potential socks5 responses (connect refused, host unreachable, etc),
36205       rather than just "success" or "failure".
36206     - A more sane version numbering system. See
36207       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
36208     - New contributed script "exitlist": a simple python script to
36209       parse directories and find Tor nodes that exit to listed
36210       addresses/ports.
36211     - New contributed script "privoxy-tor-toggle" to toggle whether
36212       Privoxy uses Tor. Seems to be configured for Debian by default.
36213     - Report HTTP reasons to client when getting a response from directory
36214       servers -- so you can actually know what went wrong.
36215     - New config option MaxAdvertisedBandwidth which lets you advertise
36216       a low bandwidthrate (to not attract as many circuits) while still
36217       allowing a higher bandwidthrate in reality.
36219   o Robustness/stability fixes:
36220     - Make Tor use Niels Provos's libevent instead of its current
36221       poll-but-sometimes-select mess. This will let us use faster async
36222       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
36223       on Windows too.
36224     - pthread support now too. This was forced because when we forked,
36225       we ended up wasting a lot of duplicate ram over time. Also switch
36226       to foo_r versions of some library calls to allow reentry and
36227       threadsafeness.
36228     - Better handling for heterogeneous / unreliable nodes:
36229       - Annotate circuits w/ whether they aim to contain high uptime nodes
36230         and/or high capacity nodes. When building circuits, choose
36231         appropriate nodes.
36232       - This means that every single node in an intro rend circuit,
36233         not just the last one, will have a minimum uptime.
36234       - New config option LongLivedPorts to indicate application streams
36235         that will want high uptime circuits.
36236       - Servers reset uptime when a dir fetch entirely fails. This
36237         hopefully reflects stability of the server's network connectivity.
36238       - If somebody starts his tor server in Jan 2004 and then fixes his
36239         clock, don't make his published uptime be a year.
36240       - Reset published uptime when you wake up from hibernation.
36241     - Introduce a notion of 'internal' circs, which are chosen without
36242       regard to the exit policy of the last hop. Intro and rendezvous
36243       circs must be internal circs, to avoid leaking information. Resolve
36244       and connect streams can use internal circs if they want.
36245     - New circuit pooling algorithm: make sure to have enough circs around
36246       to satisfy any predicted ports, and also make sure to have 2 internal
36247       circs around if we've required internal circs lately (and with high
36248       uptime if we've seen that lately too).
36249     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
36250       which describes how often we retry making new circuits if current
36251       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
36252       how long we're willing to make use of an already-dirty circuit.
36253     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
36254       circ as necessary, if there are any completed ones lying around
36255       when we try to launch one.
36256     - Make hidden services try to establish a rendezvous for 30 seconds,
36257       rather than for n (where n=3) attempts to build a circuit.
36258     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
36259       "ShutdownWaitLength".
36260     - Try to be more zealous about calling connection_edge_end when
36261       things go bad with edge conns in connection.c.
36262     - Revise tor-spec to add more/better stream end reasons.
36263     - Revise all calls to connection_edge_end to avoid sending "misc",
36264       and to take errno into account where possible.
36266   o Bug fixes:
36267     - Fix a race condition that can trigger an assert, when we have a
36268       pending create cell and an OR connection fails right then.
36269     - Fix several double-mark-for-close bugs, e.g. where we were finding
36270       a conn for a cell even if that conn is already marked for close.
36271     - Make sequence of log messages when starting on win32 with no config
36272       file more reasonable.
36273     - When choosing an exit node for a new non-internal circ, don't take
36274       into account whether it'll be useful for any pending x.onion
36275       addresses -- it won't.
36276     - Turn addr_policy_compare from a tristate to a quadstate; this should
36277       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
36278       for google.com" problem.
36279     - Make "platform" string in descriptor more accurate for Win32 servers,
36280       so it's not just "unknown platform".
36281     - Fix an edge case in parsing config options (thanks weasel).
36282       If they say "--" on the commandline, it's not an option.
36283     - Reject odd-looking addresses at the client (e.g. addresses that
36284       contain a colon), rather than having the server drop them because
36285       they're malformed.
36286     - tor-resolve requests were ignoring .exit if there was a working circuit
36287       they could use instead.
36288     - REUSEADDR on normal platforms means you can rebind to the port
36289       right after somebody else has let it go. But REUSEADDR on win32
36290       means to let you bind to the port _even when somebody else
36291       already has it bound_! So, don't do that on Win32.
36292     - Change version parsing logic: a version is "obsolete" if it is not
36293       recommended and (1) there is a newer recommended version in the
36294       same series, or (2) there are no recommended versions in the same
36295       series, but there are some recommended versions in a newer series.
36296       A version is "new" if it is newer than any recommended version in
36297       the same series.
36298     - Stop most cases of hanging up on a socks connection without sending
36299       the socks reject.
36301   o Helpful fixes:
36302     - Require BandwidthRate to be at least 20kB/s for servers.
36303     - When a dirserver causes you to give a warn, mention which dirserver
36304       it was.
36305     - New config option DirAllowPrivateAddresses for authdirservers.
36306       Now by default they refuse router descriptors that have non-IP or
36307       private-IP addresses.
36308     - Stop publishing socksport in the directory, since it's not
36309       actually meant to be public. For compatibility, publish a 0 there
36310       for now.
36311     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
36312       smart" value, that is low for servers and high for clients.
36313     - If our clock jumps forward by 100 seconds or more, assume something
36314       has gone wrong with our network and abandon all not-yet-used circs.
36315     - Warn when exit policy implicitly allows local addresses.
36316     - If we get an incredibly skewed timestamp from a dirserver mirror
36317       that isn't a verified OR, don't warn -- it's probably him that's
36318       wrong.
36319     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
36320       cookies to disk and doesn't log each web request to disk. (Thanks
36321       to Brett Carrington for pointing this out.)
36322     - When a client asks us for a dir mirror and we don't have one,
36323       launch an attempt to get a fresh one.
36324     - If we're hibernating and we get a SIGINT, exit immediately.
36325     - Add --with-dmalloc ./configure option, to track memory leaks.
36326     - And try to free all memory on closing, so we can detect what
36327       we're leaking.
36328     - Cache local dns resolves correctly even when they're .exit
36329       addresses.
36330     - Give a better warning when some other server advertises an
36331       ORPort that is actually an apache running ssl.
36332     - Add "opt hibernating 1" to server descriptor to make it clearer
36333       whether the server is hibernating.
36336 Changes in version 0.0.9.6 - 2005-03-24
36337   o Bugfixes on 0.0.9.x (crashes and asserts):
36338     - Add new end stream reasons to maintenance branch. Fix bug where
36339       reason (8) could trigger an assert. Prevent bug from recurring.
36340     - Apparently win32 stat wants paths to not end with a slash.
36341     - Fix assert triggers in assert_cpath_layer_ok(), where we were
36342       blowing away the circuit that conn->cpath_layer points to, then
36343       checking to see if the circ is well-formed. Backport check to make
36344       sure we dont use the cpath on a closed connection.
36345     - Prevent circuit_resume_edge_reading_helper() from trying to package
36346       inbufs for marked-for-close streams.
36347     - Don't crash on hup if your options->address has become unresolvable.
36348     - Some systems (like OS X) sometimes accept() a connection and tell
36349       you the remote host is 0.0.0.0:0. If this happens, due to some
36350       other mis-features, we get confused; so refuse the conn for now.
36352   o Bugfixes on 0.0.9.x (other):
36353     - Fix harmless but scary "Unrecognized content encoding" warn message.
36354     - Add new stream error reason: TORPROTOCOL reason means "you are not
36355       speaking a version of Tor I understand; say bye-bye to your stream."
36356     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
36357       into the future, now that we are more tolerant of skew. This
36358       resolves a bug where a Tor server would refuse to cache a directory
36359       because all the directories it gets are too far in the future;
36360       yet the Tor server never logs any complaints about clock skew.
36361     - Mac packaging magic: make man pages useable, and do not overwrite
36362       existing torrc files.
36363     - Make OS X log happily to /var/log/tor/tor.log
36366 Changes in version 0.0.9.5 - 2005-02-22
36367   o Bugfixes on 0.0.9.x:
36368     - Fix an assert race at exit nodes when resolve requests fail.
36369     - Stop picking unverified dir mirrors--it only leads to misery.
36370     - Patch from Matt Edman to make NT services work better. Service
36371       support is still not compiled into the executable by default.
36372     - Patch from Dmitri Bely so the Tor service runs better under
36373       the win32 SYSTEM account.
36374     - Make tor-resolve actually work (?) on Win32.
36375     - Fix a sign bug when getrlimit claims to have 4+ billion
36376       file descriptors available.
36377     - Stop refusing to start when bandwidthburst == bandwidthrate.
36378     - When create cells have been on the onion queue more than five
36379       seconds, just send back a destroy and take them off the list.
36382 Changes in version 0.0.9.4 - 2005-02-03
36383   o Bugfixes on 0.0.9:
36384     - Fix an assert bug that took down most of our servers: when
36385       a server claims to have 1 GB of bandwidthburst, don't
36386       freak out.
36387     - Don't crash as badly if we have spawned the max allowed number
36388       of dnsworkers, or we're out of file descriptors.
36389     - Block more file-sharing ports in the default exit policy.
36390     - MaxConn is now automatically set to the hard limit of max
36391       file descriptors we're allowed (ulimit -n), minus a few for
36392       logs, etc.
36393     - Give a clearer message when servers need to raise their
36394       ulimit -n when they start running out of file descriptors.
36395     - SGI Compatibility patches from Jan Schaumann.
36396     - Tolerate a corrupt cached directory better.
36397     - When a dirserver hasn't approved your server, list which one.
36398     - Go into soft hibernation after 95% of the bandwidth is used,
36399       not 99%. This is especially important for daily hibernators who
36400       have a small accounting max. Hopefully it will result in fewer
36401       cut connections when the hard hibernation starts.
36402     - Load-balance better when using servers that claim more than
36403       800kB/s of capacity.
36404     - Make NT services work (experimental, only used if compiled in).
36407 Changes in version 0.0.9.3 - 2005-01-21
36408   o Bugfixes on 0.0.9:
36409     - Backport the cpu use fixes from main branch, so busy servers won't
36410       need as much processor time.
36411     - Work better when we go offline and then come back, or when we
36412       run Tor at boot before the network is up. We do this by
36413       optimistically trying to fetch a new directory whenever an
36414       application request comes in and we think we're offline -- the
36415       human is hopefully a good measure of when the network is back.
36416     - Backport some minimal hidserv bugfixes: keep rend circuits open as
36417       long as you keep using them; actually publish hidserv descriptors
36418       shortly after they change, rather than waiting 20-40 minutes.
36419     - Enable Mac startup script by default.
36420     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
36421     - When you update AllowUnverifiedNodes or FirewallPorts via the
36422       controller's setconf feature, we were always appending, never
36423       resetting.
36424     - When you update HiddenServiceDir via setconf, it was screwing up
36425       the order of reading the lines, making it fail.
36426     - Do not rewrite a cached directory back to the cache; otherwise we
36427       will think it is recent and not fetch a newer one on startup.
36428     - Workaround for webservers that lie about Content-Encoding: Tor
36429       now tries to autodetect compressed directories and compression
36430       itself. This lets us Proxypass dir fetches through apache.
36433 Changes in version 0.0.9.2 - 2005-01-04
36434   o Bugfixes on 0.0.9 (crashes and asserts):
36435     - Fix an assert on startup when the disk is full and you're logging
36436       to a file.
36437     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
36438       style address, then we'd crash.
36439     - Fix an assert trigger when the running-routers string we get from
36440       a dirserver is broken.
36441     - Make worker threads start and run on win32. Now win32 servers
36442       may work better.
36443     - Bandaid (not actually fix, but now it doesn't crash) an assert
36444       where the dns worker dies mysteriously and the main Tor process
36445       doesn't remember anything about the address it was resolving.
36447   o Bugfixes on 0.0.9 (Win32):
36448     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
36449       name out of the warning/assert messages.
36450     - Fix a superficial "unhandled error on read" bug on win32.
36451     - The win32 installer no longer requires a click-through for our
36452       license, since our Free Software license grants rights but does not
36453       take any away.
36454     - Win32: When connecting to a dirserver fails, try another one
36455       immediately. (This was already working for non-win32 Tors.)
36456     - Stop trying to parse $HOME on win32 when hunting for default
36457       DataDirectory.
36458     - Make tor-resolve.c work on win32 by calling network_init().
36460   o Bugfixes on 0.0.9 (other):
36461     - Make 0.0.9.x build on Solaris again.
36462     - Due to a fencepost error, we were blowing away the \n when reporting
36463       confvalue items in the controller. So asking for multiple config
36464       values at once couldn't work.
36465     - When listing circuits that are pending on an opening OR connection,
36466       if we're an OR we were listing circuits that *end* at us as
36467       being pending on every listener, dns/cpu worker, etc. Stop that.
36468     - Dirservers were failing to create 'running-routers' or 'directory'
36469       strings if we had more than some threshold of routers. Fix them so
36470       they can handle any number of routers.
36471     - Fix a superficial "Duplicate mark for close" bug.
36472     - Stop checking for clock skew for OR connections, even for servers.
36473     - Fix a fencepost error that was chopping off the last letter of any
36474       nickname that is the maximum allowed nickname length.
36475     - Update URLs in log messages so they point to the new website.
36476     - Fix a potential problem in mangling server private keys while
36477       writing to disk (not triggered yet, as far as we know).
36478     - Include the licenses for other free software we include in Tor,
36479       now that we're shipping binary distributions more regularly.
36482 Changes in version 0.0.9.1 - 2004-12-15
36483   o Bugfixes on 0.0.9:
36484     - Make hibernation actually work.
36485     - Make HashedControlPassword config option work.
36486     - When we're reporting event circuit status to a controller,
36487       don't use the stream status code.
36490 Changes in version 0.0.9 - 2004-12-12
36491   o Cleanups:
36492     - Clean up manpage and torrc.sample file.
36493     - Clean up severities and text of log warnings.
36494   o Mistakes:
36495     - Make servers trigger an assert when they enter hibernation.
36498 Changes in version 0.0.9rc7 - 2004-12-08
36499   o Bugfixes on 0.0.9rc:
36500     - Fix a stack-trashing crash when an exit node begins hibernating.
36501     - Avoid looking at unallocated memory while considering which
36502       ports we need to build circuits to cover.
36503     - Stop a sigpipe: when an 'end' cell races with eof from the app,
36504       we shouldn't hold-open-until-flush if the eof arrived first.
36505     - Fix a bug with init_cookie_authentication() in the controller.
36506     - When recommending new-format log lines, if the upper bound is
36507       LOG_ERR, leave it implicit.
36509   o Bugfixes on 0.0.8.1:
36510     - Fix a whole slew of memory leaks.
36511     - Fix isspace() and friends so they still make Solaris happy
36512       but also so they don't trigger asserts on win32.
36513     - Fix parse_iso_time on platforms without strptime (eg win32).
36514     - win32: tolerate extra "readable" events better.
36515     - win32: when being multithreaded, leave parent fdarray open.
36516     - Make unit tests work on win32.
36519 Changes in version 0.0.9rc6 - 2004-12-06
36520   o Bugfixes on 0.0.9pre:
36521     - Clean up some more integer underflow opportunities (not exploitable
36522       we think).
36523     - While hibernating, hup should not regrow our listeners.
36524     - Send an end to the streams we close when we hibernate, rather
36525       than just chopping them off.
36526     - React to eof immediately on non-open edge connections.
36528   o Bugfixes on 0.0.8.1:
36529     - Calculate timeout for waiting for a connected cell from the time
36530       we sent the begin cell, not from the time the stream started. If
36531       it took a long time to establish the circuit, we would time out
36532       right after sending the begin cell.
36533     - Fix router_compare_addr_to_addr_policy: it was not treating a port
36534       of * as always matching, so we were picking reject *:* nodes as
36535       exit nodes too. Oops.
36537   o Features:
36538     - New circuit building strategy: keep a list of ports that we've
36539       used in the past 6 hours, and always try to have 2 circuits open
36540       or on the way that will handle each such port. Seed us with port
36541       80 so web users won't complain that Tor is "slow to start up".
36542     - Make kill -USR1 dump more useful stats about circuits.
36543     - When warning about retrying or giving up, print the address, so
36544       the user knows which one it's talking about.
36545     - If you haven't used a clean circuit in an hour, throw it away,
36546       just to be on the safe side. (This means after 6 hours a totally
36547       unused Tor client will have no circuits open.)
36550 Changes in version 0.0.9rc5 - 2004-12-01
36551   o Bugfixes on 0.0.8.1:
36552     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
36553     - Let resolve conns retry/expire also, rather than sticking around
36554       forever.
36555     - If we are using select, make sure we stay within FD_SETSIZE.
36557   o Bugfixes on 0.0.9pre:
36558     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
36559       but doesn't seem to be currently; thanks to Ilja van Sprundel for
36560       finding it.
36561     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
36562       instead. Impose minima and maxima for all *Period options; impose
36563       even tighter maxima for fetching if we are a caching dirserver.
36564       Clip rather than rejecting.
36565     - Fetch cached running-routers from servers that serve it (that is,
36566       authdirservers and servers running 0.0.9rc5-cvs or later.)
36568   o Features:
36569     - Accept *:706 (silc) in default exit policy.
36570     - Implement new versioning format for post 0.1.
36571     - Support "foo.nickname.exit" addresses, to let Alice request the
36572       address "foo" as viewed by exit node "nickname". Based on a patch
36573       by Geoff Goodell.
36574     - Make tor --version --version dump the cvs Id of every file.
36577 Changes in version 0.0.9rc4 - 2004-11-28
36578   o Bugfixes on 0.0.8.1:
36579     - Make windows sockets actually non-blocking (oops), and handle
36580       win32 socket errors better.
36582   o Bugfixes on 0.0.9rc1:
36583     - Actually catch the -USR2 signal.
36586 Changes in version 0.0.9rc3 - 2004-11-25
36587   o Bugfixes on 0.0.8.1:
36588     - Flush the log file descriptor after we print "Tor opening log file",
36589       so we don't see those messages days later.
36591   o Bugfixes on 0.0.9rc1:
36592     - Make tor-resolve work again.
36593     - Avoid infinite loop in tor-resolve if tor hangs up on it.
36594     - Fix an assert trigger for clients/servers handling resolves.
36597 Changes in version 0.0.9rc2 - 2004-11-24
36598   o Bugfixes on 0.0.9rc1:
36599     - I broke socks5 support while fixing the eof bug.
36600     - Allow unitless bandwidths and intervals; they default to bytes
36601       and seconds.
36602     - New servers don't start out hibernating; they are active until
36603       they run out of bytes, so they have a better estimate of how
36604       long it takes, and so their operators can know they're working.
36607 Changes in version 0.0.9rc1 - 2004-11-23
36608   o Bugfixes on 0.0.8.1:
36609     - Finally fix a bug that's been plaguing us for a year:
36610       With high load, circuit package window was reaching 0. Whenever
36611       we got a circuit-level sendme, we were reading a lot on each
36612       socket, but only writing out a bit. So we would eventually reach
36613       eof. This would be noticed and acted on even when there were still
36614       bytes sitting in the inbuf.
36615     - When poll() is interrupted, we shouldn't believe the revents values.
36617   o Bugfixes on 0.0.9pre6:
36618     - Fix hibernate bug that caused pre6 to be broken.
36619     - Don't keep rephist info for routers that haven't had activity for
36620       24 hours. (This matters now that clients have keys, since we track
36621       them too.)
36622     - Never call close_temp_logs while validating log options.
36623     - Fix backslash-escaping on tor.sh.in and torctl.in.
36625   o Features:
36626     - Implement weekly/monthly/daily accounting: now you specify your
36627       hibernation properties by
36628       AccountingMax N bytes|KB|MB|GB|TB
36629       AccountingStart day|week|month [day] HH:MM
36630         Defaults to "month 1 0:00".
36631     - Let bandwidth and interval config options be specified as 5 bytes,
36632       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
36633     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
36634       get back to normal.)
36635     - If your requested entry or exit node has advertised bandwidth 0,
36636       pick it anyway.
36637     - Be more greedy about filling up relay cells -- we try reading again
36638       once we've processed the stuff we read, in case enough has arrived
36639       to fill the last cell completely.
36640     - Apply NT service patch from Osamu Fujino. Still needs more work.
36643 Changes in version 0.0.9pre6 - 2004-11-15
36644   o Bugfixes on 0.0.8.1:
36645     - Fix assert failure on malformed socks4a requests.
36646     - Use identity comparison, not nickname comparison, to choose which
36647       half of circuit-ID-space each side gets to use. This is needed
36648       because sometimes we think of a router as a nickname, and sometimes
36649       as a hex ID, and we can't predict what the other side will do.
36650     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
36651       write() call will fail and we handle it there.
36652     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
36653       and smartlist_len, which are two major profiling offenders.
36655   o Bugfixes on 0.0.9pre5:
36656     - Fix a bug in read_all that was corrupting config files on windows.
36657     - When we're raising the max number of open file descriptors to
36658       'unlimited', don't log that we just raised it to '-1'.
36659     - Include event code with events, as required by control-spec.txt.
36660     - Don't give a fingerprint when clients do --list-fingerprint:
36661       it's misleading, because it will never be the same again.
36662     - Stop using strlcpy in tor_strndup, since it was slowing us
36663       down a lot.
36664     - Remove warn on startup about missing cached-directory file.
36665     - Make kill -USR1 work again.
36666     - Hibernate if we start tor during the "wait for wakeup-time" phase
36667       of an accounting interval. Log our hibernation plans better.
36668     - Authoritative dirservers now also cache their directory, so they
36669       have it on start-up.
36671   o Features:
36672     - Fetch running-routers; cache running-routers; compress
36673       running-routers; serve compressed running-routers.z
36674     - Add NSI installer script contributed by J Doe.
36675     - Commit VC6 and VC7 workspace/project files.
36676     - Commit a tor.spec for making RPM files, with help from jbash.
36677     - Add contrib/torctl.in contributed by Glenn Fink.
36678     - Implement the control-spec's SAVECONF command, to write your
36679       configuration to torrc.
36680     - Get cookie authentication for the controller closer to working.
36681     - Include control-spec.txt in the tarball.
36682     - When set_conf changes our server descriptor, upload a new copy.
36683       But don't upload it too often if there are frequent changes.
36684     - Document authentication config in man page, and document signals
36685       we catch.
36686     - Clean up confusing parts of man page and torrc.sample.
36687     - Make expand_filename handle ~ and ~username.
36688     - Use autoconf to enable largefile support where necessary. Use
36689       ftello where available, since ftell can fail at 2GB.
36690     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
36691       log more informatively.
36692     - Give a slightly more useful output for "tor -h".
36693     - Refuse application socks connections to port 0.
36694     - Check clock skew for verified servers, but allow unverified
36695       servers and clients to have any clock skew.
36696     - Break DirFetchPostPeriod into:
36697       - DirFetchPeriod for fetching full directory,
36698       - StatusFetchPeriod for fetching running-routers,
36699       - DirPostPeriod for posting server descriptor,
36700       - RendPostPeriod for posting hidden service descriptors.
36701     - Make sure the hidden service descriptors are at a random offset
36702       from each other, to hinder linkability.
36705 Changes in version 0.0.9pre5 - 2004-11-09
36706   o Bugfixes on 0.0.9pre4:
36707     - Fix a seg fault in unit tests (doesn't affect main program).
36708     - Fix an assert bug where a hidden service provider would fail if
36709       the first hop of his rendezvous circuit was down.
36710     - Hidden service operators now correctly handle version 1 style
36711       INTRODUCE1 cells (nobody generates them still, so not a critical
36712       bug).
36713     - If do_hup fails, actually notice.
36714     - Handle more errnos from accept() without closing the listener.
36715       Some OpenBSD machines were closing their listeners because
36716       they ran out of file descriptors.
36717     - Send resolve cells to exit routers that are running a new
36718       enough version of the resolve code to work right.
36719     - Better handling of winsock includes on non-MSV win32 compilers.
36720     - Some people had wrapped their tor client/server in a script
36721       that would restart it whenever it died. This did not play well
36722       with our "shut down if your version is obsolete" code. Now people
36723       don't fetch a new directory if their local cached version is
36724       recent enough.
36725     - Make our autogen.sh work on ksh as well as bash.
36727   o Major Features:
36728     - Hibernation: New config option "AccountingMaxKB" lets you
36729       set how many KBytes per month you want to allow your server to
36730       consume. Rather than spreading those bytes out evenly over the
36731       month, we instead hibernate for some of the month and pop up
36732       at a deterministic time, work until the bytes are consumed, then
36733       hibernate again. Config option "MonthlyAccountingStart" lets you
36734       specify which day of the month your billing cycle starts on.
36735     - Control interface: a separate program can now talk to your
36736       client/server over a socket, and get/set config options, receive
36737       notifications of circuits and streams starting/finishing/dying,
36738       bandwidth used, etc. The next step is to get some GUIs working.
36739       Let us know if you want to help out. See doc/control-spec.txt .
36740     - Ship a contrib/tor-control.py as an example script to interact
36741       with the control port.
36742     - "tor --hash-password zzyxz" will output a salted password for
36743       use in authenticating to the control interface.
36744     - New log format in config:
36745       "Log minsev[-maxsev] stdout|stderr|syslog" or
36746       "Log minsev[-maxsev] file /var/foo"
36748   o Minor Features:
36749     - DirPolicy config option, to let people reject incoming addresses
36750       from their dirserver.
36751     - "tor --list-fingerprint" will list your identity key fingerprint
36752       and then exit.
36753     - Add "pass" target for RedirectExit, to make it easier to break
36754       out of a sequence of RedirectExit rules.
36755     - Clients now generate a TLS cert too, in preparation for having
36756       them act more like real nodes.
36757     - Ship src/win32/ in the tarball, so people can use it to build.
36758     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
36759       is broken.
36760     - New "router-status" line in directory, to better bind each verified
36761       nickname to its identity key.
36762     - Deprecate unofficial config option abbreviations, and abbreviations
36763       not on the command line.
36764     - Add a pure-C tor-resolve implementation.
36765     - Use getrlimit and friends to ensure we can reach MaxConn (currently
36766       1024) file descriptors.
36768   o Code security improvements, inspired by Ilja:
36769     - Replace sprintf with snprintf. (I think they were all safe, but
36770       hey.)
36771     - Replace strcpy/strncpy with strlcpy in more places.
36772     - Avoid strcat; use snprintf or strlcat instead.
36773     - snprintf wrapper with consistent (though not C99) overflow behavior.
36776 Changes in version 0.0.9pre4 - 2004-10-17
36777   o Bugfixes on 0.0.9pre3:
36778     - If the server doesn't specify an exit policy, use the real default
36779       exit policy, not reject *:*.
36780     - Ignore fascistfirewall when uploading/downloading hidden service
36781       descriptors, since we go through Tor for those; and when using
36782       an HttpProxy, since we assume it can reach them all.
36783     - When looking for an authoritative dirserver, use only the ones
36784       configured at boot. Don't bother looking in the directory.
36785     - The rest of the fix for get_default_conf_file() on older win32.
36786     - Make 'Routerfile' config option obsolete.
36788   o Features:
36789     - New 'MyFamily nick1,...' config option for a server to
36790       specify other servers that shouldn't be used in the same circuit
36791       with it. Only believed if nick1 also specifies us.
36792     - New 'NodeFamily nick1,nick2,...' config option for a client to
36793       specify nodes that it doesn't want to use in the same circuit.
36794     - New 'Redirectexit pattern address:port' config option for a
36795       server to redirect exit connections, e.g. to a local squid.
36798 Changes in version 0.0.9pre3 - 2004-10-13
36799   o Bugfixes on 0.0.8.1:
36800     - Better torrc example lines for dirbindaddress and orbindaddress.
36801     - Improved bounds checking on parsed ints (e.g. config options and
36802       the ones we find in directories.)
36803     - Better handling of size_t vs int, so we're more robust on 64
36804       bit platforms.
36805     - Fix the rest of the bug where a newly started OR would appear
36806       as unverified even after we've added his fingerprint and hupped
36807       the dirserver.
36808     - Fix a bug from 0.0.7: when read() failed on a stream, we would
36809       close it without sending back an end. So 'connection refused'
36810       would simply be ignored and the user would get no response.
36812   o Bugfixes on 0.0.9pre2:
36813     - Serving the cached-on-disk directory to people is bad. We now
36814       provide no directory until we've fetched a fresh one.
36815     - Workaround for bug on windows where cached-directories get crlf
36816       corruption.
36817     - Make get_default_conf_file() work on older windows too.
36818     - If we write a *:* exit policy line in the descriptor, don't write
36819       any more exit policy lines.
36821   o Features:
36822     - Use only 0.0.9pre1 and later servers for resolve cells.
36823     - Make the dirservers file obsolete.
36824       - Include a dir-signing-key token in directories to tell the
36825         parsing entity which key is being used to sign.
36826       - Remove the built-in bulky default dirservers string.
36827       - New config option "Dirserver %s:%d [fingerprint]", which can be
36828         repeated as many times as needed. If no dirservers specified,
36829         default to moria1,moria2,tor26.
36830     - Make moria2 advertise a dirport of 80, so people behind firewalls
36831       will be able to get a directory.
36832     - Http proxy support
36833       - Dirservers translate requests for http://%s:%d/x to /x
36834       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
36835         be routed through this host.
36836       - Clients ask for /tor/x rather than /x for new enough dirservers.
36837         This way we can one day coexist peacefully with apache.
36838       - Clients specify a "Host: %s%d" http header, to be compatible
36839         with more proxies, and so running squid on an exit node can work.
36842 Changes in version 0.0.8.1 - 2004-10-13
36843   o Bugfixes:
36844     - Fix a seg fault that can be triggered remotely for Tor
36845       clients/servers with an open dirport.
36846     - Fix a rare assert trigger, where routerinfos for entries in
36847       our cpath would expire while we're building the path.
36848     - Fix a bug in OutboundBindAddress so it (hopefully) works.
36849     - Fix a rare seg fault for people running hidden services on
36850       intermittent connections.
36851     - Fix a bug in parsing opt keywords with objects.
36852     - Fix a stale pointer assert bug when a stream detaches and
36853       reattaches.
36854     - Fix a string format vulnerability (probably not exploitable)
36855       in reporting stats locally.
36856     - Fix an assert trigger: sometimes launching circuits can fail
36857       immediately, e.g. because too many circuits have failed recently.
36858     - Fix a compile warning on 64 bit platforms.
36861 Changes in version 0.0.9pre2 - 2004-10-03
36862   o Bugfixes:
36863     - Make fetching a cached directory work for 64-bit platforms too.
36864     - Make zlib.h a required header, not an optional header.
36867 Changes in version 0.0.9pre1 - 2004-10-01
36868   o Bugfixes:
36869     - Stop using separate defaults for no-config-file and
36870       empty-config-file. Now you have to explicitly turn off SocksPort,
36871       if you don't want it open.
36872     - Fix a bug in OutboundBindAddress so it (hopefully) works.
36873     - Improve man page to mention more of the 0.0.8 features.
36874     - Fix a rare seg fault for people running hidden services on
36875       intermittent connections.
36876     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
36877       happier.
36878     - Fix more dns related bugs: send back resolve_failed and end cells
36879       more reliably when the resolve fails, rather than closing the
36880       circuit and then trying to send the cell. Also attach dummy resolve
36881       connections to a circuit *before* calling dns_resolve(), to fix
36882       a bug where cached answers would never be sent in RESOLVED cells.
36883     - When we run out of disk space, or other log writing error, don't
36884       crash. Just stop logging to that log and continue.
36885     - We were starting to daemonize before we opened our logs, so if
36886       there were any problems opening logs, we would complain to stderr,
36887       which wouldn't work, and then mysteriously exit.
36888     - Fix a rare bug where sometimes a verified OR would connect to us
36889       before he'd uploaded his descriptor, which would cause us to
36890       assign conn->nickname as though he's unverified. Now we look through
36891       the fingerprint list to see if he's there.
36892     - Fix a rare assert trigger, where routerinfos for entries in
36893       our cpath would expire while we're building the path.
36895   o Features:
36896     - Clients can ask dirservers for /dir.z to get a compressed version
36897       of the directory. Only works for servers running 0.0.9, of course.
36898     - Make clients cache directories and use them to seed their router
36899       lists at startup. This means clients have a datadir again.
36900     - Configuration infrastructure support for warning on obsolete
36901       options.
36902     - Respond to content-encoding headers by trying to uncompress as
36903       appropriate.
36904     - Reply with a deflated directory when a client asks for "dir.z".
36905       We could use allow-encodings instead, but allow-encodings isn't
36906       specified in HTTP 1.0.
36907     - Raise the max dns workers from 50 to 100.
36908     - Discourage people from setting their dirfetchpostperiod more often
36909       than once per minute.
36910     - Protect dirservers from overzealous descriptor uploading -- wait
36911       10 seconds after directory gets dirty, before regenerating.
36914 Changes in version 0.0.8 - 2004-08-25
36915   o Port it to SunOS 5.9 / Athena
36918 Changes in version 0.0.8rc2 - 2004-08-20
36919   o Make it compile on cygwin again.
36920   o When picking unverified routers, skip those with low uptime and/or
36921     low bandwidth, depending on what properties you care about.
36924 Changes in version 0.0.8rc1 - 2004-08-18
36925   o Changes from 0.0.7.3:
36926     - Bugfixes:
36927       - Fix assert triggers: if the other side returns an address 0.0.0.0,
36928         don't put it into the client dns cache.
36929       - If a begin failed due to exit policy, but we believe the IP address
36930         should have been allowed, switch that router to exitpolicy reject *:*
36931         until we get our next directory.
36932     - Features:
36933       - Clients choose nodes proportional to advertised bandwidth.
36934       - Avoid using nodes with low uptime as introduction points.
36935       - Handle servers with dynamic IP addresses: don't replace
36936         options->Address with the resolved one at startup, and
36937         detect our address right before we make a routerinfo each time.
36938       - 'FascistFirewall' option to pick dirservers and ORs on specific
36939         ports; plus 'FirewallPorts' config option to tell FascistFirewall
36940         which ports are open. (Defaults to 80,443)
36941       - Be more aggressive about trying to make circuits when the network
36942         has changed (e.g. when you unsuspend your laptop).
36943       - Check for time skew on http headers; report date in response to
36944         "GET /".
36945       - If the entrynode config line has only one node, don't pick it as
36946         an exitnode.
36947       - Add strict{entry|exit}nodes config options. If set to 1, then
36948         we refuse to build circuits that don't include the specified entry
36949         or exit nodes.
36950       - OutboundBindAddress config option, to bind to a specific
36951         IP address for outgoing connect()s.
36952       - End truncated log entries (e.g. directories) with "[truncated]".
36954   o Patches to 0.0.8preX:
36955     - Bugfixes:
36956       - Patches to compile and run on win32 again (maybe)?
36957       - Fix crash when looking for ~/.torrc with no $HOME set.
36958       - Fix a race bug in the unit tests.
36959       - Handle verified/unverified name collisions better when new
36960         routerinfo's arrive in a directory.
36961       - Sometimes routers were getting entered into the stats before
36962         we'd assigned their identity_digest. Oops.
36963       - Only pick and establish intro points after we've gotten a
36964         directory.
36965     - Features:
36966       - AllowUnverifiedNodes config option to let circuits choose no-name
36967         routers in entry,middle,exit,introduction,rendezvous positions.
36968         Allow middle and rendezvous positions by default.
36969       - Add a man page for tor-resolve.
36972 Changes in version 0.0.7.3 - 2004-08-12
36973   o Stop dnsworkers from triggering an assert failure when you
36974     ask them to resolve the host "".
36977 Changes in version 0.0.8pre3 - 2004-08-09
36978   o Changes from 0.0.7.2:
36979     - Allow multiple ORs with same nickname in routerlist -- now when
36980       people give us one identity key for a nickname, then later
36981       another, we don't constantly complain until the first expires.
36982     - Remember used bandwidth (both in and out), and publish 15-minute
36983       snapshots for the past day into our descriptor.
36984     - You can now fetch $DIRURL/running-routers to get just the
36985       running-routers line, not the whole descriptor list. (But
36986       clients don't use this yet.)
36987     - When people mistakenly use Tor as an http proxy, point them
36988       at the tor-doc.html rather than the INSTALL.
36989     - Remove our mostly unused -- and broken -- hex_encode()
36990       function. Use base16_encode() instead. (Thanks to Timo Lindfors
36991       for pointing out this bug.)
36992     - Rotate onion keys every 12 hours, not every 2 hours, so we have
36993       fewer problems with people using the wrong key.
36994     - Change the default exit policy to reject the default edonkey,
36995       kazaa, gnutella ports.
36996     - Add replace_file() to util.[ch] to handle win32's rename().
36998   o Changes from 0.0.8preX:
36999     - Fix two bugs in saving onion keys to disk when rotating, so
37000       hopefully we'll get fewer people using old onion keys.
37001     - Fix an assert error that was making SocksPolicy not work.
37002     - Be willing to expire routers that have an open dirport -- it's
37003       just the authoritative dirservers we want to not forget.
37004     - Reject tor-resolve requests for .onion addresses early, so we
37005       don't build a whole rendezvous circuit and then fail.
37006     - When you're warning a server that he's unverified, don't cry
37007       wolf unpredictably.
37008     - Fix a race condition: don't try to extend onto a connection
37009       that's still handshaking.
37010     - For servers in clique mode, require the conn to be open before
37011       you'll choose it for your path.
37012     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
37013       end relay cell, etc.
37014     - Measure bandwidth capacity over the last 24 hours, not just 12
37015     - Bugfix: authoritative dirservers were making and signing a new
37016       directory for each client, rather than reusing the cached one.
37019 Changes in version 0.0.8pre2 - 2004-08-04
37020   o Changes from 0.0.7.2:
37021     - Security fixes:
37022       - Check directory signature _before_ you decide whether you're
37023         you're running an obsolete version and should exit.
37024       - Check directory signature _before_ you parse the running-routers
37025         list to decide who's running or verified.
37026     - Bugfixes and features:
37027       - Check return value of fclose while writing to disk, so we don't
37028         end up with broken files when servers run out of disk space.
37029       - Log a warning if the user uses an unsafe socks variant, so people
37030         are more likely to learn about privoxy or socat.
37031       - Dirservers now include RFC1123-style dates in the HTTP headers,
37032         which one day we will use to better detect clock skew.
37034   o Changes from 0.0.8pre1:
37035     - Make it compile without warnings again on win32.
37036     - Log a warning if you're running an unverified server, to let you
37037       know you might want to get it verified.
37038     - Only pick a default nickname if you plan to be a server.
37041 Changes in version 0.0.8pre1 - 2004-07-23
37042   o Bugfixes:
37043     - Made our unit tests compile again on OpenBSD 3.5, and tor
37044       itself compile again on OpenBSD on a sparc64.
37045     - We were neglecting milliseconds when logging on win32, so
37046       everything appeared to happen at the beginning of each second.
37048   o Protocol changes:
37049     - 'Extend' relay cell payloads now include the digest of the
37050       intended next hop's identity key. Now we can verify that we're
37051       extending to the right router, and also extend to routers we
37052       hadn't heard of before.
37054   o Features:
37055     - Tor nodes can now act as relays (with an advertised ORPort)
37056       without being manually verified by the dirserver operators.
37057       - Uploaded descriptors of unverified routers are now accepted
37058         by the dirservers, and included in the directory.
37059       - Verified routers are listed by nickname in the running-routers
37060         list; unverified routers are listed as "$<fingerprint>".
37061       - We now use hash-of-identity-key in most places rather than
37062         nickname or addr:port, for improved security/flexibility.
37063       - To avoid Sybil attacks, paths still use only verified servers.
37064         But now we have a chance to play around with hybrid approaches.
37065       - Nodes track bandwidth usage to estimate capacity (not used yet).
37066       - ClientOnly option for nodes that never want to become servers.
37067     - Directory caching.
37068       - "AuthoritativeDir 1" option for the official dirservers.
37069       - Now other nodes (clients and servers) will cache the latest
37070         directory they've pulled down.
37071       - They can enable their DirPort to serve it to others.
37072       - Clients will pull down a directory from any node with an open
37073         DirPort, and check the signature/timestamp correctly.
37074       - Authoritative dirservers now fetch directories from other
37075         authdirservers, to stay better synced.
37076       - Running-routers list tells who's down also, along with noting
37077         if they're verified (listed by nickname) or unverified (listed
37078         by hash-of-key).
37079       - Allow dirservers to serve running-router list separately.
37080         This isn't used yet.
37081     - ORs connect-on-demand to other ORs
37082       - If you get an extend cell to an OR you're not connected to,
37083         connect, handshake, and forward the create cell.
37084       - The authoritative dirservers stay connected to everybody,
37085         and everybody stays connected to 0.0.7 servers, but otherwise
37086         clients/servers expire unused connections after 5 minutes.
37087     - When servers get a sigint, they delay 30 seconds (refusing new
37088       connections) then exit. A second sigint causes immediate exit.
37089     - File and name management:
37090       - Look for .torrc if no CONFDIR "torrc" is found.
37091       - If no datadir is defined, then choose, make, and secure ~/.tor
37092         as datadir.
37093       - If torrc not found, exitpolicy reject *:*.
37094       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
37095       - If no nickname is defined, derive default from hostname.
37096       - Rename secret key files, e.g. identity.key -> secret_id_key,
37097         to discourage people from mailing their identity key to tor-ops.
37098     - Refuse to build a circuit before the directory has arrived --
37099       it won't work anyway, since you won't know the right onion keys
37100       to use.
37101     - Try other dirservers immediately if the one you try is down. This
37102       should tolerate down dirservers better now.
37103     - Parse tor version numbers so we can do an is-newer-than check
37104       rather than an is-in-the-list check.
37105     - New socks command 'resolve', to let us shim gethostbyname()
37106       locally.
37107       - A 'tor_resolve' script to access the socks resolve functionality.
37108       - A new socks-extensions.txt doc file to describe our
37109         interpretation and extensions to the socks protocols.
37110     - Add a ContactInfo option, which gets published in descriptor.
37111     - Publish OR uptime in descriptor (and thus in directory) too.
37112     - Write tor version at the top of each log file
37113     - New docs in the tarball:
37114       - tor-doc.html.
37115       - Document that you should proxy your SSL traffic too.
37118 Changes in version 0.0.7.2 - 2004-07-07
37119   o A better fix for the 0.0.0.0 problem, that will hopefully
37120     eliminate the remaining related assertion failures.
37123 Changes in version 0.0.7.1 - 2004-07-04
37124   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
37125     since internally we use 0.0.0.0 to signify "not yet resolved".
37128 Changes in version 0.0.7 - 2004-06-07
37129   o Updated the man page to reflect the new features.
37132 Changes in version 0.0.7rc2 - 2004-06-06
37133   o Changes from 0.0.7rc1:
37134     - Make it build on Win32 again.
37135   o Changes from 0.0.6.2:
37136     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
37137       settings too.
37140 Changes in version 0.0.7rc1 - 2004-06-02
37141   o Bugfixes:
37142     - On sighup, we were adding another log without removing the first
37143       one. So log messages would get duplicated n times for n sighups.
37144     - Several cases of using a connection after we'd freed it. The
37145       problem was that connections that are pending resolve are in both
37146       the pending_resolve tree, and also the circuit's resolving_streams
37147       list. When you want to remove one, you must remove it from both.
37148     - Fix a double-mark-for-close where an end cell arrived for a
37149       resolving stream, and then the resolve failed.
37150     - Check directory signatures based on name of signer, not on whom
37151       we got the directory from. This will let us cache directories more
37152       easily.
37153   o Features:
37154     - Crank up some of our constants to handle more users.
37157 Changes in version 0.0.7pre1 - 2004-06-02
37158   o Fixes for crashes and other obnoxious bugs:
37159     - Fix an epipe bug: sometimes when directory connections failed
37160       to connect, we would give them a chance to flush before closing
37161       them.
37162     - When we detached from a circuit because of resolvefailed, we
37163       would immediately try the same circuit twice more, and then
37164       give up on the resolve thinking we'd tried three different
37165       exit nodes.
37166     - Limit the number of intro circuits we'll attempt to build for a
37167       hidden service per 15-minute period.
37168     - Check recommended-software string *early*, before actually parsing
37169       the directory. Thus we can detect an obsolete version and exit,
37170       even if the new directory format doesn't parse.
37171   o Fixes for security bugs:
37172     - Remember which nodes are dirservers when you startup, and if a
37173       random OR enables his dirport, don't automatically assume he's
37174       a trusted dirserver.
37175   o Other bugfixes:
37176     - Directory connections were asking the wrong poll socket to
37177       start writing, and not asking themselves to start writing.
37178     - When we detached from a circuit because we sent a begin but
37179       didn't get a connected, we would use it again the first time;
37180       but after that we would correctly switch to a different one.
37181     - Stop warning when the first onion decrypt attempt fails; they
37182       will sometimes legitimately fail now that we rotate keys.
37183     - Override unaligned-access-ok check when $host_cpu is ia64 or
37184       arm. Apparently they allow it but the kernel whines.
37185     - Dirservers try to reconnect periodically too, in case connections
37186       have failed.
37187     - Fix some memory leaks in directory servers.
37188     - Allow backslash in Win32 filenames.
37189     - Made Tor build complain-free on FreeBSD, hopefully without
37190       breaking other BSD builds. We'll see.
37191   o Features:
37192     - Doxygen markup on all functions and global variables.
37193     - Make directory functions update routerlist, not replace it. So
37194       now directory disagreements are not so critical a problem.
37195     - Remove the upper limit on number of descriptors in a dirserver's
37196       directory (not that we were anywhere close).
37197     - Allow multiple logfiles at different severity ranges.
37198     - Allow *BindAddress to specify ":port" rather than setting *Port
37199       separately. Allow multiple instances of each BindAddress config
37200       option, so you can bind to multiple interfaces if you want.
37201     - Allow multiple exit policy lines, which are processed in order.
37202       Now we don't need that huge line with all the commas in it.
37203     - Enable accept/reject policies on SOCKS connections, so you can bind
37204       to 0.0.0.0 but still control who can use your OP.
37207 Changes in version 0.0.6.2 - 2004-05-16
37208   o Our integrity-checking digest was checking only the most recent cell,
37209     not the previous cells like we'd thought.
37210     Thanks to Stefan Mark for finding the flaw!
37213 Changes in version 0.0.6.1 - 2004-05-06
37214   o Fix two bugs in our AES counter-mode implementation (this affected
37215     onion-level stream encryption, but not TLS-level). It turns
37216     out we were doing something much more akin to a 16-character
37217     polyalphabetic cipher. Oops.
37218     Thanks to Stefan Mark for finding the flaw!
37219   o Retire moria3 as a directory server, and add tor26 as a directory
37220     server.
37223 Changes in version 0.0.6 - 2004-05-02
37224   [version bump only]
37227 Changes in version 0.0.6rc4 - 2004-05-01
37228   o Update the built-in dirservers list to use the new directory format
37229   o Fix a rare seg fault: if a node offering a hidden service attempts
37230     to build a circuit to Alice's rendezvous point and fails before it
37231     reaches the last hop, it retries with a different circuit, but
37232     then dies.
37233   o Handle windows socket errors correctly.
37236 Changes in version 0.0.6rc3 - 2004-04-28
37237   o Don't expire non-general excess circuits (if we had enough
37238     circuits open, we were expiring rendezvous circuits -- even
37239     when they had a stream attached. oops.)
37240   o Fetch randomness from /dev/urandom better (not via fopen/fread)
37241   o Better debugging for tls errors
37242   o Some versions of openssl have an SSL_pending function that erroneously
37243     returns bytes when there is a non-application record pending.
37244   o Set Content-Type on the directory and hidserv descriptor.
37245   o Remove IVs from cipher code, since AES-ctr has none.
37246   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
37247     o We were using an array of length zero in a few places.
37248     o win32's gethostbyname can't resolve an IP to an IP.
37249     o win32's close can't close a socket.
37252 Changes in version 0.0.6rc2 - 2004-04-26
37253   o Fix a bug where we were closing tls connections intermittently.
37254     It turns out openssl keeps its errors around -- so if an error
37255     happens, and you don't ask about it, and then another openssl
37256     operation happens and succeeds, and you ask if there was an error,
37257     it tells you about the first error. Fun fun.
37258   o Fix a bug that's been lurking since 27 may 03 (!)
37259     When passing back a destroy cell, we would use the wrong circ id.
37260     'Mostly harmless', but still worth fixing.
37261   o Since we don't support truncateds much, don't bother sending them;
37262     just close the circ.
37263   o check for <machine/limits.h> so we build on NetBSD again (I hope).
37264   o don't crash if a conn that sent a begin has suddenly lost its circuit
37265     (this was quite rare).
37268 Changes in version 0.0.6rc1 - 2004-04-25
37269   o We now rotate link (tls context) keys and onion keys.
37270   o CREATE cells now include oaep padding, so you can tell
37271     if you decrypted them correctly.
37272   o Add bandwidthburst to server descriptor.
37273   o Directories now say which dirserver signed them.
37274   o Use a tor_assert macro that logs failed assertions too.
37277 Changes in version 0.0.6pre5 - 2004-04-18
37278   o changes from 0.0.6pre4:
37279     - make tor build on broken freebsd 5.2 installs
37280     - fix a failed assert when you try an intro point, get a nack, and try
37281       a second one and it works.
37282     - when alice uses a port that the hidden service doesn't accept,
37283       it now sends back an end cell (denied by exit policy). otherwise
37284       alice would just have to wait to time out.
37285     - fix another rare bug: when we had tried all the intro
37286       points for a hidden service, we fetched the descriptor
37287       again, but we left our introcirc thinking it had already
37288       sent an intro, so it kept waiting for a response...
37289     - bugfix: when you sleep your hidden-service laptop, as soon
37290       as it wakes up it tries to upload a service descriptor, but
37291       socketpair fails for some reason (localhost not up yet?).
37292       now we simply give up on that upload, and we'll try again later.
37293       i'd still like to find the bug though.
37294     - if an intro circ waiting for an ack dies before getting one, then
37295       count it as a nack
37296     - we were reusing stale service descriptors and refetching usable
37297       ones. oops.
37300 Changes in version 0.0.6pre4 - 2004-04-14
37301   o changes from 0.0.6pre3:
37302     - when bob fails to connect to the rendezvous point, and his
37303       circ didn't fail because of the rendezvous point itself, then
37304       he retries a couple of times
37305     - we expire introduction and rendezvous circs more thoroughly
37306       (sometimes they were hanging around forever)
37307     - we expire unattached rendezvous streams that have been around
37308       too long (they were sticking around forever).
37309     - fix a measly fencepost error that was crashing everybody with
37310       a strict glibc.
37313 Changes in version 0.0.6pre3 - 2004-04-14
37314   o changes from 0.0.6pre2:
37315     - make hup work again
37316     - fix some memory leaks for dirservers
37317     - allow more skew in rendezvous descriptor timestamps, to help
37318       handle people like blanu who don't know what time it is
37319     - normal circs are 3 hops, but some rend/intro circs are 4, if
37320       the initiator doesn't get to choose the last hop
37321     - send acks for introductions, so alice can know whether to try
37322       again
37323     - bob publishes intro points more correctly
37324   o changes from 0.0.5:
37325     - fix an assert trigger that's been plaguing us since the days
37326       of 0.0.2prexx (thanks weasel!)
37327     - retry stream correctly when we fail to connect because of
37328       exit-policy-reject (should try another) or can't-resolve-address
37329       (also should try another, because dns on random internet servers
37330       is flaky).
37331     - when we hup a dirserver and we've *removed* a server from the
37332       approved-routers list, now we remove that server from the
37333       in-memory directories too
37336 Changes in version 0.0.6pre2 - 2004-04-08
37337   o We fixed our base32 implementation. Now it works on all architectures.
37340 Changes in version 0.0.6pre1 - 2004-04-08
37341   o Features:
37342     - Hidden services and rendezvous points are implemented. Go to
37343       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
37344       hidden services. (This only works via a socks4a proxy such as
37345       Privoxy, and currently it's quite slow.)
37348 Changes in version 0.0.5 - 2004-03-30
37349   [version bump only]
37352 Changes in version 0.0.5rc3 - 2004-03-29
37353   o Install torrc as torrc.sample -- we no longer clobber your
37354     torrc. (Woo!)
37355   o Re-enable recommendedversion checking (we broke it in rc2, oops)
37356   o Add in a 'notice' log level for things the operator should hear
37357     but that aren't warnings
37360 Changes in version 0.0.5rc2 - 2004-03-29
37361   o Hold socks connection open until reply is flushed (if possible)
37362   o Make exit nodes resolve IPs to IPs immediately, rather than asking
37363     the dns farm to do it.
37364   o Fix c99 aliasing warnings in rephist.c
37365   o Don't include server descriptors that are older than 24 hours in the
37366     directory.
37367   o Give socks 'reject' replies their whole 15s to attempt to flush,
37368     rather than seeing the 60s timeout and assuming the flush had failed.
37369   o Clean automake droppings from the cvs repository
37372 Changes in version 0.0.5rc1 - 2004-03-28
37373   o Fix mangled-state bug in directory fetching (was causing sigpipes).
37374   o Only build circuits after we've fetched the directory: clients were
37375     using only the directory servers before they'd fetched a directory.
37376     This also means longer startup time; so it goes.
37377   o Fix an assert trigger where an OP would fail to handshake, and we'd
37378     expect it to have a nickname.
37379   o Work around a tsocks bug: do a socks reject when AP connection dies
37380     early, else tsocks goes into an infinite loop.
37383 Changes in version 0.0.4 - 2004-03-26
37384   o When connecting to a dirserver or OR and the network is down,
37385     we would crash.
37388 Changes in version 0.0.3 - 2004-03-26
37389   o Warn and fail if server chose a nickname with illegal characters
37390   o Port to Solaris and Sparc:
37391     - include missing header fcntl.h
37392     - have autoconf find -lsocket -lnsl automatically
37393     - deal with hardware word alignment
37394     - make uname() work (solaris has a different return convention)
37395     - switch from using signal() to sigaction()
37396   o Preliminary work on reputation system:
37397     - Keep statistics on success/fail of connect attempts; they're published
37398       by kill -USR1 currently.
37399     - Add a RunTesting option to try to learn link state by creating test
37400       circuits, even when SocksPort is off.
37401     - Remove unused open circuits when there are too many.
37404 Changes in version 0.0.2 - 2004-03-19
37405     - Include strlcpy and strlcat for safer string ops
37406     - define INADDR_NONE so we compile (but still not run) on solaris
37409 Changes in version 0.0.2pre27 - 2004-03-14
37410   o Bugfixes:
37411     - Allow internal tor networks (we were rejecting internal IPs,
37412       now we allow them if they're set explicitly).
37413     - And fix a few endian issues.
37416 Changes in version 0.0.2pre26 - 2004-03-14
37417   o New features:
37418     - If a stream times out after 15s without a connected cell, don't
37419       try that circuit again: try a new one.
37420     - Retry streams at most 4 times. Then give up.
37421     - When a dirserver gets a descriptor from an unknown router, it
37422       logs its fingerprint (so the dirserver operator can choose to
37423       accept it even without mail from the server operator).
37424     - Inform unapproved servers when we reject their descriptors.
37425     - Make tor build on Windows again. It works as a client, who knows
37426       about as a server.
37427     - Clearer instructions in the torrc for how to set up a server.
37428     - Be more efficient about reading fd's when our global token bucket
37429       (used for rate limiting) becomes empty.
37430   o Bugfixes:
37431     - Stop asserting that computers always go forward in time. It's
37432       simply not true.
37433     - When we sent a cell (e.g. destroy) and then marked an OR connection
37434       expired, we might close it before finishing a flush if the other
37435       side isn't reading right then.
37436     - Don't allow dirservers to start if they haven't defined
37437       RecommendedVersions
37438     - We were caching transient dns failures. Oops.
37439     - Prevent servers from publishing an internal IP as their address.
37440     - Address a strcat vulnerability in circuit.c
37443 Changes in version 0.0.2pre25 - 2004-03-04
37444   o New features:
37445     - Put the OR's IP in its router descriptor, not its fqdn. That way
37446       we'll stop being stalled by gethostbyname for nodes with flaky dns,
37447       e.g. poblano.
37448   o Bugfixes:
37449     - If the user typed in an address that didn't resolve, the server
37450       crashed.
37453 Changes in version 0.0.2pre24 - 2004-03-03
37454   o Bugfixes:
37455     - Fix an assertion failure in dns.c, where we were trying to dequeue
37456       a pending dns resolve even if it wasn't pending
37457     - Fix a spurious socks5 warning about still trying to write after the
37458       connection is finished.
37459     - Hold certain marked_for_close connections open until they're finished
37460       flushing, rather than losing bytes by closing them too early.
37461     - Correctly report the reason for ending a stream
37462     - Remove some duplicate calls to connection_mark_for_close
37463     - Put switch_id and start_daemon earlier in the boot sequence, so it
37464       will actually try to chdir() to options.DataDirectory
37465     - Make 'make test' exit(1) if a test fails; fix some unit tests
37466     - Make tor fail when you use a config option it doesn't know about,
37467       rather than warn and continue.
37468     - Make --version work
37469     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
37472 Changes in version 0.0.2pre23 - 2004-02-29
37473   o New features:
37474     - Print a statement when the first circ is finished, so the user
37475       knows it's working.
37476     - If a relay cell is unrecognized at the end of the circuit,
37477       send back a destroy. (So attacks to mutate cells are more
37478       clearly thwarted.)
37479     - New config option 'excludenodes' to avoid certain nodes for circuits.
37480     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
37481       so you can collect coredumps there.
37482  o Bugfixes:
37483     - Fix a bug in tls flushing where sometimes data got wedged and
37484       didn't flush until more data got sent. Hopefully this bug was
37485       a big factor in the random delays we were seeing.
37486     - Make 'connected' cells include the resolved IP, so the client
37487       dns cache actually gets populated.
37488     - Disallow changing from ORPort=0 to ORPort>0 on hup.
37489     - When we time-out on a stream and detach from the circuit, send an
37490       end cell down it first.
37491     - Only warn about an unknown router (in exitnodes, entrynodes,
37492       excludenodes) after we've fetched a directory.
37495 Changes in version 0.0.2pre22 - 2004-02-26
37496   o New features:
37497     - Servers publish less revealing uname information in descriptors.
37498     - More memory tracking and assertions, to crash more usefully when
37499       errors happen.
37500     - If the default torrc isn't there, just use some default defaults.
37501       Plus provide an internal dirservers file if they don't have one.
37502     - When the user tries to use Tor as an http proxy, give them an http
37503       501 failure explaining that we're a socks proxy.
37504     - Dump a new router.desc on hup, to help confused people who change
37505       their exit policies and then wonder why router.desc doesn't reflect
37506       it.
37507     - Clean up the generic tor.sh init script that we ship with.
37508   o Bugfixes:
37509     - If the exit stream is pending on the resolve, and a destroy arrives,
37510       then the stream wasn't getting removed from the pending list. I
37511       think this was the one causing recent server crashes.
37512     - Use a more robust poll on OSX 10.3, since their poll is flaky.
37513     - When it couldn't resolve any dirservers, it was useless from then on.
37514       Now it reloads the RouterFile (or default dirservers) if it has no
37515       dirservers.
37516     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
37517       many users don't even *have* a /usr/local/sbin/.
37520 Changes in version 0.0.2pre21 - 2004-02-18
37521   o New features:
37522     - There's a ChangeLog file that actually reflects the changelog.
37523     - There's a 'torify' wrapper script, with an accompanying
37524       tor-tsocks.conf, that simplifies the process of using tsocks for
37525       tor. It even has a man page.
37526     - The tor binary gets installed to sbin rather than bin now.
37527     - Retry streams where the connected cell hasn't arrived in 15 seconds
37528     - Clean up exit policy handling -- get the default out of the torrc,
37529       so we can update it without forcing each server operator to fix
37530       his/her torrc.
37531     - Allow imaps and pop3s in default exit policy
37532   o Bugfixes:
37533     - Prevent picking middleman nodes as the last node in the circuit
37536 Changes in version 0.0.2pre20 - 2004-01-30
37537   o New features:
37538     - We now have a deb package, and it's in debian unstable. Go to
37539       it, apt-getters. :)
37540     - I've split the TotalBandwidth option into BandwidthRate (how many
37541       bytes per second you want to allow, long-term) and
37542       BandwidthBurst (how many bytes you will allow at once before the cap
37543       kicks in). This better token bucket approach lets you, say, set
37544       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
37545       performance while not exceeding your monthly bandwidth quota.
37546     - Push out a tls record's worth of data once you've got it, rather
37547       than waiting until you've read everything waiting to be read. This
37548       may improve performance by pipelining better. We'll see.
37549     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
37550       from failed circuits (if they haven't been connected yet) and attach
37551       to new ones.
37552     - Expire old streams that haven't managed to connect. Some day we'll
37553       have them reattach to new circuits instead.
37555   o Bugfixes:
37556     - Fix several memory leaks that were causing servers to become bloated
37557       after a while.
37558     - Fix a few very rare assert triggers. A few more remain.
37559     - Setuid to User _before_ complaining about running as root.
37562 Changes in version 0.0.2pre19 - 2004-01-07
37563   o Bugfixes:
37564     - Fix deadlock condition in dns farm. We were telling a child to die by
37565       closing the parent's file descriptor to him. But newer children were
37566       inheriting the open file descriptor from the parent, and since they
37567       weren't closing it, the socket never closed, so the child never read
37568       eof, so he never knew to exit. Similarly, dns workers were holding
37569       open other sockets, leading to all sorts of chaos.
37570     - New cleaner daemon() code for forking and backgrounding.
37571     - If you log to a file, it now prints an entry at the top of the
37572       logfile so you know it's working.
37573     - The onionskin challenge length was 30 bytes longer than necessary.
37574     - Started to patch up the spec so it's not quite so out of date.
37577 Changes in version 0.0.2pre18 - 2004-01-02
37578   o Bugfixes:
37579     - Fix endian issues with the 'integrity' field in the relay header.
37580     - Fix a potential bug where connections in state
37581       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
37584 Changes in version 0.0.2pre17 - 2003-12-30
37585   o Bugfixes:
37586     - Made --debuglogfile (or any second log file, actually) work.
37587     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
37588       adversary could force us into an infinite loop.
37590   o Features:
37591     - Each onionskin handshake now includes a hash of the computed key,
37592       to prove the server's identity and help perfect forward secrecy.
37593     - Changed cell size from 256 to 512 bytes (working toward compatibility
37594       with MorphMix).
37595     - Changed cell length to 2 bytes, and moved it to the relay header.
37596     - Implemented end-to-end integrity checking for the payloads of
37597       relay cells.
37598     - Separated streamid from 'recognized' (otherwise circuits will get
37599       messed up when we try to have streams exit from the middle). We
37600       use the integrity-checking to confirm that a cell is addressed to
37601       this hop.
37602     - Randomize the initial circid and streamid values, so an adversary who
37603       breaks into a node can't learn how many circuits or streams have
37604       been made so far.
37607 Changes in version 0.0.2pre16 - 2003-12-14
37608   o Bugfixes:
37609     - Fixed a bug that made HUP trigger an assert
37610     - Fixed a bug where a circuit that immediately failed wasn't being
37611       counted as a failed circuit in counting retries.
37613   o Features:
37614     - Now we close the circuit when we get a truncated cell: otherwise we're
37615       open to an anonymity attack where a bad node in the path truncates
37616       the circuit and then we open streams at him.
37617     - Add port ranges to exit policies
37618     - Add a conservative default exit policy
37619     - Warn if you're running tor as root
37620     - on HUP, retry OR connections and close/rebind listeners
37621     - options.EntryNodes: try these nodes first when picking the first node
37622     - options.ExitNodes: if your best choices happen to include any of
37623       your preferred exit nodes, you choose among just those preferred
37624       exit nodes.
37625     - options.ExcludedNodes: nodes that are never picked in path building
37628 Changes in version 0.0.2pre15 - 2003-12-03
37629   o Robustness and bugfixes:
37630     - Sometimes clients would cache incorrect DNS resolves, which would
37631       really screw things up.
37632     - An OP that goes offline would slowly leak all its sockets and stop
37633       working.
37634     - A wide variety of bugfixes in exit node selection, exit policy
37635       handling, and processing pending streams when a new circuit is
37636       established.
37637     - Pick nodes for a path only from those the directory says are up
37638     - Choose randomly from all running dirservers, not always the first one
37639     - Increase allowed http header size for directory fetch.
37640     - Stop writing to stderr (if we're daemonized it will be closed).
37641     - Enable -g always, so cores will be more useful to me.
37642     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
37644   o Documentation:
37645     - Wrote a man page. It lists commonly used options.
37647   o Configuration:
37648     - Change default loglevel to warn.
37649     - Make PidFile default to null rather than littering in your CWD.
37650     - OnionRouter config option is now obsolete. Instead it just checks
37651       ORPort>0.
37652     - Moved to a single unified torrc file for both clients and servers.
37655 Changes in version 0.0.2pre14 - 2003-11-29
37656   o Robustness and bugfixes:
37657     - Force the admin to make the DataDirectory himself
37658       - to get ownership/permissions right
37659       - so clients no longer make a DataDirectory and then never use it
37660     - fix bug where a client who was offline for 45 minutes would never
37661       pull down a directory again
37662     - fix (or at least hide really well) the dns assert bug that was
37663       causing server crashes
37664     - warnings and improved robustness wrt clockskew for certs
37665     - use the native daemon(3) to daemonize, when available
37666     - exit if bind() fails
37667     - exit if neither socksport nor orport is defined
37668     - include our own tor_timegm (Win32 doesn't have its own)
37669     - bugfix for win32 with lots of connections
37670     - fix minor bias in PRNG
37671     - make dirserver more robust to corrupt cached directory
37673   o Documentation:
37674     - Wrote the design document (woo)
37676   o Circuit building and exit policies:
37677     - Circuits no longer try to use nodes that the directory has told them
37678       are down.
37679     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
37680       bitcounts (18.0.0.0/8).
37681     - Make AP connections standby for a circuit if no suitable circuit
37682       exists, rather than failing
37683     - Circuits choose exit node based on addr/port, exit policies, and
37684       which AP connections are standing by
37685     - Bump min pathlen from 2 to 3
37686     - Relay end cells have a payload to describe why the stream ended.
37687     - If the stream failed because of exit policy, try again with a new
37688       circuit.
37689     - Clients have a dns cache to remember resolved addresses.
37690     - Notice more quickly when we have no working circuits
37692   o Configuration:
37693     - APPort is now called SocksPort
37694     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
37695       where to bind
37696     - RecommendedVersions is now a config variable rather than
37697       hardcoded (for dirservers)
37698     - Reloads config on HUP
37699     - Usage info on -h or --help
37700     - If you set User and Group config vars, it'll setu/gid to them.
37703 Changes in version 0.0.2pre13 - 2003-10-19
37704   o General stability:
37705     - SSL_write no longer fails when it returns WANTWRITE and the number
37706       of bytes in the buf has changed by the next SSL_write call.
37707     - Fix segfault fetching directory when network is down
37708     - Fix a variety of minor memory leaks
37709     - Dirservers reload the fingerprints file on HUP, so I don't have
37710       to take down the network when I approve a new router
37711     - Default server config file has explicit Address line to specify fqdn
37713   o Buffers:
37714     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
37715     - Make listener connections not ever alloc bufs
37717   o Autoconf improvements:
37718     - don't clobber an external CFLAGS in ./configure
37719     - Make install now works
37720     - create var/lib/tor on make install
37721     - autocreate a tor.sh initscript to help distribs
37722     - autocreate the torrc and sample-server-torrc with correct paths
37724   o Log files and Daemonizing now work:
37725     - If --DebugLogFile is specified, log to it at -l debug
37726     - If --LogFile is specified, use it instead of commandline
37727     - If --RunAsDaemon is set, tor forks and backgrounds on startup