Extraneous . in the changelog
[tor.git] / ReleaseNotes
blob96c22353514dd8d48e64347a54c2833734c56b46
1 This document summarizes new features and bugfixes in each stable release
2 of Tor. If you want to see more detailed descriptions of the changes in
3 each development snapshot, see the ChangeLog file.
6 Changes in version 0.2.8.12 - 2016-12-19
7   Tor 0.2.8.12 backports a fix for a medium-severity issue (bug 21018
8   below) where Tor clients could crash when attempting to visit a
9   hostile hidden service. Clients are recommended to upgrade as packages
10   become available for their systems.
12   It also includes an updated list of fallback directories, backported
13   from 0.2.9.
15   Now that the Tor 0.2.9 series is stable, only major bugfixes will be
16   backported to 0.2.8 in the future.
18   o Major bugfixes (parsing, security, backported from 0.2.9.8):
19     - Fix a bug in parsing that could cause clients to read a single
20       byte past the end of an allocated region. This bug could be used
21       to cause hardened clients (built with --enable-expensive-hardening)
22       to crash if they tried to visit a hostile hidden service. Non-
23       hardened clients are only affected depending on the details of
24       their platform's memory allocator. Fixes bug 21018; bugfix on
25       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
26       2016-12-002 and as CVE-2016-1254.
28   o Minor features (fallback directory list, backported from 0.2.9.8):
29     - Replace the 81 remaining fallbacks of the 100 originally
30       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
31       fallbacks (123 new, 54 existing, 27 removed) generated in December
32       2016. Resolves ticket 20170.
34   o Minor features (geoip, backported from 0.2.9.7-rc):
35     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
36       Country database.
39 Changes in version 0.2.9.8 - 2016-12-19
40   Tor 0.2.9.8 is the first stable release of the Tor 0.2.9 series.
42   The Tor 0.2.9 series makes mandatory a number of security features
43   that were formerly optional. It includes support for a new shared-
44   randomness protocol that will form the basis for next generation
45   hidden services, includes a single-hop hidden service mode for
46   optimizing .onion services that don't actually want to be hidden,
47   tries harder not to overload the directory authorities with excessive
48   downloads, and supports a better protocol versioning scheme for
49   improved compatibility with other implementations of the Tor protocol.
51   And of course, there are numerous other bugfixes and improvements.
53   This release also includes a fix for a medium-severity issue (bug
54   21018 below) where Tor clients could crash when attempting to visit a
55   hostile hidden service. Clients are recommended to upgrade as packages
56   become available for their systems.
58   Below are listed the changes since Tor 0.2.8.11.  For a list of
59   changes since 0.2.9.7-rc, see the ChangeLog file.
61   o New system requirements:
62     - When building with OpenSSL, Tor now requires version 1.0.1 or
63       later. OpenSSL 1.0.0 and earlier are no longer supported by the
64       OpenSSL team, and should not be used. Closes ticket 20303.
65     - Tor now requires Libevent version 2.0.10-stable or later. Older
66       versions of Libevent have less efficient backends for several
67       platforms, and lack the DNS code that we use for our server-side
68       DNS support. This implements ticket 19554.
69     - Tor now requires zlib version 1.2 or later, for security,
70       efficiency, and (eventually) gzip support. (Back when we started,
71       zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was
72       released in 2003. We recommend the latest version.)
74   o Deprecated features:
75     - A number of DNS-cache-related sub-options for client ports are now
76       deprecated for security reasons, and may be removed in a future
77       version of Tor. (We believe that client-side DNS caching is a bad
78       idea for anonymity, and you should not turn it on.) The options
79       are: CacheDNS, CacheIPv4DNS, CacheIPv6DNS, UseDNSCache,
80       UseIPv4Cache, and UseIPv6Cache.
81     - A number of options are deprecated for security reasons, and may
82       be removed in a future version of Tor. The options are:
83       AllowDotExit, AllowInvalidNodes, AllowSingleHopCircuits,
84       AllowSingleHopExits, ClientDNSRejectInternalAddresses,
85       CloseHSClientCircuitsImmediatelyOnTimeout,
86       CloseHSServiceRendCircuitsImmediatelyOnTimeout,
87       ExcludeSingleHopRelays, FastFirstHopPK, TLSECGroup,
88       UseNTorHandshake, and WarnUnsafeSocks.
89     - The *ListenAddress options are now deprecated as unnecessary: the
90       corresponding *Port options should be used instead. These options
91       may someday be removed. The affected options are:
92       ControlListenAddress, DNSListenAddress, DirListenAddress,
93       NATDListenAddress, ORListenAddress, SocksListenAddress,
94       and TransListenAddress.
96   o Major bugfixes (parsing, security, new since 0.2.9.7-rc):
97     - Fix a bug in parsing that could cause clients to read a single
98       byte past the end of an allocated region. This bug could be used
99       to cause hardened clients (built with --enable-expensive-hardening)
100       to crash if they tried to visit a hostile hidden service. Non-
101       hardened clients are only affected depending on the details of
102       their platform's memory allocator. Fixes bug 21018; bugfix on
103       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
104       2016-12-002 and as CVE-2016-1254.
106   o Major features (build, hardening):
107     - Tor now builds with -ftrapv by default on compilers that support
108       it. This option detects signed integer overflow (which C forbids),
109       and turns it into a hard-failure. We do not apply this option to
110       code that needs to run in constant time to avoid side-channels;
111       instead, we use -fwrapv in that code. Closes ticket 17983.
112     - When --enable-expensive-hardening is selected, stop applying the
113       clang/gcc sanitizers to code that needs to run in constant time.
114       Although we are aware of no introduced side-channels, we are not
115       able to prove that there are none. Related to ticket 17983.
117   o Major features (circuit building, security):
118     - Authorities, relays, and clients now require ntor keys in all
119       descriptors, for all hops (except for rare hidden service protocol
120       cases), for all circuits, and for all other roles. Part of
121       ticket 19163.
122     - Authorities, relays, and clients only use ntor, except for
123       rare cases in the hidden service protocol. Part of ticket 19163.
125   o Major features (compilation):
126     - Our big list of extra GCC warnings is now enabled by default when
127       building with GCC (or with anything like Clang that claims to be
128       GCC-compatible). To make all warnings into fatal compilation
129       errors, pass --enable-fatal-warnings to configure. Closes
130       ticket 19044.
131     - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically
132       turn on C and POSIX extensions. (Previously, we attempted to do
133       this on an ad hoc basis.) Closes ticket 19139.
135   o Major features (directory authorities, hidden services):
136     - Directory authorities can now perform the shared randomness
137       protocol specified by proposal 250. Using this protocol, directory
138       authorities generate a global fresh random value every day. In the
139       future, this value will be used by hidden services to select
140       HSDirs. This release implements the directory authority feature;
141       the hidden service side will be implemented in the future as part
142       of proposal 224. Resolves ticket 16943; implements proposal 250.
144   o Major features (downloading, random exponential backoff):
145     - When we fail to download an object from a directory service, wait
146       for an (exponentially increasing) randomized amount of time before
147       retrying, rather than a fixed interval as we did before. This
148       prevents a group of Tor instances from becoming too synchronized,
149       or a single Tor instance from becoming too predictable, in its
150       download schedule. Closes ticket 15942.
152   o Major features (resource management):
153     - Tor can now notice it is about to run out of sockets, and
154       preemptively close connections of lower priority. (This feature is
155       off by default for now, since the current prioritizing method is
156       yet not mature enough. You can enable it by setting
157       "DisableOOSCheck 0", but watch out: it might close some sockets
158       you would rather have it keep.) Closes ticket 18640.
160   o Major features (single-hop "hidden" services):
161     - Add experimental HiddenServiceSingleHopMode and
162       HiddenServiceNonAnonymousMode options. When both are set to 1,
163       every hidden service on that Tor instance becomes a non-anonymous
164       Single Onion Service. Single Onions make one-hop (direct)
165       connections to their introduction and rendezvous points. One-hop
166       circuits make Single Onion servers easily locatable, but clients
167       remain location-anonymous. This is compatible with the existing
168       hidden service implementation, and works on the current Tor
169       network without any changes to older relays or clients. Implements
170       proposal 260, completes ticket 17178. Patch by teor and asn.
172   o Major features (subprotocol versions):
173     - Tor directory authorities now vote on a set of recommended
174       "subprotocol versions", and on a set of required subprotocol
175       versions. Clients and relays that lack support for a _required_
176       subprotocol version will not start; those that lack support for a
177       _recommended_ subprotocol version will warn the user to upgrade.
178       This change allows compatible implementations of the Tor protocol(s)
179       to exist without pretending to be 100% bug-compatible with
180       particular releases of Tor itself. Closes ticket 19958; implements
181       part of proposal 264.
183   o Major bugfixes (circuit building):
184     - Hidden service client-to-intro-point and service-to-rendezvous-
185       point circuits use the TAP key supplied by the protocol, to avoid
186       epistemic attacks. Fixes bug 19163; bugfix on 0.2.4.18-rc.
188   o Major bugfixes (download scheduling):
189     - Avoid resetting download status for consensuses hourly, since we
190       already have another, smarter retry mechanism. Fixes bug 8625;
191       bugfix on 0.2.0.9-alpha.
192     - If a consensus expires while we are waiting for certificates to
193       download, stop waiting for certificates.
194     - If we stop waiting for certificates less than a minute after we
195       started downloading them, do not consider the certificate download
196       failure a separate failure. Fixes bug 20533; bugfix
197       on 0.2.0.9-alpha.
198     - When using exponential backoff in test networks, use a lower
199       exponent, so the delays do not vary as much. This helps test
200       networks bootstrap consistently. Fixes bug 20597; bugfix on 20499.
202   o Major bugfixes (exit policies):
203     - Avoid disclosing exit outbound bind addresses, configured port
204       bind addresses, and local interface addresses in relay descriptors
205       by default under ExitPolicyRejectPrivate. Instead, only reject
206       these (otherwise unlisted) addresses if
207       ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on
208       0.2.7.2-alpha. Patch by teor.
210   o Major bugfixes (hidden services):
211     - Allow Tor clients with appropriate controllers to work with
212       FetchHidServDescriptors set to 0. Previously, this option also
213       disabled descriptor cache lookup, thus breaking hidden services
214       entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim".
215     - Clients now require hidden services to include the TAP keys for
216       their intro points in the hidden service descriptor. This prevents
217       an inadvertent upgrade to ntor, which a malicious hidden service
218       could use to distinguish clients by consensus version. Fixes bug
219       20012; bugfix on 0.2.4.8-alpha. Patch by teor.
221   o Major bugfixes (relay, resolver, logging):
222     - For relays that don't know their own address, avoid attempting a
223       local hostname resolve for each descriptor we download. This
224       will cut down on the number of "Success: chose address 'x.x.x.x'"
225       log lines, and also avoid confusing clock jumps if the resolver
226       is slow. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
228   o Minor features (port flags):
229     - Add new flags to the *Port options to give finer control over which
230       requests are allowed. The flags are NoDNSRequest, NoOnionTraffic,
231       and the synthetic flag OnionTrafficOnly, which is equivalent to
232       NoDNSRequest, NoIPv4Traffic, and NoIPv6Traffic. Closes enhancement
233       18693; patch by "teor".
235   o Minor features (build, hardening):
236     - Detect and work around a libclang_rt problem that would prevent
237       clang from finding __mulodi4() on some 32-bit platforms, and thus
238       keep -ftrapv from linking on those systems. Closes ticket 19079.
239     - When building on a system without runtime support for the runtime
240       hardening options, try to log a useful warning at configuration
241       time, rather than an incomprehensible warning at link time. If
242       expensive hardening was requested, this warning becomes an error.
243       Closes ticket 18895.
245   o Minor features (client, directory):
246     - Since authorities now omit all routers that lack the Running and
247       Valid flags, we assume that any relay listed in the consensus must
248       have those flags. Closes ticket 20001; implements part of
249       proposal 272.
251   o Minor features (code safety):
252     - In our integer-parsing functions, ensure that the maximum value we
253       allow is no smaller than the minimum value. Closes ticket 19063;
254       patch from "U+039b".
256   o Minor features (compilation, portability):
257     - Compile correctly on MacOS 10.12 (aka "Sierra"). Closes
258       ticket 20241.
260   o Minor features (config):
261     - Warn users when descriptor and port addresses are inconsistent.
262       Mitigates bug 13953; patch by teor.
264   o Minor features (controller):
265     - Allow controllers to configure basic client authorization on
266       hidden services when they create them with the ADD_ONION controller
267       command. Implements ticket 15588. Patch by "special".
268     - Fire a STATUS_SERVER controller event whenever the hibernation
269       status changes between "awake"/"soft"/"hard". Closes ticket 18685.
270     - Implement new GETINFO queries for all downloads that use
271       download_status_t to schedule retries. This allows controllers to
272       examine the schedule for pending downloads. Closes ticket 19323.
274   o Minor features (development tools, etags):
275     - Teach the "make tags" Makefile target how to correctly find
276       "MOCK_IMPL" function definitions. Patch from nherring; closes
277       ticket 16869.
279   o Minor features (directory authority):
280     - After voting, if the authorities decide that a relay is not
281       "Valid", they no longer include it in the consensus at all. Closes
282       ticket 20002; implements part of proposal 272.
283     - Directory authorities now only give the Guard flag to a relay if
284       they are also giving it the Stable flag. This change allows us to
285       simplify path selection for clients. It should have minimal effect
286       in practice, since >99% of Guards already have the Stable flag.
287       Implements ticket 18624.
288     - Directory authorities now write their v3-status-votes file out to
289       disk earlier in the consensus process, so we have a record of the
290       votes even if we abort the consensus process. Resolves
291       ticket 19036.
293   o Minor features (fallback directory list, new since 0.2.9.7-rc):
294     - Replace the 81 remaining fallbacks of the 100 originally
295       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
296       fallbacks (123 new, 54 existing, 27 removed) generated in December
297       2016. Resolves ticket 20170.
299   o Minor features (hidden service):
300     - Stop being so strict about the payload length of "rendezvous1"
301       cells. We used to be locked in to the "TAP" handshake length, and
302       now we can handle better handshakes like "ntor". Resolves
303       ticket 18998.
305   o Minor features (infrastructure, time):
306     - Tor now includes an improved timer backend, so that we can
307       efficiently support tens or hundreds of thousands of concurrent
308       timers, as will be needed for some of our planned anti-traffic-
309       analysis work. This code is based on William Ahern's "timeout.c"
310       project, which implements a "tickless hierarchical timing wheel".
311       Closes ticket 18365.
312     - Tor now uses the operating system's monotonic timers (where
313       available) for internal fine-grained timing. Previously we would
314       look at the system clock, and then attempt to compensate for the
315       clock running backwards. Closes ticket 18908.
317   o Minor features (logging):
318     - Add a set of macros to check nonfatal assertions, for internal
319       use. Migrating more of our checks to these should help us avoid
320       needless crash bugs. Closes ticket 18613.
321     - Provide a more useful warning message when configured with an
322       invalid Nickname. Closes ticket 18300; patch from "icanhasaccount".
323     - When dumping unparseable router descriptors, optionally store them
324       in separate files, named by digest, up to a configurable size
325       limit. You can change the size limit by setting the
326       MaxUnparseableDescSizeToLog option, and disable this feature by
327       setting that option to 0. Closes ticket 18322.
329   o Minor features (performance):
330     - Change the "optimistic data" extension from "off by default" to
331       "on by default". The default was ordinarily overridden by a
332       consensus option, but when clients were bootstrapping for the
333       first time, they would not have a consensus to get the option
334       from. Changing this default saves a round-trip during startup.
335       Closes ticket 18815.
337   o Minor features (relay, usability):
338     - When the directory authorities refuse a bad relay's descriptor,
339       encourage the relay operator to contact us. Many relay operators
340       won't notice this line in their logs, but it's a win if even a few
341       learn why we don't like what their relay was doing. Resolves
342       ticket 18760.
344   o Minor features (security, TLS):
345     - Servers no longer support clients that lack AES ciphersuites.
346       (3DES is no longer considered an acceptable cipher.) We believe
347       that no such Tor clients currently exist, since Tor has required
348       OpenSSL 0.9.7 or later since 2009. Closes ticket 19998.
350   o Minor features (testing):
351     - Disable memory protections on OpenBSD when performing our unit
352       tests for memwipe(). The test deliberately invokes undefined
353       behavior, and the OpenBSD protections interfere with this. Patch
354       from "rubiate". Closes ticket 20066.
355     - Move the test-network.sh script to chutney, and modify tor's test-
356       network.sh to call the (newer) chutney version when available.
357       Resolves ticket 19116. Patch by teor.
358     - Use the lcov convention for marking lines as unreachable, so that
359       we don't count them when we're generating test coverage data.
360       Update our coverage tools to understand this convention. Closes
361       ticket 16792.
362     - Our link-handshake unit tests now check that when invalid
363       handshakes fail, they fail with the error messages we expected.
364     - Our unit testing code that captures log messages no longer
365       prevents them from being written out if the user asked for them
366       (by passing --debug or --info or --notice or --warn to the "test"
367       binary). This change prevents us from missing unexpected log
368       messages simply because we were looking for others. Related to
369       ticket 19999.
370     - The unit tests now log all warning messages with the "BUG" flag.
371       Previously, they only logged errors by default. This change will
372       help us make our testing code more correct, and make sure that we
373       only hit this code when we mean to. In the meantime, however,
374       there will be more warnings in the unit test logs than before.
375       This is preparatory work for ticket 19999.
376     - The unit tests now treat any failure of a "tor_assert_nonfatal()"
377       assertion as a test failure.
378     - We've done significant work to make the unit tests run faster.
380   o Minor features (testing, ipv6):
381     - Add the hs-ipv6 chutney target to make test-network-all's IPv6
382       tests. Remove bridges+hs, as it's somewhat redundant. This
383       requires a recent chutney version that supports IPv6 clients,
384       relays, and authorities. Closes ticket 20069; patch by teor.
385     - Add the single-onion and single-onion-ipv6 chutney targets to
386       "make test-network-all". This requires a recent chutney version
387       with the single onion network flavors (git c72a652 or later).
388       Closes ticket 20072; patch by teor.
390   o Minor features (Tor2web):
391     - Make Tor2web clients respect ReachableAddresses. This feature was
392       inadvertently enabled in 0.2.8.6, then removed by bugfix 19973 on
393       0.2.8.7. Implements feature 20034. Patch by teor.
395   o Minor features (unix domain sockets):
396     - When configuring a unix domain socket for a SocksPort,
397       ControlPort, or Hidden service, you can now wrap the address in
398       quotes, using C-style escapes inside the quotes. This allows unix
399       domain socket paths to contain spaces. Resolves ticket 18753.
401   o Minor features (user interface):
402     - Tor now supports the ability to declare options deprecated, so
403       that we can recommend that people stop using them. Previously, this
404       was done in an ad-hoc way. There is a new --list-deprecated-options
405       command-line option to list all of the deprecated options. Closes
406       ticket 19820.
408   o Minor features (virtual addresses):
409     - Increase the maximum number of bits for the IPv6 virtual network
410       prefix from 16 to 104. In this way, the condition for address
411       allocation is less restrictive. Closes ticket 20151; feature
412       on 0.2.4.7-alpha.
414   o Minor bug fixes (circuits):
415     - Use the CircuitBuildTimeout option whenever
416       LearnCircuitBuildTimeout is disabled. Previously, we would respect
417       the option when a user disabled it, but not when it was disabled
418       because some other option was set. Fixes bug 20073; bugfix on
419       0.2.4.12-alpha. Patch by teor.
421   o Minor bugfixes (build):
422     - The current Git revision when building from a local repository is
423       now detected correctly when using git worktrees. Fixes bug 20492;
424       bugfix on 0.2.3.9-alpha.
426   o Minor bugfixes (relay address discovery):
427     - Stop reordering IP addresses returned by the OS. This makes it
428       more likely that Tor will guess the same relay IP address every
429       time. Fixes issue 20163; bugfix on 0.2.7.1-alpha, ticket 17027.
430       Reported by René Mayrhofer, patch by "cypherpunks".
432   o Minor bugfixes (memory allocation):
433     - Change how we allocate memory for large chunks on buffers, to
434       avoid a (currently impossible) integer overflow, and to waste less
435       space when allocating unusually large chunks. Fixes bug 20081;
436       bugfix on 0.2.0.16-alpha. Issue identified by Guido Vranken.
438   o Minor bugfixes (bootstrap):
439     - Remember the directory server we fetched the consensus or previous
440       certificates from, and use it to fetch future authority
441       certificates. This change improves bootstrapping performance.
442       Fixes bug 18963; bugfix on 0.2.8.1-alpha.
444   o Minor bugfixes (circuits):
445     - Make sure extend_info_from_router() is only called on servers.
446       Fixes bug 19639; bugfix on 0.2.8.1-alpha.
448   o Minor bugfixes (client, fascistfirewall):
449     - Avoid spurious warnings when ReachableAddresses or FascistFirewall
450       is set. Fixes bug 20306; bugfix on 0.2.8.2-alpha.
452   o Minor bugfixes (client, unix domain sockets):
453     - Disable IsolateClientAddr when using AF_UNIX backed SocksPorts as
454       the client address is meaningless. Fixes bug 20261; bugfix
455       on 0.2.6.3-alpha.
457   o Minor bugfixes (code style):
458     - Fix an integer signedness conversion issue in the case conversion
459       tables. Fixes bug 19168; bugfix on 0.2.1.11-alpha.
461   o Minor bugfixes (compilation):
462     - Build correctly on versions of libevent2 without support for
463       evutil_secure_rng_add_bytes(). Fixes bug 19904; bugfix
464       on 0.2.5.4-alpha.
465     - When building with Clang, use a full set of GCC warnings.
466       (Previously, we included only a subset, because of the way we
467       detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha.
468     - Detect Libevent2 functions correctly on systems that provide
469       libevent2, but where libevent1 is linked with -levent. Fixes bug
470       19904; bugfix on 0.2.2.24-alpha. Patch from Rubiate.
471     - Run correctly when built on Windows build environments that
472       require _vcsprintf(). Fixes bug 20560; bugfix on 0.2.2.11-alpha.
474   o Minor bugfixes (configuration):
475     - When parsing quoted configuration values from the torrc file,
476       handle Windows line endings correctly. Fixes bug 19167; bugfix on
477       0.2.0.16-alpha. Patch from "Pingl".
479   o Minor bugfixes (directory authority):
480     - Authorities now sort the "package" lines in their votes, for ease
481       of debugging. (They are already sorted in consensus documents.)
482       Fixes bug 18840; bugfix on 0.2.6.3-alpha.
483     - Die with a more useful error when the operator forgets to place
484       the authority_signing_key file into the keys directory. This
485       avoids an uninformative assert & traceback about having an invalid
486       key. Fixes bug 20065; bugfix on 0.2.0.1-alpha.
487     - When allowing private addresses, mark Exits that only exit to
488       private locations as such. Fixes bug 20064; bugfix
489       on 0.2.2.9-alpha.
490     - When parsing a detached signature, make sure we use the length of
491       the digest algorithm instead of a hardcoded DIGEST256_LEN in
492       order to avoid comparing bytes out-of-bounds with a smaller digest
493       length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha.
495   o Minor bugfixes (getpass):
496     - Defensively fix a non-triggerable heap corruption at do_getpass()
497       to protect ourselves from mistakes in the future. Fixes bug
498       19223; bugfix on 0.2.7.3-rc. Bug found by Guido Vranken, patch
499       by nherring.
501   o Minor bugfixes (guard selection):
502     - Don't mark guards as unreachable if connection_connect() fails.
503       That function fails for local reasons, so it shouldn't reveal
504       anything about the status of the guard. Fixes bug 14334; bugfix
505       on 0.2.3.10-alpha.
506     - Use a single entry guard even if the NumEntryGuards consensus
507       parameter is not provided. Fixes bug 17688; bugfix
508       on 0.2.5.6-alpha.
510   o Minor bugfixes (hidden services):
511     - Increase the minimum number of internal circuits we preemptively
512       build from 2 to 3, so a circuit is available when a client
513       connects to another onion service. Fixes bug 13239; bugfix
514       on 0.1.0.1-rc.
515     - Allow hidden services to run on IPv6 addresses even when the
516       IPv6Exit option is not set. Fixes bug 18357; bugfix
517       on 0.2.4.7-alpha.
518     - Stop logging intro point details to the client log on certain
519       error conditions. Fixed as part of bug 20012; bugfix on
520       0.2.4.8-alpha. Patch by teor.
521     - When deleting an ephemeral hidden service, close its intro points
522       even if they are not completely open. Fixes bug 18604; bugfix
523       on 0.2.7.1-alpha.
524     - When configuring hidden services, check every hidden service
525       directory's permissions. Previously, we only checked the last
526       hidden service. Fixes bug 20529; bugfix on 0.2.6.2-alpha.
528   o Minor bugfixes (IPv6, testing):
529     - Check for IPv6 correctly on Linux when running test networks.
530       Fixes bug 19905; bugfix on 0.2.7.3-rc; patch by teor.
532   o Minor bugfixes (Linux seccomp2 sandbox):
533     - Add permission to run the sched_yield() and sigaltstack() system
534       calls, in order to support versions of Tor compiled with asan or
535       ubsan code that use these calls. Now "sandbox 1" and
536       "--enable-expensive-hardening" should be compatible on more
537       systems. Fixes bug 20063; bugfix on 0.2.5.1-alpha.
539   o Minor bugfixes (logging):
540     - Downgrade a harmless log message about the
541       pending_entry_connections list from "warn" to "info". Mitigates
542       bug 19926.
543     - Log a more accurate message when we fail to dump a microdescriptor.
544       Fixes bug 17758; bugfix on 0.2.2.8-alpha. Patch from Daniel Pinto.
545     - When logging a directory ownership mismatch, log the owning
546       username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta.
547     - When we are unable to remove the bw_accounting file, do not warn
548       if the reason we couldn't remove it was that it didn't exist.
549       Fixes bug 19964; bugfix on 0.2.5.4-alpha. Patch from pastly.
551   o Minor bugfixes (memory leak):
552     - Fix a series of slow memory leaks related to parsing torrc files
553       and options. Fixes bug 19466; bugfix on 0.2.1.6-alpha.
554     - Avoid a small memory leak when informing worker threads about
555       rotated onion keys. Fixes bug 20401; bugfix on 0.2.6.3-alpha.
556     - Fix a small memory leak when receiving AF_UNIX connections on a
557       SocksPort. Fixes bug 20716; bugfix on 0.2.6.3-alpha.
558     - When moving a signed descriptor object from a source to an
559       existing destination, free the allocated memory inside that
560       destination object. Fixes bug 20715; bugfix on 0.2.8.3-alpha.
561     - Fix a memory leak and use-after-free error when removing entries
562       from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on
563       0.2.5.5-alpha. Patch from "cypherpunks".
564     - Fix a small, uncommon memory leak that could occur when reading a
565       truncated ed25519 key file. Fixes bug 18956; bugfix
566       on 0.2.6.1-alpha.
568   o Minor bugfixes (option parsing):
569     - Count unix sockets when counting client listeners (SOCKS, Trans,
570       NATD, and DNS). This has no user-visible behavior changes: these
571       options are set once, and never read. Required for correct
572       behavior in ticket 17178. Fixes bug 19677; bugfix on
573       0.2.6.3-alpha. Patch by teor.
575   o Minor bugfixes (options):
576     - Check the consistency of UseEntryGuards and EntryNodes more
577       reliably. Fixes bug 20074; bugfix on 0.2.4.12-alpha. Patch
578       by teor.
579     - Stop changing the configured value of UseEntryGuards on
580       authorities and Tor2web clients. Fixes bug 20074; bugfix on
581       commits 51fc6799 in 0.1.1.16-rc and acda1735 in 0.2.4.3-alpha.
582       Patch by teor.
584   o Minor bugfixes (relay):
585     - Ensure relays don't make multiple connections during bootstrap.
586       Fixes bug 20591; bugfix on 0.2.8.1-alpha.
587     - Do not try to parallelize workers more than 16x without the user
588       explicitly configuring us to do so, even if we do detect more than
589       16 CPU cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
591   o Minor bugfixes (testing):
592     - The test-stem and test-network makefile targets now depend only on
593       the tor binary that they are testing. Previously, they depended on
594       "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a
595       patch from "cypherpunks".
596     - Allow clients to retry HSDirs much faster in test networks. Fixes
597       bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor.
598     - Avoid a unit test failure on systems with over 16 detectable CPU
599       cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
600     - Let backtrace tests work correctly under AddressSanitizer:
601       disable ASAN's detection of segmentation faults while running
602       test_bt.sh, so that we can make sure that our own backtrace
603       generation code works. Fixes bug 18934; bugfix
604       on 0.2.5.2-alpha. Patch from "cypherpunks".
605     - Fix the test-network-all target on out-of-tree builds by using the
606       correct path to the test driver script. Fixes bug 19421; bugfix
607       on 0.2.7.3-rc.
608     - Stop spurious failures in the local interface address discovery
609       unit tests. Fixes bug 20634; bugfix on 0.2.8.1-alpha; patch by
610       Neel Chauhan.
611     - Use ECDHE ciphers instead of ECDH in tortls tests. LibreSSL has
612       removed the ECDH ciphers which caused the tests to fail on
613       platforms which use it. Fixes bug 20460; bugfix on 0.2.8.1-alpha.
614     - The tor_tls_server_info_callback unit test no longer crashes when
615       debug-level logging is turned on. Fixes bug 20041; bugfix
616       on 0.2.8.1-alpha.
618   o Minor bugfixes (time):
619     - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483;
620       bugfix on all released tor versions.
621     - When computing the difference between two times in milliseconds,
622       we now round to the nearest millisecond correctly. Previously, we
623       could sometimes round in the wrong direction. Fixes bug 19428;
624       bugfix on 0.2.2.2-alpha.
626   o Minor bugfixes (Tor2web):
627     - Prevent Tor2web clients from running hidden services: these services
628       are not anonymous due to the one-hop client paths. Fixes bug
629       19678. Patch by teor.
631   o Minor bugfixes (user interface):
632     - Display a more accurate number of suppressed messages in the log
633       rate-limiter. Previously, there was a potential integer overflow
634       in the counter. Now, if the number of messages hits a maximum, the
635       rate-limiter doesn't count any further. Fixes bug 19435; bugfix
636       on 0.2.4.11-alpha.
637     - Fix a typo in the passphrase prompt for the ed25519 identity key.
638       Fixes bug 19503; bugfix on 0.2.7.2-alpha.
640   o Code simplification and refactoring:
641     - Remove redundant declarations of the MIN macro. Closes
642       ticket 18889.
643     - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion.
644       Closes ticket 18462; patch from "icanhasaccount".
645     - Split the 600-line directory_handle_command_get function into
646       separate functions for different URL types. Closes ticket 16698.
648   o Documentation:
649     - Add module-level internal documentation for 36 C files that
650       previously didn't have a high-level overview. Closes ticket 20385.
651     - Correct the IPv6 syntax in our documentation for the
652       VirtualAddrNetworkIPv6 torrc option. Closes ticket 19743.
653     - Correct the minimum bandwidth value in torrc.sample, and queue a
654       corresponding change for torrc.minimal. Closes ticket 20085.
655     - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes
656       ticket 19153. Patch from "U+039b".
657     - Module-level documentation for several more modules. Closes
658       tickets 19287 and 19290.
659     - Document the --passphrase-fd option in the tor manpage. Fixes bug
660       19504; bugfix on 0.2.7.3-rc.
661     - Document the default PathsNeededToBuildCircuits value that's used
662       by clients when the directory authorities don't set
663       min_paths_for_circs_pct. Fixes bug 20117; bugfix on 0.2.4.10-alpha.
664       Patch by teor, reported by Jesse V.
665     - Fix manual for the User option: it takes a username, not a UID.
666       Fixes bug 19122; bugfix on 0.0.2pre16 (the first version to have
667       a manpage!).
668     - Fix the description of the --passphrase-fd option in the
669       tor-gencert manpage. The option is used to pass the number of a
670       file descriptor to read the passphrase from, not to read the file
671       descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha.
673   o Removed code:
674     - We no longer include the (dead, deprecated) bufferevent code in
675       Tor. Closes ticket 19450. Based on a patch from "U+039b".
677   o Removed features:
678     - Remove support for "GET /tor/bytes.txt" DirPort request, and
679       "GETINFO dir-usage" controller request, which were only available
680       via a compile-time option in Tor anyway. Feature was added in
681       0.2.2.1-alpha. Resolves ticket 19035.
682     - There is no longer a compile-time option to disable support for
683       TransPort. (If you don't want TransPort, just don't use it.) Patch
684       from "U+039b". Closes ticket 19449.
686   o Testing:
687     - Run more workqueue tests as part of "make check". These had
688       previously been implemented, but you needed to know special
689       command-line options to enable them.
690     - We now have unit tests for our code to reject zlib "compression
691       bombs". (Fortunately, the code works fine.)
694 Changes in version 0.2.8.11 - 2016-12-08
695   Tor 0.2.8.11 backports fixes for additional portability issues that
696   could prevent Tor from building correctly on OSX Sierra, or with
697   OpenSSL 1.1. Affected users should upgrade; others can safely stay
698   with 0.2.8.10.
700   o Minor bugfixes (portability):
701     - Avoid compilation errors when building on OSX Sierra. Sierra began
702       to support the getentropy() and clock_gettime() APIs, but created
703       a few problems in doing so. Tor 0.2.9 has a more thorough set of
704       workarounds; in 0.2.8, we are just using the /dev/urandom and mach
705       monotonic time interfaces. Fixes bug 20865. Bugfix
706       on 0.2.8.1-alpha.
708   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
709     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
710       architectures. Closes ticket 20588.
713 Changes in version 0.2.8.10 - 2016-12-02
714   Tor 0.2.8.10 backports a fix for a bug that would sometimes make clients
715   unusable after they left standby mode. It also backports fixes for
716   a few portability issues and a small but problematic memory leak.
718   o Major bugfixes (client reliability, backport from 0.2.9.5-alpha):
719     - When Tor leaves standby because of a new application request, open
720       circuits as needed to serve that request. Previously, we would
721       potentially wait a very long time. Fixes part of bug 19969; bugfix
722       on 0.2.8.1-alpha.
724   o Major bugfixes (client performance, backport from 0.2.9.5-alpha):
725     - Clients now respond to new application stream requests immediately
726       when they arrive, rather than waiting up to one second before
727       starting to handle them. Fixes part of bug 19969; bugfix
728       on 0.2.8.1-alpha.
730   o Minor bugfixes (portability, backport from 0.2.9.6-rc):
731     - Work around a bug in the OSX 10.12 SDK that would prevent us from
732       successfully targeting earlier versions of OSX. Resolves
733       ticket 20235.
735   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
736     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
737       20551; bugfix on 0.2.1.1-alpha.
739   o Minor bugfixes (relay, backport from 0.2.9.5-alpha):
740     - Work around a memory leak in OpenSSL 1.1 when encoding public
741       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
743   o Minor features (geoip):
744     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
745       Country database.
748 Changes in version 0.2.8.9 - 2016-10-17
749   Tor 0.2.8.9 backports a fix for a security hole in previous versions
750   of Tor that would allow a remote attacker to crash a Tor client,
751   hidden service, relay, or authority. All Tor users should upgrade to
752   this version, or to 0.2.9.4-alpha. Patches will be released for older
753   versions of Tor.
755   o Major features (security fixes, also in 0.2.9.4-alpha):
756     - Prevent a class of security bugs caused by treating the contents
757       of a buffer chunk as if they were a NUL-terminated string. At
758       least one such bug seems to be present in all currently used
759       versions of Tor, and would allow an attacker to remotely crash
760       most Tor instances, especially those compiled with extra compiler
761       hardening. With this defense in place, such bugs can't crash Tor,
762       though we should still fix them as they occur. Closes ticket
763       20384 (TROVE-2016-10-001).
765   o Minor features (geoip):
766     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
767       Country database.
770 Changes in version 0.2.8.8 - 2016-09-23
771   Tor 0.2.8.8 fixes two crash bugs present in previous versions of the
772   0.2.8.x series. Relays running 0.2.8.x should upgrade, as should users
773   who select public relays as their bridges.
775   o Major bugfixes (crash):
776     - Fix a complicated crash bug that could affect Tor clients
777       configured to use bridges when replacing a networkstatus consensus
778       in which one of their bridges was mentioned. OpenBSD users saw
779       more crashes here, but all platforms were potentially affected.
780       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
782   o Major bugfixes (relay, OOM handler):
783     - Fix a timing-dependent assertion failure that could occur when we
784       tried to flush from a circuit after having freed its cells because
785       of an out-of-memory condition. Fixes bug 20203; bugfix on
786       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
787       this one.
789   o Minor feature (fallback directories):
790     - Remove broken fallbacks from the hard-coded fallback directory
791       list. Closes ticket 20190; patch by teor.
793   o Minor features (geoip):
794     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
795       Country database.
798 Changes in version 0.2.8.7 - 2016-08-24
799   Tor 0.2.8.7 fixes an important bug related to the ReachableAddresses
800   option in 0.2.8.6, and replaces a retiring bridge authority. Everyone
801   who sets the ReachableAddresses option, and all bridges, are strongly
802   encouraged to upgrade.
804   o Directory authority changes:
805     - The "Tonga" bridge authority has been retired; the new bridge
806       authority is "Bifroest". Closes tickets 19728 and 19690.
808   o Major bugfixes (client, security):
809     - Only use the ReachableAddresses option to restrict the first hop
810       in a path. In earlier versions of 0.2.8.x, it would apply to
811       every hop in the path, with a possible degradation in anonymity
812       for anyone using an uncommon ReachableAddress setting. Fixes bug
813       19973; bugfix on 0.2.8.2-alpha.
815   o Minor features (geoip):
816     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
817       Country database.
819   o Minor bugfixes (compilation):
820     - Remove an inappropriate "inline" in tortls.c that was causing
821       warnings on older versions of GCC. Fixes bug 19903; bugfix
822       on 0.2.8.1-alpha.
824   o Minor bugfixes (fallback directories):
825     - Avoid logging a NULL string pointer when loading fallback
826       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
827       and 0.2.8.1-alpha. Report and patch by "rubiate".
830 Changes in version 0.2.8.6 - 2016-08-02
832   Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series.
834   The Tor 0.2.8 series improves client bootstrapping performance,
835   completes the authority-side implementation of improved identity
836   keys for relays, and includes numerous bugfixes and performance
837   improvements throughout the program. This release continues to
838   improve the coverage of Tor's test suite.  For a full list of
839   changes since Tor 0.2.7, see the ReleaseNotes file.
841   Below is a list of the changes since Tor 0.2.7.
843   o New system requirements:
844     - Tor no longer attempts to support platforms where the "time_t"
845       type is unsigned. (To the best of our knowledge, only OpenVMS does
846       this, and Tor has never actually built on OpenVMS.) Closes
847       ticket 18184.
848     - Tor no longer supports versions of OpenSSL with a broken
849       implementation of counter mode. (This bug was present in OpenSSL
850       1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no
851       longer runs with, these versions.
852     - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or
853       later (released in 2008 and 2009 respectively). If you are
854       building Tor from the git repository instead of from the source
855       distribution, and your tools are older than this, you will need to
856       upgrade. Closes ticket 17732.
858   o Directory authority changes:
859     - Update the V3 identity key for the dannenberg directory authority:
860       it was changed on 18 November 2015. Closes task 17906. Patch
861       by teor.
862     - Urras is no longer a directory authority. Closes ticket 19271.
864   o Major features (directory system):
865     - Include a trial list of default fallback directories, based on an
866       opt-in survey of suitable relays. Doing this should make clients
867       bootstrap more quickly and reliably, and reduce the load on the
868       directory authorities. Closes ticket 15775. Patch by teor.
869       Candidates identified using an OnionOO script by weasel, teor,
870       gsathya, and karsten.
871     - Previously only relays that explicitly opened a directory port
872       (DirPort) accepted directory requests from clients. Now all
873       relays, with and without a DirPort, accept and serve tunneled
874       directory requests that they receive through their ORPort. You can
875       disable this behavior using the new DirCache option. Closes
876       ticket 12538.
877     - When bootstrapping multiple consensus downloads at a time, use the
878       first one that starts downloading, and close the rest. This
879       reduces failures when authorities or fallback directories are slow
880       or down. Together with the code for feature 15775, this feature
881       should reduces failures due to fallback churn. Implements ticket
882       4483. Patch by teor. Implements IPv4 portions of proposal 210 by
883       mikeperry and teor.
885   o Major features (security, Linux):
886     - When Tor starts as root on Linux and is told to switch user ID, it
887       can now retain the capability to bind to low ports. By default,
888       Tor will do this only when it's switching user ID and some low
889       ports have been configured. You can change this behavior with the
890       new option KeepBindCapabilities. Closes ticket 8195.
892   o Major bugfixes (client, bootstrapping):
893     - Check if bootstrap consensus downloads are still needed when the
894       linked connection attaches. This prevents tor making unnecessary
895       begindir-style connections, which are the only directory
896       connections tor clients make since the fix for 18483 was merged.
897     - Fix some edge cases where consensus download connections may not
898       have been closed, even though they were not needed. Related to fix
899       for 18809.
900     - Make relays retry consensus downloads the correct number of times,
901       rather than the more aggressive client retry count. Fixes part of
902       ticket 18809.
904   o Major bugfixes (dns proxy mode, crash):
905     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
906       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
908   o Major bugfixes (ed25519, voting):
909     - Actually enable support for authorities to match routers by their
910       Ed25519 identities. Previously, the code had been written, but
911       some debugging code that had accidentally been left in the
912       codebase made it stay turned off. Fixes bug 17702; bugfix
913       on 0.2.7.2-alpha.
914     - When collating votes by Ed25519 identities, authorities now
915       include a "NoEdConsensus" flag if the ed25519 value (or lack
916       thereof) for a server does not reflect the majority consensus.
917       Related to bug 17668; bugfix on 0.2.7.2-alpha.
918     - When generating a vote with keypinning disabled, never include two
919       entries for the same ed25519 identity. This bug was causing
920       authorities to generate votes that they could not parse when a
921       router violated key pinning by changing its RSA identity but
922       keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug
923       18318. Bugfix on 0.2.7.2-alpha.
925   o Major bugfixes (key management):
926     - If OpenSSL fails to generate an RSA key, do not retain a dangling
927       pointer to the previous (uninitialized) key value. The impact here
928       should be limited to a difficult-to-trigger crash, if OpenSSL is
929       running an engine that makes key generation failures possible, or
930       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
931       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
932       Baishakhi Ray.
934   o Major bugfixes (security, client, DNS proxy):
935     - Stop a crash that could occur when a client running with DNSPort
936       received a query with multiple address types, and the first
937       address type was not supported. Found and fixed by Scott Dial.
938       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
940   o Major bugfixes (security, compilation):
941     - Correctly detect compiler flags on systems where _FORTIFY_SOURCE
942       is predefined. Previously, our use of -D_FORTIFY_SOURCE would
943       cause a compiler warning, thereby making other checks fail, and
944       needlessly disabling compiler-hardening support. Fixes one case of
945       bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal".
946     - Repair hardened builds under the clang compiler. Previously, our
947       use of _FORTIFY_SOURCE would conflict with clang's address
948       sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha.
950   o Major bugfixes (security, pointers):
951     - Avoid a difficult-to-trigger heap corruption attack when extending
952       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
953       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
954       Reported by Guido Vranken.
956   o Major bugfixes (testing):
957     - Fix a bug that would block 'make test-network-all' on systems where
958       IPv6 packets were lost. Fixes bug 19008; bugfix on 0.2.7.3-rc.
960   o Major bugfixes (user interface):
961     - Correctly give a warning in the cases where a relay is specified
962       by nickname, and one such relay is found, but it is not officially
963       Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha.
965   o Minor features (accounting):
966     - Added two modes to the AccountingRule option: One for limiting
967       only the number of bytes sent ("AccountingRule out"), and one for
968       limiting only the number of bytes received ("AccountingRule in").
969       Closes ticket 15989; patch from "unixninja92".
971   o Minor features (bug-resistance):
972     - Make Tor survive errors involving connections without a
973       corresponding event object. Previously we'd fail with an
974       assertion; now we produce a log message. Related to bug 16248.
975     - Use tor_snprintf() and tor_vsnprintf() even in external and low-
976       level code, to harden against accidental failures to NUL-
977       terminate. Part of ticket 17852. Patch from jsturgix. Found
978       with Flawfinder.
980   o Minor features (build):
981     - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD)
982       as having possible IPFW support. Closes ticket 18448. Patch from
983       Steven Chamberlain.
984     - Since our build process now uses "make distcheck", we no longer
985       force "make dist" to depend on "make check". Closes ticket 17893;
986       patch from "cypherpunks".
987     - Tor now builds once again with the recent OpenSSL 1.1 development
988       branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev). We have been
989       tracking OpenSSL 1.1 development as it has progressed, and fixing
990       numerous compatibility issues as they arose. See tickets
991       17549, 17921, 17984, 19499, and 18286.
992     - When building manual pages, set the timezone to "UTC", so that the
993       output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
994       Patch from intrigeri.
996   o Minor features (clients):
997     - Make clients, onion services, and bridge relays always use an
998       encrypted begindir connection for directory requests. Resolves
999       ticket 18483. Patch by teor.
1001   o Minor features (controller):
1002     - Add 'GETINFO exit-policy/reject-private/[default,relay]', so
1003       controllers can examine the the reject rules added by
1004       ExitPolicyRejectPrivate. This makes it easier for stem to display
1005       exit policies.
1006     - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes
1007       tickets 16774 and 17817. Patch by George Tankersley.
1008     - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden
1009       service descriptor from a service's local hidden service
1010       descriptor cache. Closes ticket 14846.
1012   o Minor features (crypto):
1013     - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783.
1014     - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
1015       George Tankersley.
1016     - Improve performance when hashing non-multiple of 8 sized buffers,
1017       based on Andrew Moon's public domain SipHash-2-4 implementation.
1018       Fixes bug 17544; bugfix on 0.2.5.3-alpha.
1019     - Validate the hard-coded Diffie-Hellman parameters and ensure that
1020       p is a safe prime, and g is a suitable generator. Closes
1021       ticket 18221.
1022     - When allocating a digest state object, allocate no more space than
1023       we actually need. Previously, we would allocate as much space as
1024       the state for the largest algorithm would need. This change saves
1025       up to 672 bytes per circuit. Closes ticket 17796.
1027   o Minor features (directory downloads):
1028     - Add UseDefaultFallbackDirs, which enables any hard-coded fallback
1029       directory mirrors. The default is 1; set it to 0 to disable
1030       fallbacks. Implements ticket 17576. Patch by teor.
1031     - Wait for busy authorities and fallback directories to become non-
1032       busy when bootstrapping. (A similar change was made in 6c443e987d
1033       for directory caches chosen from the consensus.) Closes ticket
1034       17864; patch by teor.
1036   o Minor features (geoip):
1037     - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2
1038       Country database.
1040   o Minor features (hidden service directory):
1041     - Streamline relay-side hsdir handling: when relays consider whether
1042       to accept an uploaded hidden service descriptor, they no longer
1043       check whether they are one of the relays in the network that is
1044       "supposed" to handle that descriptor. Implements ticket 18332.
1046   o Minor features (IPv6):
1047     - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
1048       to 1, tor prefers IPv6 directory addresses.
1049     - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
1050       avoids using IPv4 for client OR and directory connections.
1051     - Add address policy assume_action support for IPv6 addresses.
1052     - Add an argument 'ipv6=address:orport' to the DirAuthority and
1053       FallbackDir torrc options, to specify an IPv6 address for an
1054       authority or fallback directory. Add hard-coded ipv6 addresses for
1055       directory authorities that have them. Closes ticket 17327; patch
1056       from Nick Mathewson and teor.
1057     - Allow users to configure directory authorities and fallback
1058       directory servers with IPv6 addresses and ORPorts. Resolves
1059       ticket 6027.
1060     - Limit IPv6 mask bits to 128.
1061     - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug
1062       17638; bugfix on 0.0.2pre8. Patch by teor.
1063     - Try harder to obey the IP version restrictions "ClientUseIPv4 0",
1064       "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and
1065       "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor.
1066     - Warn when comparing against an AF_UNSPEC address in a policy, it's
1067       almost always a bug. Closes ticket 17863; patch by teor.
1068     - routerset_parse now accepts IPv6 literal addresses. Fixes bug
1069       17060; bugfix on 0.2.1.3-alpha. Patch by teor.
1071   o Minor features (Linux seccomp2 sandbox):
1072     - Reject attempts to change our Address with "Sandbox 1" enabled.
1073       Changing Address with Sandbox turned on would never actually work,
1074       but previously it would fail in strange and confusing ways. Found
1075       while fixing 18548.
1077   o Minor features (logging):
1078     - When logging to syslog, allow a tag to be added to the syslog
1079       identity (the string prepended to every log message). The tag can
1080       be configured with SyslogIdentityTag and defaults to none. Setting
1081       it to "foo" will cause logs to be tagged as "Tor-foo". Closes
1082       ticket 17194.
1084   o Minor features (portability):
1085     - Use timingsafe_memcmp() where available. Closes ticket 17944;
1086       patch from <logan@hackers.mu>.
1088   o Minor features (relay, address discovery):
1089     - Add a family argument to get_interface_addresses_raw() and
1090       subfunctions to make network interface address interogation more
1091       efficient. Now Tor can specifically ask for IPv4, IPv6 or both
1092       types of interfaces from the operating system. Resolves
1093       ticket 17950.
1094     - When get_interface_address6_list(.,AF_UNSPEC,.) is called and
1095       fails to enumerate interface addresses using the platform-specific
1096       API, have it rely on the UDP socket fallback technique to try and
1097       find out what IP addresses (both IPv4 and IPv6) our machine has.
1098       Resolves ticket 17951.
1100   o Minor features (replay cache):
1101     - The replay cache now uses SHA256 instead of SHA1. Implements
1102       feature 8961. Patch by teor, issue reported by rransom.
1104   o Minor features (robustness):
1105     - Exit immediately with an error message if the code attempts to use
1106       Libevent without having initialized it. This should resolve some
1107       frequently-made mistakes in our unit tests. Closes ticket 18241.
1109   o Minor features (security, clock):
1110     - Warn when the system clock appears to move back in time (when the
1111       state file was last written in the future). Tor doesn't know that
1112       consensuses have expired if the clock is in the past. Patch by
1113       teor. Implements ticket 17188.
1115   o Minor features (security, exit policies):
1116     - ExitPolicyRejectPrivate now rejects more private addresses by
1117       default. Specifically, it now rejects the relay's outbound bind
1118       addresses (if configured), and the relay's configured port
1119       addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on
1120       0.2.0.11-alpha. Patch by teor.
1122   o Minor features (security, memory erasure):
1123     - Make memwipe() do nothing when passed a NULL pointer or buffer of
1124       zero size. Check size argument to memwipe() for underflow. Fixes
1125       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
1126       patch by teor.
1127     - Set the unused entries in a smartlist to NULL. This helped catch
1128       a (harmless) bug, and shouldn't affect performance too much.
1129       Implements ticket 17026.
1130     - Use SecureMemoryWipe() function to securely clean memory on
1131       Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function.
1132       Implements feature 17986.
1133     - Use explicit_bzero or memset_s when present. Previously, we'd use
1134       OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches
1135       from <logan@hackers.mu> and <selven@hackers.mu>.
1137   o Minor features (security, RNG):
1138     - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely,
1139       positively are not allowed to fail. Previously we depended on
1140       internal details of OpenSSL's behavior. Closes ticket 17686.
1141     - Never use the system entropy output directly for anything besides
1142       seeding the PRNG. When we want to generate important keys, instead
1143       of using system entropy directly, we now hash it with the PRNG
1144       stream. This may help resist certain attacks based on broken OS
1145       entropy implementations. Closes part of ticket 17694.
1146     - Use modern system calls (like getentropy() or getrandom()) to
1147       generate strong entropy on platforms that have them. Closes
1148       ticket 13696.
1150   o Minor features (security, win32):
1151     - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing
1152       attack. Fixes bug 18123; bugfix on all tor versions. Patch
1153       by teor.
1155   o Minor features (unix domain sockets):
1156     - Add a new per-socket option, RelaxDirModeCheck, to allow creating
1157       Unix domain sockets without checking the permissions on the parent
1158       directory. (Tor checks permissions by default because some
1159       operating systems only check permissions on the parent directory.
1160       However, some operating systems do look at permissions on the
1161       socket, and tor's default check is unneeded.) Closes ticket 18458.
1162       Patch by weasel.
1164   o Minor features (unix file permissions):
1165     - Defer creation of Unix sockets until after setuid. This avoids
1166       needing CAP_CHOWN and CAP_FOWNER when using systemd's
1167       CapabilityBoundingSet, or chown and fowner when using SELinux.
1168       Implements part of ticket 17562. Patch from Jamie Nguyen.
1169     - If any directory created by Tor is marked as group readable, the
1170       filesystem group is allowed to be either the default GID or the
1171       root user. Allowing root to read the DataDirectory prevents the
1172       need for CAP_READ_SEARCH when using systemd's
1173       CapabilityBoundingSet, or dac_read_search when using SELinux.
1174       Implements part of ticket 17562. Patch from Jamie Nguyen.
1175     - Introduce a new DataDirectoryGroupReadable option. If it is set to
1176       1, the DataDirectory will be made readable by the default GID.
1177       Implements part of ticket 17562. Patch from Jamie Nguyen.
1179   o Minor bugfixes (accounting):
1180     - The max bandwidth when using 'AccountRule sum' is now correctly
1181       logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch
1182       from "unixninja92".
1184   o Minor bugfixes (assert, portability):
1185     - Fix an assertion failure in memarea.c on systems where "long" is
1186       shorter than the size of a pointer. Fixes bug 18716; bugfix
1187       on 0.2.1.1-alpha.
1189   o Minor bugfixes (bootstrap):
1190     - Consistently use the consensus download schedule for authority
1191       certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha.
1193   o Minor bugfixes (build):
1194     - Avoid spurious failures from configure files related to calling
1195       exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18625; bugfix on
1196       0.2.0.1-alpha. Patch from "cypherpunks".
1197     - Do not link the unit tests against both the testing and non-
1198       testing versions of the static libraries. Fixes bug 18490; bugfix
1199       on 0.2.7.1-alpha.
1200     - Resolve warnings when building on systems that are concerned with
1201       signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha
1202       and 0.2.6.1-alpha.
1203     - Silence spurious clang-scan warnings in the ed25519_donna code by
1204       explicitly initializing some objects. Fixes bug 18384; bugfix on
1205       0.2.7.2-alpha. Patch by teor.
1206     - When libscrypt.h is found, but no libscrypt library can be linked,
1207       treat libscrypt as absent. Fixes bug 19161; bugfix
1208       on 0.2.6.1-alpha.
1209     - Cause the unit tests to compile correctly on mingw64 versions that
1210       lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha.
1211     - Don't try to use the pthread_condattr_setclock() function unless
1212       it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
1213       17819; bugfix on 0.2.6.3-alpha.
1214     - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix
1215       on 0.2.5.2-alpha.
1216     - Fix search for libevent libraries on OpenBSD (and other systems
1217       that install libevent 1 and libevent 2 in parallel). Fixes bug
1218       16651; bugfix on 0.1.0.7-rc. Patch from "rubiate".
1219     - Isolate environment variables meant for tests from the rest of the
1220       build system. Fixes bug 17818; bugfix on 0.2.7.3-rc.
1221     - Mark all object files that include micro-revision.i as depending
1222       on it, so as to make parallel builds more reliable. Fixes bug
1223       17826; bugfix on 0.2.5.1-alpha.
1224     - Remove config.log only from make distclean, not from make clean.
1225       Fixes bug 17924; bugfix on 0.2.4.1-alpha.
1226     - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix
1227       on 0.0.2pre8.
1228     - Remove an #endif from configure.ac so that we correctly detect the
1229       presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix
1230       on 0.2.0.13-alpha.
1232   o Minor bugfixes (client, bootstrap):
1233     - Count receipt of new microdescriptors as progress towards
1234       bootstrapping. Previously, with EntryNodes set, Tor might not
1235       successfully repopulate the guard set on bootstrapping. Fixes bug
1236       16825; bugfix on 0.2.3.1-alpha.
1238   o Minor bugfixes (code correctness):
1239     - Fix a bad memory handling bug that would occur if we had queued a
1240       cell on a channel's incoming queue. Fortunately, we can't actually
1241       queue a cell like that as our code is constructed today, but it's
1242       best to avoid this kind of error, even if there isn't any code
1243       that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha.
1244     - Assert that allocated memory held by the reputation code is freed
1245       according to its internal counters. Fixes bug 17753; bugfix
1246       on 0.1.1.1-alpha.
1247     - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
1248       bugfix on 0.0.6.
1249     - Update to the latest version of Trunnel, which tries harder to
1250       avoid generating code that can invoke memcpy(p,NULL,0). Bug found
1251       by clang address sanitizer. Fixes bug 18373; bugfix
1252       on 0.2.7.2-alpha.
1253     - When closing an entry connection, generate a warning if we should
1254       have sent an end cell for it but we haven't. Fixes bug 17876;
1255       bugfix on 0.2.3.2-alpha.
1257   o Minor bugfixes (configuration):
1258     - Fix a tiny memory leak when parsing a port configuration ending in
1259       ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
1261   o Minor bugfixes (containers):
1262     - If we somehow attempt to construct a heap with more than
1263       1073741822 elements, avoid an integer overflow when maintaining
1264       the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha.
1266   o Minor bugfixes (controller, microdescriptors):
1267     - Make GETINFO dir/status-vote/current/consensus conform to the
1268       control specification by returning "551 Could not open cached
1269       consensus..." when not caching consensuses. Fixes bug 18920;
1270       bugfix on 0.2.2.6-alpha.
1272   o Minor bugfixes (crypto):
1273     - Check the return value of HMAC() and assert on failure. Fixes bug
1274       17658; bugfix on 0.2.3.6-alpha. Patch by teor.
1276   o Minor bugfixes (directories):
1277     - When fetching extrainfo documents, compare their SHA256 digests
1278       and Ed25519 signing key certificates with the routerinfo that led
1279       us to fetch them, rather than with the most recent routerinfo.
1280       Otherwise we generate many spurious warnings about mismatches.
1281       Fixes bug 17150; bugfix on 0.2.7.2-alpha.
1282     - When generating a URL for a directory server on an IPv6 address,
1283       wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix
1284       on 0.2.3.9-alpha. Patch from Malek.
1286   o Minor bugfixes (downloading):
1287     - Predict more correctly whether we'll be downloading over HTTP when
1288       we determine the maximum length of a URL. This should avoid a
1289       "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes
1290       bug 19191.
1292   o Minor bugfixes (exit policies, security):
1293     - Refresh an exit relay's exit policy when interface addresses
1294       change. Previously, tor only refreshed the exit policy when the
1295       configured external address changed. Fixes bug 18208; bugfix on
1296       0.2.7.3-rc. Patch by teor.
1298   o Minor bugfixes (fallback directories):
1299     - Mark fallbacks as "too busy" when they return a 503 response,
1300       rather than just marking authorities. Fixes bug 17572; bugfix on
1301       0.2.4.7-alpha. Patch by teor.
1302     - When requesting extrainfo descriptors from a trusted directory
1303       server, check whether it is an authority or a fallback directory
1304       which supports extrainfo descriptors. Fixes bug 18489; bugfix on
1305       0.2.4.7-alpha. Reported by atagar, patch by teor.
1307   o Minor bugfixes (hidden service, client):
1308     - Handle the case where the user makes several fast consecutive
1309       requests to the same .onion address. Previously, the first six
1310       requests would each trigger a descriptor fetch, each picking a
1311       directory (there are 6 overall) and the seventh one would fail
1312       because no directories were left, thereby triggering a close on
1313       all current directory connections asking for the hidden service.
1314       The solution here is to not close the connections if we have
1315       pending directory fetches. Fixes bug 15937; bugfix
1316       on 0.2.7.1-alpha.
1318   o Minor bugfixes (hidden service, control port):
1319     - Add the onion address to the HS_DESC event for the UPLOADED action
1320       both on success or failure. It was previously hardcoded with
1321       UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha.
1323   o Minor bugfixes (hidden service, directory):
1324     - Bridges now refuse "rendezvous2" (hidden service descriptor)
1325       publish attempts. Suggested by ticket 18332.
1327   o Minor bugfixes (IPv6):
1328     - Update the limits in max_dl_per_request for IPv6 address length.
1329       Fixes bug 17573; bugfix on 0.2.1.5-alpha.
1331   o Minor bugfixes (Linux seccomp2 sandbox):
1332     - Allow more syscalls when running with "Sandbox 1" enabled:
1333       sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On
1334       some systems, these are required for Tor to start. Fixes bug
1335       18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto.
1336     - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1",
1337       so that get_interface_address6_via_udp_socket_hack() can work.
1338       Fixes bug 19660; bugfix on 0.2.5.1-alpha.
1339     - Allow the setrlimit syscall, and the prlimit and prlimit64
1340       syscalls, which some libc implementations use under the hood.
1341       Fixes bug 15221; bugfix on 0.2.5.1-alpha.
1342     - Avoid a 10-second delay when starting as a client with "Sandbox 1"
1343       enabled and no DNS resolvers configured. This should help TAILS
1344       start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
1345     - Fix a crash when using offline master ed25519 keys with the Linux
1346       seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc.
1347     - Allow statistics to be written to disk when "Sandbox 1" is
1348       enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and
1349       0.2.6.1-alpha respectively.
1351   o Minor bugfixes (logging):
1352     - In log messages that include a function name, use __FUNCTION__
1353       instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but
1354       with clang __PRETTY_FUNCTION__ has extra information we don't
1355       need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van
1356       der Woerdt.
1357     - Remove needless quotes from a log message about unparseable
1358       addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha.
1359     - Scrub service name in "unrecognized service ID" log messages.
1360       Fixes bug 18600; bugfix on 0.2.4.11-alpha.
1361     - When logging information about an unparsable networkstatus vote or
1362       consensus, do not say "vote" when we mean consensus. Fixes bug
1363       18368; bugfix on 0.2.0.8-alpha.
1364     - When we can't generate a signing key because OfflineMasterKey is
1365       set, do not imply that we should have been able to load it. Fixes
1366       bug 18133; bugfix on 0.2.7.2-alpha.
1367     - When logging a malformed hostname received through socks4, scrub
1368       it if SafeLogging says we should. Fixes bug 17419; bugfix
1369       on 0.1.1.16-rc.
1371   o Minor bugfixes (memory safety):
1372     - Avoid freeing an uninitialized pointer when opening a socket fails
1373       in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on
1374       0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch
1375       by teor.
1376     - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug
1377       18672; bugfix on 0.2.5.1-alpha.
1378     - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix
1379       on 0.2.0.1-alpha.
1381   o Minor bugfixes (pluggable transports):
1382     - Avoid reporting a spurious error when we decide that we don't need
1383       to terminate a pluggable transport because it has already exited.
1384       Fixes bug 18686; bugfix on 0.2.5.5-alpha.
1386   o Minor bugfixes (pointer arithmetic):
1387     - Fix a bug in memarea_alloc() that could have resulted in remote
1388       heap write access, if Tor had ever passed an unchecked size to
1389       memarea_alloc(). Fortunately, all the sizes we pass to
1390       memarea_alloc() are pre-checked to be less than 128 kilobytes.
1391       Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by
1392       Guido Vranken.
1394   o Minor bugfixes (private directory):
1395     - Prevent a race condition when creating private directories. Fixes
1396       part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852.
1397       Patch from jsturgix. Found with Flawfinder.
1399   o Minor bugfixes (relays):
1400     - Check that both the ORPort and DirPort (if present) are reachable
1401       before publishing a relay descriptor. Otherwise, relays publish a
1402       descriptor with DirPort 0 when the DirPort reachability test takes
1403       longer than the ORPort reachability test. Fixes bug 18050; bugfix
1404       on 0.1.0.1-rc. Reported by "starlight", patch by teor.
1405     - Resolve some edge cases where we might launch an ORPort
1406       reachability check even when DisableNetwork is set. Noticed while
1407       fixing bug 18616; bugfix on 0.2.3.9-alpha.
1409   o Minor bugfixes (relays, hidden services):
1410     - Refuse connection requests to private OR addresses unless
1411       ExtendAllowPrivateAddresses is set. Previously, tor would connect,
1412       then refuse to send any cells to a private address. Fixes bugs
1413       17674 and 8976; bugfix on 0.2.3.21-rc. Patch by teor.
1415   o Minor bugfixes (security, hidden services):
1416     - Prevent hidden services connecting to client-supplied rendezvous
1417       addresses that are reserved as internal or multicast. Fixes bug
1418       8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor.
1420   o Minor bugfixes (statistics):
1421     - Consistently check for overflow in round_*_to_next_multiple_of
1422       functions, and add unit tests with additional and maximal values.
1423       Fixes part of bug 13192; bugfix on 0.2.2.1-alpha.
1424     - Handle edge cases in the laplace functions: avoid division by
1425       zero, avoid taking the log of zero, and silence clang type
1426       conversion warnings using round and trunc. Add unit tests for edge
1427       cases with maximal values. Fixes part of bug 13192; bugfix
1428       on 0.2.6.2-alpha.
1429     - We now include consensus downloads via IPv6 in our directory-
1430       request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha.
1432   o Minor bugfixes (test networks, IPv6):
1433     - Allow internal IPv6 addresses in descriptors in test networks.
1434       Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported
1435       by karsten.
1437   o Minor bugfixes (testing):
1438     - Check the full results of SHA256 and SHA512 digests in the unit
1439       tests. Bugfix on 0.2.2.4-alpha. Patch by teor.
1440     - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix
1441       on 0.2.4.8-alpha.
1442     - Fix a small memory leak that would occur when the
1443       TestingEnableCellStatsEvent option was turned on. Fixes bug 18673;
1444       bugfix on 0.2.5.2-alpha.
1445     - Make unit tests pass on IPv6-only systems, and systems without
1446       localhost addresses (like some FreeBSD jails). Fixes bug 17632;
1447       bugfix on 0.2.7.3-rc. Patch by teor.
1448     - The test for log_heartbeat was incorrectly failing in timezones
1449       with non-integer offsets. Instead of comparing the end of the time
1450       string against a constant, compare it to the output of
1451       format_local_iso_time when given the correct input. Fixes bug
1452       18039; bugfix on 0.2.5.4-alpha.
1453     - We no longer disable assertions in the unit tests when coverage is
1454       enabled. Instead, we require you to say --disable-asserts-in-tests
1455       to the configure script if you need assertions disabled in the
1456       unit tests (for example, if you want to perform branch coverage).
1457       Fixes bug 18242; bugfix on 0.2.7.1-alpha.
1459   o Minor bugfixes (time handling):
1460     - When correcting a corrupt 'struct tm' value, fill in the tm_wday
1461       field. Otherwise, our unit tests crash on Windows. Fixes bug
1462       18977; bugfix on 0.2.2.25-alpha.
1463     - Avoid overflow in tor_timegm when parsing dates in and after 2038
1464       on platforms with 32-bit time_t. Fixes bug 18479; bugfix on
1465       0.0.2pre14. Patch by teor.
1467   o Minor bugfixes (tor-gencert):
1468     - Correctly handle the case where an authority operator enters a
1469       passphrase but sends an EOF before sending a newline. Fixes bug
1470       17443; bugfix on 0.2.0.20-rc. Found by junglefowl.
1472   o Code simplification and refactoring:
1473     - Clean up a little duplicated code in
1474       crypto_expand_key_material_TAP(). Closes ticket 17587; patch
1475       from "pfrankw".
1476     - Decouple the list of streams waiting to be attached to circuits
1477       from the overall connection list. This change makes it possible to
1478       attach streams quickly while simplifying Tor's callgraph and
1479       avoiding O(N) scans of the entire connection list. Closes
1480       ticket 17590.
1481     - Extract the more complicated parts of circuit_mark_for_close()
1482       into a new function that we run periodically before circuits are
1483       freed. This change removes more than half of the functions
1484       currently in the "blob". Closes ticket 17218.
1485     - Move logging of redundant policy entries in
1486       policies_parse_exit_policy_internal into its own function. Closes
1487       ticket 17608; patch from "juce".
1488     - Quote all the string interpolations in configure.ac -- even those
1489       which we are pretty sure can't contain spaces. Closes ticket
1490       17744. Patch from zerosion.
1491     - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't
1492       use them. Closes ticket 17926.
1493     - Remove specialized code for non-inplace AES_CTR. 99% of our AES is
1494       inplace, so there's no need to have a separate implementation for
1495       the non-inplace code. Closes ticket 18258. Patch from Malek.
1496     - Simplify return types for some crypto functions that can't
1497       actually fail. Patch from Hassan Alsibyani. Closes ticket 18259.
1498     - When a direct directory request fails immediately on launch,
1499       instead of relaunching that request from inside the code that
1500       launches it, instead mark the connection for teardown. This change
1501       simplifies Tor's callback and prevents the directory-request
1502       launching code from invoking itself recursively. Closes
1503       ticket 17589.
1505   o Documentation:
1506     - Add a description of the correct use of the '--keygen' command-
1507       line option. Closes ticket 17583; based on text by 's7r'.
1508     - Change build messages to refer to "Fedora" instead of "Fedora
1509       Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426.
1510       Patches from "icanhasaccount" and "cypherpunks".
1511     - Document the contents of the 'datadir/keys' subdirectory in the
1512       manual page. Closes ticket 17621.
1513     - Document the minimum HeartbeatPeriod value. Closes ticket 15638.
1514     - Explain actual minima for BandwidthRate. Closes ticket 16382.
1515     - Fix a minor formatting typo in the manpage. Closes ticket 17791.
1516     - Mention torspec URL in the manpage and point the reader to it
1517       whenever we mention a document that belongs in torspce. Fixes
1518       issue 17392.
1519     - Stop recommending use of nicknames to identify relays in our
1520       MapAddress documentation. Closes ticket 18312.
1522   o Removed features:
1523     - Remove client-side support for connecting to Tor relays running
1524       versions of Tor before 0.2.3.6-alpha. These relays didn't support
1525       the v3 TLS handshake protocol, and are no longer allowed on the
1526       Tor network. Implements the client side of ticket 11150. Based on
1527       patches by Tom van der Woerdt.
1528     - We no longer maintain an internal freelist in memarea.c.
1529       Allocators should be good enough to make this code unnecessary,
1530       and it's doubtful that it ever had any performance benefit.
1532   o Testing:
1533     - Add unit tests to check for common RNG failure modes, such as
1534       returning all zeroes, identical values, or incrementing values
1535       (OpenSSL's rand_predictable feature). Patch by teor.
1536     - Always test both ed25519 backends, so that we can be sure that our
1537       batch-open replacement code works. Part of ticket 16794.
1538     - Cover dns_resolve_impl() in dns.c with unit tests. Implements a
1539       portion of ticket 16831.
1540     - Fix several warnings from clang's address sanitizer produced in
1541       the unit tests.
1542     - Log more information when the backtrace tests fail. Closes ticket
1543       17892. Patch from "cypherpunks."
1544     - More unit tests for compat_libevent.c, procmon.c, tortls.c,
1545       util_format.c, directory.c, and options_validate.c. Closes tickets
1546       17075, 17082, 17084, 17003, and 17076 respectively. Patches from
1547       Ola Bini.
1548     - Treat backtrace test failures as expected on FreeBSD until we
1549       solve bug 17808. Closes ticket 18204.
1550     - Unit tests for directory_handle_command_get. Closes ticket 17004.
1551       Patch from Reinaldo de Souza Jr.
1554 Changes in version 0.2.7.6 - 2015-12-10
1555   Tor version 0.2.7.6 fixes a major bug in entry guard selection, as
1556   well as a minor bug in hidden service reliability.
1558   o Major bugfixes (guard selection):
1559     - Actually look at the Guard flag when selecting a new directory
1560       guard. When we implemented the directory guard design, we
1561       accidentally started treating all relays as if they have the Guard
1562       flag during guard selection, leading to weaker anonymity and worse
1563       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
1564       by Mohsen Imani.
1566   o Minor features (geoip):
1567     - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2
1568       Country database.
1570   o Minor bugfixes (compilation):
1571     - When checking for net/pfvar.h, include netinet/in.h if possible.
1572       This fixes transparent proxy detection on OpenBSD. Fixes bug
1573       17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
1574     - Fix a compilation warning with Clang 3.6: Do not check the
1575       presence of an address which can never be NULL. Fixes bug 17781.
1577   o Minor bugfixes (correctness):
1578     - When displaying an IPv6 exit policy, include the mask bits
1579       correctly even when the number is greater than 31. Fixes bug
1580       16056; bugfix on 0.2.4.7-alpha. Patch from "gturner".
1581     - The wrong list was used when looking up expired intro points in a
1582       rend service object, causing what we think could be reachability
1583       issues for hidden services, and triggering a BUG log. Fixes bug
1584       16702; bugfix on 0.2.7.2-alpha.
1585     - Fix undefined behavior in the tor_cert_checksig function. Fixes
1586       bug 17722; bugfix on 0.2.7.2-alpha.
1589 Changes in version 0.2.7.5 - 2015-11-20
1590   The Tor 0.2.7 release series is dedicated to the memory of Tor user
1591   and privacy advocate Caspar Bowden (1961-2015). Caspar worked
1592   tirelessly to advocate human rights regardless of national borders,
1593   and oppose the encroachments of mass surveillance. He opposed national
1594   exceptionalism, he brought clarity to legal and policy debates, he
1595   understood and predicted the impact of mass surveillance on the world,
1596   and he laid the groundwork for resisting it. While serving on the Tor
1597   Project's board of directors, he brought us his uncompromising focus
1598   on technical excellence in the service of humankind. Caspar was an
1599   inimitable force for good and a wonderful friend. He was kind,
1600   humorous, generous, gallant, and believed we should protect one
1601   another without exception. We honor him here for his ideals, his
1602   efforts, and his accomplishments. Please honor his memory with works
1603   that would make him proud.
1605   Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series.
1607   The 0.2.7 series adds a more secure identity key type for relays,
1608   improves cryptography performance, resolves several longstanding
1609   hidden-service performance issues, improves controller support for
1610   hidden services, and includes small bugfixes and performance
1611   improvements throughout the program. This release series also includes
1612   more tests than before, and significant simplifications to which parts
1613   of Tor invoke which others. For a full list of changes, see below.
1615   o New system requirements:
1616     - Tor no longer includes workarounds to support Libevent versions
1617       before 1.3e. Libevent 2.0 or later is recommended. Closes
1618       ticket 15248.
1619     - Tor no longer supports copies of OpenSSL that are missing support
1620       for Elliptic Curve Cryptography. (We began using ECC when
1621       available in 0.2.4.8-alpha, for more safe and efficient key
1622       negotiation.) In particular, support for at least one of P256 or
1623       P224 is now required, with manual configuration needed if only
1624       P224 is available. Resolves ticket 16140.
1625     - Tor no longer supports versions of OpenSSL before 1.0. (If you are
1626       on an operating system that has not upgraded to OpenSSL 1.0 or
1627       later, and you compile Tor from source, you will need to install a
1628       more recent OpenSSL to link Tor against.) These versions of
1629       OpenSSL are still supported by the OpenSSL, but the numerous
1630       cryptographic improvements in later OpenSSL releases makes them a
1631       clear choice. Resolves ticket 16034.
1633   o Major features (controller):
1634     - Add the ADD_ONION and DEL_ONION commands that allow the creation
1635       and management of hidden services via the controller. Closes
1636       ticket 6411.
1637     - New "GETINFO onions/current" and "GETINFO onions/detached"
1638       commands to get information about hidden services created via the
1639       controller. Part of ticket 6411.
1640     - New HSFETCH command to launch a request for a hidden service
1641       descriptor. Closes ticket 14847.
1642     - New HSPOST command to upload a hidden service descriptor. Closes
1643       ticket 3523. Patch by "DonnchaC".
1645   o Major features (Ed25519 identity keys, Proposal 220):
1646     - Add support for offline encrypted Ed25519 master keys. To use this
1647       feature on your tor relay, run "tor --keygen" to make a new master
1648       key (or to make a new signing key if you already have a master
1649       key). Closes ticket 13642.
1650     - All relays now maintain a stronger identity key, using the Ed25519
1651       elliptic curve signature format. This master key is designed so
1652       that it can be kept offline. Relays also generate an online
1653       signing key, and a set of other Ed25519 keys and certificates.
1654       These are all automatically regenerated and rotated as needed.
1655       Implements part of ticket 12498.
1656     - Directory authorities now vote on Ed25519 identity keys along with
1657       RSA1024 keys. Implements part of ticket 12498.
1658     - Directory authorities track which Ed25519 identity keys have been
1659       used with which RSA1024 identity keys, and do not allow them to
1660       vary freely. Implements part of ticket 12498.
1661     - Microdescriptors now include Ed25519 identity keys. Implements
1662       part of ticket 12498.
1663     - Add a --newpass option to allow changing or removing the
1664       passphrase of an encrypted key with tor --keygen. Implements part
1665       of ticket 16769.
1666     - Add a new OfflineMasterKey option to tell Tor never to try loading
1667       or generating a secret Ed25519 identity key. You can use this in
1668       combination with tor --keygen to manage offline and/or encrypted
1669       Ed25519 keys. Implements ticket 16944.
1670     - On receiving a HUP signal, check to see whether the Ed25519
1671       signing key has changed, and reload it if so. Closes ticket 16790.
1672     - Significant usability improvements for Ed25519 key management. Log
1673       messages are better, and the code can recover from far more
1674       failure conditions. Thanks to "s7r" for reporting and diagnosing
1675       so many of these!
1677   o Major features (ECC performance):
1678     - Improve the runtime speed of Ed25519 signature verification by
1679       using Ed25519-donna's batch verification support. Implements
1680       ticket 16533.
1681     - Improve the speed of Ed25519 operations and Curve25519 keypair
1682       generation when built targeting 32 bit x86 platforms with SSE2
1683       available. Implements ticket 16535.
1684     - Improve the runtime speed of Ed25519 operations by using the
1685       public-domain Ed25519-donna by Andrew M. ("floodyberry").
1686       Implements ticket 16467.
1687     - Improve the runtime speed of the ntor handshake by using an
1688       optimized curve25519 basepoint scalarmult implementation from the
1689       public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on
1690       ideas by Adam Langley. Implements ticket 9663.
1692   o Major features (Hidden services):
1693     - Hidden services, if using the EntryNodes option, are required to
1694       use more than one EntryNode, in order to avoid a guard discovery
1695       attack. (This would only affect people who had configured hidden
1696       services and manually specified the EntryNodes option with a
1697       single entry-node. The impact was that it would be easy to
1698       remotely identify the guard node used by such a hidden service.
1699       See ticket for more information.) Fixes ticket 14917.
1700     - Add the torrc option HiddenServiceNumIntroductionPoints, to
1701       specify a fixed number of introduction points. Its maximum value
1702       is 10 and default is 3. Using this option can increase a hidden
1703       service's reliability under load, at the cost of making it more
1704       visible that the hidden service is facing extra load. Closes
1705       ticket 4862.
1706     - Remove the adaptive algorithm for choosing the number of
1707       introduction points, which used to change the number of
1708       introduction points (poorly) depending on the number of
1709       connections the HS sees. Closes ticket 4862.
1711   o Major features (onion key cross-certification):
1712     - Relay descriptors now include signatures of their own identity
1713       keys, made using the TAP and ntor onion keys. These signatures
1714       allow relays to prove ownership of their own onion keys. Because
1715       of this change, microdescriptors will no longer need to include
1716       RSA identity keys. Implements proposal 228; closes ticket 12499.
1718   o Major bugfixes (client-side privacy, also in 0.2.6.9):
1719     - Properly separate out each SOCKSPort when applying stream
1720       isolation. The error occurred because each port's session group
1721       was being overwritten by a default value when the listener
1722       connection was initialized. Fixes bug 16247; bugfix on
1723       0.2.6.3-alpha. Patch by "jojelino".
1725   o Major bugfixes (hidden service clients, stability, also in 0.2.6.10):
1726     - Stop refusing to store updated hidden service descriptors on a
1727       client. This reverts commit 9407040c59218 (which indeed fixed bug
1728       14219, but introduced a major hidden service reachability
1729       regression detailed in bug 16381). This is a temporary fix since
1730       we can live with the minor issue in bug 14219 (it just results in
1731       some load on the network) but the regression of 16381 is too much
1732       of a setback. First-round fix for bug 16381; bugfix
1733       on 0.2.6.3-alpha.
1735   o Major bugfixes (hidden services):
1736     - Revert commit that made directory authorities assign the HSDir
1737       flag to relay without a DirPort; this was bad because such relays
1738       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
1739       on 0.2.6.3-alpha.
1740     - When cannibalizing a circuit for an introduction point, always
1741       extend to the chosen exit node (creating a 4 hop circuit).
1742       Previously Tor would use the current circuit exit node, which
1743       changed the original choice of introduction point, and could cause
1744       the hidden service to skip excluded introduction points or
1745       reconnect to a skipped introduction point. Fixes bug 16260; bugfix
1746       on 0.1.0.1-rc.
1748   o Major bugfixes (memory leaks):
1749     - Fix a memory leak in ed25519 batch signature checking. Fixes bug
1750       17398; bugfix on 0.2.6.1-alpha.
1752   o Major bugfixes (open file limit):
1753     - The open file limit wasn't checked before calling
1754       tor_accept_socket_nonblocking(), which would make Tor exceed the
1755       limit. Now, before opening a new socket, Tor validates the open
1756       file limit just before, and if the max has been reached, return an
1757       error. Fixes bug 16288; bugfix on 0.1.1.1-alpha.
1759   o Major bugfixes (security, correctness):
1760     - Fix an error that could cause us to read 4 bytes before the
1761       beginning of an openssl string. This bug could be used to cause
1762       Tor to crash on systems with unusual malloc implementations, or
1763       systems with unusual hardening installed. Fixes bug 17404; bugfix
1764       on 0.2.3.6-alpha.
1766   o Major bugfixes (stability, also in 0.2.6.10):
1767     - Stop crashing with an assertion failure when parsing certain kinds
1768       of malformed or truncated microdescriptors. Fixes bug 16400;
1769       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
1770       by "cypherpunks_backup".
1771     - Stop random client-side assertion failures that could occur when
1772       connecting to a busy hidden service, or connecting to a hidden
1773       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
1774       on 0.1.0.1-rc.
1776   o Minor features (client, SOCKS):
1777     - Add GroupWritable and WorldWritable options to unix-socket based
1778       SocksPort and ControlPort options. These options apply to a single
1779       socket, and override {Control,Socks}SocketsGroupWritable. Closes
1780       ticket 15220.
1781     - Relax the validation done to hostnames in SOCKS5 requests, and
1782       allow a single trailing '.' to cope with clients that pass FQDNs
1783       using that syntax to explicitly indicate that the domain name is
1784       fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
1785     - Relax the validation of hostnames in SOCKS5 requests, allowing the
1786       character '_' to appear, in order to cope with domains observed in
1787       the wild that are serving non-RFC compliant records. Resolves
1788       ticket 16430.
1790   o Minor features (client-side privacy):
1791     - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit
1792       lifespan when IsolateSOCKSAuth and streams with SOCKS
1793       authentication are attached to the circuit. This allows
1794       applications like TorBrowser to manage circuit lifetime on their
1795       own. Implements feature 15482.
1796     - When logging malformed hostnames from SOCKS5 requests, respect
1797       SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc.
1799   o Minor features (clock-jump tolerance):
1800     - Recover better when our clock jumps back many hours, like might
1801       happen for Tails or Whonix users who start with a very wrong
1802       hardware clock, use Tor to discover a more accurate time, and then
1803       fix their clock. Resolves part of ticket 8766.
1805   o Minor features (command-line interface):
1806     - Make --hash-password imply --hush to prevent unnecessary noise.
1807       Closes ticket 15542. Patch from "cypherpunks".
1808     - Print a warning whenever we find a relative file path being used
1809       as torrc option. Resolves issue 14018.
1811   o Minor features (compilation):
1812     - Give a warning as early as possible when trying to build with an
1813       unsupported OpenSSL version. Closes ticket 16901.
1814     - Use C99 variadic macros when the compiler is not GCC. This avoids
1815       failing compilations on MSVC, and fixes a log-file-based race
1816       condition in our old workarounds. Original patch from Gisle Vanem.
1818   o Minor features (control protocol):
1819     - Support network-liveness GETINFO key and NETWORK_LIVENESS event in
1820       the control protocol. Resolves ticket 15358.
1822   o Minor features (controller):
1823     - Add DirAuthority lines for default directory authorities to the
1824       output of the "GETINFO config/defaults" command if not already
1825       present. Implements ticket 14840.
1826     - Controllers can now use "GETINFO hs/client/desc/id/..." to
1827       retrieve items from the client's hidden service descriptor cache.
1828       Closes ticket 14845.
1829     - Implement a new controller command "GETINFO status/fresh-relay-
1830       descs" to fetch a descriptor/extrainfo pair that was generated on
1831       demand just for the controller's use. Implements ticket 14784.
1833   o Minor features (directory authorities):
1834     - Directory authorities no longer vote against the "Fast", "Stable",
1835       and "HSDir" flags just because they were going to vote against
1836       "Running": if the consensus turns out to be that the router was
1837       running, then the authority's vote should count. Patch from Peter
1838       Retzlaff; closes issue 8712.
1840   o Minor features (directory authorities, security, also in 0.2.6.9):
1841     - The HSDir flag given by authorities now requires the Stable flag.
1842       For the current network, this results in going from 2887 to 2806
1843       HSDirs. Also, it makes it harder for an attacker to launch a sybil
1844       attack by raising the effort for a relay to become Stable to
1845       require at the very least 7 days, while maintaining the 96 hours
1846       uptime requirement for HSDir. Implements ticket 8243.
1848   o Minor features (DoS-resistance):
1849     - Make it harder for attackers to overload hidden services with
1850       introductions, by blocking multiple introduction requests on the
1851       same circuit. Resolves ticket 15515.
1853   o Minor features (geoip):
1854     - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2
1855       Country database.
1857   o Minor features (hidden services):
1858     - Add the new options "HiddenServiceMaxStreams" and
1859       "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to
1860       limit the maximum number of simultaneous streams per circuit, and
1861       optionally tear down the circuit when the limit is exceeded. Part
1862       of ticket 16052.
1863     - Client now uses an introduction point failure cache to know when
1864       to fetch or keep a descriptor in their cache. Previously, failures
1865       were recorded implicitly, but not explicitly remembered. Closes
1866       ticket 16389.
1867     - Relays need to have the Fast flag to get the HSDir flag. As this
1868       is being written, we'll go from 2745 HSDirs down to 2342, a ~14%
1869       drop. This change should make some attacks against the hidden
1870       service directory system harder. Fixes ticket 15963.
1871     - Turn on hidden service statistics collection by setting the torrc
1872       option HiddenServiceStatistics to "1" by default. (This keeps
1873       track only of the fraction of traffic used by hidden services, and
1874       the total number of hidden services in existence.) Closes
1875       ticket 15254.
1876     - To avoid leaking HS popularity, don't cycle the introduction point
1877       when we've handled a fixed number of INTRODUCE2 cells but instead
1878       cycle it when a random number of introductions is reached, thus
1879       making it more difficult for an attacker to find out the amount of
1880       clients that have used the introduction point for a specific HS.
1881       Closes ticket 15745.
1883   o Minor features (logging):
1884     - Include the Tor version in all LD_BUG log messages, since people
1885       tend to cut and paste those into the bugtracker. Implements
1886       ticket 15026.
1888   o Minor features (pluggable transports):
1889     - When launching managed pluggable transports on Linux systems,
1890       attempt to have the kernel deliver a SIGTERM on tor exit if the
1891       pluggable transport process is still running. Resolves
1892       ticket 15471.
1893     - When launching managed pluggable transports, setup a valid open
1894       stdin in the child process that can be used to detect if tor has
1895       terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable
1896       can be used by implementations to detect this new behavior.
1897       Resolves ticket 15435.
1899   o Minor bugfixes (torrc exit policies):
1900     - In each instance above, usage advice is provided to avoid the
1901       message. Resolves ticket 16069. Patch by "teor". Fixes part of bug
1902       16069; bugfix on 0.2.4.7-alpha.
1903     - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only
1904       produce IPv6 wildcard addresses. Previously they would produce
1905       both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part
1906       of bug 16069; bugfix on 0.2.4.7-alpha.
1907     - When parsing torrc ExitPolicies, we now issue an info-level
1908       message when expanding an "accept/reject *" line to include both
1909       IPv4 and IPv6 wildcard addresses. Related to ticket 16069.
1910     - When parsing torrc ExitPolicies, we now warn for a number of cases
1911       where the user's intent is likely to differ from Tor's actual
1912       behavior. These include: using an IPv4 address with an accept6 or
1913       reject6 line; using "private" on an accept6 or reject6 line; and
1914       including any ExitPolicy lines after accept *:* or reject *:*.
1915       Related to ticket 16069.
1917   o Minor bugfixes (command-line interface):
1918     - When "--quiet" is provided along with "--validate-config", do not
1919       write anything to stdout on success. Fixes bug 14994; bugfix
1920       on 0.2.3.3-alpha.
1921     - When complaining about bad arguments to "--dump-config", use
1922       stderr, not stdout.
1923     - Print usage information for --dump-config when it is used without
1924       an argument. Also, fix the error message to use different wording
1925       and add newline at the end. Fixes bug 15541; bugfix
1926       on 0.2.5.1-alpha.
1928   o Minor bugfixes (compilation):
1929     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
1930       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
1931     - Repair compilation with the most recent (unreleased, alpha)
1932       vesions of OpenSSL 1.1. Fixes part of ticket 17237.
1934   o Minor bugfixes (compilation, also in 0.2.6.9):
1935     - Build with --enable-systemd correctly when libsystemd is
1936       installed, but systemd is not. Fixes bug 16164; bugfix on
1937       0.2.6.3-alpha. Patch from Peter Palfrader.
1939   o Minor bugfixes (configuration, unit tests):
1940     - Only add the default fallback directories when the DirAuthorities,
1941       AlternateDirAuthority, and FallbackDir directory config options
1942       are set to their defaults. The default fallback directory list is
1943       currently empty, this fix will only change tor's behavior when it
1944       has default fallback directories. Includes unit tests for
1945       consider_adding_dir_servers(). Fixes bug 15642; bugfix on
1946       90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
1948   o Minor bugfixes (controller):
1949     - Add the descriptor ID in each HS_DESC control event. It was
1950       missing, but specified in control-spec.txt. Fixes bug 15881;
1951       bugfix on 0.2.5.2-alpha.
1953   o Minor bugfixes (correctness):
1954     - For correctness, avoid modifying a constant string in
1955       handle_control_postdescriptor. Fixes bug 15546; bugfix
1956       on 0.1.1.16-rc.
1957     - Remove side-effects from tor_assert() calls. This was harmless,
1958       because we never disable assertions, but it is bad style and
1959       unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36,
1960       and 0.2.0.10.
1961     - When calling channel_free_list(), avoid calling smartlist_remove()
1962       while inside a FOREACH loop. This partially reverts commit
1963       17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
1964       incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha.
1966   o Minor bugfixes (crypto error-handling, also in 0.2.6.10):
1967     - Check for failures from crypto_early_init, and refuse to continue.
1968       A previous typo meant that we could keep going with an
1969       uninitialized crypto library, and would have OpenSSL initialize
1970       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
1971       when implementing ticket 4900. Patch by "teor".
1973   o Minor bugfixes (hidden service):
1974     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
1975       a client authorized hidden service. Fixes bug 15823; bugfix
1976       on 0.2.1.6-alpha.
1977     - Remove an extraneous newline character from the end of hidden
1978       service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha.
1980   o Minor bugfixes (Linux seccomp2 sandbox):
1981     - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is
1982       defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha.
1983     - Allow bridge authorities to run correctly under the seccomp2
1984       sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha.
1985     - Add the "hidserv-stats" filename to our sandbox filter for the
1986       HiddenServiceStatistics option to work properly. Fixes bug 17354;
1987       bugfix on 0.2.6.2-alpha. Patch from David Goulet.
1989   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10):
1990     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
1991       these when eventfd2() support is missing. Fixes bug 16363; bugfix
1992       on 0.2.6.3-alpha. Patch from "teor".
1994   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9):
1995     - Allow systemd connections to work with the Linux seccomp2 sandbox
1996       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
1997       Peter Palfrader.
1998     - Fix sandboxing to work when running as a relay, by allowing the
1999       renaming of secret_id_key, and allowing the eventfd2 and futex
2000       syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by
2001       Peter Palfrader.
2003   o Minor bugfixes (logging):
2004     - When building Tor under Clang, do not include an extra set of
2005       parentheses in log messages that include function names. Fixes bug
2006       15269; bugfix on every released version of Tor when compiled with
2007       recent enough Clang.
2009   o Minor bugfixes (network):
2010     - When attempting to use fallback technique for network interface
2011       lookup, disregard loopback and multicast addresses since they are
2012       unsuitable for public communications.
2014   o Minor bugfixes (open file limit):
2015     - Fix set_max_file_descriptors() to set by default the max open file
2016       limit to the current limit when setrlimit() fails. Fixes bug
2017       16274; bugfix on tor- 0.2.0.10-alpha. Patch by dgoulet.
2019   o Minor bugfixes (portability):
2020     - Check correctly for Windows socket errors in the workqueue
2021       backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha.
2022     - Try harder to normalize the exit status of the Tor process to the
2023       standard-provided range. Fixes bug 16975; bugfix on every version
2024       of Tor ever.
2025     - Use libexecinfo on FreeBSD to enable backtrace support. Fixes part
2026       of bug 17151; bugfix on 0.2.5.2-alpha. Patch from Marcin CieÅ›lak.
2028   o Minor bugfixes (relay):
2029     - Ensure that worker threads actually exit when a fatal error or
2030       shutdown is indicated. This fix doesn't currently affect the
2031       behavior of Tor, because Tor workers never indicates fatal error
2032       or shutdown except in the unit tests. Fixes bug 16868; bugfix
2033       on 0.2.6.3-alpha.
2034     - Fix a rarely-encountered memory leak when failing to initialize
2035       the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch
2036       from "cypherpunks".
2037     - Unblock threads before releasing the work queue mutex to ensure
2038       predictable scheduling behavior. Fixes bug 16644; bugfix
2039       on 0.2.6.3-alpha.
2041   o Minor bugfixes (security, exit policies):
2042     - ExitPolicyRejectPrivate now also rejects the relay's published
2043       IPv6 address (if any), and any publicly routable IPv4 or IPv6
2044       addresses on any local interfaces. ticket 17027. Patch by "teor".
2045       Fixes bug 17027; bugfix on 0.2.0.11-alpha.
2047   o Minor bugfixes (statistics):
2048     - Disregard the ConnDirectionStatistics torrc options when Tor is
2049       not a relay since in that mode of operation no sensible data is
2050       being collected and because Tor might run into measurement hiccups
2051       when running as a client for some time, then becoming a relay.
2052       Fixes bug 15604; bugfix on 0.2.2.35.
2054   o Minor bugfixes (systemd):
2055     - Tor's systemd unit file no longer contains extraneous spaces.
2056       These spaces would sometimes confuse tools like deb-systemd-
2057       helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha.
2059   o Minor bugfixes (test networks):
2060     - When self-testing reachability, use ExtendAllowPrivateAddresses to
2061       determine if local/private addresses imply reachability. The
2062       previous fix used TestingTorNetwork, which implies
2063       ExtendAllowPrivateAddresses, but this excluded rare configurations
2064       where ExtendAllowPrivateAddresses is set but TestingTorNetwork is
2065       not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor",
2066       issue discovered by CJ Ess.
2068   o Minor bugfixes (tests, also in 0.2.6.9):
2069     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
2070       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
2072   o Code simplification and refactoring:
2073     - Change the function that's called when we need to retry all
2074       downloads so that it only reschedules the downloads to happen
2075       immediately, rather than launching them all at once itself. This
2076       further simplifies Tor's callgraph.
2077     - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order
2078       to ensure they remain consistent and visible everywhere.
2079     - Move some format-parsing functions out of crypto.c and
2080       crypto_curve25519.c into crypto_format.c and/or util_format.c.
2081     - Move the client-only parts of init_keys() into a separate
2082       function. Closes ticket 16763.
2083     - Move the hacky fallback code out of get_interface_address6() into
2084       separate function and get it covered with unit-tests. Resolves
2085       ticket 14710.
2086     - Refactor hidden service client-side cache lookup to intelligently
2087       report its various failure cases, and disentangle failure cases
2088       involving a lack of introduction points. Closes ticket 14391.
2089     - Remove some vestigial workarounds for the MSVC6 compiler. We
2090       haven't supported that in ages.
2091     - Remove the unused "nulterminate" argument from buf_pullup().
2092     - Simplify the microdesc_free() implementation so that it no longer
2093       appears (to code analysis tools) to potentially invoke a huge
2094       suite of other microdesc functions.
2095     - Simply the control graph further by deferring the inner body of
2096       directory_all_unreachable() into a callback. Closes ticket 16762.
2097     - The link authentication code has been refactored for better
2098       testability and reliability. It now uses code generated with the
2099       "trunnel" binary encoding generator, to reduce the risk of bugs
2100       due to programmer error. Done as part of ticket 12498.
2101     - Treat the loss of an owning controller as equivalent to a SIGTERM
2102       signal. This removes a tiny amount of duplicated code, and
2103       simplifies our callgraph. Closes ticket 16788.
2104     - Use our own Base64 encoder instead of OpenSSL's, to allow more
2105       control over the output. Part of ticket 15652.
2106     - When generating an event to send to the controller, we no longer
2107       put the event over the network immediately. Instead, we queue
2108       these events, and use a Libevent callback to deliver them. This
2109       change simplifies Tor's callgraph by reducing the number of
2110       functions from which all other Tor functions are reachable. Closes
2111       ticket 16695.
2112     - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools
2113       that try to scan or compile every file on Unix won't decide that
2114       they are broken.
2116   o Documentation:
2117     - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609.
2118     - Improve the descriptions of statistics-related torrc options in
2119       the manpage to describe rationale and possible uses cases. Fixes
2120       issue 15550.
2121     - Improve the layout and formatting of ./configure --help messages.
2122       Closes ticket 15024. Patch from "cypherpunks".
2123     - Include a specific and (hopefully) accurate documentation of the
2124       torrc file's meta-format in doc/torrc_format.txt. This is mainly
2125       of interest to people writing programs to parse or generate torrc
2126       files. This document is not a commitment to long-term
2127       compatibility; some aspects of the current format are a bit
2128       ridiculous. Closes ticket 2325.
2129     - Include the TUNING document in our source tarball. It is referred
2130       to in the ChangeLog and an error message. Fixes bug 16929; bugfix
2131       on 0.2.6.1-alpha.
2132     - Note that HiddenServicePorts can take a unix domain socket. Closes
2133       ticket 17364.
2134     - Recommend a 40 GB example AccountingMax in torrc.sample rather
2135       than a 4 GB max. Closes ticket 16742.
2136     - Standardize on the term "server descriptor" in the manual page.
2137       Previously, we had used "router descriptor", "server descriptor",
2138       and "relay descriptor" interchangeably. Part of ticket 14987.
2139     - Advise users on how to configure separate IPv4 and IPv6 exit
2140       policies in the manpage and sample torrcs. Related to ticket 16069.
2141     - Fix an error in the manual page and comments for
2142       TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir
2143       required "ORPort connectivity". While this is true, it is in no
2144       way unique to the HSDir flag. Of all the flags, only HSDirs need a
2145       DirPort configured in order for the authorities to assign that
2146       particular flag. Patch by "teor". Fixed as part of 14882; bugfix
2147       on 0.2.6.3-alpha.
2148     - Fix the usage message of tor-resolve(1) so that it no longer lists
2149       the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta.
2151   o Removed code:
2152     - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code
2153       and always use the internal Base64 decoder. The internal decoder
2154       has been part of tor since 0.2.0.10-alpha, and no one should
2155       be using the OpenSSL one. Part of ticket 15652.
2156     - Remove the 'tor_strclear()' function; use memwipe() instead.
2157       Closes ticket 14922.
2158     - Remove the code that would try to aggressively flush controller
2159       connections while writing to them. This code was introduced in
2160       0.1.2.7-alpha, in order to keep output buffers from exceeding
2161       their limits. But there is no longer a maximum output buffer size,
2162       and flushing data in this way caused some undesirable recursions
2163       in our call graph. Closes ticket 16480.
2164     - The internal pure-C tor-fw-helper tool is now removed from the Tor
2165       distribution, in favor of the pure-Go clone available from
2166       https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries
2167       used by the C tor-fw-helper are not, in our opinion, very
2168       confidence- inspiring in their secure-programming techniques.
2169       Closes ticket 13338.
2171   o Removed features:
2172     - Remove the (seldom-used) DynamicDHGroups feature. For anti-
2173       fingerprinting we now recommend pluggable transports; for forward-
2174       secrecy in TLS, we now use the P-256 group. Closes ticket 13736.
2175     - Remove the HidServDirectoryV2 option. Now all relays offer to
2176       store hidden service descriptors. Related to 16543.
2177     - Remove the VoteOnHidServDirectoriesV2 option, since all
2178       authorities have long set it to 1. Closes ticket 16543.
2179     - Remove the undocumented "--digests" command-line option. It
2180       complicated our build process, caused subtle build issues on
2181       multiple platforms, and is now redundant since we started
2182       including git version identifiers. Closes ticket 14742.
2183     - Tor no longer contains checks for ancient directory cache versions
2184       that didn't know about microdescriptors.
2185     - Tor no longer contains workarounds for stat files generated by
2186       super-old versions of Tor that didn't choose guards sensibly.
2188   o Testing:
2189     - The test-network.sh script now supports performance testing.
2190       Requires corresponding chutney performance testing changes. Patch
2191       by "teor". Closes ticket 14175.
2192     - Add a new set of callgraph analysis scripts that use clang to
2193       produce a list of which Tor functions are reachable from which
2194       other Tor functions. We're planning to use these to help simplify
2195       our code structure by identifying illogical dependencies.
2196     - Add new 'test-full' and 'test-full-online' targets to run all
2197       tests, including integration tests with stem and chutney.
2198     - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side-
2199       by-side in the same parent directory. Closes ticket 16903. Patch
2200       by "teor".
2201     - Document use of coverity, clang static analyzer, and clang dynamic
2202       undefined behavior and address sanitizers in doc/HACKING. Include
2203       detailed usage instructions in the blacklist. Patch by "teor".
2204       Closes ticket 15817.
2205     - Make "bridges+hs" the default test network. This tests almost all
2206       tor functionality during make test-network, while allowing tests
2207       to succeed on non-IPv6 systems. Requires chutney commit 396da92 in
2208       test-network-bridges-hs. Closes tickets 16945 (tor) and 16946
2209       (chutney). Patches by "teor".
2210     - Make the test-workqueue test work on Windows by initializing the
2211       network before we begin.
2212     - New make target (make test-network-all) to run multiple applicable
2213       chutney test cases. Patch from Teor; closes 16953.
2214     - Now that OpenSSL has its own scrypt implementation, add an unit
2215       test that checks for interoperability between libscrypt_scrypt()
2216       and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt
2217       and rely on EVP_PBE_scrypt() whenever possible. Resolves
2218       ticket 16189.
2219     - The link authentication protocol code now has extensive tests.
2220     - The relay descriptor signature testing code now has
2221       extensive tests.
2222     - The test_workqueue program now runs faster, and is enabled by
2223       default as a part of "make check".
2224     - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl()
2225       functions in dns.c. Implements a portion of ticket 16831.
2226     - Use environment variables rather than autoconf substitutions to
2227       send variables from the build system to the test scripts. This
2228       change should be easier to maintain, and cause 'make distcheck' to
2229       work better than before. Fixes bug 17148.
2230     - When building Tor with testing coverage enabled, run Chutney tests
2231       (if any) using the 'tor-cov' coverage binary.
2232     - When running test-network or test-stem, check for the absence of
2233       stem/chutney before doing any build operations.
2234     - Add a test to verify that the compiler does not eliminate our
2235       memwipe() implementation. Closes ticket 15377.
2236     - Add make rule `check-changes` to verify the format of changes
2237       files. Closes ticket 15180.
2238     - Add unit tests for control_event_is_interesting(). Add a compile-
2239       time check that the number of events doesn't exceed the capacity
2240       of control_event_t.event_mask. Closes ticket 15431, checks for
2241       bugs similar to 13085. Patch by "teor".
2242     - Command-line argument tests moved to Stem. Resolves ticket 14806.
2243     - Integrate the ntor, backtrace, and zero-length keys tests into the
2244       automake test suite. Closes ticket 15344.
2245     - Remove assertions during builds to determine Tor's test coverage.
2246       We don't want to trigger these even in assertions, so including
2247       them artificially makes our branch coverage look worse than it is.
2248       This patch provides the new test-stem-full and coverage-html-full
2249       configure options. Implements ticket 15400.
2250     - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to
2251       explicitly manage consensus flags in testing networks. Patch by
2252       "robgjansen", modified by "teor". Implements part of ticket 14882.
2253     - Check for matching value in server response in ntor_ref.py. Fixes
2254       bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
2255       by "joelanders".
2256     - Set the severity correctly when testing
2257       get_interface_addresses_ifaddrs() and
2258       get_interface_addresses_win32(), so that the tests fail gracefully
2259       instead of triggering an assertion. Fixes bug 15759; bugfix on
2260       0.2.6.3-alpha. Reported by Nicolas Derive.
2262 Changes in version 0.2.6.10 - 2015-07-12
2263   Tor version 0.2.6.10 fixes some significant stability and hidden
2264   service client bugs, bulletproofs the cryptography init process, and
2265   fixes a bug when using the sandbox code with some older versions of
2266   Linux. Everyone running an older version, especially an older version
2267   of 0.2.6, should upgrade.
2269   o Major bugfixes (hidden service clients, stability):
2270     - Stop refusing to store updated hidden service descriptors on a
2271       client. This reverts commit 9407040c59218 (which indeed fixed bug
2272       14219, but introduced a major hidden service reachability
2273       regression detailed in bug 16381). This is a temporary fix since
2274       we can live with the minor issue in bug 14219 (it just results in
2275       some load on the network) but the regression of 16381 is too much
2276       of a setback. First-round fix for bug 16381; bugfix
2277       on 0.2.6.3-alpha.
2279   o Major bugfixes (stability):
2280     - Stop crashing with an assertion failure when parsing certain kinds
2281       of malformed or truncated microdescriptors. Fixes bug 16400;
2282       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
2283       by "cypherpunks_backup".
2284     - Stop random client-side assertion failures that could occur when
2285       connecting to a busy hidden service, or connecting to a hidden
2286       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
2287       on 0.1.0.1-rc.
2289   o Minor features (geoip):
2290     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
2291     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
2293   o Minor bugfixes (crypto error-handling):
2294     - Check for failures from crypto_early_init, and refuse to continue.
2295       A previous typo meant that we could keep going with an
2296       uninitialized crypto library, and would have OpenSSL initialize
2297       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
2298       when implementing ticket 4900. Patch by "teor".
2300   o Minor bugfixes (Linux seccomp2 sandbox):
2301     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
2302       these when eventfd2() support is missing. Fixes bug 16363; bugfix
2303       on 0.2.6.3-alpha. Patch from "teor".
2306 Changes in version 0.2.6.9 - 2015-06-11
2307   Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the
2308   requirements for receiving an HSDir flag, and addresses some other small
2309   bugs in the systemd and sandbox code. Clients using circuit isolation
2310   should upgrade; all directory authorities should upgrade.
2312   o Major bugfixes (client-side privacy):
2313     - Properly separate out each SOCKSPort when applying stream
2314       isolation. The error occurred because each port's session group was
2315       being overwritten by a default value when the listener connection
2316       was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch
2317       by "jojelino".
2319   o Minor feature (directory authorities, security):
2320     - The HSDir flag given by authorities now requires the Stable flag.
2321       For the current network, this results in going from 2887 to 2806
2322       HSDirs. Also, it makes it harder for an attacker to launch a sybil
2323       attack by raising the effort for a relay to become Stable which
2324       takes at the very least 7 days to do so and by keeping the 96
2325       hours uptime requirement for HSDir. Implements ticket 8243.
2327   o Minor bugfixes (compilation):
2328     - Build with --enable-systemd correctly when libsystemd is
2329       installed, but systemd is not. Fixes bug 16164; bugfix on
2330       0.2.6.3-alpha. Patch from Peter Palfrader.
2332   o Minor bugfixes (Linux seccomp2 sandbox):
2333     - Fix sandboxing to work when running as a relaymby renaming of
2334       secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes
2335       bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader.
2336     - Allow systemd connections to work with the Linux seccomp2 sandbox
2337       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
2338       Peter Palfrader.
2340   o Minor bugfixes (tests):
2341     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
2342       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
2345 Changes in version 0.2.6.8 - 2015-05-21
2346   Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and
2347   fixes an authority-side bug in assigning the HSDir flag. All directory
2348   authorities should upgrade.
2350   o Major bugfixes (hidden services, backport from 0.2.7.1-alpha):
2351     - Revert commit that made directory authorities assign the HSDir
2352       flag to relay without a DirPort; this was bad because such relays
2353       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
2354       on 0.2.6.3-alpha.
2356   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
2357     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
2358       a client authorized hidden service. Fixes bug 15823; bugfix
2359       on 0.2.1.6-alpha.
2361   o Minor features (geoip):
2362     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
2363     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
2364       Country database.
2367 Changes in version 0.2.6.7 - 2015-04-06
2368   Tor 0.2.6.7 fixes two security issues that could be used by an
2369   attacker to crash hidden services, or crash clients visiting hidden
2370   services. Hidden services should upgrade as soon as possible; clients
2371   should upgrade whenever packages become available.
2373   This release also contains two simple improvements to make hidden
2374   services a bit less vulnerable to denial-of-service attacks.
2376   o Major bugfixes (security, hidden service):
2377     - Fix an issue that would allow a malicious client to trigger an
2378       assertion failure and halt a hidden service. Fixes bug 15600;
2379       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
2380     - Fix a bug that could cause a client to crash with an assertion
2381       failure when parsing a malformed hidden service descriptor. Fixes
2382       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
2384   o Minor features (DoS-resistance, hidden service):
2385     - Introduction points no longer allow multiple INTRODUCE1 cells to
2386       arrive on the same circuit. This should make it more expensive for
2387       attackers to overwhelm hidden services with introductions.
2388       Resolves ticket 15515.
2389     - Decrease the amount of reattempts that a hidden service performs
2390       when its rendezvous circuits fail. This reduces the computational
2391       cost for running a hidden service under heavy load. Resolves
2392       ticket 11447.
2395 Changes in version 0.2.5.12 - 2015-04-06
2396   Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
2397   could be used by an attacker to crash hidden services, or crash clients
2398   visiting hidden services. Hidden services should upgrade as soon as
2399   possible; clients should upgrade whenever packages become available.
2401   This release also backports a simple improvement to make hidden
2402   services a bit less vulnerable to denial-of-service attacks.
2404   o Major bugfixes (security, hidden service):
2405     - Fix an issue that would allow a malicious client to trigger an
2406       assertion failure and halt a hidden service. Fixes bug 15600;
2407       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
2408     - Fix a bug that could cause a client to crash with an assertion
2409       failure when parsing a malformed hidden service descriptor. Fixes
2410       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
2412   o Minor features (DoS-resistance, hidden service):
2413     - Introduction points no longer allow multiple INTRODUCE1 cells to
2414       arrive on the same circuit. This should make it more expensive for
2415       attackers to overwhelm hidden services with introductions.
2416       Resolves ticket 15515.
2419 Changes in version 0.2.4.27 - 2015-04-06
2420   Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that
2421   could be used by an attacker to crash hidden services, or crash clients
2422   visiting hidden services. Hidden services should upgrade as soon as
2423   possible; clients should upgrade whenever packages become available.
2425   This release also backports a simple improvement to make hidden
2426   services a bit less vulnerable to denial-of-service attacks.
2428   o Major bugfixes (security, hidden service):
2429     - Fix an issue that would allow a malicious client to trigger an
2430       assertion failure and halt a hidden service. Fixes bug 15600;
2431       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
2432     - Fix a bug that could cause a client to crash with an assertion
2433       failure when parsing a malformed hidden service descriptor. Fixes
2434       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
2436   o Minor features (DoS-resistance, hidden service):
2437     - Introduction points no longer allow multiple INTRODUCE1 cells to
2438       arrive on the same circuit. This should make it more expensive for
2439       attackers to overwhelm hidden services with introductions.
2440       Resolves ticket 15515.
2443 Changes in version 0.2.6.6 - 2015-03-24
2444   Tor 0.2.6.6 is the first stable release in the 0.2.6 series.
2446   It adds numerous safety, security, correctness, and performance
2447   improvements. Client programs can be configured to use more kinds of
2448   sockets, AutomapHosts works better, the multithreading backend is
2449   improved, cell transmission is refactored, test coverage is much
2450   higher, more denial-of-service attacks are handled, guard selection is
2451   improved to handle long-term guards better, pluggable transports
2452   should work a bit better, and some annoying hidden service performance
2453   bugs should be addressed.
2455   o New compiler and system requirements:
2456     - Tor 0.2.6.x requires that your compiler support more of the C99
2457       language standard than before. The 'configure' script now detects
2458       whether your compiler supports C99 mid-block declarations and
2459       designated initializers. If it does not, Tor will not compile.
2461       We may revisit this requirement if it turns out that a significant
2462       number of people need to build Tor with compilers that don't
2463       bother implementing a 15-year-old standard. Closes ticket 13233.
2464     - Tor no longer supports systems without threading support. When we
2465       began working on Tor, there were several systems that didn't have
2466       threads, or where the thread support wasn't able to run the
2467       threads of a single process on multiple CPUs. That no longer
2468       holds: every system where Tor needs to run well now has threading
2469       support. Resolves ticket 12439.
2471   o Deprecated versions and removed support:
2472     - Tor relays older than 0.2.4.18-rc are no longer allowed to
2473       advertise themselves on the network. Closes ticket 13555.
2474     - Tor clients no longer support connecting to hidden services
2475       running on Tor 0.2.2.x and earlier; the Support022HiddenServices
2476       option has been removed. (There shouldn't be any hidden services
2477       running these versions on the network.) Closes ticket 7803.
2479   o Directory authority changes:
2480     - The directory authority Faravahar has a new IP address. This
2481       closes ticket 14487.
2482     - Remove turtles as a directory authority.
2483     - Add longclaw as a new (v3) directory authority. This implements
2484       ticket 13296. This keeps the directory authority count at 9.
2486   o Major features (bridges):
2487     - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
2488       transports if they are configured via the "TOR_PT_PROXY"
2489       environment variable. Implements proposal 232. Resolves
2490       ticket 8402.
2492   o Major features (changed defaults):
2493     - Prevent relay operators from unintentionally running exits: When a
2494       relay is configured as an exit node, we now warn the user unless
2495       the "ExitRelay" option is set to 1. We warn even more loudly if
2496       the relay is configured with the default exit policy, since this
2497       can indicate accidental misconfiguration. Setting "ExitRelay 0"
2498       stops Tor from running as an exit relay. Closes ticket 10067.
2500   o Major features (client performance, hidden services):
2501     - Allow clients to use optimistic data when connecting to a hidden
2502       service, which should remove a round-trip from hidden service
2503       initialization. See proposal 181 for details. Implements
2504       ticket 13211.
2506   o Major features (directory system):
2507     - Upon receiving an unparseable directory object, if its digest
2508       matches what we expected, then don't try to download it again.
2509       Previously, when we got a descriptor we didn't like, we would keep
2510       trying to download it over and over. Closes ticket 11243.
2511     - When downloading server- or microdescriptors from a directory
2512       server, we no longer launch multiple simultaneous requests to the
2513       same server. This reduces load on the directory servers,
2514       especially when directory guards are in use. Closes ticket 9969.
2515     - When downloading server- or microdescriptors over a tunneled
2516       connection, do not limit the length of our requests to what the
2517       Squid proxy is willing to handle. Part of ticket 9969.
2518     - Authorities can now vote on the correct digests and latest
2519       versions for different software packages. This allows packages
2520       that include Tor to use the Tor authority system as a way to get
2521       notified of updates and their correct digests. Implements proposal
2522       227. Closes ticket 10395.
2524   o Major features (guards):
2525     - Introduce the Guardfraction feature to improves load balancing on
2526       guard nodes. Specifically, it aims to reduce the traffic gap that
2527       guard nodes experience when they first get the Guard flag. This is
2528       a required step if we want to increase the guard lifetime to 9
2529       months or greater.  Closes ticket 9321.
2531   o Major features (hidden services):
2532     - Make HS port scanning more difficult by immediately closing the
2533       circuit when a user attempts to connect to a nonexistent port.
2534       Closes ticket 13667.
2535     - Add a HiddenServiceStatistics option that allows Tor relays to
2536       gather and publish statistics about the overall size and volume of
2537       hidden service usage. Specifically, when this option is turned on,
2538       an HSDir will publish an approximate number of hidden services
2539       that have published descriptors to it the past 24 hours. Also, if
2540       a relay has acted as a hidden service rendezvous point, it will
2541       publish the approximate amount of rendezvous cells it has relayed
2542       the past 24 hours. The statistics themselves are obfuscated so
2543       that the exact values cannot be derived. For more details see
2544       proposal 238, "Better hidden service stats from Tor relays". This
2545       feature is currently disabled by default. Implements feature 13192.
2547   o Major features (performance):
2548     - Make the CPU worker implementation more efficient by avoiding the
2549       kernel and lengthening pipelines. The original implementation used
2550       sockets to transfer data from the main thread to the workers, and
2551       didn't allow any thread to be assigned more than a single piece of
2552       work at once. The new implementation avoids communications
2553       overhead by making requests in shared memory, avoiding kernel IO
2554       where possible, and keeping more requests in flight at once.
2555       Implements ticket 9682.
2557   o Major features (relay):
2558     - Raise the minimum acceptable configured bandwidth rate for bridges
2559       to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were
2560       20 KiB/sec.) Closes ticket 13822.
2561     - Complete revision of the code that relays use to decide which cell
2562       to send next. Formerly, we selected the best circuit to write on
2563       each channel, but we didn't select among channels in any
2564       sophisticated way. Now, we choose the best circuits globally from
2565       among those whose channels are ready to deliver traffic.
2567       This patch implements a new inter-cmux comparison API, a global
2568       high/low watermark mechanism and a global scheduler loop for
2569       transmission prioritization across all channels as well as among
2570       circuits on one channel. This schedule is currently tuned to
2571       (tolerantly) avoid making changes in network performance, but it
2572       should form the basis for major circuit performance increases in
2573       the future. Code by Andrea; tuning by Rob Jansen; implements
2574       ticket 9262.
2576   o Major features (sample torrc):
2577     - Add a new, infrequently-changed "torrc.minimal". This file is
2578       similar to torrc.sample, but it will change as infrequently as
2579       possible, for the benefit of users whose systems prompt them for
2580       intervention whenever a default configuration file is changed.
2581       Making this change allows us to update torrc.sample to be a more
2582       generally useful "sample torrc".
2584   o Major features (security, unix domain sockets):
2585     - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk
2586       applications can reach Tor without having to create AF_INET or
2587       AF_INET6 sockets, meaning they can completely disable their
2588       ability to make non-Tor network connections. To create a socket of
2589       this type, use "SocksPort unix:/path/to/socket". Implements
2590       ticket 12585.
2591     - Support mapping hidden service virtual ports to AF_UNIX sockets.
2592       The syntax is "HiddenServicePort 80 unix:/path/to/socket".
2593       Implements ticket 11485.
2595   o Major bugfixes (client, automap):
2596     - Repair automapping with IPv6 addresses. This automapping should
2597       have worked previously, but one piece of debugging code that we
2598       inserted to detect a regression actually caused the regression to
2599       manifest itself again. Fixes bug 13811 and bug 12831; bugfix on
2600       0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas
2601       Izquierdo Riera.
2603   o Major bugfixes (crash, OSX, security):
2604     - Fix a remote denial-of-service opportunity caused by a bug in
2605       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
2606       in OSX 10.9.
2608   o Major bugfixes (directory authorities):
2609     - Do not assign the HSDir flag to relays if they are not Valid, or
2610       currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha.
2612   o Major bugfixes (directory bandwidth performance):
2613     - Don't flush the zlib buffer aggressively when compressing
2614       directory information for clients. This should save about 7% of
2615       the bandwidth currently used for compressed descriptors and
2616       microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23.
2618   o Major bugfixes (exit node stability):
2619     - Fix an assertion failure that could occur under high DNS load.
2620       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
2621       diagnosed and fixed by "cypherpunks".
2623   o Major bugfixes (FreeBSD IPFW transparent proxy):
2624     - Fix address detection with FreeBSD transparent proxies, when
2625       "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix
2626       on 0.2.5.4-alpha.
2628   o Major bugfixes (hidden services):
2629     - When closing an introduction circuit that was opened in parallel
2630       with others, don't mark the introduction point as unreachable.
2631       Previously, the first successful connection to an introduction
2632       point would make the other introduction points get marked as
2633       having timed out. Fixes bug 13698; bugfix on 0.0.6rc2.
2635   o Major bugfixes (Linux seccomp2 sandbox):
2636     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
2637       crash during attempts to call wait4. Fixes bug 15088; bugfix on
2638       0.2.5.1-alpha. Patch from "sanic".
2640   o Major bugfixes (mixed relay-client operation):
2641     - When running as a relay and client at the same time (not
2642       recommended), if we decide not to use a new guard because we want
2643       to retry older guards, only close the locally-originating circuits
2644       passing through that guard. Previously we would close all the
2645       circuits through that guard. Fixes bug 9819; bugfix on
2646       0.2.1.1-alpha. Reported by "skruffy".
2648   o Major bugfixes (pluggable transports):
2649     - Initialize the extended OR Port authentication cookie before
2650       launching pluggable transports. This prevents a race condition
2651       that occured when server-side pluggable transports would cache the
2652       authentication cookie before it has been (re)generated. Fixes bug
2653       15240; bugfix on 0.2.5.1-alpha.
2655   o Major bugfixes (relay, stability, possible security):
2656     - Fix a bug that could lead to a relay crashing with an assertion
2657       failure if a buffer of exactly the wrong layout is passed to
2658       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
2659       0.2.0.10-alpha. Patch from "cypherpunks".
2660     - Do not assert if the 'data' pointer on a buffer is advanced to the
2661       very end of the buffer; log a BUG message instead. Only assert if
2662       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
2664   o Minor features (build):
2665     - New --disable-system-torrc compile-time option to prevent Tor from
2666       looking for the system-wide torrc or torrc-defaults files.
2667       Resolves ticket 13037.
2669   o Minor features (client):
2670     - Clients are now willing to send optimistic data (before they
2671       receive a 'connected' cell) to relays of any version. (Relays
2672       without support for optimistic data are no longer supported on the
2673       Tor network.) Resolves ticket 13153.
2675   o Minor features (client):
2676     - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks
2677       is enabled, reject requests with IP addresses as hostnames.
2678       Resolves ticket 13315.
2680   o Minor features (controller):
2681     - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to
2682       write an unscheduled heartbeat message to the log. Implements
2683       feature 9503.
2684     - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller
2685       events so controllers can observe circuit isolation inputs. Closes
2686       ticket 8405.
2687     - ControlPort now supports the unix:/path/to/socket syntax as an
2688       alternative to the ControlSocket option, for consistency with
2689       SocksPort and HiddenServicePort. Closes ticket 14451.
2690     - New "GETINFO bw-event-cache" to get information about recent
2691       bandwidth events. Closes ticket 14128. Useful for controllers to
2692       get recent bandwidth history after the fix for ticket 13988.
2693     - Messages about problems in the bootstrap process now include
2694       information about the server we were trying to connect to when we
2695       noticed the problem. Closes ticket 15006.
2697   o Minor features (Denial of service resistance):
2698     - Count the total number of bytes used storing hidden service
2699       descriptors against the value of MaxMemInQueues. If we're low on
2700       memory, and more than 20% of our memory is used holding hidden
2701       service descriptors, free them until no more than 10% of our
2702       memory holds hidden service descriptors. Free the least recently
2703       fetched descriptors first. Resolves ticket 13806.
2704     - When we have recently been under memory pressure (over 3/4 of
2705       MaxMemInQueues is allocated), then allocate smaller zlib objects
2706       for small requests. Closes ticket 11791.
2708   o Minor features (directory authorities):
2709     - Don't list relays with a bandwidth estimate of 0 in the consensus.
2710       Implements a feature proposed during discussion of bug 13000.
2711     - In tor-gencert, report an error if the user provides the same
2712       argument more than once.
2713     - If a directory authority can't find a best consensus method in the
2714       votes that it holds, it now falls back to its favorite consensus
2715       method. Previously, it fell back to method 1. Neither of these is
2716       likely to get enough signatures, but "fall back to favorite"
2717       doesn't require us to maintain support an obsolete consensus
2718       method. Implements part of proposal 215.
2720   o Minor features (geoip):
2721     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
2722     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
2723       Country database.
2725   o Minor features (guard nodes):
2726     - Reduce the time delay before saving guard status to disk from 10
2727       minutes to 30 seconds (or from one hour to 10 minutes if
2728       AvoidDiskWrites is set). Closes ticket 12485.
2730   o Minor features (heartbeat):
2731     - On relays, report how many connections we negotiated using each
2732       version of the Tor link protocols. This information will let us
2733       know if removing support for very old versions of the Tor
2734       protocols is harming the network. Closes ticket 15212.
2736   o Minor features (hidden service):
2737     - Make Sybil attacks against hidden services harder by changing the
2738       minimum time required to get the HSDir flag from 25 hours up to 96
2739       hours. Addresses ticket 14149.
2740     - New option "HiddenServiceAllowUnknownPorts" to allow hidden
2741       services to disable the anti-scanning feature introduced in
2742       0.2.6.2-alpha. With this option not set, a connection to an
2743       unlisted port closes the circuit. With this option set, only a
2744       RELAY_DONE cell is sent. Closes ticket 14084.
2745     - When re-enabling the network, don't try to build introduction
2746       circuits until we have successfully built a circuit. This makes
2747       hidden services come up faster when the network is re-enabled.
2748       Patch from "akwizgran". Closes ticket 13447.
2749     - When we fail to retrieve a hidden service descriptor, send the
2750       controller an "HS_DESC FAILED" controller event. Implements
2751       feature 13212.
2752     - New HiddenServiceDirGroupReadable option to cause hidden service
2753       directories and hostname files to be created group-readable. Patch
2754       from "anon", David Stainton, and "meejah". Closes ticket 11291.
2756   o Minor features (interface):
2757     - Implement "-f -" command-line option to read torrc configuration
2758       from standard input, if you don't want to store the torrc file in
2759       the file system. Implements feature 13865.
2761   o Minor features (logging):
2762     - Add a count of unique clients to the bridge heartbeat message.
2763       Resolves ticket 6852.
2764     - Suppress "router info incompatible with extra info" message when
2765       reading extrainfo documents from cache. (This message got loud
2766       around when we closed bug 9812 in 0.2.6.2-alpha.) Closes
2767       ticket 13762.
2768     - Elevate hidden service authorized-client message from DEBUG to
2769       INFO. Closes ticket 14015.
2770     - On Unix-like systems, you can now use named pipes as the target of
2771       the Log option, and other options that try to append to files.
2772       Closes ticket 12061. Patch from "carlo von lynX".
2773     - When opening a log file at startup, send it every log message that
2774       we generated between startup and opening it. Previously, log
2775       messages that were generated before opening the log file were only
2776       logged to stdout. Closes ticket 6938.
2777     - Add a TruncateLogFile option to overwrite logs instead of
2778       appending to them. Closes ticket 5583.
2779     - Quiet some log messages in the heartbeat and at startup. Closes
2780       ticket 14950.
2782   o Minor features (portability, Solaris):
2783     - Threads are no longer disabled by default on Solaris; we believe
2784       that the versions of Solaris with broken threading support are all
2785       obsolete by now. Resolves ticket 9495.
2787   o Minor features (relay):
2788     - Re-check our address after we detect a changed IP address from
2789       getsockname(). This ensures that the controller command "GETINFO
2790       address" will report the correct value. Resolves ticket 11582.
2791       Patch from "ra".
2792     - A new AccountingRule option lets Relays set whether they'd like
2793       AccountingMax to be applied separately to inbound and outbound
2794       traffic, or applied to the sum of inbound and outbound traffic.
2795       Resolves ticket 961. Patch by "chobe".
2796     - When identity keypair is generated for first time, log a
2797       congratulatory message that links to the new relay lifecycle
2798       document. Implements feature 10427.
2800   o Minor features (security, memory wiping):
2801     - Ensure we securely wipe keys from memory after
2802       crypto_digest_get_digest and init_curve25519_keypair_from_file
2803       have finished using them. Resolves ticket 13477.
2805   o Minor features (security, out-of-memory handling):
2806     - When handling an out-of-memory condition, allocate less memory for
2807       temporary data structures. Fixes issue 10115.
2808     - When handling an out-of-memory condition, consider more types of
2809       buffers, including those on directory connections, and zlib
2810       buffers. Resolves ticket 11792.
2812   o Minor features (stability):
2813     - Add assertions in our hash-table iteration code to check for
2814       corrupted values that could cause infinite loops. Closes
2815       ticket 11737.
2817   o Minor features (systemd):
2818     - Various improvements and modernizations in systemd hardening
2819       support. Closes ticket 13805. Patch from Craig Andrews.
2820     - Where supported, when running with systemd, report successful
2821       startup to systemd. Part of ticket 11016. Patch by Michael Scherer.
2822     - When running with systemd, support systemd watchdog messages. Part
2823       of ticket 11016. Patch by Michael Scherer.
2825   o Minor features (testing networks):
2826     - Add the TestingDirAuthVoteExit option, which lists nodes to assign
2827       the "Exit" flag regardless of their uptime, bandwidth, or exit
2828       policy. TestingTorNetwork must be set for this option to have any
2829       effect. Previously, authorities would take up to 35 minutes to
2830       give nodes the Exit flag in a test network. Partially implements
2831       ticket 13161.
2832     - Drop the minimum RendPostPeriod on a testing network to 5 seconds,
2833       and the default on a testing network to 2 minutes. Drop the
2834       MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but
2835       keep the default on a testing network at 30 seconds. This reduces
2836       HS bootstrap time to around 25 seconds. Also, change the default
2837       time in test-network.sh to match. Closes ticket 13401. Patch
2838       by "teor".
2839     - Create TestingDirAuthVoteHSDir to correspond to
2840       TestingDirAuthVoteExit/Guard. Ensures that authorities vote the
2841       HSDir flag for the listed relays regardless of uptime or ORPort
2842       connectivity. Respects the value of VoteOnHidServDirectoriesV2.
2843       Partial implementation for ticket 14067. Patch by "teor".
2845   o Minor features (tor2web mode):
2846     - Introduce the config option Tor2webRendezvousPoints, which allows
2847       clients in Tor2webMode to select a specific Rendezvous Point to be
2848       used in HS circuits. This might allow better performance for
2849       Tor2Web nodes. Implements ticket 12844.
2851   o Minor features (transparent proxy):
2852     - Update the transparent proxy option checks to allow for both ipfw
2853       and pf on OS X. Closes ticket 14002.
2854     - Use the correct option when using IPv6 with transparent proxy
2855       support on Linux. Resolves 13808. Patch by Francisco Blas
2856       Izquierdo Riera.
2858   o Minor features (validation):
2859     - Check all date/time values passed to tor_timegm and
2860       parse_rfc1123_time for validity, taking leap years into account.
2861       Improves HTTP header validation. Implemented with bug 13476.
2862     - In correct_tm(), limit the range of values returned by system
2863       localtime(_r) and gmtime(_r) to be between the years 1 and 8099.
2864       This means we don't have to deal with negative or too large dates,
2865       even if a clock is wrong. Otherwise we might fail to read a file
2866       written by us which includes such a date. Fixes bug 13476.
2867     - Stop allowing invalid address patterns like "*/24" that contain
2868       both a wildcard address and a bit prefix length. This affects all
2869       our address-range parsing code. Fixes bug 7484; bugfix
2870       on 0.0.2pre14.
2872   o Minor bugfixes (bridge clients):
2873     - When configured to use a bridge without an identity digest (not
2874       recommended), avoid launching an extra channel to it when
2875       bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha.
2877   o Minor bugfixes (bridges):
2878     - When DisableNetwork is set, do not launch pluggable transport
2879       plugins, and if any are running, terminate them. Fixes bug 13213;
2880       bugfix on 0.2.3.6-alpha.
2882   o Minor bugfixes (C correctness):
2883     - Fix several instances of possible integer overflow/underflow/NaN.
2884       Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches
2885       from "teor".
2886     - In circuit_build_times_calculate_timeout() in circuitstats.c,
2887       avoid dividing by zero in the pareto calculations. This traps
2888       under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix
2889       on 0.2.2.2-alpha.
2890     - Fix an integer overflow in format_time_interval(). Fixes bug
2891       13393; bugfix on 0.2.0.10-alpha.
2892     - Set the correct day of year value when the system's localtime(_r)
2893       or gmtime(_r) functions fail to set struct tm. Not externally
2894       visible. Fixes bug 13476; bugfix on 0.0.2pre14.
2895     - Avoid unlikely signed integer overflow in tor_timegm on systems
2896       with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14.
2898   o Minor bugfixes (certificate handling):
2899     - If an authority operator accidentally makes a signing certificate
2900       with a future publication time, do not discard its real signing
2901       certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.
2902     - Remove any old authority certificates that have been superseded
2903       for at least two days. Previously, we would keep superseded
2904       certificates until they expired, if they were published close in
2905       time to the certificate that superseded them. Fixes bug 11454;
2906       bugfix on 0.2.1.8-alpha.
2908   o Minor bugfixes (client):
2909     - Fix smartlist_choose_node_by_bandwidth() so that relays with the
2910       BadExit flag are not considered worthy candidates. Fixes bug
2911       13066; bugfix on 0.1.2.3-alpha.
2912     - Use the consensus schedule for downloading consensuses, and not
2913       the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
2914     - Handle unsupported or malformed SOCKS5 requests properly by
2915       responding with the appropriate error message before closing the
2916       connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13.
2918   o Minor bugfixes (client, automapping):
2919     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
2920       no value follows the option. Fixes bug 14142; bugfix on
2921       0.2.4.7-alpha. Patch by "teor".
2922     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
2923       14195; bugfix on 0.1.0.1-rc.
2924     - Prevent changes to other options from removing the wildcard value
2925       "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix
2926       on 0.2.0.1-alpha.
2927     - Allow MapAddress and AutomapHostsOnResolve to work together when
2928       an address is mapped into another address type (like .onion) that
2929       must be automapped at resolve time. Fixes bug 7555; bugfix
2930       on 0.2.0.1-alpha.
2932   o Minor bugfixes (client, bridges):
2933     - When we are using bridges and we had a network connectivity
2934       problem, only retry connecting to our currently configured
2935       bridges, not all bridges we know about and remember using. Fixes
2936       bug 14216; bugfix on 0.2.2.17-alpha.
2938   o Minor bugfixes (client, DNS):
2939     - Report the correct cached DNS expiration times on SOCKS port or in
2940       DNS replies. Previously, we would report everything as "never
2941       expires." Fixes bug 14193; bugfix on 0.2.3.17-beta.
2942     - Avoid a small memory leak when we find a cached answer for a
2943       reverse DNS lookup in a client-side DNS cache. (Remember, client-
2944       side DNS caching is off by default, and is not recommended.) Fixes
2945       bug 14259; bugfix on 0.2.0.1-alpha.
2947   o Minor bugfixes (client, IPv6):
2948     - Reject socks requests to literal IPv6 addresses when IPv6Traffic
2949       flag is not set; and not because the NoIPv4Traffic flag was set.
2950       Previously we'd looked at the NoIPv4Traffic flag for both types of
2951       literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha.
2953   o Minor bugfixes (client, microdescriptors):
2954     - Use a full 256 bits of the SHA256 digest of a microdescriptor when
2955       computing which microdescriptors to download. This keeps us from
2956       erroneous download behavior if two microdescriptor digests ever
2957       have the same first 160 bits. Fixes part of bug 13399; bugfix
2958       on 0.2.3.1-alpha.
2959     - Reset a router's status if its microdescriptor digest changes,
2960       even if the first 160 bits remain the same. Fixes part of bug
2961       13399; bugfix on 0.2.3.1-alpha.
2963   o Minor bugfixes (client, torrc):
2964     - Stop modifying the value of our DirReqStatistics torrc option just
2965       because we're not a bridge or relay. This bug was causing Tor
2966       Browser users to write "DirReqStatistics 0" in their torrc files
2967       as if they had chosen to change the config. Fixes bug 4244; bugfix
2968       on 0.2.3.1-alpha.
2969     - When GeoIPExcludeUnknown is enabled, do not incorrectly decide
2970       that our options have changed every time we SIGHUP. Fixes bug
2971       9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1".
2973   o Minor bugfixes (compilation):
2974     - Fix a compilation warning on s390. Fixes bug 14988; bugfix
2975       on 0.2.5.2-alpha.
2976     - Silence clang warnings under --enable-expensive-hardening,
2977       including implicit truncation of 64 bit values to 32 bit, const
2978       char assignment to self, tautological compare, and additional
2979       parentheses around equality tests. Fixes bug 13577; bugfix
2980       on 0.2.5.4-alpha.
2981     - Fix a clang warning about checking whether an address in the
2982       middle of a structure is NULL. Fixes bug 14001; bugfix
2983       on 0.2.1.2-alpha.
2984     - The address of an array in the middle of a structure will always
2985       be non-NULL. clang recognises this and complains. Disable the
2986       tautologous and redundant check to silence this warning. Fixes bug
2987       14001; bugfix on 0.2.1.2-alpha.
2988     - Compile correctly with (unreleased) OpenSSL 1.1.0 headers.
2989       Addresses ticket 14188.
2990     - Build without warnings with the stock OpenSSL srtp.h header, which
2991       has a duplicate declaration of SSL_get_selected_srtp_profile().
2992       Fixes bug 14220; this is OpenSSL's bug, not ours.
2993     - Do not compile any code related to Tor2Web mode when Tor2Web mode
2994       is not enabled at compile time. Previously, this code was included
2995       in a disabled state. See discussion on ticket 12844.
2996     - Allow our configure script to build correctly with autoconf 2.62
2997       again. Fixes bug 12693; bugfix on 0.2.5.2-alpha.
2998     - Improve the error message from ./configure to make it clear that
2999       when asciidoc has not been found, the user will have to either add
3000       --disable-asciidoc argument or install asciidoc. Resolves
3001       ticket 13228.
3003   o Minor bugfixes (controller):
3004     - Report "down" in response to the "GETINFO entry-guards" command
3005       when relays are down with an unreachable_since value. Previously,
3006       we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha.
3007     - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug
3008       14116; bugfix on 0.2.2.9-alpha.
3010   o Minor bugfixes (controller):
3011     - Return an error when the second or later arguments of the
3012       "setevents" controller command are invalid events. Previously we
3013       would return success while silently skipping invalid events. Fixes
3014       bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
3016   o Minor bugfixes (directory authority):
3017     - Allow directory authorities to fetch more data from one another if
3018       they find themselves missing lots of votes. Previously, they had
3019       been bumping against the 10 MB queued data limit. Fixes bug 14261;
3020       bugfix on 0.1.2.5-alpha.
3021     - Do not attempt to download extrainfo documents which we will be
3022       unable to validate with a matching server descriptor. Fixes bug
3023       13762; bugfix on 0.2.0.1-alpha.
3024     - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the
3025       control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha.
3026     - Enlarge the buffer to read bwauth generated files to avoid an
3027       issue when parsing the file in dirserv_read_measured_bandwidths().
3028       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
3029     - When running as a v3 directory authority, advertise that you serve
3030       extra-info documents so that clients who want them can find them
3031       from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
3033   o Minor bugfixes (directory system):
3034     - Always believe that v3 directory authorities serve extra-info
3035       documents, whether they advertise "caches-extra-info" or not.
3036       Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
3037     - Check the BRIDGE_DIRINFO flag bitwise rather than using equality.
3038       Previously, directories offering BRIDGE_DIRINFO and some other
3039       flag (i.e. microdescriptors or extrainfo) would be ignored when
3040       looking for bridges. Partially fixes bug 13163; bugfix
3041       on 0.2.0.7-alpha.
3043   o Minor bugfixes (file handling):
3044     - Stop failing when key files are zero-length. Instead, generate new
3045       keys, and overwrite the empty key files. Fixes bug 13111; bugfix
3046       on all versions of Tor. Patch by "teor".
3047     - Stop generating a fresh .old RSA onion key file when the .old file
3048       is missing. Fixes part of 13111; bugfix on 0.0.6rc1.
3049     - Avoid overwriting .old key files with empty key files.
3050     - Skip loading zero-length extrainfo store, router store, stats,
3051       state, and key files.
3052     - Avoid crashing when trying to reload a torrc specified as a
3053       relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix
3054       on 0.2.3.11-alpha.
3056   o Minor bugfixes (hidden services):
3057     - Close the introduction circuit when we have no more usable intro
3058       points, instead of waiting for it to time out. This also ensures
3059       that no follow-up HS descriptor fetch is triggered when the
3060       circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6.
3061     - When fetching a hidden service descriptor for a down service that
3062       was recently up, do not keep refetching until we try the same
3063       replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha.
3064     - Correctly send a controller event when we find that a rendezvous
3065       circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha.
3066     - Pre-check directory permissions for new hidden-services to avoid
3067       at least one case of "Bug: Acting on config options left us in a
3068       broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1.
3069     - When fetching hidden service descriptors, we now check not only
3070       for whether we got the hidden service we had in mind, but also
3071       whether we got the particular descriptors we wanted. This prevents
3072       a class of inefficient but annoying DoS attacks by hidden service
3073       directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported
3074       by "special".
3076   o Minor bugfixes (Linux seccomp2 sandbox):
3077     - Make transparent proxy support work along with the seccomp2
3078       sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch
3079       by Francisco Blas Izquierdo Riera.
3080     - Fix a memory leak in tor-resolve when running with the sandbox
3081       enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc.
3082     - Allow glibc fatal errors to be sent to stderr before Tor exits.
3083       Previously, glibc would try to write them to /dev/tty, and the
3084       sandbox would trap the call and make Tor exit prematurely. Fixes
3085       bug 14759; bugfix on 0.2.5.1-alpha.
3087   o Minor bugfixes (logging):
3088     - Avoid crashing when there are more log domains than entries in
3089       domain_list. Bugfix on 0.2.3.1-alpha.
3090     - Downgrade warnings about RSA signature failures to info log level.
3091       Emit a warning when an extra info document is found incompatible
3092       with a corresponding router descriptor. Fixes bug 9812; bugfix
3093       on 0.0.6rc3.
3094     - Make connection_ap_handshake_attach_circuit() log the circuit ID
3095       correctly. Fixes bug 13701; bugfix on 0.0.6.
3097   o Minor bugfixes (networking):
3098     - Check for orconns and use connection_or_close_for_error() rather
3099       than connection_mark_for_close() directly in the getsockopt()
3100       failure case of connection_handle_write_impl(). Fixes bug 11302;
3101       bugfix on 0.2.4.4-alpha.
3103   o Minor bugfixes (parsing):
3104     - Stop accepting milliseconds (or other junk) at the end of
3105       descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25.
3106     - Support two-number and three-number version numbers correctly, in
3107       case we change the Tor versioning system in the future. Fixes bug
3108       13661; bugfix on 0.0.8pre1.
3110   o Minor bugfixes (portability):
3111     - Fix the ioctl()-based network interface lookup code so that it
3112       will work on systems that have variable-length struct ifreq, for
3113       example Mac OS X.
3114     - Use the correct datatype in the SipHash-2-4 function to prevent
3115       compilers from assuming any sort of alignment. Fixes bug 15436;
3116       bugfix on 0.2.5.3-alpha.
3118   o Minor bugfixes (preventative security, C safety):
3119     - When reading a hexadecimal, base-32, or base-64 encoded value from
3120       a string, always overwrite the whole output buffer. This prevents
3121       some bugs where we would look at (but fortunately, not reveal)
3122       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
3123       versions of Tor.
3124     - Clear all memory targetted by tor_addr_{to,from}_sockaddr(), not
3125       just the part that's used. This makes it harder for data leak bugs
3126       to occur in the event of other programming failures. Resolves
3127       ticket 14041.
3129   o Minor bugfixes (relay):
3130     - When generating our family list, remove spaces from around the
3131       entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
3132     - If our previous bandwidth estimate was 0 bytes, allow publishing a
3133       new relay descriptor immediately. Fixes bug 13000; bugfix
3134       on 0.1.1.6-alpha.
3136   o Minor bugfixes (shutdown):
3137     - When shutting down, always call event_del() on lingering read or
3138       write events before freeing them. Otherwise, we risk double-frees
3139       or read-after-frees in event_base_free(). Fixes bug 12985; bugfix
3140       on 0.1.0.2-rc.
3142   o Minor bugfixes (small memory leaks):
3143     - Avoid leaking memory when using IPv6 virtual address mappings.
3144       Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van
3145       der Woerdt.
3147   o Minor bugfixes (statistics):
3148     - Increase period over which bandwidth observations are aggregated
3149       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
3151   o Minor bugfixes (systemd support):
3152     - Run correctly under systemd with the RunAsDaemon option set. Fixes
3153       part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz.
3154     - Inform the systemd supervisor about more changes in the Tor
3155       process status. Implements part of ticket 14141. Patch from
3156       Tomasz Torcz.
3158   o Minor bugfixes (testing networks):
3159     - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a
3160       testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha.
3161     - Stop using the default authorities in networks which provide both
3162       AlternateDirAuthority and AlternateBridgeAuthority. Partially
3163       fixes bug 13163; bugfix on 0.2.0.13-alpha.
3165   o Minor bugfixes (testing networks, fast startup):
3166     - Allow Tor to build circuits using a consensus with no exits. If
3167       the consensus has no exits (typical of a bootstrapping test
3168       network), allow Tor to build circuits once enough descriptors have
3169       been downloaded. This assists in bootstrapping a testing Tor
3170       network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch
3171       by "teor".
3172     - When V3AuthVotingInterval is low, give a lower If-Modified-Since
3173       header to directory servers. This allows us to obtain consensuses
3174       promptly when the consensus interval is very short. This assists
3175       in bootstrapping a testing Tor network. Fixes parts of bugs 13718
3176       and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor".
3177     - Stop assuming that private addresses are local when checking
3178       reachability in a TestingTorNetwork. Instead, when testing, assume
3179       all OR connections are remote. (This is necessary due to many test
3180       scenarios running all relays on localhost.) This assists in
3181       bootstrapping a testing Tor network. Fixes bug 13924; bugfix on
3182       0.1.0.1-rc. Patch by "teor".
3183     - Avoid building exit circuits from a consensus with no exits. Now
3184       thanks to our fix for 13718, we accept a no-exit network as not
3185       wholly lost, but we need to remember not to try to build exit
3186       circuits on it. Closes ticket 13814; patch by "teor".
3187     - Stop requiring exits to have non-zero bandwithcapacity in a
3188       TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
3189       ignore exit bandwidthcapacity. This assists in bootstrapping a
3190       testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix
3191       on 0.2.0.3-alpha. Patch by "teor".
3192     - Add "internal" to some bootstrap statuses when no exits are
3193       available. If the consensus does not contain Exits, Tor will only
3194       build internal circuits. In this case, relevant statuses will
3195       contain the word "internal" as indicated in the Tor control-
3196        spec.txt. When bootstrap completes, Tor will be ready to build
3197       internal circuits. If a future consensus contains Exits, exit
3198       circuits may become available. Fixes part of bug 13718; bugfix on
3199       0.2.4.10-alpha. Patch by "teor".
3200     - Decrease minimum consensus interval to 10 seconds when
3201       TestingTorNetwork is set, or 5 seconds for the first consensus.
3202       Fix assumptions throughout the code that assume larger intervals.
3203       Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch
3204       by "teor".
3205     - Avoid excluding guards from path building in minimal test
3206       networks, when we're in a test network and excluding guards would
3207       exclude all relays. This typically occurs in incredibly small tor
3208       networks, and those using "TestingAuthVoteGuard *". Fixes part of
3209       bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor".
3211   o Minor bugfixes (testing):
3212     - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug
3213       15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt.
3214     - Stop spawn test failures due to a race condition between the
3215       SIGCHLD handler updating the process status, and the test reading
3216       it. Fixes bug 13291; bugfix on 0.2.3.3-alpha.
3217     - Avoid passing an extra backslash when creating a temporary
3218       directory for running the unit tests on Windows. Fixes bug 12392;
3219       bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem.
3221   o Minor bugfixes (TLS):
3222     - Check more thoroughly throughout the TLS code for possible
3223       unlogged TLS errors. Possible diagnostic or fix for bug 13319.
3225   o Minor bugfixes (transparent proxy):
3226     - Use getsockname, not getsockopt, to retrieve the address for a
3227       TPROXY-redirected connection. Fixes bug 13796; bugfix
3228       on 0.2.5.2-alpha.
3230   o Minor bugfixes (windows):
3231     - Remove code to special-case handling of NTE_BAD_KEYSET when
3232       acquiring windows CryptoAPI context. This error can't actually
3233       occur for the parameters we're providing. Fixes bug 10816; bugfix
3234       on 0.0.2pre26.
3236   o Minor bugfixes (zlib):
3237     - Avoid truncating a zlib stream when trying to finalize it with an
3238       empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23.
3240   o Code simplification and refactoring:
3241     - Change the entry_is_live() function to take named bitfield
3242       elements instead of an unnamed list of booleans. Closes
3243       ticket 12202.
3244     - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c.
3245       Resolves ticket 12205.
3246     - Use calloc and reallocarray functions instead of multiply-
3247       then-malloc. This makes it less likely for us to fall victim to an
3248       integer overflow attack when allocating. Resolves ticket 12855.
3249     - Use the standard macro name SIZE_MAX, instead of our
3250       own SIZE_T_MAX.
3251     - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in
3252       functions which take them as arguments. Replace 0 with NO_DIRINFO
3253       in a function call for clarity. Seeks to prevent future issues
3254       like 13163.
3255     - Avoid 4 null pointer errors under clang static analysis by using
3256       tor_assert() to prove that the pointers aren't null. Fixes
3257       bug 13284.
3258     - Rework the API of policies_parse_exit_policy() to use a bitmask to
3259       represent parsing options, instead of a confusing mess of
3260       booleans. Resolves ticket 8197.
3261     - Introduce a helper function to parse ExitPolicy in
3262       or_options_t structure.
3263     - Move fields related to isolating and configuring client ports into
3264       a shared structure. Previously, they were duplicated across
3265       port_cfg_t, listener_connection_t, and edge_connection_t. Failure
3266       to copy them correctly had been the cause of at least one bug in
3267       the past. Closes ticket 8546.
3268     - Refactor the get_interface_addresses_raw() doom-function into
3269       multiple smaller and simpler subfunctions. Cover the resulting
3270       subfunctions with unit-tests. Fixes a significant portion of
3271       issue 12376.
3272     - Remove workaround in dirserv_thinks_router_is_hs_dir() that was
3273       only for version <= 0.2.2.24 which is now deprecated. Closes
3274       ticket 14202.
3275     - Remove a test for a long-defunct broken version-one
3276       directory server.
3277     - Refactor main loop to extract the 'loop' part. This makes it
3278       easier to run Tor under Shadow. Closes ticket 15176.
3279     - Stop using can_complete_circuits as a global variable; access it
3280       with a function instead.
3281     - Avoid using operators directly as macro arguments: this lets us
3282       apply coccinelle transformations to our codebase more directly.
3283       Closes ticket 13172.
3284     - Combine the functions used to parse ClientTransportPlugin and
3285       ServerTransportPlugin into a single function. Closes ticket 6456.
3286     - Add inline functions and convenience macros for inspecting channel
3287       state. Refactor the code to use convenience macros instead of
3288       checking channel state directly. Fixes issue 7356.
3289     - Document all members of was_router_added_t and rename
3290       ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less
3291       confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644.
3292     - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL
3293       constant instead of hardcoded value. Fixes issue 13840.
3294     - Refactor our generic strmap and digestmap types into a single
3295       implementation, so that we can add a new digest256map
3296       type trivially.
3298   o Documentation:
3299     - Add a doc/TUNING document with tips for handling large numbers of
3300       TCP connections when running busy Tor relay. Update the warning
3301       message to point to this file when running out of sockets
3302       operating system is allowing to use simultaneously. Resolves
3303       ticket 9708.
3304     - Adding section on OpenBSD to our TUNING document. Thanks to mmcc
3305       for writing the OpenBSD-specific tips. Resolves ticket 13702.
3306     - Make the tor-resolve documentation match its help string and its
3307       options. Resolves part of ticket 14325.
3308     - Log a more useful error message from tor-resolve when failing to
3309       look up a hidden service address. Resolves part of ticket 14325.
3310     - Document the bridge-authority-only 'networkstatus-bridges' file.
3311       Closes ticket 13713; patch from "tom".
3312     - Fix typo in PredictedPortsRelevanceTime option description in
3313       manpage. Resolves issue 13707.
3314     - Stop suggesting that users specify relays by nickname: it isn't a
3315       good idea. Also, properly cross-reference how to specify relays in
3316       all parts of manual documenting options that take a list of
3317       relays. Closes ticket 13381.
3318     - Clarify the HiddenServiceDir option description in manpage to make
3319       it clear that relative paths are taken with respect to the current
3320       working directory. Also clarify that this behavior is not
3321       guaranteed to remain indefinitely. Fixes issue 13913.
3323   o Distribution (systemd):
3324     - systemd unit file: only allow tor to write to /var/lib/tor and
3325       /var/log/tor. The rest of the filesystem is accessible for reading
3326       only. Patch by intrigeri; resolves ticket 12751.
3327     - systemd unit file: ensure that the process and all its children
3328       can never gain new privileges. Patch by intrigeri; resolves
3329       ticket 12939.
3330     - systemd unit file: set up /var/run/tor as writable for the Tor
3331       service. Patch by intrigeri; resolves ticket 13196.
3333   o Downgraded warnings:
3334     - Don't warn when we've attempted to contact a relay using the wrong
3335       ntor onion key. Closes ticket 9635.
3337   o Removed code:
3338     - Remove some lingering dead code that once supported mempools.
3339       Mempools were disabled by default in 0.2.5, and removed entirely
3340       in 0.2.6.3-alpha. Closes more of ticket 14848; patch
3341       by "cypherpunks".
3343   o Removed features (directory authorities):
3344     - Remove code that prevented authorities from listing Tor relays
3345       affected by CVE-2011-2769 as guards. These relays are already
3346       rejected altogether due to the minimum version requirement of
3347       0.2.3.16-alpha. Closes ticket 13152.
3348     - The "AuthDirRejectUnlisted" option no longer has any effect, as
3349       the fingerprints file (approved-routers) has been deprecated.
3350     - Directory authorities do not support being Naming dirauths anymore.
3351       The "NamingAuthoritativeDir" config option is now obsolete.
3352     - Directory authorities do not support giving out the BadDirectory
3353       flag anymore.
3354     - Directory authorities no longer advertise or support consensus
3355       methods 1 through 12 inclusive. These consensus methods were
3356       obsolete and/or insecure: maintaining the ability to support them
3357       served no good purpose. Implements part of proposal 215; closes
3358       ticket 10163.
3360   o Removed features:
3361     - To avoid confusion with the "ExitRelay" option, "ExitNode" is no
3362       longer silently accepted as an alias for "ExitNodes".
3363     - The --enable-mempool and --enable-buf-freelists options, which
3364       were originally created to work around bad malloc implementations,
3365       no longer exist. They were off-by-default in 0.2.5. Closes
3366       ticket 14848.
3367     - We no longer remind the user about configuration options that have
3368       been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak.
3369     - Remove our old, non-weighted bandwidth-based node selection code.
3370       Previously, we used it as a fallback when we couldn't perform
3371       weighted bandwidth-based node selection. But that would only
3372       happen in the cases where we had no consensus, or when we had a
3373       consensus generated by buggy or ancient directory authorities. In
3374       either case, it's better to use the more modern, better maintained
3375       algorithm, with reasonable defaults for the weights. Closes
3376       ticket 13126.
3377     - Remove the --disable-curve25519 configure option. Relays and
3378       clients now are required to support curve25519 and the
3379       ntor handshake.
3380     - The old "StrictEntryNodes" and "StrictExitNodes" options, which
3381       used to be deprecated synonyms for "StrictNodes", are now marked
3382       obsolete. Resolves ticket 12226.
3383     - Clients don't understand the BadDirectory flag in the consensus
3384       anymore, and ignore it.
3386   o Removed platform support:
3387     - We no longer include special code to build on Windows CE; as far
3388       as we know, nobody has used Tor on Windows CE in a very long time.
3389       Closes ticket 11446.
3391   o Testing (test-network.sh):
3392     - Stop using "echo -n", as some shells' built-in echo doesn't
3393       support "-n". Instead, use "/bin/echo -n". Partially fixes
3394       bug 13161.
3395     - Stop an apparent test-network hang when used with make -j2. Fixes
3396       bug 13331.
3397     - Add a --delay option to test-network.sh, which configures the
3398       delay before the chutney network tests for data transmission.
3399       Partially implements ticket 13161.
3401   o Testing:
3402     - Test that tor does not fail when key files are zero-length. Check
3403       that tor generates new keys, and overwrites the empty key files.
3404     - Test that tor generates new keys when keys are missing
3405       (existing behavior).
3406     - Test that tor does not overwrite key files that already contain
3407       data (existing behavior). Tests bug 13111. Patch by "teor".
3408     - New "make test-stem" target to run stem integration tests.
3409       Requires that the "STEM_SOURCE_DIR" environment variable be set.
3410       Closes ticket 14107.
3411     - Make the test_cmdline_args.py script work correctly on Windows.
3412       Patch from Gisle Vanem.
3413     - Move the slower unit tests into a new "./src/test/test-slow"
3414       binary that can be run independently of the other tests. Closes
3415       ticket 13243.
3416     - New tests for many parts of channel, relay, and circuitmux
3417       functionality. Code by Andrea; part of 9262.
3418     - New tests for parse_transport_line(). Part of ticket 6456.
3419     - In the unit tests, use chgrp() to change the group of the unit
3420       test temporary directory to the current user, so that the sticky
3421       bit doesn't interfere with tests that check directory groups.
3422       Closes 13678.
3423     - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch
3424       by 'rl1987'.
3425     - Refactor the function that chooses guard nodes so that it can more
3426       easily be tested; write some tests for it.
3427     - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503;
3428       bugfix on 0.2.3.1-alpha. Patch from "cypherpunks."
3429     - Create unit tests for format_time_interval(). With bug 13393.
3430     - Add unit tests for tor_timegm signed overflow, tor_timegm and
3431       parse_rfc1123_time validity checks, correct_tm year clamping. Unit
3432       tests (visible) fixes in bug 13476.
3433     - Add a "coverage-html" make target to generate HTML-visualized
3434       coverage results when building with --enable-coverage. (Requires
3435       lcov.) Patch from Kevin Murray.
3436     - Enable the backtrace handler (where supported) when running the
3437       unit tests.
3438     - Revise all unit tests that used the legacy test_* macros to
3439       instead use the recommended tt_* macros. This patch was generated
3440       with coccinelle, to avoid manual errors. Closes ticket 13119.
3442 Changes in version 0.2.5.11 - 2015-03-17
3443   Tor 0.2.5.11 is the second stable release in the 0.2.5 series.
3445   It backports several bugfixes from the 0.2.6 branch, including a
3446   couple of medium-level security fixes for relays and exit nodes.
3447   It also updates the list of directory authorities.
3449   o Directory authority changes:
3450     - Remove turtles as a directory authority.
3451     - Add longclaw as a new (v3) directory authority. This implements
3452       ticket 13296. This keeps the directory authority count at 9.
3453     - The directory authority Faravahar has a new IP address. This
3454       closes ticket 14487.
3456   o Major bugfixes (crash, OSX, security):
3457     - Fix a remote denial-of-service opportunity caused by a bug in
3458       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
3459       in OSX 10.9.
3461   o Major bugfixes (relay, stability, possible security):
3462     - Fix a bug that could lead to a relay crashing with an assertion
3463       failure if a buffer of exactly the wrong layout was passed to
3464       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
3465       0.2.0.10-alpha. Patch from 'cypherpunks'.
3466     - Do not assert if the 'data' pointer on a buffer is advanced to the
3467       very end of the buffer; log a BUG message instead. Only assert if
3468       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
3470   o Major bugfixes (exit node stability):
3471     - Fix an assertion failure that could occur under high DNS load.
3472       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
3473       diagnosed and fixed by "cypherpunks".
3475   o Major bugfixes (Linux seccomp2 sandbox):
3476     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
3477       crash during attempts to call wait4. Fixes bug 15088; bugfix on
3478       0.2.5.1-alpha. Patch from "sanic".
3480   o Minor features (controller):
3481     - New "GETINFO bw-event-cache" to get information about recent
3482       bandwidth events. Closes ticket 14128. Useful for controllers to
3483       get recent bandwidth history after the fix for ticket 13988.
3485   o Minor features (geoip):
3486     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
3487     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
3488       Country database.
3490   o Minor bugfixes (client, automapping):
3491     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
3492       no value follows the option. Fixes bug 14142; bugfix on
3493       0.2.4.7-alpha. Patch by "teor".
3494     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
3495       14195; bugfix on 0.1.0.1-rc.
3497   o Minor bugfixes (compilation):
3498     - Build without warnings with the stock OpenSSL srtp.h header, which
3499       has a duplicate declaration of SSL_get_selected_srtp_profile().
3500       Fixes bug 14220; this is OpenSSL's bug, not ours.
3502   o Minor bugfixes (directory authority):
3503     - Allow directory authorities to fetch more data from one another if
3504       they find themselves missing lots of votes. Previously, they had
3505       been bumping against the 10 MB queued data limit. Fixes bug 14261;
3506       bugfix on 0.1.2.5-alpha.
3507     - Enlarge the buffer to read bwauth generated files to avoid an
3508       issue when parsing the file in dirserv_read_measured_bandwidths().
3509       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
3511   o Minor bugfixes (statistics):
3512     - Increase period over which bandwidth observations are aggregated
3513       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
3515   o Minor bugfixes (preventative security, C safety):
3516     - When reading a hexadecimal, base-32, or base-64 encoded value from
3517       a string, always overwrite the whole output buffer. This prevents
3518       some bugs where we would look at (but fortunately, not reveal)
3519       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
3520       versions of Tor.
3523 Changes in version 0.2.4.26 - 2015-03-17
3524   Tor 0.2.4.26 includes an updated list of directory authorities.  It
3525   also backports a couple of stability and security bugfixes from 0.2.5
3526   and beyond.
3528   o Directory authority changes:
3529     - Remove turtles as a directory authority.
3530     - Add longclaw as a new (v3) directory authority. This implements
3531       ticket 13296. This keeps the directory authority count at 9.
3532     - The directory authority Faravahar has a new IP address. This
3533       closes ticket 14487.
3535   o Major bugfixes (exit node stability, also in 0.2.6.3-alpha):
3536     - Fix an assertion failure that could occur under high DNS load.
3537       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
3538       diagnosed and fixed by "cypherpunks".
3540   o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc):
3541     - Fix a bug that could lead to a relay crashing with an assertion
3542       failure if a buffer of exactly the wrong layout was passed to
3543       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
3544       0.2.0.10-alpha. Patch from 'cypherpunks'.
3545     - Do not assert if the 'data' pointer on a buffer is advanced to the
3546       very end of the buffer; log a BUG message instead. Only assert if
3547       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
3549   o Minor features (geoip):
3550     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
3551     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
3552       Country database.
3554 Changes in version 0.2.5.10 - 2014-10-24
3555   Tor 0.2.5.10 is the first stable release in the 0.2.5 series.
3557   It adds several new security features, including improved
3558   denial-of-service resistance for relays, new compiler hardening
3559   options, and a system-call sandbox for hardened installations on Linux
3560   (requires seccomp2). The controller protocol has several new features,
3561   resolving IPv6 addresses should work better than before, and relays
3562   should be a little more CPU-efficient. We've added support for more
3563   OpenBSD and FreeBSD transparent proxy types. We've improved the build
3564   system and testing infrastructure to allow unit testing of more parts
3565   of the Tor codebase. Finally, we've addressed several nagging pluggable
3566   transport usability issues, and included numerous other small bugfixes
3567   and features mentioned below.
3569   This release marks end-of-life for Tor 0.2.3.x; those Tor versions
3570   have accumulated many known flaws; everyone should upgrade.
3572   o Major features (security):
3573     - The ntor handshake is now on-by-default, no matter what the
3574       directory authorities recommend. Implements ticket 8561.
3575     - Make the "tor-gencert" tool used by directory authority operators
3576       create 2048-bit signing keys by default (rather than 1024-bit, since
3577       1024-bit is uncomfortably small these days). Addresses ticket 10324.
3578     - Warn about attempts to run hidden services and relays in the same
3579       process: that's probably not a good idea. Closes ticket 12908.
3580     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
3581       today support TLS 1.0 or later, so we can safely turn off support
3582       for this old (and insecure) protocol. Fixes bug 13426.
3584   o Major features (relay security, DoS-resistance):
3585     - When deciding whether we have run out of memory and we need to
3586       close circuits, also consider memory allocated in buffers for
3587       streams attached to each circuit.
3589       This change, which extends an anti-DoS feature introduced in
3590       0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays
3591       better resist more memory-based DoS attacks than before. Since the
3592       MaxMemInCellQueues option now applies to all queues, it is renamed
3593       to MaxMemInQueues. This feature fixes bug 10169.
3594     - Avoid hash-flooding denial-of-service attacks by using the secure
3595       SipHash-2-4 hash function for our hashtables. Without this
3596       feature, an attacker could degrade performance of a targeted
3597       client or server by flooding their data structures with a large
3598       number of entries to be stored at the same hash table position,
3599       thereby slowing down the Tor instance. With this feature, hash
3600       table positions are derived from a randomized cryptographic key,
3601       and an attacker cannot predict which entries will collide. Closes
3602       ticket 4900.
3603     - If you don't specify MaxMemInQueues yourself, Tor now tries to
3604       pick a good value based on your total system memory. Previously,
3605       the default was always 8 GB. You can still override the default by
3606       setting MaxMemInQueues yourself. Resolves ticket 11396.
3608   o Major features (bridges and pluggable transports):
3609     - Add support for passing arguments to managed pluggable transport
3610       proxies. Implements ticket 3594.
3611     - Bridges now track GeoIP information and the number of their users
3612       even when pluggable transports are in use, and report usage
3613       statistics in their extra-info descriptors. Resolves tickets 4773
3614       and 5040.
3615     - Don't launch pluggable transport proxies if we don't have any
3616       bridges configured that would use them. Now we can list many
3617       pluggable transports, and Tor will dynamically start one when it
3618       hears a bridge address that needs it. Resolves ticket 5018.
3619     - The bridge directory authority now assigns status flags (Stable,
3620       Guard, etc) to bridges based on thresholds calculated over all
3621       Running bridges. Now bridgedb can finally make use of its features
3622       to e.g. include at least one Stable bridge in its answers. Fixes
3623       bug 9859.
3625   o Major features (controller):
3626     - Extend ORCONN controller event to include an "ID" parameter,
3627       and add four new controller event types CONN_BW, CIRC_BW,
3628       CELL_STATS, and TB_EMPTY that show connection and circuit usage.
3629       The new events are emitted in private Tor networks only, with the
3630       goal of being able to better track performance and load during
3631       full-network simulations. Implements proposal 218 and ticket 7359.
3633   o Major features (relay performance):
3634     - Speed up server-side lookups of rendezvous and introduction point
3635       circuits by using hashtables instead of linear searches. These
3636       functions previously accounted between 3 and 7% of CPU usage on
3637       some busy relays. Resolves ticket 9841.
3638     - Avoid wasting CPU when extending a circuit over a channel that is
3639       nearly out of circuit IDs. Previously, we would do a linear scan
3640       over possible circuit IDs before finding one or deciding that we
3641       had exhausted our possibilities. Now, we try at most 64 random
3642       circuit IDs before deciding that we probably won't succeed. Fixes
3643       a possible root cause of ticket 11553.
3645   o Major features (seccomp2 sandbox, Linux only):
3646     - Use the seccomp2 syscall filtering facility on Linux to limit
3647       which system calls Tor can invoke. This is an experimental,
3648       Linux-only feature to provide defense-in-depth against unknown
3649       attacks. To try turning it on, set "Sandbox 1" in your torrc
3650       file. Please be ready to report bugs. We hope to add support
3651       for better sandboxing in the future, including more fine-grained
3652       filters, better division of responsibility, and support for more
3653       platforms. This work has been done by Cristian-Matei Toader for
3654       Google Summer of Code. Resolves tickets 11351 and 11465.
3656   o Major features (testing networks):
3657     - Make testing Tor networks bootstrap better: lower directory fetch
3658       retry schedules and maximum interval without directory requests,
3659       and raise maximum download tries. Implements ticket 6752.
3660     - Add make target 'test-network' to run tests on a Chutney network.
3661       Implements ticket 8530.
3663   o Major features (other):
3664     - On some platforms (currently: recent OSX versions, glibc-based
3665       platforms that support the ELF format, and a few other
3666       Unix-like operating systems), Tor can now dump stack traces
3667       when a crash occurs or an assertion fails. By default, traces
3668       are dumped to stderr (if possible) and to any logs that are
3669       reporting errors. Implements ticket 9299.
3671   o Deprecated versions:
3672     - Tor 0.2.3.x has reached end-of-life; it has received no patches or
3673       attention for some while.
3675   o Major bugfixes (security, directory authorities):
3676     - Directory authorities now include a digest of each relay's
3677       identity key as a part of its microdescriptor.
3679       This is a workaround for bug 11743 (reported by "cypherpunks"),
3680       where Tor clients do not support receiving multiple
3681       microdescriptors with the same SHA256 digest in the same
3682       consensus. When clients receive a consensus like this, they only
3683       use one of the relays. Without this fix, a hostile relay could
3684       selectively disable some client use of target relays by
3685       constructing a router descriptor with a different identity and the
3686       same microdescriptor parameters and getting the authorities to
3687       list it in a microdescriptor consensus. This fix prevents an
3688       attacker from causing a microdescriptor collision, because the
3689       router's identity is not forgeable.
3691   o Major bugfixes (openssl bug workaround):
3692     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
3693       1.0.1j, built with the 'no-ssl3' configuration option. Fixes
3694       bug 13471. This is a workaround for an OpenSSL bug.
3696   o Major bugfixes (client):
3697     - Perform circuit cleanup operations even when circuit
3698       construction operations are disabled (because the network is
3699       disabled, or because there isn't enough directory information).
3700       Previously, when we were not building predictive circuits, we
3701       were not closing expired circuits either. Fixes bug 8387; bugfix on
3702       0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we
3703       became more strict about when we have "enough directory information
3704       to build circuits".
3706   o Major bugfixes (client, pluggable transports):
3707     - When managing pluggable transports, use OS notification facilities
3708       to learn if they have crashed, and don't attempt to kill any
3709       process that has already exited. Fixes bug 8746; bugfix
3710       on 0.2.3.6-alpha.
3712   o Major bugfixes (relay denial of service):
3713     - Instead of writing destroy cells directly to outgoing connection
3714       buffers, queue them and intersperse them with other outgoing cells.
3715       This can prevent a set of resource starvation conditions where too
3716       many pending destroy cells prevent data cells from actually getting
3717       delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912;
3718       bugfix on 0.2.0.1-alpha.
3720   o Major bugfixes (relay):
3721     - Avoid queuing or sending destroy cells for circuit ID zero when we
3722       fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1.
3723       Found and fixed by "cypherpunks".
3724     - Fix ORPort reachability detection on relays running behind a
3725       proxy, by correctly updating the "local" mark on the controlling
3726       channel when changing the address of an or_connection_t after the
3727       handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha.
3728     - Use a direct dirport connection when uploading non-anonymous
3729       descriptors to the directory authorities. Previously, relays would
3730       incorrectly use tunnel connections under a fairly wide variety of
3731       circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha.
3732     - When a circuit accidentally has the same circuit ID for its
3733       forward and reverse direction, correctly detect the direction of
3734       cells using that circuit. Previously, this bug made roughly one
3735       circuit in a million non-functional. Fixes bug 12195; this is a
3736       bugfix on every version of Tor.
3738   o Minor features (security):
3739     - New --enable-expensive-hardening option to enable security
3740       hardening options that consume nontrivial amounts of CPU and
3741       memory. Right now, this includes AddressSanitizer and UbSan, which
3742       are supported in newer versions of GCC and Clang. Closes ticket
3743       11477.
3744     - Authorities now assign the Guard flag to the fastest 25% of the
3745       network (it used to be the fastest 50%). Also raise the consensus
3746       weight that guarantees the Guard flag from 250 to 2000. For the
3747       current network, this results in about 1100 guards, down from 2500.
3748       This step paves the way for moving the number of entry guards
3749       down to 1 (proposal 236) while still providing reasonable expected
3750       performance for most users. Implements ticket 12690.
3752   o Minor features (security, memory management):
3753     - Memory allocation tricks (mempools and buffer freelists) are now
3754       disabled by default. You can turn them back on with
3755       --enable-mempools and --enable-buf-freelists respectively. We're
3756       disabling these features because malloc performance is good enough
3757       on most platforms, and a similar feature in OpenSSL exacerbated
3758       exploitation of the Heartbleed attack. Resolves ticket 11476.
3760   o Minor features (bridge client):
3761     - Report a more useful failure message when we can't connect to a
3762       bridge because we don't have the right pluggable transport
3763       configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto.
3765   o Minor features (bridge):
3766     - Add an ExtORPortCookieAuthFileGroupReadable option to make the
3767       cookie file for the ExtORPort g+r by default.
3769   o Minor features (bridges, pluggable transports):
3770     - Bridges now write the SHA1 digest of their identity key
3771       fingerprint (that is, a hash of a hash of their public key) to
3772       notice-level logs, and to a new hashed-fingerprint file. This
3773       information will help bridge operators look up their bridge in
3774       Globe and similar tools. Resolves ticket 10884.
3775     - Improve the message that Tor displays when running as a bridge
3776       using pluggable transports without an Extended ORPort listener.
3777       Also, log the message in the log file too. Resolves ticket 11043.
3778     - Add threshold cutoffs to the networkstatus document created by
3779       the Bridge Authority. Fixes bug 1117.
3780     - On Windows, spawn background processes using the CREATE_NO_WINDOW
3781       flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled
3782       doesn't pop up a blank console window. (In Tor Browser Bundle 2.x,
3783       Vidalia set this option for us.) Implements ticket 10297.
3785   o Minor features (build):
3786     - The configure script has a --disable-seccomp option to turn off
3787       support for libseccomp on systems that have it, in case it (or
3788       Tor's use of it) is broken. Resolves ticket 11628.
3789     - Assume that a user using ./configure --host wants to cross-compile,
3790       and give an error if we cannot find a properly named
3791       tool-chain. Add a --disable-tool-name-check option to proceed
3792       nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz.
3793     - If we run ./configure and the compiler recognizes -fstack-protector
3794       but the linker rejects it, warn the user about a potentially missing
3795       libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz.
3796     - Add support for `--library-versions` flag. Implements ticket 6384.
3797     - Return the "unexpected sendme" warnings to a warn severity, but make
3798       them rate limited, to help diagnose ticket 8093.
3799     - Detect a missing asciidoc, and warn the user about it, during
3800       configure rather than at build time. Fixes issue 6506. Patch from
3801       Arlo Breault.
3803   o Minor features (client):
3804     - Add a new option, PredictedPortsRelevanceTime, to control how long
3805       after having received a request to connect to a given port Tor
3806       will try to keep circuits ready in anticipation of future requests
3807       for that port. Patch from "unixninja92"; implements ticket 9176.
3809   o Minor features (config options and command line):
3810     - Add an --allow-missing-torrc commandline option that tells Tor to
3811       run even if the configuration file specified by -f is not available.
3812       Implements ticket 10060.
3813     - Add support for the TPROXY transparent proxying facility on Linux.
3814       See documentation for the new TransProxyType option for more
3815       details. Implementation by "thomo". Closes ticket 10582.
3817   o Minor features (config options):
3818     - Config (torrc) lines now handle fingerprints which are missing
3819       their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5.
3820     - Support a --dump-config option to print some or all of the
3821       configured options. Mainly useful for debugging the command-line
3822       option parsing code. Helps resolve ticket 4647.
3823     - Raise awareness of safer logging: notify user of potentially
3824       unsafe config options, like logging more verbosely than severity
3825       "notice" or setting SafeLogging to 0. Resolves ticket 5584.
3826     - Add a new configuration option TestingV3AuthVotingStartOffset
3827       that bootstraps a network faster by changing the timing for
3828       consensus votes. Addresses ticket 8532.
3829     - Add a new torrc option "ServerTransportOptions" that allows
3830       bridge operators to pass configuration parameters to their
3831       pluggable transports. Resolves ticket 8929.
3832     - The config (torrc) file now accepts bandwidth and space limits in
3833       bits as well as bytes. (Anywhere that you can say "2 Kilobytes",
3834       you can now say "16 kilobits", and so on.) Resolves ticket 9214.
3835       Patch by CharlieB.
3837   o Minor features (controller):
3838     - Make the entire exit policy available from the control port via
3839       GETINFO exit-policy/*. Implements enhancement 7952. Patch from
3840       "rl1987".
3841     - Because of the fix for ticket 11396, the real limit for memory
3842       usage may no longer match the configured MaxMemInQueues value. The
3843       real limit is now exposed via GETINFO limits/max-mem-in-queues.
3844     - Add a new "HS_DESC" controller event that reports activities
3845       related to hidden service descriptors. Resolves ticket 8510.
3846     - New "DROPGUARDS" controller command to forget all current entry
3847       guards. Not recommended for ordinary use, since replacing guards
3848       too frequently makes several attacks easier. Resolves ticket 9934;
3849       patch from "ra".
3850     - Implement the TRANSPORT_LAUNCHED control port event that
3851       notifies controllers about new launched pluggable
3852       transports. Resolves ticket 5609.
3854   o Minor features (diagnostic):
3855     - When logging a warning because of bug 7164, additionally check the
3856       hash table for consistency (as proposed on ticket 11737). This may
3857       help diagnose bug 7164.
3858     - When we log a heartbeat, log how many one-hop circuits we have
3859       that are at least 30 minutes old, and log status information about
3860       a few of them. This is an attempt to track down bug 8387.
3861     - When encountering an unexpected CR while writing text to a file on
3862       Windows, log the name of the file. Should help diagnosing
3863       bug 11233.
3864     - Give more specific warnings when a client notices that an onion
3865       handshake has failed. Fixes ticket 9635.
3866     - Add significant new logging code to attempt to diagnose bug 12184,
3867       where relays seem to run out of available circuit IDs.
3868     - Improve the diagnostic log message for bug 8387 even further to
3869       try to improve our odds of figuring out why one-hop directory
3870       circuits sometimes do not get closed.
3871     - Add more log messages to diagnose bug 7164, which causes
3872       intermittent "microdesc_free() called but md was still referenced"
3873       warnings. We now include more information, to figure out why we
3874       might be cleaning a microdescriptor for being too old if it's
3875       still referenced by a live node_t object.
3876     - Log current accounting state (bytes sent and received + remaining
3877       time for the current accounting period) in the relay's heartbeat
3878       message. Implements ticket 5526; patch from Peter Retzlaff.
3880   o Minor features (geoip):
3881     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
3882       Country database.
3884   o Minor features (interface):
3885     - Generate a warning if any ports are listed in the SocksPolicy,
3886       DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or
3887       AuthDirBadExit options. (These options only support address
3888       ranges.) Fixes part of ticket 11108.
3890   o Minor features (kernel API usage):
3891     - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking
3892       sockets in a single system call. Implements ticket 5129.
3894   o Minor features (log messages):
3895     - When ServerTransportPlugin is set on a bridge, Tor can write more
3896       useful statistics about bridge use in its extrainfo descriptors,
3897       but only if the Extended ORPort ("ExtORPort") is set too. Add a
3898       log message to inform the user in this case. Resolves ticket 9651.
3899     - When receiving a new controller connection, log the origin address.
3900       Resolves ticket 9698; patch from "sigpipe".
3901     - When logging OpenSSL engine status at startup, log the status of
3902       more engines. Fixes ticket 10043; patch from Joshua Datko.
3904   o Minor features (log verbosity):
3905     - Demote the message that we give when a flushing connection times
3906       out for too long from NOTICE to INFO. It was usually meaningless.
3907       Resolves ticket 5286.
3908     - Don't log so many notice-level bootstrapping messages at startup
3909       about downloading descriptors. Previously, we'd log a notice
3910       whenever we learned about more routers. Now, we only log a notice
3911       at every 5% of progress. Fixes bug 9963.
3912     - Warn less verbosely when receiving a malformed
3913       ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279.
3915   o Minor features (performance):
3916     - If we're using the pure-C 32-bit curve25519_donna implementation
3917       of curve25519, build it with the -fomit-frame-pointer option to
3918       make it go faster on register-starved hosts. This improves our
3919       handshake performance by about 6% on i386 hosts without nacl.
3920       Closes ticket 8109.
3922   o Minor features (relay):
3923     - If a circuit timed out for at least 3 minutes, check if we have a
3924       new external IP address, and publish a new descriptor with the new
3925       IP address if it changed. Resolves ticket 2454.
3927   o Minor features (testing):
3928     - If Python is installed, "make check" now runs extra tests beyond
3929       the unit test scripts.
3930     - When bootstrapping a test network, sometimes very few relays get
3931       the Guard flag. Now a new option "TestingDirAuthVoteGuard" can
3932       specify a set of relays which should be voted Guard regardless of
3933       their uptime or bandwidth. Addresses ticket 9206.
3935   o Minor features (transparent proxy, *BSD):
3936     - Support FreeBSD's ipfw firewall interface for TransPort ports on
3937       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
3938       10267; patch from "yurivict".
3939     - Support OpenBSD's divert-to rules with the pf firewall for
3940       transparent proxy ports. To enable it, set "TransProxyType
3941       pf-divert". This allows Tor to run a TransPort transparent proxy
3942       port on OpenBSD 4.4 or later without root privileges. See the
3943       pf.conf(5) manual page for information on configuring pf to use
3944       divert-to rules. Closes ticket 10896; patch from Dana Koch.
3946   o Minor bugfixes (bridge client):
3947     - Stop accepting bridge lines containing hostnames. Doing so would
3948       cause clients to perform DNS requests on the hostnames, which was
3949       not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha.
3951   o Minor bugfixes (bridges):
3952     - Avoid potential crashes or bad behavior when launching a
3953       server-side managed proxy with ORPort or ExtORPort temporarily
3954       disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
3955     - Fix a bug where the first connection works to a bridge that uses a
3956       pluggable transport with client-side parameters, but we don't send
3957       the client-side parameters on subsequent connections. (We don't
3958       use any pluggable transports with client-side parameters yet,
3959       but ScrambleSuit will soon become the first one.) Fixes bug 9162;
3960       bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987".
3962   o Minor bugfixes (build, auxiliary programs):
3963     - Stop preprocessing the "torify" script with autoconf, since
3964       it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch
3965       from Guilhem.
3966     - The tor-fw-helper program now follows the standard convention and
3967       exits with status code "0" on success. Fixes bug 9030; bugfix on
3968       0.2.3.1-alpha. Patch by Arlo Breault.
3969     - Corrected ./configure advice for what openssl dev package you should
3970       install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha.
3972   o Minor bugfixes (client):
3973     - Avoid "Tried to open a socket with DisableNetwork set" warnings
3974       when starting a client with bridges configured and DisableNetwork
3975       set. (Tor launcher starts Tor with DisableNetwork set the first
3976       time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha.
3977     - Improve the log message when we can't connect to a hidden service
3978       because all of the hidden service directory nodes hosting its
3979       descriptor are excluded. Improves on our fix for bug 10722, which
3980       was a bugfix on 0.2.0.10-alpha.
3981     - Raise a control port warning when we fail to connect to all of
3982       our bridges. Previously, we didn't inform the controller, and
3983       the bootstrap process would stall. Fixes bug 11069; bugfix on
3984       0.2.1.2-alpha.
3985     - Exit immediately when a process-owning controller exits.
3986       Previously, tor relays would wait for a little while after their
3987       controller exited, as if they had gotten an INT signal -- but this
3988       was problematic, since there was no feedback for the user. To do a
3989       clean shutdown, controllers should send an INT signal and give Tor
3990       a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta.
3991     - Stop attempting to connect to bridges before our pluggable
3992       transports are configured (harmless but resulted in some erroneous
3993       log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha.
3994     - Fix connections to IPv6 addresses over SOCKS5. Previously, we were
3995       generating incorrect SOCKS5 responses, and confusing client
3996       applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha.
3998   o Minor bugfixes (client, DNSPort):
3999     - When using DNSPort, try to respond to AAAA requests with AAAA
4000       answers. Previously, we hadn't looked at the request type when
4001       deciding which answer type to prefer. Fixes bug 10468; bugfix on
4002       0.2.4.7-alpha.
4003     - When receiving a DNS query for an unsupported record type, reply
4004       with no answer rather than with a NOTIMPL error. This behavior
4005       isn't correct either, but it will break fewer client programs, we
4006       hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch
4007       from "epoch".
4009   o Minor bugfixes (client, logging during bootstrap):
4010     - Only report the first fatal bootstrap error on a given OR
4011       connection. This stops us from telling the controller bogus error
4012       messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha.
4013     - Avoid generating spurious warnings when starting with
4014       DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on
4015       0.2.3.9-alpha.
4017   o Minor bugfixes (closing OR connections):
4018     - If write_to_buf() in connection_write_to_buf_impl_() ever fails,
4019       check if it's an or_connection_t and correctly call
4020       connection_or_close_for_error() rather than
4021       connection_mark_for_close() directly. Fixes bug 11304; bugfix on
4022       0.2.4.4-alpha.
4023     - When closing all connections on setting DisableNetwork to 1, use
4024       connection_or_close_normally() rather than closing OR connections
4025       out from under the channel layer. Fixes bug 11306; bugfix on
4026       0.2.4.4-alpha.
4028   o Minor bugfixes (code correctness):
4029     - Previously we used two temporary files when writing descriptors to
4030       disk; now we only use one. Fixes bug 1376.
4031     - Remove an erroneous (but impossible and thus harmless) pointer
4032       comparison that would have allowed compilers to skip a bounds
4033       check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on
4034       0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield.
4035     - Fix an always-true assertion in pluggable transports code so it
4036       actually checks what it was trying to check. Fixes bug 10046;
4037       bugfix on 0.2.3.9-alpha. Found by "dcb".
4039   o Minor bugfixes (command line):
4040     - Use a single command-line parser for parsing torrc options on the
4041       command line and for finding special command-line options to avoid
4042       inconsistent behavior for torrc option arguments that have the same
4043       names as command-line options. Fixes bugs 4647 and 9578; bugfix on
4044       0.0.9pre5.
4045     - No longer allow 'tor --hash-password' with no arguments. Fixes bug
4046       9573; bugfix on 0.0.9pre5.
4048   o Minor bugfixes (compilation):
4049     - Compile correctly with builds and forks of OpenSSL (such as
4050       LibreSSL) that disable compression. Fixes bug 12602; bugfix on
4051       0.2.1.1-alpha. Patch from "dhill".
4052     - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER
4053       turned off (that is, without support for v2 link handshakes). Fixes
4054       bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet".
4055     - In routerlist_assert_ok(), don't take the address of a
4056       routerinfo's cache_info member unless that routerinfo is non-NULL.
4057       Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor".
4058     - Fix a large number of false positive warnings from the clang
4059       analyzer static analysis tool. This should make real warnings
4060       easier for clang analyzer to find. Patch from "teor". Closes
4061       ticket 13036.
4062     - Resolve GCC complaints on OpenBSD about discarding constness in
4063       TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix
4064       on 0.1.1.23. Patch from Dana Koch.
4065     - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to
4066       treatment of long and time_t as comparable types. Fixes part of
4067       bug 11633. Patch from Dana Koch.
4068     - When deciding whether to build the 64-bit curve25519
4069       implementation, detect platforms where we can compile 128-bit
4070       arithmetic but cannot link it. Fixes bug 11729; bugfix on
4071       0.2.4.8-alpha. Patch from "conradev".
4072     - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761;
4073       bugfix on 0.2.3.13-alpha. Found by "cypherpunks".
4074     - Fix compilation with dmalloc. Fixes bug 11605; bugfix
4075       on 0.2.4.10-alpha.
4076     - Build and run correctly on systems like OpenBSD-current that have
4077       patched OpenSSL to remove get_cipher_by_char and/or its
4078       implementations. Fixes issue 13325.
4080   o Minor bugfixes (controller and command-line):
4081     - If changing a config option via "setconf" fails in a recoverable
4082       way, we used to nonetheless write our new control ports to the
4083       file described by the "ControlPortWriteToFile" option. Now we only
4084       write out that file if we successfully switch to the new config
4085       option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman".
4087   o Minor bugfixes (directory server):
4088     - No longer accept malformed http headers when parsing urls from
4089       headers. Now we reply with Bad Request ("400"). Fixes bug 2767;
4090       bugfix on 0.0.6pre1.
4091     - When sending a compressed set of descriptors or microdescriptors,
4092       make sure to finalize the zlib stream. Previously, we would write
4093       all the compressed data, but if the last descriptor we wanted to
4094       send was missing or too old, we would not mark the stream as
4095       finished. This caused problems for decompression tools. Fixes bug
4096       11648; bugfix on 0.1.1.23.
4098   o Minor bugfixes (hidden service):
4099     - Only retry attempts to connect to a chosen rendezvous point 8
4100       times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc.
4102   o Minor bugfixes (interface):
4103     - Reject relative control socket paths and emit a warning. Previously,
4104       single-component control socket paths would be rejected, but Tor
4105       would not log why it could not validate the config. Fixes bug 9258;
4106       bugfix on 0.2.3.16-alpha.
4108   o Minor bugfixes (log messages):
4109     - Fix a bug where clients using bridges would report themselves
4110       as 50% bootstrapped even without a live consensus document.
4111       Fixes bug 9922; bugfix on 0.2.1.1-alpha.
4112     - Suppress a warning where, if there's only one directory authority
4113       in the network, we would complain that votes and signatures cannot
4114       be uploaded to other directory authorities. Fixes bug 10842;
4115       bugfix on 0.2.2.26-beta.
4116     - Report bootstrapping progress correctly when we're downloading
4117       microdescriptors. We had updated our "do we have enough microdescs
4118       to begin building circuits?" logic most recently in 0.2.4.10-alpha
4119       (see bug 5956), but we left the bootstrap status event logic at
4120       "how far through getting 1/4 of them are we?" Fixes bug 9958;
4121       bugfix on 0.2.2.36, which is where they diverged (see bug 5343).
4123   o Minor bugfixes (logging):
4124     - Downgrade "Unexpected onionskin length after decryption" warning
4125       to a protocol-warn, since there's nothing relay operators can do
4126       about a client that sends them a malformed create cell. Resolves
4127       bug 12996; bugfix on 0.0.6rc1.
4128     - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS
4129       cell on a cannibalized or non-OR circuit. Resolves ticket 12997.
4130     - When logging information about an EXTEND2 or EXTENDED2 cell, log
4131       their names correctly. Fixes part of bug 12700; bugfix
4132       on 0.2.4.8-alpha.
4133     - When logging information about a relay cell whose command we don't
4134       recognize, log its command as an integer. Fixes part of bug 12700;
4135       bugfix on 0.2.1.10-alpha.
4136     - Escape all strings from the directory connection before logging
4137       them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor".
4138     - Squelch a spurious LD_BUG message "No origin circuit for
4139       successful SOCKS stream" in certain hidden service failure cases;
4140       fixes bug 10616.
4141     - Downgrade the severity of the 'unexpected sendme cell from client'
4142       from 'warn' to 'protocol warning'. Closes ticket 8093.
4144   o Minor bugfixes (misc code correctness):
4145     - In munge_extrainfo_into_routerinfo(), check the return value of
4146       memchr(). This would have been a serious issue if we ever passed
4147       it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch
4148       from Arlo Breault.
4149     - On the chance that somebody manages to build Tor on a
4150       platform where time_t is unsigned, correct the way that
4151       microdesc_add_to_cache() handles negative time arguments.
4152       Fixes bug 8042; bugfix on 0.2.3.1-alpha.
4153     - Fix various instances of undefined behavior in channeltls.c,
4154       tor_memmem(), and eventdns.c that would cause us to construct
4155       pointers to memory outside an allocated object. (These invalid
4156       pointers were not accessed, but C does not even allow them to
4157       exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha,
4158       0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom".
4159     - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to
4160       fix some miscellaneous errors in our tests and codebase. Fixes bug
4161       11232. Bugfixes on versions back as far as 0.2.1.11-alpha.
4162     - Always check return values for unlink, munmap, UnmapViewOfFile;
4163       check strftime return values more often. In some cases all we can
4164       do is report a warning, but this may help prevent deeper bugs from
4165       going unnoticed. Closes ticket 8787; bugfixes on many, many tor
4166       versions.
4167     - Fix numerous warnings from the clang "scan-build" static analyzer.
4168       Some of these are programming style issues; some of them are false
4169       positives that indicated awkward code; some are undefined behavior
4170       cases related to constructing (but not using) invalid pointers;
4171       some are assumptions about API behavior; some are (harmlessly)
4172       logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be
4173       correct; and one or two are genuine bugs that weren't reachable
4174       from the rest of the program. Fixes bug 8793; bugfixes on many,
4175       many tor versions.
4177   o Minor bugfixes (node selection):
4178     - If ExcludeNodes is set, consider non-excluded hidden service
4179       directory servers before excluded ones. Do not consider excluded
4180       hidden service directory servers at all if StrictNodes is
4181       set. (Previously, we would sometimes decide to connect to those
4182       servers, and then realize before we initiated a connection that
4183       we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha.
4184       Reported by "mr-4".
4185     - If we set the ExitNodes option but it doesn't include any nodes
4186       that have the Exit flag, we would choose not to bootstrap. Now we
4187       bootstrap so long as ExitNodes includes nodes which can exit to
4188       some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha.
4190   o Minor bugfixes (performance):
4191     - Avoid a bug where every successful connection made us recompute
4192       the flag telling us whether we have sufficient information to
4193       build circuits. Previously, we would forget our cached value
4194       whenever we successfully opened a channel (or marked a router as
4195       running or not running for any other reason), regardless of
4196       whether we had previously believed the router to be running. This
4197       forced us to run an expensive update operation far too often.
4198       Fixes bug 12170; bugfix on 0.1.2.1-alpha.
4199     - Avoid using tor_memeq() for checking relay cell integrity. This
4200       removes a possible performance bottleneck. Fixes part of bug
4201       12169; bugfix on 0.2.1.31.
4203   o Minor bugfixes (platform-specific):
4204     - When dumping a malformed directory object to disk, save it in
4205       binary mode on Windows, not text mode. Fixes bug 11342; bugfix on
4206       0.2.2.1-alpha.
4207     - Don't report failures from make_socket_reuseable() on incoming
4208       sockets on OSX: this can happen when incoming connections close
4209       early. Fixes bug 10081.
4211   o Minor bugfixes (pluggable transports):
4212     - Avoid another 60-second delay when starting Tor in a pluggable-
4213       transport-using configuration when we already have cached
4214       descriptors for our bridges. Fixes bug 11965; bugfix
4215       on 0.2.3.6-alpha.
4217   o Minor bugfixes (protocol correctness):
4218     - When receiving a VERSIONS cell with an odd number of bytes, close
4219       the connection immediately since the cell is malformed. Fixes bug
4220       10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by
4221       "rl1987".
4223   o Minor bugfixes (relay, other):
4224     - We now drop CREATE cells for already-existent circuit IDs and for
4225       zero-valued circuit IDs, regardless of other factors that might
4226       otherwise have called for DESTROY cells. Fixes bug 12191; bugfix
4227       on 0.0.8pre1.
4228     - When rejecting DATA cells for stream_id zero, still count them
4229       against the circuit's deliver window so that we don't fail to send
4230       a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha.
4232   o Minor bugfixes (relay, threading):
4233     - Check return code on spawn_func() in cpuworker code, so that we
4234       don't think we've spawned a nonworking cpuworker and write junk to
4235       it forever. Fix related to bug 4345; bugfix on all released Tor
4236       versions. Found by "skruffy".
4237     - Use a pthread_attr to make sure that spawn_func() cannot return an
4238       error while at the same time launching a thread. Fix related to
4239       bug 4345; bugfix on all released Tor versions. Reported
4240       by "cypherpunks".
4242   o Minor bugfixes (relays and bridges):
4243     - Avoid crashing on a malformed resolv.conf file when running a
4244       relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23.
4245     - Non-exit relays no longer launch mock DNS requests to check for
4246       DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when
4247       non-exit relays stopped servicing DNS requests. Fixes bug 965;
4248       bugfix on 0.2.1.7-alpha. Patch from Matt Pagan.
4249     - Bridges now report complete directory request statistics. Related
4250       to bug 5824; bugfix on 0.2.2.1-alpha.
4251     - Bridges now never collect statistics that were designed for
4252       relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha.
4254   o Minor bugfixes (testing):
4255     - Fix all valgrind warnings produced by the unit tests. There were
4256       over a thousand memory leak warnings previously, mostly produced
4257       by forgetting to free things in the unit test code. Fixes bug
4258       11618, bugfixes on many versions of Tor.
4260   o Minor bugfixes (tor-fw-helper):
4261     - Give a correct log message when tor-fw-helper fails to launch.
4262       (Previously, we would say something like "tor-fw-helper sent us a
4263       string we could not parse".) Fixes bug 9781; bugfix
4264       on 0.2.4.2-alpha.
4266   o Minor bugfixes (trivial memory leaks):
4267     - Fix a small memory leak when signing a directory object. Fixes bug
4268       11275; bugfix on 0.2.4.13-alpha.
4269     - Resolve some memory leaks found by coverity in the unit tests, on
4270       exit in tor-gencert, and on a failure to compute digests for our
4271       own keys when generating a v3 networkstatus vote. These leaks
4272       should never have affected anyone in practice.
4274   o Code simplification and refactoring:
4275     - Remove some old fallback code designed to keep Tor clients working
4276       in a network with only two working relays. Elsewhere in the code we
4277       have long since stopped supporting such networks, so there wasn't
4278       much point in keeping it around. Addresses ticket 9926.
4279     - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536;
4280       bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".
4281     - Extract the common duplicated code for creating a subdirectory
4282       of the data directory and writing to a file in it. Fixes ticket
4283       4282; patch from Peter Retzlaff.
4284     - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output
4285       buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(),
4286       i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170.
4287     - Add a set of accessor functions for the circuit timeout data
4288       structure. Fixes ticket 6153; patch from "piet".
4289     - Clean up exit paths from connection_listener_new(). Closes ticket
4290       8789. Patch from Arlo Breault.
4291     - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp()
4292       and drop our own custom pkey_eq() implementation. Fixes bug 9043.
4293     - Use a doubly-linked list to implement the global circuit list.
4294       Resolves ticket 9108. Patch from Marek Majkowski.
4295     - Remove contrib/id_to_fp.c since it wasn't used anywhere.
4296     - Remove constants and tests for PKCS1 padding; it's insecure and
4297       shouldn't be used for anything new. Fixes bug 8792; patch
4298       from Arlo Breault.
4299     - Remove instances of strcpy() from the unit tests. They weren't
4300       hurting anything, since they were only in the unit tests, but it's
4301       embarassing to have strcpy() in the code at all, and some analysis
4302       tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and
4303       0.2.3.8-alpha. Patch from Arlo Breault.
4304     - Remove is_internal_IP() function. Resolves ticket 4645.
4305     - Remove unused function circuit_dump_by_chan from circuitlist.c.
4306       Closes issue 9107; patch from "marek".
4307     - Change our use of the ENUM_BF macro to avoid declarations that
4308       confuse Doxygen.
4309     - Get rid of router->address, since in all cases it was just the
4310       string representation of router->addr. Resolves ticket 5528.
4312   o Documentation:
4313     - Adjust the URLs in the README to refer to the new locations of
4314       several documents on the website. Fixes bug 12830. Patch from
4315       Matt Pagan.
4316     - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves
4317       ticket 12878.
4318     - Update manpage to describe some of the files you can expect to
4319       find in Tor's DataDirectory. Addresses ticket 9839.
4320     - Clean up several option names in the manpage to match their real
4321       names, add the missing documentation for a couple of testing and
4322       directory authority options, remove the documentation for a
4323       V2-directory fetching option that no longer exists. Resolves
4324       ticket 11634.
4325     - Correct the documenation so that it lists the correct directory
4326       for the stats files. (They are in a subdirectory called "stats",
4327       not "status".)
4328     - In the manpage, move more authority-only options into the
4329       directory authority section so that operators of regular directory
4330       caches don't get confused.
4331     - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug
4332       11061; bugfix on 0.2.4.7-alpha.
4333     - Resolve warnings from Doxygen.
4334     - Document in the manpage that "KBytes" may also be written as
4335       "kilobytes" or "KB", that "Kbits" may also be written as
4336       "kilobits", and so forth. Closes ticket 9222.
4337     - Document that the ClientOnly config option overrides ORPort.
4338       Our old explanation made ClientOnly sound as though it did
4339       nothing at all. Resolves bug 9059.
4340     - Explain that SocksPolicy, DirPolicy, and similar options don't
4341       take port arguments. Fixes the other part of ticket 11108.
4342     - Fix a comment about the rend_server_descriptor_t.protocols field
4343       to more accurately describe its range. Also, make that field
4344       unsigned, to more accurately reflect its usage. Fixes bug 9099;
4345       bugfix on 0.2.1.5-alpha.
4346     - Fix the manpage's description of HiddenServiceAuthorizeClient:
4347       the maximum client name length is 16, not 19. Fixes bug 11118;
4348       bugfix on 0.2.1.6-alpha.
4350   o Package cleanup:
4351     - The contrib directory has been sorted and tidied. Before, it was
4352       an unsorted dumping ground for useful and not-so-useful things.
4353       Now, it is divided based on functionality, and the items which
4354       seemed to be nonfunctional or useless have been removed. Resolves
4355       ticket 8966; based on patches from "rl1987".
4357   o Removed code and features:
4358     - Clients now reject any directory authority certificates lacking
4359       a dir-key-crosscert element. These have been included since
4360       0.2.1.9-alpha, so there's no real reason for them to be optional
4361       any longer. Completes proposal 157. Resolves ticket 10162.
4362     - Remove all code that existed to support the v2 directory system,
4363       since there are no longer any v2 directory authorities. Resolves
4364       ticket 10758.
4365     - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc
4366       options, which were used for designating authorities as "Hidden
4367       service authorities". There has been no use of hidden service
4368       authorities since 0.2.2.1-alpha, when we stopped uploading or
4369       downloading v0 hidden service descriptors. Fixes bug 10881; also
4370       part of a fix for bug 10841.
4371     - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU
4372       and MTBF calculations, but that nobody was using. Fixes bug 11742.
4373     - The TunnelDirConns and PreferTunnelledDirConns options no longer
4374       exist; tunneled directory connections have been available since
4375       0.1.2.5-alpha, and turning them off is not a good idea. This is a
4376       brute-force fix for 10849, where "TunnelDirConns 0" would break
4377       hidden services.
4378     - Remove all code for the long unused v1 directory protocol.
4379       Resolves ticket 11070.
4380     - Remove all remaining code related to version-0 hidden service
4381       descriptors: they have not been in use since 0.2.2.1-alpha. Fixes
4382       the rest of bug 10841.
4383     - Remove migration code from when we renamed the "cached-routers"
4384       file to "cached-descriptors" back in 0.2.0.8-alpha. This
4385       incidentally resolves ticket 6502 by cleaning up the related code
4386       a bit. Patch from Akshay Hebbar.
4388   o Test infrastructure:
4389     - Tor now builds each source file in two modes: a mode that avoids
4390       exposing identifiers needlessly, and another mode that exposes
4391       more identifiers for testing. This lets the compiler do better at
4392       optimizing the production code, while enabling us to take more
4393       radical measures to let the unit tests test things.
4394     - The production builds no longer include functions used only in
4395       the unit tests; all functions exposed from a module only for
4396       unit-testing are now static in production builds.
4397     - Add an --enable-coverage configuration option to make the unit
4398       tests (and a new src/or/tor-cov target) to build with gcov test
4399       coverage support.
4400     - Update to the latest version of tinytest.
4401     - Improve the tinytest implementation of string operation tests so
4402       that comparisons with NULL strings no longer crash the tests; they
4403       now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha.
4404     - New macros in test.h to simplify writing mock-functions for unit
4405       tests. Part of ticket 11507. Patch from Dana Koch.
4406     - We now have rudimentary function mocking support that our unit
4407       tests can use to test functions in isolation. Function mocking
4408       lets the tests temporarily replace a function's dependencies with
4409       stub functions, so that the tests can check the function without
4410       invoking the other functions it calls.
4412   o Testing:
4413     - Complete tests for the status.c module. Resolves ticket 11507.
4414       Patch from Dana Koch.
4415     - Add more unit tests for the <circid,channel>->circuit map, and
4416       the destroy-cell-tracking code to fix bug 7912.
4417     - Unit tests for failing cases of the TAP onion handshake.
4418     - More unit tests for address-manipulation functions.
4420   o Distribution (systemd):
4421     - Include a tor.service file in contrib/dist for use with systemd.
4422       Some distributions will be able to use this file unmodified;
4423       others will need to tweak it, or write their own. Patch from Jamie
4424       Nguyen; resolves ticket 8368.
4425     - Verify configuration file via ExecStartPre in the systemd unit
4426       file. Patch from intrigeri; resolves ticket 12730.
4427     - Explicitly disable RunAsDaemon in the systemd unit file. Our
4428       current systemd unit uses "Type = simple", so systemd does not
4429       expect tor to fork. If the user has "RunAsDaemon 1" in their
4430       torrc, then things won't work as expected. This is e.g. the case
4431       on Debian (and derivatives), since there we pass "--defaults-torrc
4432       /usr/share/tor/tor-service-defaults-torrc" (that contains
4433       "RunAsDaemon 1") by default. Patch by intrigeri; resolves
4434       ticket 12731.
4437 Changes in version 0.2.4.25 - 2014-10-20
4438   Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack
4439   (even though POODLE does not affect Tor). It also works around a crash
4440   bug caused by some operating systems' response to the "POODLE" attack
4441   (which does affect Tor).
4443   o Major security fixes (also in 0.2.5.9-rc):
4444     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
4445       today support TLS 1.0 or later, so we can safely turn off support
4446       for this old (and insecure) protocol. Fixes bug 13426.
4448   o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc):
4449     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
4450       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
4451       13471. This is a workaround for an OpenSSL bug.
4454 Changes in version 0.2.4.24 - 2014-09-22
4455   Tor 0.2.4.24 fixes a bug that affects consistency and speed when
4456   connecting to hidden services, and it updates the location of one of
4457   the directory authorities.
4459   o Major bugfixes:
4460     - Clients now send the correct address for their chosen rendezvous
4461       point when trying to access a hidden service. They used to send
4462       the wrong address, which would still work some of the time because
4463       they also sent the identity digest of the rendezvous point, and if
4464       the hidden service happened to try connecting to the rendezvous
4465       point from a relay that already had a connection open to it,
4466       the relay would reuse that connection. Now connections to hidden
4467       services should be more robust and faster. Also, this bug meant
4468       that clients were leaking to the hidden service whether they were
4469       on a little-endian (common) or big-endian (rare) system, which for
4470       some users might have reduced their anonymity. Fixes bug 13151;
4471       bugfix on 0.2.1.5-alpha.
4473   o Directory authority changes:
4474     - Change IP address for gabelmoo (v3 directory authority).
4476   o Minor features (geoip):
4477     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
4478       Country database.
4481 Changes in version 0.2.4.23 - 2014-07-28
4482   Tor 0.2.4.23 brings us a big step closer to slowing down the risk from
4483   guard rotation, and also backports several important fixes from the
4484   Tor 0.2.5 alpha release series.
4486   o Major features:
4487     - Clients now look at the "usecreatefast" consensus parameter to
4488       decide whether to use CREATE_FAST or CREATE cells for the first hop
4489       of their circuit. This approach can improve security on connections
4490       where Tor's circuit handshake is stronger than the available TLS
4491       connection security levels, but the tradeoff is more computational
4492       load on guard relays. Implements proposal 221. Resolves ticket 9386.
4493     - Make the number of entry guards configurable via a new
4494       NumEntryGuards consensus parameter, and the number of directory
4495       guards configurable via a new NumDirectoryGuards consensus
4496       parameter. Implements ticket 12688.
4498   o Major bugfixes:
4499     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
4500       implementation that caused incorrect results on 32-bit
4501       implementations when certain malformed inputs were used along with
4502       a small class of private ntor keys. This bug does not currently
4503       appear to allow an attacker to learn private keys or impersonate a
4504       Tor server, but it could provide a means to distinguish 32-bit Tor
4505       implementations from 64-bit Tor implementations. Fixes bug 12694;
4506       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
4507       Adam Langley.
4509   o Minor bugfixes:
4510     - Warn and drop the circuit if we receive an inbound 'relay early'
4511       cell. Those used to be normal to receive on hidden service circuits
4512       due to bug 1038, but the buggy Tor versions are long gone from
4513       the network so we can afford to resume watching for them. Resolves
4514       the rest of bug 1038; bugfix on 0.2.1.19.
4515     - Correct a confusing error message when trying to extend a circuit
4516       via the control protocol but we don't know a descriptor or
4517       microdescriptor for one of the specified relays. Fixes bug 12718;
4518       bugfix on 0.2.3.1-alpha.
4519     - Avoid an illegal read from stack when initializing the TLS
4520       module using a version of OpenSSL without all of the ciphers
4521       used by the v2 link handshake. Fixes bug 12227; bugfix on
4522       0.2.4.8-alpha.  Found by "starlight".
4524   o Minor features:
4525     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
4526       Country database.
4529 Changes in version 0.2.4.22 - 2014-05-16
4530   Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5
4531   alpha release series. These include blocking all authority signing
4532   keys that may have been affected by the OpenSSL "heartbleed" bug,
4533   choosing a far more secure set of TLS ciphersuites by default, closing
4534   a couple of memory leaks that could be used to run a target relay out
4535   of RAM, and several others.
4537   o Major features (security, backport from 0.2.5.4-alpha):
4538     - Block authority signing keys that were used on authorities
4539       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
4540       don't have any evidence that these keys _were_ compromised; we're
4541       doing this to be prudent.) Resolves ticket 11464.
4543   o Major bugfixes (security, OOM):
4544     - Fix a memory leak that could occur if a microdescriptor parse
4545       fails during the tokenizing step. This bug could enable a memory
4546       exhaustion attack by directory servers. Fixes bug 11649; bugfix
4547       on 0.2.2.6-alpha.
4549   o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha):
4550     - The relay ciphersuite list is now generated automatically based on
4551       uniform criteria, and includes all OpenSSL ciphersuites with
4552       acceptable strength and forward secrecy. Previously, we had left
4553       some perfectly fine ciphersuites unsupported due to omission or
4554       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
4555       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
4556     - Relays now trust themselves to have a better view than clients of
4557       which TLS ciphersuites are better than others. (Thanks to bug
4558       11513, the relay list is now well-considered, whereas the client
4559       list has been chosen mainly for anti-fingerprinting purposes.)
4560       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
4561       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
4562       AES128. Resolves ticket 11528.
4563     - Clients now try to advertise the same list of ciphersuites as
4564       Firefox 28. This change enables selection of (fast) GCM
4565       ciphersuites, disables some strange old ciphers, and stops
4566       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
4567       Resolves ticket 11438.
4569   o Minor bugfixes (configuration, security):
4570     - When running a hidden service, do not allow TunneledDirConns 0:
4571       trying to set that option together with a hidden service would
4572       otherwise prevent the hidden service from running, and also make
4573       it publish its descriptors directly over HTTP. Fixes bug 10849;
4574       bugfix on 0.2.1.1-alpha.
4576   o Minor bugfixes (controller, backport from 0.2.5.4-alpha):
4577     - Avoid sending a garbage value to the controller when a circuit is
4578       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
4580   o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha):
4581     - Stop leaking memory when we successfully resolve a PTR record.
4582       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
4584   o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha):
4585     - Avoid 60-second delays in the bootstrapping process when Tor is
4586       launching for a second time while using bridges. Fixes bug 9229;
4587       bugfix on 0.2.0.3-alpha.
4589   o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha):
4590     - Give the correct URL in the warning message when trying to run a
4591       relay on an ancient version of Windows. Fixes bug 9393.
4593   o Minor bugfixes (compilation):
4594     - Fix a compilation error when compiling with --disable-curve25519.
4595       Fixes bug 9700; bugfix on 0.2.4.17-rc.
4597   o Minor bugfixes:
4598     - Downgrade the warning severity for the the "md was still
4599       referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code
4600       for trying to diagnose this bug, and the current warning in
4601       earlier versions of tor achieves nothing useful. Addresses warning
4602       from bug 7164.
4604   o Minor features (log verbosity, backport from 0.2.5.4-alpha):
4605     - When we run out of usable circuit IDs on a channel, log only one
4606       warning for the whole channel, and describe how many circuits
4607       there were on the channel. Fixes part of ticket 11553.
4609   o Minor features (security, backport from 0.2.5.4-alpha):
4610     - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but
4611       leave the default at 8GBytes), to better support Raspberry Pi
4612       users. Fixes bug 9686; bugfix on 0.2.4.14-alpha.
4614   o Documentation (backport from 0.2.5.4-alpha):
4615     - Correctly document that we search for a system torrc file before
4616       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
4617       0.2.3.18-rc.
4620 Changes in version 0.2.4.21 - 2014-02-28
4621   Tor 0.2.4.21 further improves security against potential adversaries who
4622   find breaking 1024-bit crypto doable, and backports several stability
4623   and robustness patches from the 0.2.5 branch.
4625   o Major features (client security):
4626     - When we choose a path for a 3-hop circuit, make sure it contains
4627       at least one relay that supports the NTor circuit extension
4628       handshake. Otherwise, there is a chance that we're building
4629       a circuit that's worth attacking by an adversary who finds
4630       breaking 1024-bit crypto doable, and that chance changes the game
4631       theory. Implements ticket 9777.
4633   o Major bugfixes:
4634     - Do not treat streams that fail with reason
4635       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
4636       since it could also indicate an ENETUNREACH connection error. Fixes
4637       part of bug 10777; bugfix on 0.2.4.8-alpha.
4639   o Code simplification and refactoring:
4640     - Remove data structures which were introduced to implement the
4641       CellStatistics option: they are now redundant with the new timestamp
4642       field in the regular packed_cell_t data structure, which we did
4643       in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870.
4645   o Minor features:
4646     - Always clear OpenSSL bignums before freeing them -- even bignums
4647       that don't contain secrets. Resolves ticket 10793. Patch by
4648       Florent Daigniere.
4649     - Build without warnings under clang 3.4. (We have some macros that
4650       define static functions only some of which will get used later in
4651       the module. Starting with clang 3.4, these give a warning unless the
4652       unused attribute is set on them.) Resolves ticket 10904.
4653     - Update geoip and geoip6 files to the February 7 2014 Maxmind
4654       GeoLite2 Country database.
4656   o Minor bugfixes:
4657     - Set the listen() backlog limit to the largest actually supported
4658       on the system, not to the value in a header file. Fixes bug 9716;
4659       bugfix on every released Tor.
4660     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
4661       exit node as a NOROUTE error, not an INTERNAL error, since they
4662       can apparently happen when trying to connect to the wrong sort
4663       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
4664     - Fix build warnings about missing "a2x" comment when building the
4665       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
4666       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
4667     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
4668       not entirely remove it from the connection lists. Fixes bug 9602;
4669       bugfix on 0.2.4.4-alpha.
4670     - Fix a segmentation fault in our benchmark code when running with
4671       Fedora's OpenSSL package, or any other OpenSSL that provides
4672       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
4673     - Turn "circuit handshake stats since last time" log messages into a
4674       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
4676   o Documentation fixes:
4677     - Document that all but one DirPort entry must have the NoAdvertise
4678       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
4681 Changes in version 0.2.4.20 - 2013-12-22
4682   Tor 0.2.4.20 fixes potentially poor random number generation for users
4683   who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their
4684   torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors,
4685   and 4) have no state file in their DataDirectory (as would happen on
4686   first start). Users who generated relay or hidden service identity
4687   keys in such a situation should discard them and generate new ones.
4689   This release also fixes a logic error that caused Tor clients to build
4690   many more preemptive circuits than they actually need.
4692   o Major bugfixes:
4693     - Do not allow OpenSSL engines to replace the PRNG, even when
4694       HardwareAccel is set. The only default builtin PRNG engine uses
4695       the Intel RDRAND instruction to replace the entire PRNG, and
4696       ignores all attempts to seed it with more entropy. That's
4697       cryptographically stupid: the right response to a new alleged
4698       entropy source is never to discard all previously used entropy
4699       sources. Fixes bug 10402; works around behavior introduced in
4700       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
4701       and "rl1987".
4702     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
4703       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
4704     - Avoid launching spurious extra circuits when a stream is pending.
4705       This fixes a bug where any circuit that _wasn't_ unusable for new
4706       streams would be treated as if it were, causing extra circuits to
4707       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
4709   o Minor bugfixes:
4710     - Avoid a crash bug when starting with a corrupted microdescriptor
4711       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
4712     - If we fail to dump a previously cached microdescriptor to disk, avoid
4713       freeing duplicate data later on. Fixes bug 10423; bugfix on
4714       0.2.4.13-alpha. Spotted by "bobnomnom".
4717 Changes in version 0.2.4.19 - 2013-12-11
4718   The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz
4719   (1986-2013). Aaron worked on diverse projects including helping to guide
4720   Creative Commons, playing a key role in stopping SOPA/PIPA, bringing
4721   transparency to the U.S government's PACER documents, and contributing
4722   design and development for Tor and Tor2Web. Aaron was one of the latest
4723   martyrs in our collective fight for civil liberties and human rights,
4724   and his death is all the more painful because he was one of us.
4726   Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features
4727   a new circuit handshake and link encryption that use ECC to provide
4728   better security and efficiency; makes relays better manage circuit
4729   creation requests; uses "directory guards" to reduce client enumeration
4730   risks; makes bridges collect and report statistics about the pluggable
4731   transports they support; cleans up and improves our geoip database;
4732   gets much closer to IPv6 support for clients, bridges, and relays; makes
4733   directory authorities use measured bandwidths rather than advertised
4734   ones when computing flags and thresholds; disables client-side DNS
4735   caching to reduce tracking risks; and fixes a big bug in bridge
4736   reachability testing. This release introduces two new design
4737   abstractions in the code: a new "channel" abstraction between circuits
4738   and or_connections to allow for implementing alternate relay-to-relay
4739   transports, and a new "circuitmux" abstraction storing the queue of
4740   circuits for a channel. The release also includes many stability,
4741   security, and privacy fixes.
4743   o Major features (new circuit handshake):
4744     - Tor now supports a new circuit extension handshake designed by Ian
4745       Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original
4746       circuit extension handshake, later called "TAP", was a bit slow
4747       (especially on the relay side), had a fragile security proof, and
4748       used weaker keys than we'd now prefer. The new circuit handshake
4749       uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman
4750       function, making it significantly more secure than the older
4751       handshake, and significantly faster. Tor can use one of two built-in
4752       pure-C curve25519-donna implementations by Adam Langley, or it
4753       can link against the "nacl" library for a tuned version if present.
4755       The built-in version is very fast for 64-bit systems when building
4756       with GCC. The built-in 32-bit version is still faster than the
4757       old TAP protocol, but using libnacl is better on most such hosts.
4759       Implements proposal 216; closes ticket 7202.
4761   o Major features (better link encryption):
4762     - Relays can now enable the ECDHE TLS ciphersuites when available
4763       and appropriate. These ciphersuites let us negotiate forward-secure
4764       TLS secret keys more safely and more efficiently than with our
4765       previous use of Diffie-Hellman modulo a 1024-bit prime. By default,
4766       public relays prefer the (faster) P224 group, and bridges prefer
4767       the (more common) P256 group; you can override this with the
4768       TLSECGroup option.
4770       This feature requires clients running 0.2.3.17-beta or later,
4771       and requires both sides to be running OpenSSL 1.0.0 or later
4772       with ECC support. OpenSSL 1.0.1, with the compile-time option
4773       "enable-ec_nistp_64_gcc_128", is highly recommended.
4775       Implements the relay side of proposal 198; closes ticket 7200.
4777     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
4778       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
4779       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
4780       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
4781       them to solve bug 6033.)
4783   o Major features (relay performance):
4784     - Instead of limiting the number of queued onionskins (aka circuit
4785       create requests) to a fixed, hard-to-configure number, we limit
4786       the size of the queue based on how many we expect to be able to
4787       process in a given amount of time. We estimate the time it will
4788       take to process an onionskin based on average processing time
4789       of previous onionskins. Closes ticket 7291. You'll never have to
4790       configure MaxOnionsPending again.
4791     - Relays process the new "NTor" circuit-level handshake requests
4792       with higher priority than the old "TAP" circuit-level handshake
4793       requests. We still process some TAP requests to not totally starve
4794       0.2.3 clients when NTor becomes popular. A new consensus parameter
4795       "NumNTorsPerTAP" lets us tune the balance later if we need to.
4796       Implements ticket 9574.
4798   o Major features (client bootstrapping resilience):
4799     - Add a new "FallbackDir" torrc option to use when we can't use
4800       a directory mirror from the consensus (either because we lack a
4801       consensus, or because they're all down). Currently, all authorities
4802       are fallbacks by default, and there are no other default fallbacks,
4803       but that will change. This option will allow us to give clients a
4804       longer list of servers to try to get a consensus from when first
4805       connecting to the Tor network, and thereby reduce load on the
4806       directory authorities. Implements proposal 206, "Preconfigured
4807       directory sources for bootstrapping". We also removed the old
4808       "FallbackNetworkstatus" option, since we never got it working well
4809       enough to use it. Closes bug 572.
4810     - If we have no circuits open, use a relaxed timeout (the
4811       95th-percentile cutoff) until a circuit succeeds. This heuristic
4812       should allow Tor to succeed at building circuits even when the
4813       network connection drastically changes. Should help with bug 3443.
4815   o Major features (use of guards):
4816     - Support directory guards (proposal 207): when possible, clients now
4817       use their entry guards for non-anonymous directory requests. This
4818       can help prevent client enumeration. Note that this behavior only
4819       works when we have a usable consensus directory, and when options
4820       about what to download are more or less standard. In the future we
4821       should re-bootstrap from our guards, rather than re-bootstrapping
4822       from the preconfigured list of directory sources that ships with
4823       Tor. Resolves ticket 6526.
4824     - Raise the default time that a client keeps an entry guard from
4825       "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES
4826       2012 paper. (We would make it even longer, but we need better client
4827       load balancing first.) Also, make the guard lifetime controllable
4828       via a new GuardLifetime torrc option and a GuardLifetime consensus
4829       parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha.
4831   o Major features (bridges with pluggable transports):
4832     - Bridges now report the pluggable transports they support to the
4833       bridge authority, so it can pass the supported transports on to
4834       bridgedb and/or eventually do reachability testing. Implements
4835       ticket 3589.
4836     - Automatically forward the TCP ports of pluggable transport
4837       proxies using tor-fw-helper if PortForwarding is enabled. Implements
4838       ticket 4567.
4840   o Major features (geoip database):
4841     - Maxmind began labelling Tor relays as being in country "A1",
4842       which breaks by-country node selection inside Tor. Now we use a
4843       script to replace "A1" ("Anonymous Proxy") entries in our geoip
4844       file with real country codes. This script fixes about 90% of "A1"
4845       entries automatically and uses manual country code assignments to
4846       fix the remaining 10%. See src/config/README.geoip for details.
4847       Fixes bug 6266.
4848     - Add GeoIP database for IPv6 addresses. The new config option
4849       is GeoIPv6File.
4850     - Update to the October 2 2013 Maxmind GeoLite Country database.
4852   o Major features (IPv6):
4853     - Clients who set "ClientUseIPv6 1" may connect to entry nodes over
4854       IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely
4855       to happen. Implements ticket 5535.
4856     - All kind of relays, not just bridges, can now advertise an IPv6
4857       OR port. Implements ticket 6362.
4858     - Relays can now exit to IPv6 addresses: make sure that you have IPv6
4859       connectivity, then set the IPv6Exit flag to 1. Also make sure your
4860       exit policy reads as you would like: the address * applies to all
4861       address families, whereas *4 is IPv4 address only, and *6 is IPv6
4862       addresses only. On the client side, you'll need to wait for enough
4863       exits to support IPv6, apply the "IPv6Traffic" flag to a SocksPort,
4864       and use Socks5. Closes ticket 5547, implements proposal 117 as
4865       revised in proposal 208.
4866     - Bridge authorities now accept IPv6 bridge addresses and include
4867       them in network status documents. Implements ticket 5534.
4868     - Directory authorities vote on IPv6 OR ports. Implements ticket 6363.
4870   o Major features (directory authorities):
4871     - Directory authorities now prefer using measured bandwidths to
4872       advertised ones when computing flags and thresholds. Resolves
4873       ticket 8273.
4874     - Directory authorities that vote measured bandwidths about more
4875       than a threshold number of relays now treat relays with
4876       unmeasured bandwidths as having bandwidth 0 when computing their
4877       flags. Resolves ticket 8435.
4878     - Directory authorities now support a new consensus method (17)
4879       where they cap the published bandwidth of relays for which
4880       insufficient bandwidth measurements exist. Fixes part of bug 2286.
4881     - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer
4882       serve any v2 directory information. Now we can test disabling the
4883       old deprecated v2 directory format, and see whether doing so has
4884       any effect on network load. Begins to fix bug 6783.
4886   o Major features (build and portability):
4887     - Switch to a nonrecursive Makefile structure. Now instead of each
4888       Makefile.am invoking other Makefile.am's, there is a master
4889       Makefile.am that includes the others. This change makes our build
4890       process slightly more maintainable, and improves parallelism for
4891       building with make -j. Original patch by Stewart Smith; various
4892       fixes by Jim Meyering.
4893     - Where available, we now use automake's "silent" make rules by
4894       default, so that warnings are easier to spot. You can get the old
4895       behavior with "make V=1". Patch by Stewart Smith for ticket 6522.
4896     - Resume building correctly with MSVC and Makefile.nmake. This patch
4897       resolves numerous bugs and fixes reported by ultramage, including
4898       7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669.
4900   o Security features:
4901     - Switch to a completely time-invariant approach for picking nodes
4902       weighted by bandwidth. Our old approach would run through the
4903       part of the loop after it had made its choice slightly slower
4904       than it ran through the part of the loop before it had made its
4905       choice. Addresses ticket 6538.
4906     - Disable the use of Guard nodes when in Tor2WebMode. Guard usage
4907       by tor2web clients allows hidden services to identify tor2web
4908       clients through their repeated selection of the same rendezvous
4909       and introduction point circuit endpoints (their guards). Resolves
4910       ticket 6888.
4912   o Major bugfixes (relay denial of service):
4913     - When we have too much memory queued in circuits (according to a new
4914       MaxMemInCellQueues option), close the circuits that have the oldest
4915       queued cells, on the theory that those are most responsible for
4916       us running low on memory. This prevents us from running out of
4917       memory as a relay if circuits fill up faster than they can be
4918       drained. Fixes bugs 9063 and 9093; bugfix on the 54th commit of
4919       Tor. This bug is a further fix beyond bug 6252, whose fix was
4920       merged into 0.2.3.21-rc.
4921     - Reject bogus create and relay cells with 0 circuit ID or 0 stream
4922       ID: these could be used to create unexpected streams and circuits
4923       which would count as "present" to some parts of Tor but "absent"
4924       to others, leading to zombie circuits and streams or to a bandwidth
4925       denial-of-service. Fixes bug 7889; bugfix on every released version
4926       of Tor. Reported by "oftc_must_be_destroyed".
4927     - Avoid a bug where our response to TLS renegotiation under certain
4928       network conditions could lead to a busy-loop, with 100% CPU
4929       consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha.
4931   o Major bugfixes (asserts, crashes, leaks):
4932     - Prevent the get_freelists() function from running off the end of
4933       the list of freelists if it somehow gets an unrecognized
4934       allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by
4935       eugenis.
4936     - Avoid a memory leak where we would leak a consensus body when we
4937       find that a consensus which we couldn't previously verify due to
4938       missing certificates is now verifiable. Fixes bug 8719; bugfix
4939       on 0.2.0.10-alpha.
4940     - If we are unable to save a microdescriptor to the journal, do not
4941       drop it from memory and then reattempt downloading it. Fixes bug
4942       9645; bugfix on 0.2.2.6-alpha.
4943     - Fix an assertion failure that would occur when disabling the
4944       ORPort setting on a running Tor process while accounting was
4945       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
4946     - Avoid an assertion failure on OpenBSD (and perhaps other BSDs)
4947       when an exit connection with optimistic data succeeds immediately
4948       rather than returning EINPROGRESS. Fixes bug 9017; bugfix on
4949       0.2.3.1-alpha.
4950     - Fix a memory leak that would occur whenever a configuration
4951       option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha.
4953   o Major bugfixes (relay rate limiting):
4954     - When a TLS write is partially successful but incomplete, remember
4955       that the flushed part has been flushed, and notice that bytes were
4956       actually written. Reported and fixed pseudonymously. Fixes bug 7708;
4957       bugfix on Tor 0.1.0.5-rc.
4958     - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB
4959       to 1GB/1GB. The previous defaults were intended to be "basically
4960       infinite", but it turns out they're now limiting our 100mbit+
4961       relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the
4962       last time we raised it).
4963     - No longer stop reading or writing on cpuworker connections when
4964       our rate limiting buckets go empty. Now we should handle circuit
4965       handshake requests more promptly. Resolves bug 9731.
4967   o Major bugfixes (client-side privacy):
4968     - When we mark a circuit as unusable for new circuits, have it
4969       continue to be unusable for new circuits even if MaxCircuitDirtiness
4970       is increased too much at the wrong time, or the system clock jumps
4971       backwards. Fixes bug 6174; bugfix on 0.0.2pre26.
4972     - If ClientDNSRejectInternalAddresses ("do not believe DNS queries
4973       which have resolved to internal addresses") is set, apply that
4974       rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha.
4975     - When an exit relay rejects a stream with reason "exit policy", but
4976       we only know an exit policy summary (e.g. from the microdesc
4977       consensus) for it, do not mark the relay as useless for all exiting.
4978       Instead, mark just the circuit as unsuitable for that particular
4979       address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha.
4981   o Major bugfixes (stream isolation):
4982     - Allow applications to get proper stream isolation with
4983       IsolateSOCKSAuth. Many SOCKS5 clients that want to offer
4984       username/password authentication also offer "no authentication". Tor
4985       had previously preferred "no authentication", so the applications
4986       never actually sent Tor their auth details. Now Tor selects
4987       username/password authentication if it's offered. You can disable
4988       this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes
4989       bug 8117; bugfix on 0.2.3.3-alpha.
4990     - Follow the socks5 protocol when offering username/password
4991       authentication. The fix for bug 8117 exposed this bug, and it
4992       turns out real-world applications like Pidgin do care. Bugfix on
4993       0.2.3.2-alpha; fixes bug 8879.
4995   o Major bugfixes (client circuit building):
4996     - Alter circuit build timeout measurement to start at the point
4997       where we begin the CREATE/CREATE_FAST step (as opposed to circuit
4998       initialization). This should make our timeout measurements more
4999       uniform. Previously, we were sometimes including ORconn setup time
5000       in our circuit build time measurements. Should resolve bug 3443.
5001     - If the circuit build timeout logic is disabled (via the consensus,
5002       or because we are an authority), then don't build testing circuits.
5003       Fixes bug 9657; bugfix on 0.2.2.14-alpha.
5005   o Major bugfixes (client-side DNS):
5006     - Turn off the client-side DNS cache by default. Updating and using
5007       the DNS cache is now configurable on a per-client-port
5008       level. SOCKSPort, DNSPort, etc lines may now contain
5009       {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't
5010       cache these types of DNS answers when we receive them from an
5011       exit node in response to an application request on this port, and
5012       {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have
5013       cached DNS answers of these types, we shouldn't use them. It's
5014       potentially risky to use cached DNS answers at the client, since
5015       doing so can indicate to one exit what answers we've gotten
5016       for DNS lookups in the past. With IPv6, this becomes especially
5017       problematic. Using cached DNS answers for requests on the same
5018       circuit would present less linkability risk, since all traffic
5019       on a circuit is already linkable, but it would also provide
5020       little performance benefit: the exit node caches DNS replies
5021       too. Implements a simplified version of Proposal 205. Implements
5022       ticket 7570.
5024   o Major bugfixes (hidden service privacy):
5025     - Limit hidden service descriptors to at most ten introduction
5026       points, to slow one kind of guard enumeration. Fixes bug 9002;
5027       bugfix on 0.1.1.11-alpha.
5029   o Major bugfixes (directory fetching):
5030     - If the time to download the next old-style networkstatus is in
5031       the future, do not decline to consider whether to download the
5032       next microdescriptor networkstatus. Fixes bug 9564; bugfix on
5033       0.2.3.14-alpha.
5034     - We used to always request authority certificates by identity digest,
5035       meaning we'd get the newest one even when we wanted one with a
5036       different signing key. Then we would complain about being given
5037       a certificate we already had, and never get the one we really
5038       wanted. Now we use the "fp-sk/" resource as well as the "fp/"
5039       resource to request the one we want. Fixes bug 5595; bugfix on
5040       0.2.0.8-alpha.
5042   o Major bugfixes (bridge reachability):
5043     - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes;
5044       previously they did not, which prevented them from receiving
5045       successful connections from relays for self-test or bandwidth
5046       testing. Also, when a relay is extending a circuit to a bridge,
5047       it needs to send a NETINFO cell, even when the bridge hasn't sent
5048       an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
5050   o Major bugfixes (control interface):
5051     - When receiving a new configuration file via the control port's
5052       LOADCONF command, do not treat the defaults file as absent.
5053       Fixes bug 9122; bugfix on 0.2.3.9-alpha.
5055   o Major bugfixes (directory authorities):
5056     - Stop marking every relay as having been down for one hour every
5057       time we restart a directory authority. These artificial downtimes
5058       were messing with our Stable and Guard flag calculations. Fixes
5059       bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
5060     - When computing directory thresholds, ignore any rejected-as-sybil
5061       nodes during the computation so that they can't influence Fast,
5062       Guard, etc. (We should have done this for proposal 109.) Fixes
5063       bug 8146.
5064     - When marking a node as a likely sybil, reset its uptime metrics
5065       to zero, so that it cannot time towards getting marked as Guard,
5066       Stable, or HSDir. (We should have done this for proposal 109.) Fixes
5067       bug 8147.
5068     - Fix a bug in the voting algorithm that could yield incorrect results
5069       when a non-naming authority declared too many flags. Fixes bug 9200;
5070       bugfix on 0.2.0.3-alpha.
5072   o Internal abstraction features:
5073     - Introduce new channel_t abstraction between circuits and
5074       or_connection_t to allow for implementing alternate OR-to-OR
5075       transports. A channel_t is an abstract object which can either be a
5076       cell-bearing channel, which is responsible for authenticating and
5077       handshaking with the remote OR and transmitting cells to and from
5078       it, or a listening channel, which spawns new cell-bearing channels
5079       at the request of remote ORs. Implements part of ticket 6465.
5080     - Make a channel_tls_t subclass of channel_t, adapting it to the
5081       existing or_connection_t code. The V2/V3 protocol handshaking
5082       code which formerly resided in command.c has been moved below the
5083       channel_t abstraction layer and may be found in channeltls.c now.
5084       Implements the rest of ticket 6465.
5085     - Introduce new circuitmux_t storing the queue of circuits for
5086       a channel; this encapsulates and abstracts the queue logic and
5087       circuit selection policy, and allows the latter to be overridden
5088       easily by switching out a policy object. The existing EWMA behavior
5089       is now implemented as a circuitmux_policy_t. Resolves ticket 6816.
5091   o New build requirements:
5092     - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is
5093       strongly recommended.
5094     - Tor maintainers now require Automake version 1.9 or later to build
5095       Tor from the Git repository. (Automake is not required when building
5096       from a source distribution.)
5098   o Minor features (protocol):
5099     - No longer include the "opt" prefix when generating routerinfos
5100       or v2 directories: it has been needless since Tor 0.1.2. Closes
5101       ticket 5124.
5102     - Reject EXTEND cells sent to nonexistent streams. According to the
5103       spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but
5104       we were only checking for stream IDs that were currently in use.
5105       Found while hunting for more instances of bug 6271. Bugfix on
5106       0.0.2pre8, which introduced incremental circuit construction.
5107     - Tor relays and clients now support a better CREATE/EXTEND cell
5108       format, allowing the sender to specify multiple address, identity,
5109       and handshake types. Implements Robert Ransom's proposal 200;
5110       closes ticket 7199.
5111     - Reject as invalid most directory objects containing a NUL.
5112       Belt-and-suspender fix for bug 8037.
5114   o Minor features (security):
5115     - Clear keys and key-derived material left on the stack in
5116       rendservice.c and rendclient.c. Check return value of
5117       crypto_pk_write_private_key_to_string() in rend_service_load_keys().
5118       These fixes should make us more forward-secure against cold-boot
5119       attacks and the like. Fixes bug 2385.
5120     - Use our own weak RNG when we need a weak RNG. Windows's rand() and
5121       Irix's random() only return 15 bits; Solaris's random() returns more
5122       bits but its RAND_MAX says it only returns 15, and so on. Motivated
5123       by the fix for bug 7801; bugfix on 0.2.2.20-alpha.
5125   o Minor features (control protocol):
5126     - Add a "GETINFO signal/names" control port command. Implements
5127       ticket 3842.
5128     - Provide default values for all options via "GETINFO config/defaults".
5129       Implements ticket 4971.
5130     - Allow an optional $ before the node identity digest in the
5131       controller command GETINFO ns/id/<identity>, for consistency with
5132       md/id/<identity> and desc/id/<identity>. Resolves ticket 7059.
5133     - Add CACHED keyword to ADDRMAP events in the control protocol
5134       to indicate whether a DNS result will be cached or not. Resolves
5135       ticket 8596.
5136     - Generate bootstrapping status update events correctly when fetching
5137       microdescriptors. Fixes bug 9927.
5139   o Minor features (path selection):
5140     - When deciding whether we have enough descriptors to build circuits,
5141       instead of looking at raw relay counts, look at which fraction
5142       of (bandwidth-weighted) paths we're able to build. This approach
5143       keeps clients from building circuits if their paths are likely to
5144       stand out statistically. The default fraction of paths needed is
5145       taken from the consensus directory; you can override it with the
5146       new PathsNeededToBuildCircuits option. Fixes ticket 5956.
5147     - When any country code is listed in ExcludeNodes or ExcludeExitNodes,
5148       and we have GeoIP information, also exclude all nodes with unknown
5149       countries "??" and "A1". This behavior is controlled by the
5150       new GeoIPExcludeUnknown option: you can make such nodes always
5151       excluded with "GeoIPExcludeUnknown 1", and disable the feature
5152       with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto"
5153       gets you the default behavior. Implements feature 7706.
5155   o Minor features (hidden services):
5156     - Improve circuit build timeout handling for hidden services.
5157       In particular: adjust build timeouts more accurately depending
5158       upon the number of hop-RTTs that a particular circuit type
5159       undergoes. Additionally, launch intro circuits in parallel
5160       if they timeout, and take the first one to reply as valid.
5161     - The Tor client now ignores sub-domain components of a .onion
5162       address. This change makes HTTP "virtual" hosting
5163       possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and
5164       http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites
5165       hosted on the same hidden service. Implements proposal 204.
5166     - Enable Tor to read configuration, state, and key information from
5167       a FIFO. Previously Tor would only read from files with a positive
5168       stat.st_size. Code from meejah; fixes bug 6044.
5170   o Minor features (clients):
5171     - Teach bridge-using clients to avoid 0.2.2.x bridges when making
5172       microdescriptor-related dir requests, and only fall back to normal
5173       descriptors if none of their bridges can handle microdescriptors
5174       (as opposed to the fix in ticket 4013, which caused them to fall
5175       back to normal descriptors if *any* of their bridges preferred
5176       them). Resolves ticket 4994.
5177     - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary
5178       TCP ports to forward. In the past it only accepted two ports:
5179       the ORPort and the DirPort.
5181   o Minor features (protecting client timestamps):
5182     - Clients no longer send timestamps in their NETINFO cells. These were
5183       not used for anything, and they provided one small way for clients
5184       to be distinguished from each other as they moved from network to
5185       network or behind NAT. Implements part of proposal 222.
5186     - Clients now round timestamps in INTRODUCE cells down to the nearest
5187       10 minutes. If a new Support022HiddenServices option is set to 0, or
5188       if it's set to "auto" and the feature is disabled in the consensus,
5189       the timestamp is sent as 0 instead. Implements part of proposal 222.
5190     - Stop sending timestamps in AUTHENTICATE cells. This is not such
5191       a big deal from a security point of view, but it achieves no actual
5192       good purpose, and isn't needed. Implements part of proposal 222.
5193     - Reduce down accuracy of timestamps in hidden service descriptors.
5194       Implements part of proposal 222.
5196   o Minor features (bridges):
5197     - Make bridge relays check once a minute for whether their IP
5198       address has changed, rather than only every 15 minutes. Resolves
5199       bugs 1913 and 1992.
5200     - Bridge statistics now count bridge clients connecting over IPv6:
5201       bridge statistics files now list "bridge-ip-versions" and
5202       extra-info documents list "geoip6-db-digest". The control protocol
5203       "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial
5204       implementation by "shkoo", addressing ticket 5055.
5205     - Add a new torrc option "ServerTransportListenAddr" to let bridge
5206       operators select the address where their pluggable transports will
5207       listen for connections. Resolves ticket 7013.
5208     - Randomize the lifetime of our SSL link certificate, so censors can't
5209       use the static value for filtering Tor flows. Resolves ticket 8443;
5210       related to ticket 4014 which was included in 0.2.2.33.
5212   o Minor features (relays):
5213     - Option OutboundBindAddress can be specified multiple times and
5214       accepts IPv6 addresses. Resolves ticket 6876.
5216   o Minor features (IPv6, client side):
5217     - AutomapHostsOnResolve now supports IPv6 addresses. By default, we
5218       prefer to hand out virtual IPv6 addresses, since there are more of
5219       them and we can't run out. To override this behavior and make IPv4
5220       addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort
5221       or DNSPort you're using for resolving. Implements ticket 7571.
5222     - AutomapHostsOnResolve responses are now randomized, to avoid
5223       annoying situations where Tor is restarted and applications
5224       connect to the wrong addresses.
5225     - Never try more than 1000 times to pick a new virtual address when
5226       AutomapHostsOnResolve is set. That's good enough so long as we
5227       aren't close to handing out our entire virtual address space;
5228       if you're getting there, it's best to switch to IPv6 virtual
5229       addresses anyway.
5231   o Minor features (IPv6, relay/authority side):
5232     - New config option "AuthDirHasIPv6Connectivity 1" that directory
5233       authorities should set if they have IPv6 connectivity and want to
5234       do reachability tests for IPv6 relays. Implements feature 5974.
5235     - A relay with an IPv6 OR port now sends that address in NETINFO
5236       cells (in addition to its other address). Implements ticket 6364.
5238   o Minor features (directory authorities):
5239     - Directory authorities no long accept descriptors for any version of
5240       Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha.
5241       These versions are insecure, unsupported, or both. Implements
5242       ticket 6789.
5243     - When directory authorities are computing thresholds for flags,
5244       never let the threshold for the Fast flag fall below 4096
5245       bytes. Also, do not consider nodes with extremely low bandwidths
5246       when deciding thresholds for various directory flags. This change
5247       should raise our threshold for Fast relays, possibly in turn
5248       improving overall network performance; see ticket 1854. Resolves
5249       ticket 8145.
5250     - Directory authorities now include inside each vote a statement of
5251       the performance thresholds they used when assigning flags.
5252       Implements ticket 8151.
5253     - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines
5254       in directory authority votes to describe whether they have enough
5255       measured bandwidths to ignore advertised (relay descriptor)
5256       bandwidth claims. Resolves ticket 8711.
5258   o Minor features (path bias detection):
5259     - Path Use Bias: Perform separate accounting for successful circuit
5260       use. Keep separate statistics on stream attempt rates versus stream
5261       success rates for each guard. Provide configurable thresholds to
5262       determine when to emit log messages or disable use of guards that
5263       fail too many stream attempts. Resolves ticket 7802.
5264     - Create three levels of Path Bias log messages, as opposed to just
5265       two. These are configurable via consensus as well as via the torrc
5266       options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate.
5267       The default values are 0.70, 0.50, and 0.30 respectively.
5268     - Separate the log message levels from the decision to drop guards,
5269       which also is available via torrc option PathBiasDropGuards.
5270       PathBiasDropGuards still defaults to 0 (off).
5271     - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards
5272       in combination with PathBiasExtremeRate.
5273     - Increase the default values for PathBiasScaleThreshold and
5274       PathBiasCircThreshold from (200, 20) to (300, 150).
5275     - Add in circuit usage accounting to path bias. If we try to use a
5276       built circuit but fail for any reason, it counts as path bias.
5277       Certain classes of circuits where the adversary gets to pick your
5278       destination node are exempt from this accounting. Usage accounting
5279       can be specifically disabled via consensus parameter or torrc.
5280     - Convert all internal path bias state to double-precision floating
5281       point, to avoid roundoff error and other issues.
5282     - Only record path bias information for circuits that have completed
5283       *two* hops. Assuming end-to-end tagging is the attack vector, this
5284       makes us more resilient to ambient circuit failure without any
5285       detection capability loss.
5287   o Minor features (build):
5288     - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from
5289       dhill. Resolves ticket 6982.
5290     - Compile on win64 using mingw64. Fixes bug 7260; patches from
5291       "yayooo".
5292     - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are
5293       separate error codes; or at least, don't break for that reason.
5294       Fixes bug 7935. Reported by "oftc_must_be_destroyed".
5296   o Build improvements (autotools):
5297     - Warn if building on a platform with an unsigned time_t: there
5298       are too many places where Tor currently assumes that time_t can
5299       hold negative values. We'd like to fix them all, but probably
5300       some will remain.
5301     - Do not report status verbosely from autogen.sh unless the -v flag
5302       is specified. Fixes issue 4664. Patch from Onizuka.
5303     - Detect and reject attempts to build Tor with threading support
5304       when OpenSSL has been compiled without threading support.
5305       Fixes bug 6673.
5306     - Try to detect if we are ever building on a platform where
5307       memset(...,0,...) does not set the value of a double to 0.0. Such
5308       platforms are permitted by the C standard, though in practice
5309       they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't
5310       currently support them, but it's better to detect them and fail
5311       than to perform erroneously.
5312     - We no longer warn so much when generating manpages from their
5313       asciidoc source.
5314     - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine
5315       the signs of types during autoconf. This is better than our old
5316       approach, which didn't work when cross-compiling.
5318   o Minor features (log messages, warnings):
5319     - Detect when we're running with a version of OpenSSL other than the
5320       one we compiled with. This conflict has occasionally given people
5321       hard-to-track-down errors.
5322     - Warn users who run hidden services on a Tor client with
5323       UseEntryGuards disabled that their hidden services will be
5324       vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
5325       attack which motivated Tor to support entry guards in the first
5326       place). Resolves ticket 6889.
5327     - Warn when we are binding low ports when hibernation is enabled;
5328       previously we had warned when we were _advertising_ low ports with
5329       hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
5330     - Issue a warning when running with the bufferevents backend enabled.
5331       It's still not stable, and people should know that they're likely
5332       to hit unexpected problems. Closes ticket 9147.
5334   o Minor features (log messages, notices):
5335     - Refactor resolve_my_address() so it returns the method by which we
5336       decided our public IP address (explicitly configured, resolved from
5337       explicit hostname, guessed from interfaces, learned by gethostname).
5338       Now we can provide more helpful log messages when a relay guesses
5339       its IP address incorrectly (e.g. due to unexpected lines in
5340       /etc/hosts). Resolves ticket 2267.
5341     - Track how many "TAP" and "NTor" circuit handshake requests we get,
5342       and how many we complete, and log it every hour to help relay
5343       operators follow trends in network load. Addresses ticket 9658.
5345   o Minor features (log messages, diagnostics):
5346     - If we fail to free a microdescriptor because of bug 7164, log
5347       the filename and line number from which we tried to free it.
5348     - We compute the overhead from passing onionskins back and forth to
5349       cpuworkers, and report it when dumping statistics in response to
5350       SIGUSR1. Supports ticket 7291.
5351     - Add another diagnostic to the heartbeat message: track and log
5352       overhead that TLS is adding to the data we write. If this is
5353       high, we are sending too little data to SSL_write at a time.
5354       Diagnostic for bug 7707.
5355     - Log packaged cell fullness as part of the heartbeat message.
5356       Diagnosis to try to determine the extent of bug 7743.
5357     - Add more detail to a log message about relaxed timeouts, to help
5358       track bug 7799.
5359     - When learning a fingerprint for a bridge, log its corresponding
5360       transport type. Implements ticket 7896.
5361     - Warn more aggressively when flushing microdescriptors to a
5362       microdescriptor cache fails, in an attempt to mitigate bug 8031,
5363       or at least make it more diagnosable.
5364     - Improve the log message when "Bug/attack: unexpected sendme cell
5365       from client" occurs, to help us track bug 8093.
5366     - Improve debugging output to help track down bug 8185 ("Bug:
5367       outgoing relay cell has n_chan==NULL. Dropping.")
5369   o Minor features (log messages, quieter bootstrapping):
5370     - Log fewer lines at level "notice" about our OpenSSL and Libevent
5371       versions and capabilities when everything is going right. Resolves
5372       part of ticket 6736.
5373     - Omit the first heartbeat log message, because it never has anything
5374       useful to say, and it clutters up the bootstrapping messages.
5375       Resolves ticket 6758.
5376     - Don't log about reloading the microdescriptor cache at startup. Our
5377       bootstrap warnings are supposed to tell the user when there's a
5378       problem, and our bootstrap notices say when there isn't. Resolves
5379       ticket 6759; bugfix on 0.2.2.6-alpha.
5380     - Don't log "I learned some more directory information" when we're
5381       reading cached directory information. Reserve it for when new
5382       directory information arrives in response to a fetch. Resolves
5383       ticket 6760.
5384     - Don't complain about bootstrapping problems while hibernating.
5385       These complaints reflect a general code problem, but not one
5386       with any problematic effects (no connections are actually
5387       opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha.
5389   o Minor features (testing):
5390     - In our testsuite, create temporary directories with a bit more
5391       entropy in their name to make name collisions less likely. Fixes
5392       bug 8638.
5393     - Add benchmarks for DH (1024-bit multiplicative group) and ECDH
5394       (P-256) Diffie-Hellman handshakes to src/or/bench.
5395     - Add benchmark functions to test onion handshake performance.
5397   o Renamed options:
5398     - The DirServer option is now DirAuthority, for consistency with
5399       current naming patterns. You can still use the old DirServer form.
5401   o Minor bugfixes (protocol):
5402     - Fix the handling of a TRUNCATE cell when it arrives while the
5403       circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1.
5404     - When a Tor client gets a "truncated" relay cell, the first byte of
5405       its payload specifies why the circuit was truncated. We were
5406       ignoring this 'reason' byte when tearing down the circuit, resulting
5407       in the controller not being told why the circuit closed. Now we
5408       pass the reason from the truncated cell to the controller. Bugfix
5409       on 0.1.2.3-alpha; fixes bug 7039.
5410     - Fix a misframing issue when reading the version numbers in a
5411       VERSIONS cell. Previously we would recognize [00 01 00 02] as
5412       'version 1, version 2, and version 0x100', when it should have
5413       only included versions 1 and 2. Fixes bug 8059; bugfix on
5414       0.2.0.10-alpha. Reported pseudonymously.
5415     - Make the format and order of STREAM events for DNS lookups
5416       consistent among the various ways to launch DNS lookups. Fixes
5417       bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy".
5419   o Minor bugfixes (syscalls and disk interaction):
5420     - Always check the return values of functions fcntl() and
5421       setsockopt(). We don't believe these are ever actually failing in
5422       practice, but better safe than sorry. Also, checking these return
5423       values should please analysis tools like Coverity. Patch from
5424       'flupzor'. Fixes bug 8206; bugfix on all versions of Tor.
5425     - Avoid double-closing the listener socket in our socketpair()
5426       replacement (used on Windows) in the case where the addresses on
5427       our opened sockets don't match what we expected. Fixes bug 9400;
5428       bugfix on 0.0.2pre7. Found by Coverity.
5429     - Correctly store microdescriptors and extrainfo descriptors that
5430       include an internal NUL byte. Fixes bug 8037; bugfix on
5431       0.2.0.1-alpha. Bug reported by "cypherpunks".
5432     - If for some reason we fail to write a microdescriptor while
5433       rebuilding the cache, do not let the annotations from that
5434       microdescriptor linger in the cache file, and do not let the
5435       microdescriptor stay recorded as present in its old location.
5436       Fixes bug 9047; bugfix on 0.2.2.6-alpha.
5437     - Use direct writes rather than stdio when building microdescriptor
5438       caches, in an attempt to mitigate bug 8031, or at least make it
5439       less common.
5441   o Minor fixes (config options):
5442     - Warn and fail if a server is configured not to advertise any
5443       ORPorts at all. (We need *something* to put in our descriptor,
5444       or we just won't work.)
5445     - Behave correctly when the user disables LearnCircuitBuildTimeout
5446       but doesn't tell us what they would like the timeout to be. Fixes
5447       bug 6304; bugfix on 0.2.2.14-alpha.
5448     - Rename the (internal-use-only) UsingTestingNetworkDefaults option
5449       to start with a triple-underscore so the controller won't touch it.
5450       Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha.
5451     - Rename the (testing-use-only) _UseFilteringSSLBufferevents option
5452       so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha.
5453     - When autodetecting the number of CPUs, use the number of available
5454       CPUs in preference to the number of configured CPUs. Inform the
5455       user if this reduces the number of available CPUs. Fixes bug 8002;
5456       bugfix on 0.2.3.1-alpha.
5457     - Command-line option "--version" implies "--quiet". Fixes bug 6997.
5458     - Make it an error when you set EntryNodes but disable UseGuardNodes,
5459       since it will (surprisingly to some users) ignore EntryNodes. Fixes
5460       bug 8180; bugfix on 0.2.3.11-alpha.
5461     - Avoid overflows when the user sets MaxCircuitDirtiness to a
5462       ridiculously high value, by imposing a (ridiculously high) 30-day
5463       maximum on MaxCircuitDirtiness.
5465   o Minor bugfixes (control protocol):
5466     - Stop sending a stray "(null)" in some cases for the server status
5467       "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix
5468       on 0.1.2.6-alpha.
5469     - The ADDRMAP command can no longer generate an ill-formed error
5470       code on a failed MAPADDRESS. It now says "internal" rather than
5471       an English sentence fragment with spaces in the middle. Bugfix on
5472       Tor 0.2.0.19-alpha.
5474   o Minor bugfixes (clients / edges):
5475     - When we receive a RELAY_END cell with the reason DONE, or with no
5476       reason, before receiving a RELAY_CONNECTED cell, report the SOCKS
5477       status as "connection refused". Previously we reported these cases
5478       as success but then immediately closed the connection. Fixes bug
5479       7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed".
5480     - If the guard we choose first doesn't answer, we would try the
5481       second guard, but once we connected to the second guard we would
5482       abandon it and retry the first one, slowing down bootstrapping.
5483       The fix is to treat all our initially chosen guards as acceptable
5484       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
5485     - When choosing which stream on a formerly stalled circuit to wake
5486       first, make better use of the platform's weak RNG. Previously,
5487       we had been using the % ("modulo") operator to try to generate a
5488       1/N chance of picking each stream, but this behaves badly with
5489       many platforms' choice of weak RNG. Fixes bug 7801; bugfix on
5490       0.2.2.20-alpha.
5492   o Minor bugfixes (path bias detection):
5493     - If the state file's path bias counts are invalid (presumably from a
5494       buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add
5495       additional checks and log messages to the scaling of Path Bias
5496       counts, in case there still are remaining issues with scaling.
5497       Should help resolve bug 8235.
5498     - Prevent rounding error in path bias counts when scaling
5499       them down, and use the correct scale factor default. Also demote
5500       some path bias related log messages down a level and make others
5501       less scary sounding. Fixes bug 6647. Bugfix on 0.2.3.17-beta.
5502     - Remove a source of rounding error during path bias count scaling;
5503       don't count cannibalized circuits as used for path bias until we
5504       actually try to use them; and fix a circuit_package_relay_cell()
5505       warning message about n_chan==NULL. Fixes bug 7802.
5506     - Paste the description for PathBias parameters from the man
5507       page into or.h, so the code documents them too. Fixes bug 7982;
5508       bugfix on 0.2.3.17-beta.
5510   o Minor bugfixes (relays):
5511     - Stop trying to resolve our hostname so often (e.g. every time we
5512       think about doing a directory fetch). Now we reuse the cached
5513       answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc)
5514       and 2410 (bugfix on 0.1.2.2-alpha).
5515     - When examining the list of network interfaces to find our address,
5516       do not consider non-running or disabled network interfaces. Fixes
5517       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
5519   o Minor bugfixes (blocking resistance):
5520     - Only disable TLS session ticket support when running as a TLS
5521       server. Now clients will blend better with regular Firefox
5522       connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc.
5524   o Minor bugfixes (IPv6):
5525     - Use square brackets around IPv6 addresses in numerous places
5526       that needed them, including log messages, HTTPS CONNECT proxy
5527       requests, TransportProxy statefile entries, and pluggable transport
5528       extra-info lines. Fixes bug 7011; patch by David Fifield.
5530   o Minor bugfixes (directory authorities):
5531     - Reject consensus votes with more than 64 known-flags. We aren't even
5532       close to that limit yet, and our code doesn't handle it correctly.
5533       Fixes bug 6833; bugfix on 0.2.0.1-alpha.
5534     - Correctly handle votes with more than 31 flags. Fixes bug 6853;
5535       bugfix on 0.2.0.3-alpha.
5537   o Minor bugfixes (memory leaks):
5538     - Avoid leaking memory if we fail to compute a consensus signature
5539       or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha.
5540     - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix
5541       on 0.2.1.1-alpha; fixes bug 7816.
5542     - Fix a memory leak during safe-cookie controller authentication.
5543       Bugfix on 0.2.3.13-alpha; fixes bug 7816.
5544     - Free some more still-in-use memory at exit, to make hunting for
5545       memory leaks easier. Resolves bug 7029.
5547   o Minor bugfixes (code correctness):
5548     - Increase the width of the field used to remember a connection's
5549       link protocol version to two bytes. Harmless for now, since the
5550       only currently recognized versions are one byte long. Reported
5551       pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha.
5552     - Fix a crash when debugging unit tests on Windows: deallocate a
5553       shared library with FreeLibrary, not CloseHandle. Fixes bug 7306;
5554       bugfix on 0.2.2.17-alpha. Reported by "ultramage".
5555     - When detecting the largest possible file descriptor (in order to
5556       close all file descriptors when launching a new program), actually
5557       use _SC_OPEN_MAX. The old code for doing this was very, very broken.
5558       Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this
5559       is CID 743383.
5560     - Avoid a crash if we fail to generate an extrainfo descriptor.
5561       Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity;
5562       this is CID 718634.
5563     - Avoid an off-by-one error when checking buffer boundaries when
5564       formatting the exit status of a pluggable transport helper.
5565       This is probably not an exploitable bug, but better safe than
5566       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
5567       Pedro Ribeiro.
5568     - Get rid of a couple of harmless clang warnings, where we compared
5569       enums to ints. These warnings are newly introduced in clang 3.2.
5571   o Minor bugfixes (code cleanliness):
5572     - Avoid use of reserved identifiers in our C code. The C standard
5573       doesn't like us declaring anything that starts with an
5574       underscore, so let's knock it off before we get in trouble. Fix
5575       for bug 1031; bugfix on the first Tor commit.
5576     - Fix round_to_power_of_2() so it doesn't invoke undefined behavior
5577       with large values. This situation was untriggered, but nevertheless
5578       incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha.
5579     - Fix an impossible buffer overrun in the AES unit tests. Fixes
5580       bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis.
5581     - Fix handling of rendezvous client authorization types over 8.
5582       Fixes bug 6861; bugfix on 0.2.1.5-alpha.
5583     - Remove a couple of extraneous semicolons that were upsetting the
5584       cparser library. Patch by Christian Grothoff. Fixes bug 7115;
5585       bugfix on 0.2.2.1-alpha.
5586     - When complaining about a client port on a public address, log
5587       which address we're complaining about. Fixes bug 4020; bugfix on
5588       0.2.3.3-alpha. Patch by Tom Fitzhenry.
5590   o Minor bugfixes (log messages, warnings):
5591     - If we encounter a write failure on a SOCKS connection before we
5592       finish our SOCKS handshake, don't warn that we closed the
5593       connection before we could send a SOCKS reply. Fixes bug 8427;
5594       bugfix on 0.1.0.1-rc.
5595     - Fix a directory authority warn caused when we have a large amount
5596       of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha.
5597     - Downgrade "Failed to hand off onionskin" messages to "debug"
5598       severity, since they're typically redundant with the "Your computer
5599       is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
5600     - Avoid spurious warnings when configuring multiple client ports of
5601       which only some are nonlocal. Previously, we had claimed that some
5602       were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on
5603       0.2.3.3-alpha.
5605   o Minor bugfixes (log messages, other):
5606     - Fix log messages and comments to avoid saying "GMT" when we mean
5607       "UTC". Fixes bug 6113.
5608     - When rejecting a configuration because we were unable to parse a
5609       quoted string, log an actual error message. Fixes bug 7950; bugfix
5610       on 0.2.0.16-alpha.
5611     - Correctly recognize that [::1] is a loopback address. Fixes
5612       bug 8377; bugfix on 0.2.1.3-alpha.
5613     - Don't log inappropriate heartbeat messages when hibernating: a
5614       hibernating node is _expected_ to drop out of the consensus,
5615       decide it isn't bootstrapped, and so forth. Fixes bug 7302;
5616       bugfix on 0.2.3.1-alpha.
5617     - Eliminate several instances where we use "Nickname=ID" to refer to
5618       nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use
5619       "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix
5620       on 0.2.3.21-rc.
5622   o Minor bugfixes (build):
5623     - Fix some bugs in tor-fw-helper-natpmp when trying to build and
5624       run it on Windows. More bugs likely remain. Patch from Gisle Vanem.
5625       Fixes bug 7280; bugfix on 0.2.3.1-alpha.
5627   o Documentation fixes:
5628     - Make the torify manpage no longer refer to tsocks; torify hasn't
5629       supported tsocks since 0.2.3.14-alpha.
5630     - Make the tor manpage no longer reference tsocks.
5631     - Fix the GeoIPExcludeUnknown documentation to refer to
5632       ExcludeExitNodes rather than the currently nonexistent
5633       ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk.
5634     - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on
5635       0.2.3.14-alpha.
5636     - Say "KBytes" rather than "KB" in the man page (for various values
5637       of K), to further reduce confusion about whether Tor counts in
5638       units of memory or fractions of units of memory. Resolves ticket 7054.
5639     - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
5640       names match. Fixes bug 7768.
5641     - Fix the documentation of HeartbeatPeriod to say that the heartbeat
5642       message is logged at notice, not at info.
5643     - Clarify the usage and risks of setting the ContactInfo torrc line
5644       for your relay or bridge. Resolves ticket 9854.
5645     - Add anchors to the manpage so we can link to the html version of
5646       the documentation for specific options. Resolves ticket 9866.
5647     - Replace remaining references to DirServer in man page and
5648       log entries. Resolves ticket 10124.
5650   o Removed features:
5651     - Stop exporting estimates of v2 and v3 directory traffic shares
5652       in extrainfo documents. They were unneeded and sometimes inaccurate.
5653       Also stop exporting any v2 directory request statistics. Resolves
5654       ticket 5823.
5655     - Drop support for detecting and warning about versions of Libevent
5656       before 1.3e. Nothing reasonable ships with them any longer; warning
5657       the user about them shouldn't be needed. Resolves ticket 6826.
5658     - Now that all versions before 0.2.2.x are disallowed, we no longer
5659       need to work around their missing features. Remove a bunch of
5660       compatibility code.
5662   o Removed files:
5663     - The tor-tsocks.conf is no longer distributed or installed. We
5664       recommend that tsocks users use torsocks instead. Resolves
5665       ticket 8290.
5666     - Remove some of the older contents of doc/ as obsolete; move others
5667       to torspec.git. Fixes bug 8965.
5669   o Code simplification:
5670     - Avoid using character buffers when constructing most directory
5671       objects: this approach was unwieldy and error-prone. Instead,
5672       build smartlists of strings, and concatenate them when done.
5673     - Rename "isin" functions to "contains", for grammar. Resolves
5674       ticket 5285.
5675     - Rename Tor's logging function log() to tor_log(), to avoid conflicts
5676       with the natural logarithm function from the system libm. Resolves
5677       ticket 7599.
5678     - Start using OpenBSD's implementation of queue.h, so that we don't
5679       need to hand-roll our own pointer and list structures whenever we
5680       need them. (We can't rely on a sys/queue.h, since some operating
5681       systems don't have them, and the ones that do have them don't all
5682       present the same extensions.)
5683     - Start using OpenBSD's implementation of queue.h (originally by
5684       Niels Provos).
5685     - Enhance our internal sscanf replacement so that we can eliminate
5686       the last remaining uses of the system sscanf. (Though those uses
5687       of sscanf were safe, sscanf itself is generally error prone, so
5688       we want to eliminate when we can.) Fixes ticket 4195 and Coverity
5689       CID 448.
5690     - Replace all calls to snprintf() outside of src/ext with
5691       tor_snprintf(). Also remove the #define to replace snprintf with
5692       _snprintf on Windows; they have different semantics, and all of
5693       our callers should be using tor_snprintf() anyway. Fixes bug 7304.
5695   o Refactoring:
5696     - Add a wrapper function for the common "log a message with a
5697       rate-limit" case.
5698     - Split the onion.c file into separate modules for the onion queue
5699       and the different handshakes it supports.
5700     - Move the client-side address-map/virtual-address/DNS-cache code
5701       out of connection_edge.c into a new addressmap.c module.
5702     - Move the entry node code from circuitbuild.c to its own file.
5703     - Move the circuit build timeout tracking code from circuitbuild.c
5704       to its own file.
5705     - Source files taken from other packages now reside in src/ext;
5706       previously they were scattered around the rest of Tor.
5707     - Move the generic "config" code into a new file, and have "config.c"
5708       hold only torrc- and state-related code. Resolves ticket 6823.
5709     - Move the core of our "choose a weighted element at random" logic
5710       into its own function, and give it unit tests. Now the logic is
5711       testable, and a little less fragile too.
5712     - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620.
5713     - Move last_reachable and testing_since from routerinfo_t to node_t.
5714       Implements ticket 5529.
5715     - Add replaycache_t structure, functions and unit tests, then refactor
5716       rend_service_introduce() to be more clear to read, improve, debug,
5717       and test. Resolves bug 6177.
5719   o Removed code:
5720     - Remove some now-needless code that tried to aggressively flush
5721       OR connections as data was added to them. Since 0.2.0.1-alpha, our
5722       cell queue logic has saved us from the failure mode that this code
5723       was supposed to prevent. Removing this code will limit the number
5724       of baroque control flow paths through Tor's network logic. Reported
5725       pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha.
5726     - Remove unused code for parsing v1 directories and "running routers"
5727       documents. Fixes bug 6887.
5728     - Remove the marshalling/unmarshalling code for sending requests to
5729       cpuworkers over a socket, and instead just send structs. The
5730       recipient will always be the same Tor binary as the sender, so
5731       any encoding is overkill.
5732     - Remove the testing_since field of node_t, which hasn't been used
5733       for anything since 0.2.0.9-alpha.
5734     - Finally remove support for malloc_good_size and malloc_usable_size.
5735       We had hoped that these functions would let us eke a little more
5736       memory out of our malloc implementation. Unfortunately, the only
5737       implementations that provided these functions are also ones that
5738       are already efficient about not overallocation: they never got us
5739       more than 7 or so bytes per allocation. Removing them saves us a
5740       little code complexity and a nontrivial amount of build complexity.
5743 Changes in version 0.2.3.25 - 2012-11-19
5744   The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi"
5745   Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher,
5746   Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer,
5747   programmer, and friend. Unstinting in his dedication to the cause of
5748   freedom, he inspired and helped many of us as we began our work on
5749   anonymity, and inspires us still. Please honor his memory by writing
5750   software to protect people's freedoms, and by helping others to do so.
5752   Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features
5753   significantly reduced directory overhead (via microdescriptors),
5754   enormous crypto performance improvements for fast relays on new
5755   enough hardware, a new v3 TLS handshake protocol that can better
5756   resist fingerprinting, support for protocol obfuscation plugins (aka
5757   pluggable transports), better scalability for hidden services, IPv6
5758   support for bridges, performance improvements like allowing clients
5759   to skip the first round-trip on the circuit ("optimistic data") and
5760   refilling token buckets more often, a new "stream isolation" design
5761   to isolate different applications on different circuits, and many
5762   stability, security, and privacy fixes.
5764   Major features (v3 directory protocol):
5765     - Clients now use microdescriptors instead of regular descriptors
5766       to build circuits. Microdescriptors are authority-generated
5767       summaries of regular descriptors' contents, designed to change very
5768       rarely (see proposal 158 for details). This feature is designed
5769       to save bandwidth, especially for clients on slow internet
5770       connections. Use "UseMicrodescriptors 0" to disable it.
5771     - Caches now download, cache, and serve microdescriptors, as well
5772       as multiple "flavors" of the consensus, including a flavor that
5773       describes microdescriptors.
5775   o Major features (build hardening):
5776     - Enable gcc and ld hardening by default. Resolves ticket 5210.
5778   o Major features (relay scaling):
5779     - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64
5780       instruction set, take advantage of OpenSSL's AESNI, bitsliced, or
5781       vectorized AES implementations as appropriate. These can be much,
5782       much faster than other AES implementations.
5783     - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode
5784       implementation. It makes AES_CTR about 7% faster than our old one
5785       (which was about 10% faster than the one OpenSSL used to provide).
5786       Resolves ticket 4526.
5787     - Use OpenSSL's EVP interface for AES encryption, so that all AES
5788       operations can use hardware acceleration (if present). Resolves
5789       ticket 4442.
5790     - Unconditionally use OpenSSL's AES implementation instead of our
5791       old built-in one. OpenSSL's AES has been better for a while, and
5792       relatively few servers should still be on any version of OpenSSL
5793       that doesn't have good optimized assembly AES.
5795   o Major features (blocking resistance):
5796     - Update TLS cipher list to match Firefox 8 and later. Resolves
5797       ticket 4744.
5798     - Remove support for clients falsely claiming to support standard
5799       ciphersuites that they can actually provide. As of modern OpenSSL
5800       versions, it's not necessary to fake any standard ciphersuite,
5801       and doing so prevents us from using better ciphersuites in the
5802       future, since servers can't know whether an advertised ciphersuite
5803       is really supported or not. Some hosts -- notably, ones with very
5804       old versions of OpenSSL or where OpenSSL has been built with ECC
5805       disabled -- will stand out because of this change; TBB users should
5806       not be affected. Implements the client side of proposal 198.
5807     - Implement a new handshake protocol (v3) for authenticating Tors to
5808       each other over TLS. It should be more resistant to fingerprinting
5809       than previous protocols, and should require less TLS hacking for
5810       future Tor implementations. Implements proposal 176.
5811     - Allow variable-length padding cells, to disguise the length of
5812       Tor's TLS records. Implements part of proposal 184.
5813     - While we're trying to bootstrap, record how many TLS connections
5814       fail in each state, and report which states saw the most failures
5815       in response to any bootstrap failures. This feature may speed up
5816       diagnosis of censorship events. Implements ticket 3116.
5818   o Major features (pluggable transports):
5819     - Clients and bridges can now be configured to use a separate
5820       "transport" proxy. This approach makes the censorship arms race
5821       easier by allowing bridges to use protocol obfuscation plugins.
5822       Implements proposal 180 (tickets 2841 and 3472).
5824   o Major features (DoS resistance):
5825     - Now that Tor 0.2.0.x is completely deprecated, enable the final
5826       part of "Proposal 110: Avoiding infinite length circuits" by
5827       refusing all circuit-extend requests that do not use a relay_early
5828       cell. This change helps Tor resist a class of denial-of-service
5829       attacks by limiting the maximum circuit length.
5830     - Tear down the circuit if we get an unexpected SENDME cell. Clients
5831       could use this trick to make their circuits receive cells faster
5832       than our flow control would have allowed, or to gum up the network,
5833       or possibly to do targeted memory denial-of-service attacks on
5834       entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
5835       from July 2002, before the release of Tor 0.0.0.
5837   o Major features (hidden services):
5838     - Adjust the number of introduction points that a hidden service
5839       will try to maintain based on how long its introduction points
5840       remain in use and how many introductions they handle. Fixes
5841       part of bug 3825.
5842     - Add a "tor2web mode" for clients that want to connect to hidden
5843       services non-anonymously (and possibly more quickly). As a safety
5844       measure to try to keep users from turning this on without knowing
5845       what they are doing, tor2web mode must be explicitly enabled at
5846       compile time, and a copy of Tor compiled to run in tor2web mode
5847       cannot be used as a normal Tor client. Implements feature 2553.
5849   o Major features (IPv6):
5850     - Clients can now connect to private bridges over IPv6. Bridges
5851       still need at least one IPv4 address in order to connect to
5852       other relays. Note that we don't yet handle the case where the
5853       user has two bridge lines for the same bridge (one IPv4, one
5854       IPv6). Implements parts of proposal 186.
5856   o Major features (directory authorities):
5857     - Use a more secure consensus parameter voting algorithm. Now at
5858       least three directory authorities or a majority of them must
5859       vote on a given parameter before it will be included in the
5860       consensus. Implements proposal 178.
5861     - Remove the artificially low cutoff of 20KB to guarantee the Fast
5862       flag. In the past few years the average relay speed has picked
5863       up, and while the "top 7/8 of the network get the Fast flag" and
5864       "all relays with 20KB or more of capacity get the Fast flag" rules
5865       used to have the same result, now the top 7/8 of the network has
5866       a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489.
5868   o Major features (performance):
5869     - Exit nodes now accept and queue data on not-yet-connected streams.
5870       Previously, the client wasn't allowed to send data until the
5871       stream was connected, which slowed down all connections. This
5872       change will enable clients to perform a "fast-start" on streams
5873       and send data without having to wait for a confirmation that the
5874       stream has opened. Patch from Ian Goldberg; implements the server
5875       side of Proposal 174.
5876     - When using an exit relay running 0.2.3.x, clients can now
5877       "optimistically" send data before the exit relay reports that
5878       the stream has opened. This saves a round trip when starting
5879       connections where the client speaks first (such as web browsing).
5880       This behavior is controlled by a consensus parameter (currently
5881       disabled). To turn it on or off manually, use the "OptimisticData"
5882       torrc option. Implements proposal 181; code by Ian Goldberg.
5883     - Add a new TokenBucketRefillInterval option to refill token buckets
5884       more frequently than once per second. This should improve network
5885       performance, alleviate queueing problems, and make traffic less
5886       bursty. Implements proposal 183; closes ticket 3630. Design by
5887       Florian Tschorsch and Björn Scheuermann; implementation by
5888       Florian Tschorsch.
5889     - Raise the threshold of server descriptors needed (75%) and exit
5890       server descriptors needed (50%) before we will declare ourselves
5891       bootstrapped. This will make clients start building circuits a
5892       little later, but makes the initially constructed circuits less
5893       skewed and less in conflict with further directory fetches. Fixes
5894       ticket 3196.
5896   o Major features (relays):
5897     - Relays now try regenerating and uploading their descriptor more
5898       frequently if they are not listed in the consensus, or if the
5899       version of their descriptor listed in the consensus is too
5900       old. This fix should prevent situations where a server declines
5901       to re-publish itself because it has done so too recently, even
5902       though the authorities decided not to list its recent-enough
5903       descriptor. Fix for bug 3327.
5905   o Major features (stream isolation):
5906     - You can now configure Tor so that streams from different
5907       applications are isolated on different circuits, to prevent an
5908       attacker who sees your streams as they leave an exit node from
5909       linking your sessions to one another. To do this, choose some way
5910       to distinguish the applications: have them connect to different
5911       SocksPorts, or have one of them use SOCKS4 while the other uses
5912       SOCKS5, or have them pass different authentication strings to the
5913       SOCKS proxy. Then, use the new SocksPort syntax to configure the
5914       degree of isolation you need. This implements Proposal 171.
5915     - There's a new syntax for specifying multiple client ports (such as
5916       SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare
5917       multiple *Port entries with full addr:port syntax on each.
5918       The old *ListenAddress format is still supported, but you can't
5919       mix it with the new *Port syntax.
5921   o Major features (bufferevents):
5922     - Tor can now optionally build with the "bufferevents" buffered IO
5923       backend provided by Libevent 2. To use this feature, make sure you
5924       have the latest possible version of Libevent, and pass the
5925       --enable-bufferevents flag to configure when building Tor from
5926       source. This feature will make our networking code more flexible,
5927       let us stack layers on each other, and let us use more efficient
5928       zero-copy transports where available.
5929     - Add experimental support for running on Windows with IOCP and no
5930       kernel-space socket buffers. This feature is controlled by a new
5931       "UserspaceIOCPBuffers" config option (off by default), which has
5932       no effect unless Tor has been built with bufferevents enabled,
5933       you're running on Windows, and you've set "DisableIOCP 0". In the
5934       long run, this may help solve or mitigate bug 98.
5936   o Major features (path selection):
5937     - The EntryNodes option can now include country codes like {de} or IP
5938       addresses or network masks. Previously we had disallowed these
5939       options because we didn't have an efficient way to keep the list up
5940       to date. Addresses ticket 1982, but see bug 2798 for an unresolved
5941       issue here.
5943   o Major features (port forwarding):
5944     - Add support for automatic port mapping on the many home routers
5945       that support NAT-PMP or UPnP. To build the support code, you'll
5946       need to have the libnatpnp library and/or the libminiupnpc library,
5947       and you'll need to enable the feature specifically by passing
5948       "--enable-upnp" and/or "--enable-natpnp" to ./configure. To turn
5949       it on, use the new PortForwarding option.
5951   o Major features (logging):
5952     - Add a new 'Heartbeat' log message type to periodically log a message
5953       describing Tor's status at level Notice. This feature is meant for
5954       operators who log at notice, and want to make sure that their Tor
5955       server is still working. Implementation by George Kadianakis.
5956     - Make logging resolution configurable with a new LogTimeGranularity
5957       option, and change the default from 1 millisecond to 1 second.
5958       Implements enhancement 1668.
5960   o Major features (other):
5961     - New "DisableNetwork" config option to prevent Tor from launching any
5962       connections or accepting any connections except on a control port.
5963       Bundles and controllers can set this option before letting Tor talk
5964       to the rest of the network, for example to prevent any connections
5965       to a non-bridge address. Packages like Orbot can also use this
5966       option to instruct Tor to save power when the network is off.
5967     - Try to use system facilities for enumerating local interface
5968       addresses, before falling back to our old approach (which was
5969       binding a UDP socket, and calling getsockname() on it). That
5970       approach was scaring OS X users whose draconian firewall
5971       software warned about binding to UDP sockets regardless of
5972       whether packets were sent. Now we try to use getifaddrs(),
5973       SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the
5974       system supports. Resolves ticket 1827.
5975     - Add experimental support for a "defaults" torrc file to be parsed
5976       before the regular torrc. Torrc options override the defaults file's
5977       options in the same way that the command line overrides the torrc.
5978       The SAVECONF controller command saves only those options which
5979       differ between the current configuration and the defaults file. HUP
5980       reloads both files. Implements task 4552.
5982   o New directory authorities:
5983     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
5984       authority. Closes ticket 5749.
5986   o Security/privacy fixes:
5987     - Avoid read-from-freed-memory and double-free bugs that could occur
5988       when a DNS request fails while launching it. Fixes bug 6480;
5989       bugfix on 0.2.0.1-alpha.
5990     - Reject any attempt to extend to an internal address. Without
5991       this fix, a router could be used to probe addresses on an internal
5992       network to see whether they were accepting connections. Fixes bug
5993       6710; bugfix on 0.0.8pre1.
5994     - Close any connection that sends unrecognized junk before the TLS
5995       handshake. Solves an issue noted in bug 4369.
5996     - The advertised platform of a relay now includes only its operating
5997       system's name (e.g., "Linux", "Darwin", "Windows 7"), and not
5998       its service pack level (for Windows) or its CPU architecture
5999       (for Unix). Also drop the "git-XYZ" tag in the version. Packagers
6000       can insert an extra string in the platform line by setting the
6001       preprocessor variable TOR_BUILD_TAG. Resolves bug 2988.
6002     - Disable TLS session tickets. OpenSSL's implementation was giving
6003       our TLS session keys the lifetime of our TLS context objects, when
6004       perfect forward secrecy would want us to discard anything that
6005       could decrypt a link connection as soon as the link connection
6006       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
6007       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
6008     - Tor tries to wipe potentially sensitive data after using it, so
6009       that if some subsequent security failure exposes Tor's memory,
6010       the damage will be limited. But we had a bug where the compiler
6011       was eliminating these wipe operations when it decided that the
6012       memory was no longer visible to a (correctly running) program,
6013       hence defeating our attempt at defense in depth. We fix that
6014       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
6015       is unlikely to optimize away. Future versions of Tor may use
6016       a less ridiculously heavy approach for this. Fixes bug 7352.
6017       Reported in an article by Andrey Karpov.
6019   o Major bugfixes (crashes and asserts):
6020     - Avoid a pair of double-free and use-after-mark bugs that can
6021       occur with certain timings in canceled and re-received DNS
6022       requests. Fixes bug 6472; bugfix on 0.0.7rc1.
6023     - Fix a denial of service attack by which any directory authority
6024       could crash all the others, or by which a single v2 directory
6025       authority could crash everybody downloading v2 directory
6026       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
6027     - Fix an assert that directory authorities could trigger on sighup
6028       during some configuration state transitions. We now don't treat
6029       it as a fatal error when the new descriptor we just generated in
6030       init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha.
6031     - Avoid segfault when starting up having run with an extremely old
6032       version of Tor and parsing its state file. Fixes bug 6801; bugfix
6033       on 0.2.2.23-alpha.
6035   o Major bugfixes (clients):
6036     - If we are unable to find any exit that supports our predicted ports,
6037       stop calling them predicted, so that we don't loop and build
6038       hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6,
6039       which introduced predicted ports.
6040     - Check at each new consensus whether our entry guards were picked
6041       long enough ago that we should rotate them. Previously, we only
6042       did this check at startup, which could lead to us holding a guard
6043       indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc.
6044     - When fetching a bridge descriptor from a bridge authority,
6045       always do so anonymously, whether we have been able to open
6046       circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha.
6047       This behavior makes it *safer* to use UpdateBridgesFromAuthority,
6048       but we'll need to wait for bug 6010 before it's actually usable.
6050   o Major bugfixes (directory voting):
6051     - Check more thoroughly to prevent a rogue authority from
6052       double-voting on any consensus directory parameter. Previously,
6053       authorities would crash in this case if the total number of
6054       votes for any parameter exceeded the number of active voters,
6055       but would let it pass otherwise. Partially fixes bug 5786; bugfix
6056       on 0.2.2.2-alpha.
6057     - When computing weight parameters, behave more robustly in the
6058       presence of a bad bwweightscale value. Previously, the authorities
6059       would crash if they agreed on a sufficiently broken weight_scale
6060       value; now, they use a reasonable default and carry on. Fixes the
6061       rest of bug 5786; bugfix on 0.2.2.17-alpha.
6062     - If authorities are unable to get a v2 consensus document from other
6063       directory authorities, they no longer fall back to fetching
6064       them from regular directory caches. Fixes bug 5635; bugfix on
6065       0.2.2.26-beta, where routers stopped downloading v2 consensus
6066       documents entirely.
6068   o Major bugfixes (relays):
6069     - Fix a bug handling SENDME cells on nonexistent streams that could
6070       result in bizarre window values. Report and patch contributed
6071       pseudonymously. Fixes part of bug 6271. This bug was introduced
6072       before the first Tor release, in svn commit r152.
6073     - Don't update the AccountingSoftLimitHitAt state file entry whenever
6074       tor gets started. This prevents a wrong average bandwidth
6075       estimate, which would cause relays to always start a new accounting
6076       interval at the earliest possible moment. Fixes bug 2003; bugfix
6077       on 0.2.2.7-alpha. Reported by Bryon Eldridge, who also helped
6078       immensely in tracking this bug down.
6079     - Fix a possible crash bug when checking for deactivated circuits
6080       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
6081       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
6082     - Set the SO_REUSEADDR socket option before we call bind() on outgoing
6083       connections. This change should allow busy exit relays to stop
6084       running out of available sockets as quickly. Fixes bug 4950;
6085       bugfix on 0.2.2.26-beta.
6087   o Major bugfixes (blocking resistance):
6088     - Bridges no longer include their address in NETINFO cells on outgoing
6089       OR connections, to allow them to blend in better with clients.
6090       Removes another avenue for enumerating bridges. Reported by
6091       "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO
6092       cells were introduced.
6093     - Warn the user when HTTPProxy, but no other proxy type, is
6094       configured. This can cause surprising behavior: it doesn't send
6095       all of Tor's traffic over the HTTPProxy -- it sends unencrypted
6096       directory traffic only. Resolves ticket 4663.
6098   o Major bugfixes (hidden services):
6099     - Improve hidden service robustness: when an attempt to connect to
6100       a hidden service ends, be willing to refetch its hidden service
6101       descriptors from each of the HSDir relays responsible for them
6102       immediately. Previously, we would not consider refetching the
6103       service's descriptors from each HSDir for 15 minutes after the last
6104       fetch, which was inconvenient if the hidden service was not running
6105       during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335.
6106     - Hidden services now ignore the timestamps on INTRODUCE2 cells.
6107       They used to check that the timestamp was within 30 minutes
6108       of their system clock, so they could cap the size of their
6109       replay-detection cache, but that approach unnecessarily refused
6110       service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when
6111       the v3 intro-point protocol (the first one which sent a timestamp
6112       field in the INTRODUCE2 cell) was introduced; fixes bug 3460.
6113     - When one of a hidden service's introduction points appears to be
6114       unreachable, stop trying it. Previously, we would keep trying
6115       to build circuits to the introduction point until we lost the
6116       descriptor, usually because the user gave up and restarted Tor.
6117       Fixes part of bug 3825.
6119   o Changes to default torrc file:
6120     - Stop listing "socksport 9050" in torrc.sample. We open a socks
6121       port on 9050 by default anyway, so this should not change anything
6122       in practice.
6123     - Stop mentioning the deprecated *ListenAddress options in
6124       torrc.sample. Fixes bug 5438.
6125     - Document unit of bandwidth-related options in sample torrc.
6126       Fixes bug 5621.
6127     - Fix broken URLs in the sample torrc file, and tell readers about
6128       the OutboundBindAddress, ExitPolicyRejectPrivate, and
6129       PublishServerDescriptor options. Addresses bug 4652.
6131   o Minor features (directory authorities):
6132     - Consider new, removed or changed IPv6 OR ports a non-cosmetic
6133       change when the authority is deciding whether to accept a newly
6134       uploaded descriptor. Implements ticket 6423.
6135     - Directory authorities are now a little more lenient at accepting
6136       older router descriptors, or newer router descriptors that don't
6137       make big changes. This should help ameliorate past and future
6138       issues where routers think they have uploaded valid descriptors,
6139       but the authorities don't think so. Fix for ticket 2479.
6140     - Authority operators can now vote for all relays in a given
6141       set of countries to be BadDir/BadExit/Invalid/Rejected.
6142     - Provide two consensus parameters (FastFlagMinThreshold and
6143       FastFlagMaxThreshold) to control the range of allowable bandwidths
6144       for the Fast directory flag. These allow authorities to run
6145       experiments on appropriate requirements for being a "Fast" node.
6146       The AuthDirFastGuarantee config value still applies. Implements
6147       ticket 3946.
6149   o Minor features (bridges / bridge authorities):
6150     - Make bridge SSL certificates a bit more stealthy by using random
6151       serial numbers, in the same fashion as OpenSSL when generating
6152       self-signed certificates. Implements ticket 4584.
6153     - Tag a bridge's descriptor as "never to be sent unencrypted".
6154       This shouldn't matter, since bridges don't open non-anonymous
6155       connections to the bridge authority and don't allow unencrypted
6156       directory connections from clients, but we might as well make
6157       sure. Closes bug 5139.
6158     - The Bridge Authority now writes statistics on how many bridge
6159       descriptors it gave out in total, and how many unique descriptors
6160       it gave out. It also lists how often the most and least commonly
6161       fetched descriptors were given out, as well as the median and
6162       25th/75th percentile. Implements tickets 4200 and 4294.
6164   o Minor features (IPv6):
6165     - Make the code that clients use to detect an address change be
6166       IPv6-aware, so that it won't fill clients' logs with error
6167       messages when trying to get the IPv4 address of an IPv6
6168       connection. Implements ticket 5537.
6169     - Relays now understand an IPv6 address when they get one from a
6170       directory server. Resolves ticket 4875.
6172   o Minor features (hidden services):
6173     - Expire old or over-used hidden service introduction points.
6174       Required by fix for bug 3460.
6175     - Reduce the lifetime of elements of hidden services' Diffie-Hellman
6176       public key replay-detection cache from 60 minutes to 5 minutes. This
6177       replay-detection cache is now used only to detect multiple
6178       INTRODUCE2 cells specifying the same rendezvous point, so we can
6179       avoid launching multiple simultaneous attempts to connect to it.
6180     - When a hidden service's introduction point times out, consider
6181       trying it again during the next attempt to connect to the
6182       HS. Previously, we would not try it again unless a newly fetched
6183       descriptor contained it. Required by fixes for bugs 1297 and 3825.
6185   o Minor features (relays):
6186     - Relays now include a reason for regenerating their descriptors
6187       in an HTTP header when uploading to the authorities. This will
6188       make it easier to debug descriptor-upload issues in the future.
6189     - Turn on directory request statistics by default and include them in
6190       extra-info descriptors. Don't break if we have no GeoIP database.
6191     - Replace files in stats/ rather than appending to them. Now that we
6192       include statistics in extra-info descriptors, it makes no sense to
6193       keep old statistics forever. Implements ticket 2930.
6194     - Relays that set "ConnDirectionStatistics 1" write statistics on the
6195       bidirectional use of connections to disk every 24 hours.
6196     - Add a GeoIP file digest to the extra-info descriptor. Implements
6197       ticket 1883.
6199   o Minor features (new config options):
6200     - New config option "DynamicDHGroups" (disabled by default) provides
6201       each bridge with a unique prime DH modulus to be used during
6202       SSL handshakes. This option attempts to help against censors
6203       who might use the Apache DH modulus as a static identifier for
6204       bridges. Addresses ticket 4548.
6205     - New config option "DisableDebuggerAttachment" (on by default)
6206       to prevent basic debugging attachment attempts by other processes.
6207       Supports Mac OS X and Gnu/Linux. Resolves ticket 3313.
6208     - Ordinarily, Tor does not count traffic from private addresses (like
6209       127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting.
6210       There is now a new option, CountPrivateBandwidth, to disable this
6211       behavior. Patch from Daniel Cagara.
6213   o Minor features (different behavior for old config options):
6214     - Allow MapAddress directives to specify matches against super-domains,
6215       as in "MapAddress *.torproject.org *.torproject.org.torserver.exit".
6216       Implements issue 933.
6217     - Don't disable the DirPort when we cannot exceed our AccountingMax
6218       limit during this interval because the effective bandwidthrate is
6219       low enough. This is useful in a situation where AccountMax is only
6220       used as an additional safeguard or to provide statistics.
6221     - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri;
6222       implements ticket 3439.
6223     - When configuring a large set of nodes in EntryNodes, and there are
6224       enough of them listed as Guard so that we don't need to consider
6225       the non-guard entries, prefer the ones listed with the Guard flag.
6226     - If you set the NumCPUs option to 0, Tor will now try to detect how
6227       many CPUs you have. This is the new default behavior.
6228     - The NodeFamily option -- which let you declare that you want to
6229       consider nodes to be part of a family whether they list themselves
6230       that way or not -- now allows IP address ranges and country codes.
6232   o Minor features (new command-line config behavior):
6233     - Slightly change behavior of "list" options (that is, config
6234       options that can appear more than once) when they appear both in
6235       torrc and on the command line. Previously, the command-line options
6236       would be appended to the ones from torrc. Now, the command-line
6237       options override the torrc options entirely. This new behavior
6238       allows the user to override list options (like exit policies and
6239       ports to listen on) from the command line, rather than simply
6240       appending to the list.
6241     - You can get the old (appending) command-line behavior for "list"
6242       options by prefixing the option name with a "+".
6243     - You can remove all the values for a "list" option from the command
6244       line without adding any new ones by prefixing the option name
6245       with a "/".
6247   o Minor features (controller, new events):
6248     - Extend the control protocol to report flags that control a circuit's
6249       path selection in CIRC events and in replies to 'GETINFO
6250       circuit-status'. Implements part of ticket 2411.
6251     - Extend the control protocol to report the hidden service address
6252       and current state of a hidden-service-related circuit in CIRC
6253       events and in replies to 'GETINFO circuit-status'. Implements part
6254       of ticket 2411.
6255     - Include the creation time of a circuit in CIRC and CIRC2
6256       control-port events and the list produced by the 'GETINFO
6257       circuit-status' control-port command.
6258     - Add a new CONF_CHANGED event so that controllers can be notified
6259       of any configuration changes made by other controllers, or by the
6260       user. Implements ticket 1692.
6261     - Add a new SIGNAL event to the controller interface so that
6262       controllers can be notified when Tor handles a signal. Resolves
6263       issue 1955. Patch by John Brooks.
6265   o Minor features (controller, new getinfo options):
6266     - Expose our view of whether we have gone dormant to the controller,
6267       via a new "GETINFO dormant" value. Torbutton and other controllers
6268       can use this to avoid doing periodic requests through Tor while
6269       it's dormant (bug 4718). Resolves ticket 5954.
6270     - Add a new GETINFO option to get total bytes read and written. Patch
6271       from pipe, revised by atagar. Resolves ticket 2345.
6272     - Implement new GETINFO controller fields to provide information about
6273       the Tor process's pid, euid, username, and resource limits.
6275   o Minor features (controller, other):
6276     - Allow controllers to request an event notification whenever a
6277       circuit is cannibalized or its purpose is changed. Implements
6278       part of ticket 3457.
6279     - Use absolute path names when reporting the torrc filename in the
6280       control protocol, so a controller can more easily find the torrc
6281       file. Resolves bug 1101.
6282     - When reporting the path to the cookie file to the controller,
6283       give an absolute path. Resolves ticket 4881.
6285   o Minor features (log messages):
6286     - Add more information to a log statement that might help track down
6287       bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
6288       non-IP address" messages (or any Bug messages, for that matter!),
6289       please let us know about it.
6290     - If EntryNodes are given, but UseEntryGuards is set to 0, warn that
6291       EntryNodes will have no effect. Resolves issue 2571.
6292     - Try to make the introductory warning message that Tor prints on
6293       startup more useful for actually finding help and information.
6294       Resolves ticket 2474.
6295     - When the system call to create a listener socket fails, log the
6296       error message explaining why. This may help diagnose bug 4027.
6298   o Minor features (other):
6299     - When we fail to initialize Libevent, retry with IOCP disabled so we
6300       don't need to turn on multi-threading support in Libevent, which in
6301       turn requires a working socketpair(). This is a workaround for bug
6302       4457, which affects Libevent versions from 2.0.1-alpha through
6303       2.0.15-stable.
6304     - When starting as root and then changing our UID via the User
6305       control option, and we have a ControlSocket configured, make sure
6306       that the ControlSocket is owned by the same account that Tor will
6307       run under. Implements ticket 3421; fix by Jérémy Bobbio.
6308     - Accept attempts to include a password authenticator in the
6309       handshake, as supported by SOCKS5. This handles SOCKS clients that
6310       don't know how to omit a password when authenticating. Resolves
6311       bug 1666.
6312     - Check for and recover from inconsistency in the microdescriptor
6313       cache. This will make it harder for us to accidentally free a
6314       microdescriptor without removing it from the appropriate data
6315       structures. Fixes issue 3135; issue noted by "wanoskarnet".
6316     - Shorten links in the tor-exit-notice file. Patch by Christian Kujau.
6318   o Minor bugfixes (code security):
6319     - Prevent a null-pointer dereference when receiving a data cell
6320       for a nonexistent stream when the circuit in question has an
6321       empty deliver window. We don't believe this is triggerable,
6322       since we don't currently allow deliver windows to become empty,
6323       but the logic is tricky enough that it's better to make the code
6324       robust. Fixes bug 5541; bugfix on 0.0.2pre14.
6325     - Fix a (harmless) integer overflow in cell statistics reported by
6326       some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha.
6327     - Fix our implementation of crypto_random_hostname() so it can't
6328       overflow on ridiculously large inputs. (No Tor version has ever
6329       provided this kind of bad inputs, but let's be correct in depth.)
6330       Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer.
6331     - Add a (probably redundant) memory clear between iterations of
6332       the router status voting loop, to prevent future coding errors
6333       where data might leak between iterations of the loop. Resolves
6334       ticket 6514.
6336   o Minor bugfixes (wrapper functions):
6337     - Abort if tor_vasprintf() fails in connection_printf_to_buf() (a
6338       utility function used in the control-port code). This shouldn't
6339       ever happen unless Tor is completely out of memory, but if it did
6340       happen and Tor somehow recovered from it, Tor could have sent a log
6341       message to a control port in the middle of a reply to a controller
6342       command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha.
6343     - Fix some (not actually triggerable) buffer size checks in usage of
6344       tor_inet_ntop(). Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch
6345       by Anders Sundman.
6346     - Fix parsing of some corner-cases with tor_inet_pton(). Fixes
6347       bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman.
6348     - Enforce correct return behavior of tor_vsscanf() when the '%%'
6349       pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13.
6350     - Make our replacement implementation of strtok_r() compatible with
6351       the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091;
6352       bugfix on 0.2.2.1-alpha.
6353     - Find more places in the code that should have been testing for
6354       invalid sockets using the SOCKET_OK macro. Required for a fix
6355       for bug 4533. Bugfix on 0.2.2.28-beta.
6357   o Minor bugfixes (code correctness):
6358     - Check return value of fputs() when writing authority certificate
6359       file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha.
6360     - When building Tor on Windows with -DUNICODE (not default), ensure
6361       that error messages, filenames, and DNS server names are always
6362       NUL-terminated when we convert them to a single-byte encoding.
6363       Fixes bug 5909; bugfix on 0.2.2.16-alpha.
6364     - Fix a memory leak when trying to launch a DNS request when the
6365       nameservers are unconfigurable. Fixes bug 5916; bugfix on Tor
6366       0.1.2.1-alpha.
6367     - Correct file sizes when reading binary files on Cygwin, to avoid
6368       a bug where Tor would fail to read its state file. Fixes bug 6844;
6369       bugfix on 0.1.2.7-alpha.
6370     - Make sure to set *socket_error in all error cases in
6371       connection_connect(), so it can't produce a warning about
6372       errno being zero from errno_to_orconn_end_reason(). Bugfix on
6373       0.2.1.1-alpha; resolves ticket 6028.
6374     - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes
6375       bug 4532; found by "troll_un".
6377   o Minor bugfixes (clients):
6378     - Allow one-hop directory-fetching circuits the full "circuit build
6379       timeout" period, rather than just half of it, before failing them
6380       and marking the relay down. This fix should help reduce cases where
6381       clients declare relays (or worse, bridges) unreachable because
6382       the TLS handshake takes a few seconds to complete. Fixes bug 6743;
6383       bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
6384       30 seconds.
6385     - Ensure we don't cannibalize circuits that are longer than three hops
6386       already, so we don't end up making circuits with 5 or more
6387       hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on
6388       0.1.0.1-rc which introduced cannibalization.
6390   o Minor bugfixes (relays):
6391     - Don't publish a new relay descriptor when we reload our onion key,
6392       unless the onion key has actually changed. Fixes bug 3263 and
6393       resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha.
6394     - When relays refuse a "create" cell because their queue of pending
6395       create cells is too big (typically because their cpu can't keep up
6396       with the arrival rate), send back reason "resource limit" rather
6397       than reason "internal", so network measurement scripts can get a
6398       more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037.
6399     - Exit nodes don't need to fetch certificates for authorities that
6400       they don't recognize; only directory authorities, bridges,
6401       and caches need to do that. Fixes part of bug 2297; bugfix on
6402       0.2.2.11-alpha.
6404   o Minor bugfixes (directory authority / mirrors):
6405     - Avoid O(n^2) performance characteristics when parsing a large
6406       extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha.
6407     - Authorities no longer include any router in their microdescriptor
6408       consensuses for which they couldn't generate or agree on a
6409       microdescriptor. Fixes the second piece of bug 6404; fix on
6410       0.2.2.6-alpha.
6411     - When checking for requested signatures on the latest consensus
6412       before serving it to a client, make sure to check the right
6413       consensus flavor. Bugfix on 0.2.2.6-alpha.
6414     - Fix an edge case where TestingTorNetwork is set but the authorities
6415       and relays all have an uptime of zero, so the private Tor network
6416       could briefly lack support for hidden services. Fixes bug 3886;
6417       bugfix on 0.2.2.18-alpha.
6418     - Directory caches no longer refuse to clean out descriptors because
6419       of missing v2 networkstatus documents, unless they're configured
6420       to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on
6421       0.2.2.26-beta. Patch by Daniel Bryg.
6422     - Don't serve or accept v2 hidden service descriptors over a relay's
6423       DirPort. It's never correct to do so, and disabling it might
6424       make it more annoying to exploit any bugs that turn up in the
6425       descriptor-parsing code. Fixes bug 7149.
6427   o Minor bugfixes (hidden services, client-side):
6428     - Assert that hidden-service-related operations are not performed
6429       using single-hop circuits. Previously, Tor would assert that
6430       client-side streams are not attached to single-hop circuits,
6431       but not that other sensitive operations on the client and service
6432       side are not performed using single-hop circuits. Fixes bug 3332;
6433       bugfix on 0.0.6.
6434     - Avoid undefined behavior when parsing the list of supported
6435       rendezvous/introduction protocols in a hidden service descriptor.
6436       Previously, Tor would have confused (as-yet-unused) protocol version
6437       numbers greater than 32 with lower ones on many platforms. Fixes
6438       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
6439     - Don't close hidden service client circuits which have almost
6440       finished connecting to their destination when they reach
6441       the normal circuit-build timeout. Previously, we would close
6442       introduction circuits which are waiting for an acknowledgement
6443       from the introduction point, and rendezvous circuits which have
6444       been specified in an INTRODUCE1 cell sent to a hidden service,
6445       after the normal CBT. Now, we mark them as 'timed out', and launch
6446       another rendezvous attempt in parallel. This behavior change can
6447       be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout
6448       option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha.
6450   o Minor bugfixes (hidden services, service-side):
6451     - Don't close hidden-service-side rendezvous circuits when they
6452       reach the normal circuit-build timeout. This behavior change can
6453       be disabled using the new
6454       CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the
6455       remaining part of bug 1297; bugfix on 0.2.2.2-alpha.
6456     - Don't launch more than 10 service-side introduction-point circuits
6457       for a hidden service in five minutes. Previously, we would consider
6458       launching more introduction-point circuits if at least one second
6459       had passed without any introduction-point circuits failing. Fixes
6460       bug 4607; bugfix on 0.0.7pre1.
6462   o Minor bugfixes (config option behavior):
6463     - If the user tries to set MyFamily on a bridge, refuse to
6464       do so, and warn about the security implications. Fixes bug 4657;
6465       bugfix on 0.2.0.3-alpha.
6466     - The "--quiet" and "--hush" options now apply not only to Tor's
6467       behavior before logs are configured, but also to Tor's behavior in
6468       the absense of configured logs. Fixes bug 3550; bugfix on
6469       0.2.0.10-alpha.
6470     - Change the AllowDotExit rules so they should actually work.
6471       We now enforce AllowDotExit only immediately after receiving an
6472       address via SOCKS or DNSPort: other sources are free to provide
6473       .exit addresses after the resolution occurs. Fixes bug 3940;
6474       bugfix on 0.2.2.1-alpha.
6475     - Make "LearnCircuitBuildTimeout 0" work more reliably. Specifically,
6476       don't depend on the consensus parameters or compute adaptive
6477       timeouts when it is disabled. Fixes bug 5049; bugfix on
6478       0.2.2.14-alpha.
6479     - After we pick a directory mirror, we would refuse to use it if
6480       it's in our ExcludeExitNodes list, resulting in mysterious failures
6481       to bootstrap for people who just wanted to avoid exiting from
6482       certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
6483     - When told to add a bridge with the same digest as a preexisting
6484       bridge but a different addr:port, change the addr:port as
6485       requested. Previously we would not notice the change. Fixes half
6486       of bug 5603; fix on 0.2.2.26-beta.
6488   o Minor bugfixes (controller):
6489     - Allow manual 'authenticate' commands to the controller interface
6490       from netcat (nc) as well as telnet. We were rejecting them because
6491       they didn't come with the expected whitespace at the end of the
6492       command. Bugfix on 0.1.1.1-alpha; fixes bug 2893.
6493     - Report a real bootstrap problem to the controller on router
6494       identity mismatch. Previously we just said "foo", which probably
6495       made a lot of sense at the time. Fixes bug 4169; bugfix on
6496       0.2.1.1-alpha.
6497     - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP
6498       option is set to 0 (which Vidalia version 0.2.16 now does when
6499       a SAVECONF attempt fails), perform other actions that SIGHUP
6500       usually causes (like reopening the logs). Fixes bug 5095; bugfix
6501       on 0.2.1.9-alpha.
6502     - Correctly handle checking the permissions on the parent
6503       directory of a control socket in the root directory. Bug found
6504       by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor
6505       0.2.2.26-beta.
6506     - End AUTHCHALLENGE error messages (in the control protocol) with
6507       a CRLF. Fixes bug 5760; bugfix on 0.2.2.36.
6509   o Minor bugfixes (network reading/writing):
6510     - Disable writing on marked-for-close connections when they are
6511       blocked on bandwidth, to prevent busy-looping in Libevent. Fixes
6512       bug 5263; bugfix on 0.0.2pre13, where we first added a special
6513       case for flushing marked connections.
6514     - Make sure that there are no unhandled pending TLS errors before
6515       reading from a TLS stream. We had checks in 0.1.0.3-rc, but
6516       lost them in 0.1.0.5-rc when we refactored read_to_buf_tls().
6517       Bugfix on 0.1.0.5-rc; fixes bug 4528.
6518     - Detect SSL handshake even when the initial attempt to write the
6519       server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha.
6520     - If the client fails to set a reasonable set of ciphersuites
6521       during its v2 handshake renegotiation, allow the renegotiation to
6522       continue nevertheless (i.e. send all the required certificates).
6523       Fixes bug 4591; bugfix on 0.2.0.20-rc.
6525   o Minor bugfixes (other):
6526     - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as
6527       resource exhaustion, so that clients can adjust their load to
6528       try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which
6529       started using END_STREAM_REASON_RESOURCELIMIT.
6530     - Don't check for whether the address we're using for outbound
6531       connections has changed until after the outbound connection has
6532       completed. On Windows, getsockname() doesn't succeed until the
6533       connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha.
6534     - Don't hold a Windows file handle open for every file mapping;
6535       the file mapping handle is sufficient. Fixes bug 5951; bugfix on
6536       0.1.2.1-alpha.
6537     - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
6538       bugfix on 0.2.1.10-alpha.
6539     - If we fail to write a microdescriptor to the disk cache, do not
6540       continue replacing the old microdescriptor file. Fixes bug 2954;
6541       bugfix on 0.2.2.6-alpha.
6543   o Minor bugfixes (log messages, path selection):
6544     - Downgrade "set buildtimeout to low value" messages to "info"
6545       severity; they were never an actual problem, there was never
6546       anything reasonable to do about them, and they tended to spam logs
6547       from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha.
6548     - Rate-limit the "Weighted bandwidth is 0.000000" message, and add
6549       more information to it, so that we can track it down in case it
6550       returns again. Mitigates bug 5235.
6551     - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in
6552       options_validate(); warn if LearnCircuitBuildTimeout is disabled and
6553       CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452.
6554     - Issue a log message if a guard completes less than 40% of your
6555       circuits. Threshold is configurable by torrc option
6556       PathBiasNoticeRate and consensus parameter pb_noticepct. There is
6557       additional, off-by-default code to disable guards which fail too
6558       many circuits. Addresses ticket 5458.
6560   o Minor bugfixes (log messages, client):
6561     - Downgrade "Got a certificate, but we already have it" log messages
6562       from warning to info, except when we're a dirauth. Fixes bug 5238;
6563       bugfix on 0.2.1.7-alpha.
6564     - Fix the log message describing how we work around discovering
6565       that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
6566       4837; bugfix on 0.2.2.9-alpha.
6567     - When logging about a disallowed .exit name, do not also call it
6568       an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha.
6569     - Fix a log message suggesting that people contact a non-existent
6570       email address. Fixes bug 3448.
6571     - Rephrase the log message emitted if the TestSocks check is
6572       successful. Patch from Fabian Keil; fixes bug 4094.
6573     - Log (at debug level) whenever a circuit's purpose is changed.
6574     - Log SSL state transitions at log level DEBUG, log domain
6575       HANDSHAKE. This can be useful for debugging censorship events.
6576       Implements ticket 3264.
6577     - We now log which torrc file we're using on startup. Implements
6578       ticket 2444.
6579     - Rate-limit log messages when asked to connect anonymously to
6580       a private address. When these hit, they tended to hit fast and
6581       often. Also, don't bother trying to connect to addresses that we
6582       are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory
6583       reply makes us think we have been lied to, even when the address the
6584       client tried to connect to was "localhost." Resolves ticket 2822.
6586   o Minor bugfixes (log messages, non-client):
6587     - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN.
6588       Fixes bug 5932; bugfix on 0.2.2.7-alpha.
6589     - Don't log that we have "decided to publish new relay descriptor"
6590       unless we are actually publishing a descriptor. Fixes bug 3942;
6591       bugfix on 0.2.2.28-beta.
6592     - Log which authority we're missing votes from when we go to fetch
6593       them from the other auths.
6594     - Replace "Sending publish request" log messages with "Launching
6595       upload", so that they no longer confusingly imply that we're
6596       sending something to a directory we might not even be connected
6597       to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha.
6598     - Warn when Tor is configured to use accounting in a way that can
6599       link a hidden service to some other hidden service or public
6600       address. Resolves ticket 6490.
6601     - Fix a minor formatting issue in one of tor-gencert's error messages.
6602       Fixes bug 4574.
6604   o Testing:
6605     - Update to the latest version of the tinytest unit testing framework.
6606       This includes a couple of bugfixes that can be relevant for
6607       running forked unit tests on Windows, and removes all reserved
6608       identifiers.
6609     - Avoid a false positive in the util/threads unit test by increasing
6610       the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha.
6611     - Make it possible to set the TestingTorNetwork configuration
6612       option using AlternateDirAuthority and AlternateBridgeAuthority
6613       as an alternative to setting DirServer. Addresses ticket 6377.
6614     - Add a unit test for the environment_variable_names_equal() function.
6615     - A wide variety of new unit tests by Esteban Manchado Velázquez.
6616     - Numerous new unit tests for functions in util.c and address.c by
6617       Anders Sundman.
6618     - The long-disabled benchmark tests are now split into their own
6619       ./src/test/bench binary.
6620     - The benchmark tests can now use more accurate timers than
6621       gettimeofday() when such timers are available.
6622     - Use tt_assert(), not tor_assert(), for checking for test failures.
6623       This makes the unit tests more able to go on in the event that
6624       one of them fails.
6626   o Build improvements:
6627     - Use the dead_strip option when building Tor on OS X. This reduces
6628       binary size by almost 19% when linking openssl and libevent
6629       statically, which we do for Tor Browser Bundle.
6630     - Provide a better error message about possible OSX Asciidoc failure
6631       reasons. Fixes bug 6436.
6632     - Detect attempts to build Tor on (as yet hypothetical) versions
6633       of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial
6634       fix for bug 4533. Bugfix on 0.2.2.28-beta.
6635     - On Windows, we now define the _WIN32_WINNT macros only if they
6636       are not already defined. This lets the person building Tor decide,
6637       if they want, to require a later version of Windows.
6638     - Our autogen.sh script now uses autoreconf to launch autoconf,
6639       automake, and so on. This is more robust against some of the failure
6640       modes associated with running the autotools pieces on their own.
6641     - Running "make version" now displays the version of Tor that
6642       we're about to build. Idea from katmagic; resolves issue 4400.
6643     - Make 'tor --digests' list hashes of all Tor source files. Bugfix
6644       on 0.2.2.4-alpha; fixes bug 3427.
6645     - New --enable-static-tor configure option for building Tor as
6646       statically as possible. Idea, general hackery and thoughts from
6647       Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket
6648       2702.
6649     - Limited, experimental support for building with nmake and MSVC.
6651   o Build requirements:
6652     - Building Tor with bufferevent support now requires Libevent
6653       2.0.13-stable or later. Previous versions of Libevent had bugs in
6654       SSL-related bufferevents and related issues that would make Tor
6655       work badly with bufferevents. Requiring 2.0.13-stable also allows
6656       Tor with bufferevents to take advantage of Libevent APIs
6657       introduced after 2.0.8-rc.
6658     - Our build system requires automake 1.6 or later to create the
6659       Makefile.in files. Previously, you could have used 1.4.
6660       This only affects developers and people building Tor from git;
6661       people who build Tor from the source distribution without changing
6662       the Makefile.am files should be fine.
6663     - Detect when we try to build on a platform that doesn't define
6664       AF_UNSPEC to 0. We don't work there, so refuse to compile.
6666   o Build fixes (compile/link):
6667     - Format more doubles with %f, not %lf. Patch from grarpamp to make
6668       Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on
6669       Tor 0.2.0.8-alpha.
6670     - When building with --enable-static-tor on OpenBSD, do not
6671       erroneously attempt to link -lrt. Fixes bug 5103.
6672     - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
6673       that IPv6 stuff will compile on MSVC, and compilation issues
6674       will be easier to track down. Fixes bug 5861.
6675     - Fix build and 64-bit compile warnings from --enable-openbsd-malloc.
6676       Fixes bug 6379. Bugfix on 0.2.0.20-rc.
6677     - Make Tor build correctly again with -DUNICODE -D_UNICODE defined.
6678       Fixes bug 6097; bugfix on 0.2.2.16-alpha.
6680   o Build fixes (other):
6681     - Use the _WIN32 macro throughout our code to detect Windows.
6682       (Previously we had used the obsolete 'WIN32' and the idiosyncratic
6683       'MS_WINDOWS'.)
6684     - Properly handle the case where the build-tree is not the same
6685       as the source tree when generating src/common/common_sha1.i,
6686       src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953;
6687       bugfix on 0.2.0.1-alpha.
6688     - During configure, search for library containing cos function as
6689       libm lives in libcore on some platforms (BeOS/Haiku). Linking
6690       against libm was hard-coded before. Fixes the first part of bug
6691       4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes
6692       Pedersen.
6693     - Prevent a false positive from the check-spaces script, by disabling
6694       the "whitespace between function name and (" check for functions
6695       named 'op()'.
6697   o Packaging (RPM) changes:
6698     - Update our default RPM spec files to work with mock and rpmbuild
6699       on RHEL/Fedora. They have an updated set of dependencies and
6700       conflicts, a fix for an ancient typo when creating the "_tor"
6701       user, and better instructions. Thanks to Ondrej Mikle for the
6702       patch series. Fixes bug 6043.
6703     - On OpenSUSE, create the /var/run/tor directory on startup if it
6704       is not already created. Patch from Andreas Stieger. Fixes bug 2573.
6706   o Code refactoring (safety):
6707     - Do not use SMARTLIST_FOREACH for any loop whose body exceeds
6708       10 lines. Also, don't nest them. Doing so in the past has
6709       led to hard-to-debug code. The new style is to use the
6710       SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400.
6711     - Use macros to indicate OpenSSL versions, so we don't need to worry
6712       about accidental hexadecimal bit shifts.
6713     - Use tor_sscanf() in place of scanf() in more places through the
6714       code. This makes us a little more locale-independent, and
6715       should help shut up code-analysis tools that can't tell
6716       a safe sscanf string from a dangerous one.
6717     - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf.
6718     - Use the smartlist_add_asprintf() alias more consistently.
6720   o Code refactoring (consolidate):
6721     - A major revision to our internal node-selecting and listing logic.
6722       Tor already had at least two major ways to look at the question of
6723       "which Tor servers do we know about": a list of router descriptors,
6724       and a list of entries in the current consensus. With
6725       microdescriptors, we're adding a third. Having so many systems
6726       without an abstraction layer over them was hurting the codebase.
6727       Now, we have a new "node_t" abstraction that presents a consistent
6728       interface to a client's view of a Tor node, and holds (nearly) all
6729       of the mutable state formerly in routerinfo_t and routerstatus_t.
6730     - Move tor_gettimeofday_cached() into compat_libevent.c, and use
6731       Libevent's notion of cached time when possible.
6732     - Remove duplicate code for invoking getrlimit() from control.c.
6733     - Use OpenSSL's built-in SSL_state_string_long() instead of our
6734       own homebrewed ssl_state_to_string() replacement. Patch from
6735       Emile Snyder. Fixes bug 4653.
6736     - Change the symmetric cipher interface so that creating and
6737       initializing a stream cipher are no longer separate functions.
6739   o Code refactoring (separate):
6740     - Make a new "entry connection" struct as an internal subtype of "edge
6741       connection", to simplify the code and make exit connections smaller.
6742     - Split connection_about_to_close() into separate functions for each
6743       connection type.
6744     - Rewrite the listener-selection logic so that parsing which ports
6745       we want to listen on is now separate from binding to the ports
6746       we want.
6748   o Code refactoring (name changes):
6749     - Rename a handful of old identifiers, mostly related to crypto
6750       structures and crypto functions. By convention, our "create an
6751       object" functions are called "type_new()", our "free an object"
6752       functions are called "type_free()", and our types indicate that
6753       they are types only with a final "_t". But a handful of older
6754       types and functions broke these rules, with function names like
6755       "type_create" or "subsystem_op_type", or with type names like
6756       type_env_t.
6757     - Rename Tor functions that turn strings into addresses, so that
6758       "parse" indicates that no hostname resolution occurs, and
6759       "lookup" indicates that hostname resolution may occur. This
6760       should help prevent mistakes in the future. Fixes bug 3512.
6761     - Use the name "CERTS" consistently to refer to the new cell type;
6762       we were calling it CERT in some places and CERTS in others.
6763     - Use a TOR_INVALID_SOCKET macro when initializing a socket to an
6764       invalid value, rather than just -1.
6765     - Rename the bench_{aes,dmap} functions to test_*, so that tinytest
6766       can pick them up when the tests aren't disabled. Bugfix on
6767       0.2.2.4-alpha which introduced tinytest.
6769   o Code refactoring (other):
6770     - Defensively refactor rend_mid_rendezvous() so that protocol
6771       violations and length checks happen in the beginning. Fixes
6772       bug 5645.
6773     - Remove the pure attribute from all functions that used it
6774       previously. In many cases we assigned it incorrectly, because the
6775       functions might assert or call impure functions, and we don't have
6776       evidence that keeping the pure attribute is worthwhile. Implements
6777       changes suggested in ticket 4421.
6778     - Move the replay-detection cache for the RSA-encrypted parts of
6779       INTRODUCE2 cells to the introduction point data structures.
6780       Previously, we would use one replay-detection cache per hidden
6781       service. Required by fix for bug 3460.
6782     - The helper programs tor-gencert, tor-resolve, and tor-checkkey
6783       no longer link against Libevent: they never used it, but
6784       our library structure used to force them to link it.
6786   o Removed features and files:
6787     - Remove all internal support for unpadded RSA. We never used it, and
6788       it would be a bad idea to start.
6789     - Remove some workaround code for OpenSSL 0.9.6 (which is no longer
6790       supported).
6791     - Remove some redundant #include directives throughout the code.
6792       Patch from Andrea Gelmini.
6793     - Remove some old code to remember statistics about which descriptors
6794       we've served as a directory mirror. The feature wasn't used and
6795       is outdated now that microdescriptors are around.
6796     - Remove some old code to work around even older versions of Tor that
6797       used forked processes to handle DNS requests. Such versions of Tor
6798       are no longer in use as relays.
6799     - The "torify" script no longer supports the "tsocks" socksifier
6800       tool, since tsocks doesn't support DNS and UDP right for Tor.
6801       Everyone should be using torsocks instead. Fixes bugs 3530 and
6802       5180. Based on a patch by "ugh".
6803     - Remove the torrc.bridge file: we don't use it for anything, and
6804       it had become badly desynchronized from torrc.sample. Resolves
6805       bug 5622.
6807   o Documentation:
6808     - Begin a doc/state-contents.txt file to explain the contents of
6809       the Tor state file. Fixes bug 2987.
6810     - Clarify the documentation for the Alternate*Authority options.
6811       Fixes bug 6387.
6812     - Document the --defaults-torrc option, and the new semantics for
6813       overriding, extending, and clearing lists of options. Closes
6814       bug 4748.
6815     - Add missing man page documentation for consensus and microdesc
6816       files. Resolves ticket 6732.
6817     - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500.
6819   o Documentation fixes:
6820     - Improve the manual's documentation for the NT Service command-line
6821       options. Addresses ticket 3964.
6822     - Clarify SessionGroup documentation slightly; resolves ticket 5437.
6823     - Document the changes to the ORPort and DirPort options, and the
6824       fact that {OR/Dir}ListenAddress is now unnecessary (and
6825       therefore deprecated). Resolves ticket 5597.
6826     - Correct a broken faq link in the INSTALL file. Fixes bug 2307.
6827     - Clarify that hidden services are TCP only. Fixes bug 6024.
6830 Changes in version 0.2.2.39 - 2012-09-11
6831   Tor 0.2.2.39 fixes two more opportunities for remotely triggerable
6832   assertions.
6834   o Security fixes:
6835     - Fix an assertion failure in tor_timegm() that could be triggered
6836       by a badly formatted directory object. Bug found by fuzzing with
6837       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
6838     - Do not crash when comparing an address with port value 0 to an
6839       address policy. This bug could have been used to cause a remote
6840       assertion failure by or against directory authorities, or to
6841       allow some applications to crash clients. Fixes bug 6690; bugfix
6842       on 0.2.1.10-alpha.
6845 Changes in version 0.2.2.38 - 2012-08-12
6846   Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing
6847   attack that could in theory leak path information.
6849   o Security fixes:
6850     - Avoid an uninitialized memory read when reading a vote or consensus
6851       document that has an unrecognized flavor name. This read could
6852       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
6853     - Try to leak less information about what relays a client is
6854       choosing to a side-channel attacker. Previously, a Tor client would
6855       stop iterating through the list of available relays as soon as it
6856       had chosen one, thus finishing a little earlier when it picked
6857       a router earlier in the list. If an attacker can recover this
6858       timing information (nontrivial but not proven to be impossible),
6859       they could learn some coarse-grained information about which relays
6860       a client was picking (middle nodes in particular are likelier to
6861       be affected than exits). The timing attack might be mitigated by
6862       other factors (see bug 6537 for some discussion), but it's best
6863       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
6866 Changes in version 0.2.2.37 - 2012-06-06
6867   Tor 0.2.2.37 introduces a workaround for a critical renegotiation
6868   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
6869   currently).
6871   o Major bugfixes:
6872     - Work around a bug in OpenSSL that broke renegotiation with TLS
6873       1.1 and TLS 1.2. Without this workaround, all attempts to speak
6874       the v2 Tor connection protocol when both sides were using OpenSSL
6875       1.0.1 would fail. Resolves ticket 6033.
6876     - When waiting for a client to renegotiate, don't allow it to add
6877       any bytes to the input buffer. This fixes a potential DoS issue.
6878       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
6879     - Fix an edge case where if we fetch or publish a hidden service
6880       descriptor, we might build a 4-hop circuit and then use that circuit
6881       for exiting afterwards -- even if the new last hop doesn't obey our
6882       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
6884   o Minor bugfixes:
6885     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
6886       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
6888   o Minor features:
6889     - Tell GCC and Clang to check for any errors in format strings passed
6890       to the tor_v*(print|scan)f functions.
6893 Changes in version 0.2.2.36 - 2012-05-24
6894   Tor 0.2.2.36 updates the addresses for two of the eight directory
6895   authorities, fixes some potential anonymity and security issues,
6896   and fixes several crash bugs.
6898   Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many
6899   known flaws, and nobody should be using them. You should upgrade. If
6900   you're using a Linux or BSD and its packages are obsolete, stop using
6901   those packages and upgrade anyway.
6903   o Directory authority changes:
6904     - Change IP address for maatuska (v3 directory authority).
6905     - Change IP address for ides (v3 directory authority), and rename
6906       it to turtles.
6908   o Security fixes:
6909     - When building or running with any version of OpenSSL earlier
6910       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
6911       versions have a bug (CVE-2011-4576) in which their block cipher
6912       padding includes uninitialized data, potentially leaking sensitive
6913       information to any peer with whom they make a SSLv3 connection. Tor
6914       does not use SSL v3 by default, but a hostile client or server
6915       could force an SSLv3 connection in order to gain information that
6916       they shouldn't have been able to get. The best solution here is to
6917       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
6918       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
6919       to make sure that the bug can't happen.
6920     - Never use a bridge or a controller-supplied node as an exit, even
6921       if its exit policy allows it. Found by wanoskarnet. Fixes bug
6922       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
6923       and 0.2.0.3-alpha (for bridge-purpose descriptors).
6924     - Only build circuits if we have a sufficient threshold of the total
6925       descriptors that are marked in the consensus with the "Exit"
6926       flag. This mitigates an attack proposed by wanoskarnet, in which
6927       all of a client's bridges collude to restrict the exit nodes that
6928       the client knows about. Fixes bug 5343.
6929     - Provide controllers with a safer way to implement the cookie
6930       authentication mechanism. With the old method, if another locally
6931       running program could convince a controller that it was the Tor
6932       process, then that program could trick the controller into telling
6933       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
6934       authentication method uses a challenge-response approach to prevent
6935       this attack. Fixes bug 5185; implements proposal 193.
6937   o Major bugfixes:
6938     - Avoid logging uninitialized data when unable to decode a hidden
6939       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
6940     - Avoid a client-side assertion failure when receiving an INTRODUCE2
6941       cell on a general purpose circuit. Fixes bug 5644; bugfix on
6942       0.2.1.6-alpha.
6943     - Fix builds when the path to sed, openssl, or sha1sum contains
6944       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
6945       on 0.2.2.1-alpha.
6946     - Correct our replacements for the timeradd() and timersub() functions
6947       on platforms that lack them (for example, Windows). The timersub()
6948       function is used when expiring circuits, while timeradd() is
6949       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
6950       bugfix on 0.2.2.24-alpha.
6951     - Fix the SOCKET_OK test that we use to tell when socket
6952       creation fails so that it works on Win64. Fixes part of bug 4533;
6953       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
6955   o Minor bugfixes:
6956     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
6957       Fixes bug 5346; bugfix on 0.0.8pre3.
6958     - Make our number-parsing functions always treat too-large values
6959       as an error, even when those values exceed the width of the
6960       underlying type. Previously, if the caller provided these
6961       functions with minima or maxima set to the extreme values of the
6962       underlying integer type, these functions would return those
6963       values on overflow rather than treating overflow as an error.
6964       Fixes part of bug 5786; bugfix on 0.0.9.
6965     - Older Linux kernels erroneously respond to strange nmap behavior
6966       by having accept() return successfully with a zero-length
6967       socket. When this happens, just close the connection. Previously,
6968       we would try harder to learn the remote address: but there was
6969       no such remote address to learn, and our method for trying to
6970       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
6971       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
6972     - Correct parsing of certain date types in parse_http_time().
6973       Without this patch, If-Modified-Since would behave
6974       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
6975       Esteban Manchado Velázques.
6976     - Change the BridgePassword feature (part of the "bridge community"
6977       design, which is not yet implemented) to use a time-independent
6978       comparison. The old behavior might have allowed an adversary
6979       to use timing to guess the BridgePassword value. Fixes bug 5543;
6980       bugfix on 0.2.0.14-alpha.
6981     - Detect and reject certain misformed escape sequences in
6982       configuration values. Previously, these values would cause us
6983       to crash if received in a torrc file or over an authenticated
6984       control port. Bug found by Esteban Manchado Velázquez, and
6985       independently by Robert Connolly from Matta Consulting who further
6986       noted that it allows a post-authentication heap overflow. Patch
6987       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
6988       bugfix on 0.2.0.16-alpha.
6989     - Fix a compile warning when using the --enable-openbsd-malloc
6990       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
6991     - During configure, detect when we're building with clang version
6992       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
6993       CFLAGS. clang doesn't support them yet.
6994     - When sending an HTTP/1.1 proxy request, include a Host header.
6995       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
6996     - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE
6997       command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha.
6998     - If we hit the error case where routerlist_insert() replaces an
6999       existing (old) server descriptor, make sure to remove that
7000       server descriptor from the old_routers list. Fix related to bug
7001       1776. Bugfix on 0.2.2.18-alpha.
7003   o Minor bugfixes (documentation and log messages):
7004     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
7005       Fixes bug 4856; bugfix on Tor 0.0.6.
7006     - Update "ClientOnly" man page entry to explain that there isn't
7007       really any point to messing with it. Resolves ticket 5005.
7008     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
7009       directory authority option (introduced in Tor 0.2.2.34).
7010     - Downgrade the "We're missing a certificate" message from notice
7011       to info: people kept mistaking it for a real problem, whereas it
7012       is seldom the problem even when we are failing to bootstrap. Fixes
7013       bug 5067; bugfix on 0.2.0.10-alpha.
7014     - Correctly spell "connect" in a log message on failure to create a
7015       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta.
7016     - Clarify the behavior of MaxCircuitDirtiness with hidden service
7017       circuits. Fixes issue 5259.
7019   o Minor features:
7020     - Directory authorities now reject versions of Tor older than
7021       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
7022       inclusive. These versions accounted for only a small fraction of
7023       the Tor network, and have numerous known security issues. Resolves
7024       issue 4788.
7025     - Update to the May 1 2012 Maxmind GeoLite Country database.
7027   - Feature removal:
7028     - When sending or relaying a RELAY_EARLY cell, we used to convert
7029       it to a RELAY cell if the connection was using the v1 link
7030       protocol. This was a workaround for older versions of Tor, which
7031       didn't handle RELAY_EARLY cells properly. Now that all supported
7032       versions can handle RELAY_EARLY cells, and now that we're enforcing
7033       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
7034       remove this workaround. Addresses bug 4786.
7037 Changes in version 0.2.2.35 - 2011-12-16
7038   Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's
7039   buffers code. Absolutely everybody should upgrade.
7041   The bug relied on an incorrect calculation when making data continuous
7042   in one of our IO buffers, if the first chunk of the buffer was
7043   misaligned by just the wrong amount. The miscalculation would allow an
7044   attacker to overflow a piece of heap-allocated memory. To mount this
7045   attack, the attacker would need to either open a SOCKS connection to
7046   Tor's SocksPort (usually restricted to localhost), or target a Tor
7047   instance configured to make its connections through a SOCKS proxy
7048   (which Tor does not do by default).
7050   Good security practice requires that all heap-overflow bugs should be
7051   presumed to be exploitable until proven otherwise, so we are treating
7052   this as a potential code execution attack. Please upgrade immediately!
7053   This bug does not affect bufferevents-based builds of Tor. Special
7054   thanks to "Vektor" for reporting this issue to us!
7056   Tor 0.2.2.35 also fixes several bugs in previous versions, including
7057   crash bugs for unusual configurations, and a long-term bug that
7058   would prevent Tor from starting on Windows machines with draconian
7059   AV software.
7061   With this release, we remind everyone that 0.2.0.x has reached its
7062   formal end-of-life. Those Tor versions have many known flaws, and
7063   nobody should be using them. You should upgrade -- ideally to the
7064   0.2.2.x series. If you're using a Linux or BSD and its packages are
7065   obsolete, stop using those packages and upgrade anyway.
7067   The Tor 0.2.1.x series is also approaching its end-of-life: it will no
7068   longer receive support after some time in early 2012.
7070   o Major bugfixes:
7071     - Fix a heap overflow bug that could occur when trying to pull
7072       data into the first chunk of a buffer, when that chunk had
7073       already had some data drained from it. Fixes CVE-2011-2778;
7074       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
7075     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
7076       that it doesn't attempt to allocate a socketpair. This could cause
7077       some problems on Windows systems with overzealous firewalls. Fix for
7078       bug 4457; workaround for Libevent versions 2.0.1-alpha through
7079       2.0.15-stable.
7080     - If we mark an OR connection for close based on a cell we process,
7081       don't process any further cells on it. We already avoid further
7082       reads on marked-for-close connections, but now we also discard the
7083       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
7084       which was the first version where we might mark a connection for
7085       close based on processing a cell on it.
7086     - Correctly sanity-check that we don't underflow on a memory
7087       allocation (and then assert) for hidden service introduction
7088       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
7089       bugfix on 0.2.1.5-alpha.
7090     - Fix a memory leak when we check whether a hidden service
7091       descriptor has any usable introduction points left. Fixes bug
7092       4424. Bugfix on 0.2.2.25-alpha.
7093     - Don't crash when we're running as a relay and don't have a GeoIP
7094       file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix
7095       we've had in the 0.2.3.x branch already.
7096     - When running as a client, do not print a misleading (and plain
7097       wrong) log message that we're collecting "directory request"
7098       statistics: clients don't collect statistics. Also don't create a
7099       useless (because empty) stats file in the stats/ directory. Fixes
7100       bug 4353; bugfix on 0.2.2.34.
7102   o Minor bugfixes:
7103     - Detect failure to initialize Libevent. This fix provides better
7104       detection for future instances of bug 4457.
7105     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
7106       function. This was eating up hideously large amounts of time on some
7107       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
7108     - Resolve an integer overflow bug in smartlist_ensure_capacity().
7109       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
7110       Mansour Moufid.
7111     - Don't warn about unused log_mutex in log.c when building with
7112       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
7113       0.1.0.6-rc which introduced --disable-threads.
7114     - When configuring, starting, or stopping an NT service, stop
7115       immediately after the service configuration attempt has succeeded
7116       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
7117     - When sending a NETINFO cell, include the original address
7118       received for the other side, not its canonical address. Found
7119       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
7120     - Fix a typo in a hibernation-related log message. Fixes bug 4331;
7121       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
7122     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
7123       occurred when a client tried to fetch a descriptor for a bridge
7124       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
7125     - Backport fixes for a pair of compilation warnings on Windows.
7126       Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta.
7127     - If we had ever tried to call tor_addr_to_str on an address of
7128       unknown type, we would have done a strdup on an uninitialized
7129       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
7130       Reported by "troll_un".
7131     - Correctly detect and handle transient lookup failures from
7132       tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
7133       Reported by "troll_un".
7134     - Fix null-pointer access that could occur if TLS allocation failed.
7135       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
7136     - Use tor_socket_t type for listener argument to accept(). Fixes bug
7137       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
7139   o Minor features:
7140     - Add two new config options for directory authorities:
7141       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
7142       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
7143       that is always sufficient to satisfy the bandwidth requirement for
7144       the Guard flag. Now it will be easier for researchers to simulate
7145       Tor networks with different values. Resolves ticket 4484.
7146     - When Tor ignores a hidden service specified in its configuration,
7147       include the hidden service's directory in the warning message.
7148       Previously, we would only tell the user that some hidden service
7149       was ignored. Bugfix on 0.0.6; fixes bug 4426.
7150     - Update to the December 6 2011 Maxmind GeoLite Country database.
7152   o Packaging changes:
7153     - Make it easier to automate expert package builds on Windows,
7154       by removing an absolute path from makensis.exe command.
7157 Changes in version 0.2.1.32 - 2011-12-16
7158   Tor 0.2.1.32 backports important security and privacy fixes for
7159   oldstable. This release is intended only for package maintainers and
7160   others who cannot use the 0.2.2 stable series. All others should be
7161   using Tor 0.2.2.x or newer.
7163   The Tor 0.2.1.x series will reach formal end-of-life some time in
7164   early 2012; we will stop releasing patches for it then.
7166   o Major bugfixes (also included in 0.2.2.x):
7167     - Correctly sanity-check that we don't underflow on a memory
7168       allocation (and then assert) for hidden service introduction
7169       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
7170       bugfix on 0.2.1.5-alpha.
7171     - Fix a heap overflow bug that could occur when trying to pull
7172       data into the first chunk of a buffer, when that chunk had
7173       already had some data drained from it. Fixes CVE-2011-2778;
7174       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
7176   o Minor features:
7177     - Update to the December 6 2011 Maxmind GeoLite Country database.
7180 Changes in version 0.2.2.34 - 2011-10-26
7181   Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker
7182   can deanonymize Tor users. Everybody should upgrade.
7184   The attack relies on four components: 1) Clients reuse their TLS cert
7185   when talking to different relays, so relays can recognize a user by
7186   the identity key in her cert. 2) An attacker who knows the client's
7187   identity key can probe each guard relay to see if that identity key
7188   is connected to that guard relay right now. 3) A variety of active
7189   attacks in the literature (starting from "Low-Cost Traffic Analysis
7190   of Tor" by Murdoch and Danezis in 2005) allow a malicious website to
7191   discover the guard relays that a Tor user visiting the website is using.
7192   4) Clients typically pick three guards at random, so the set of guards
7193   for a given user could well be a unique fingerprint for her. This
7194   release fixes components #1 and #2, which is enough to block the attack;
7195   the other two remain as open research problems. Special thanks to
7196   "frosty_un" for reporting the issue to us!
7198   Clients should upgrade so they are no longer recognizable by the TLS
7199   certs they present. Relays should upgrade so they no longer allow a
7200   remote attacker to probe them to test whether unpatched clients are
7201   currently connected to them.
7203   This release also fixes several vulnerabilities that allow an attacker
7204   to enumerate bridge relays. Some bridge enumeration attacks still
7205   remain; see for example proposal 188.
7207   o Privacy/anonymity fixes (clients):
7208     - Clients and bridges no longer send TLS certificate chains on
7209       outgoing OR connections. Previously, each client or bridge would
7210       use the same cert chain for all outgoing OR connections until
7211       its IP address changes, which allowed any relay that the client
7212       or bridge contacted to determine which entry guards it is using.
7213       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
7214     - If a relay receives a CREATE_FAST cell on a TLS connection, it
7215       no longer considers that connection as suitable for satisfying a
7216       circuit EXTEND request. Now relays can protect clients from the
7217       CVE-2011-2768 issue even if the clients haven't upgraded yet.
7218     - Directory authorities no longer assign the Guard flag to relays
7219       that haven't upgraded to the above "refuse EXTEND requests
7220       to client connections" fix. Now directory authorities can
7221       protect clients from the CVE-2011-2768 issue even if neither
7222       the clients nor the relays have upgraded yet. There's a new
7223       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
7224       to let us transition smoothly, else tomorrow there would be no
7225       guard relays.
7227   o Privacy/anonymity fixes (bridge enumeration):
7228     - Bridge relays now do their directory fetches inside Tor TLS
7229       connections, like all the other clients do, rather than connecting
7230       directly to the DirPort like public relays do. Removes another
7231       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
7232     - Bridges relays now build circuits for themselves in a more similar
7233       way to how clients build them. Removes another avenue for
7234       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
7235       when bridges were introduced.
7236     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
7237       that they initiated. Relays could distinguish incoming bridge
7238       connections from client connections, creating another avenue for
7239       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
7240       Found by "frosty_un".
7242   o Major bugfixes:
7243     - Fix a crash bug when changing node restrictions while a DNS lookup
7244       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
7245       by "Tey'".
7246     - Don't launch a useless circuit after failing to use one of a
7247       hidden service's introduction points. Previously, we would
7248       launch a new introduction circuit, but not set the hidden service
7249       which that circuit was intended to connect to, so it would never
7250       actually be used. A different piece of code would then create a
7251       new introduction circuit correctly. Bug reported by katmagic and
7252       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
7254   o Minor bugfixes:
7255     - Change an integer overflow check in the OpenBSD_Malloc code so
7256       that GCC is less likely to eliminate it as impossible. Patch
7257       from Mansour Moufid. Fixes bug 4059.
7258     - When a hidden service turns an extra service-side introduction
7259       circuit into a general-purpose circuit, free the rend_data and
7260       intro_key fields first, so we won't leak memory if the circuit
7261       is cannibalized for use as another service-side introduction
7262       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
7263     - Bridges now skip DNS self-tests, to act a little more stealthily.
7264       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
7265       bridges. Patch by "warms0x".
7266     - Fix internal bug-checking logic that was supposed to catch
7267       failures in digest generation so that it will fail more robustly
7268       if we ask for a nonexistent algorithm. Found by Coverity Scan.
7269       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
7270     - Report any failure in init_keys() calls launched because our
7271       IP address has changed. Spotted by Coverity Scan. Bugfix on
7272       0.1.1.4-alpha; fixes CID 484.
7274   o Minor bugfixes (log messages and documentation):
7275     - Remove a confusing dollar sign from the example fingerprint in the
7276       man page, and also make the example fingerprint a valid one. Fixes
7277       bug 4309; bugfix on 0.2.1.3-alpha.
7278     - The next version of Windows will be called Windows 8, and it has
7279       a major version of 6, minor version of 2. Correctly identify that
7280       version instead of calling it "Very recent version". Resolves
7281       ticket 4153; reported by funkstar.
7282     - Downgrade log messages about circuit timeout calibration from
7283       "notice" to "info": they don't require or suggest any human
7284       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
7285       bugfix on 0.2.2.14-alpha.
7287   o Minor features:
7288     - Turn on directory request statistics by default and include them in
7289       extra-info descriptors. Don't break if we have no GeoIP database.
7290       Backported from 0.2.3.1-alpha; implements ticket 3951.
7291     - Update to the October 4 2011 Maxmind GeoLite Country database.
7294 Changes in version 0.2.1.31 - 2011-10-26
7295   Tor 0.2.1.31 backports important security and privacy fixes for
7296   oldstable. This release is intended only for package maintainers and
7297   others who cannot use the 0.2.2 stable series. All others should be
7298   using Tor 0.2.2.x or newer.
7300   o Security fixes (also included in 0.2.2.x):
7301     - Replace all potentially sensitive memory comparison operations
7302       with versions whose runtime does not depend on the data being
7303       compared. This will help resist a class of attacks where an
7304       adversary can use variations in timing information to learn
7305       sensitive data. Fix for one case of bug 3122. (Safe memcmp
7306       implementation by Robert Ransom based partially on code by DJB.)
7307     - Fix an assert in parsing router descriptors containing IPv6
7308       addresses. This one took down the directory authorities when
7309       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
7311   o Privacy/anonymity fixes (also included in 0.2.2.x):
7312     - Clients and bridges no longer send TLS certificate chains on
7313       outgoing OR connections. Previously, each client or bridge would
7314       use the same cert chain for all outgoing OR connections until
7315       its IP address changes, which allowed any relay that the client
7316       or bridge contacted to determine which entry guards it is using.
7317       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
7318     - If a relay receives a CREATE_FAST cell on a TLS connection, it
7319       no longer considers that connection as suitable for satisfying a
7320       circuit EXTEND request. Now relays can protect clients from the
7321       CVE-2011-2768 issue even if the clients haven't upgraded yet.
7322     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
7323       that they initiated. Relays could distinguish incoming bridge 
7324       connections from client connections, creating another avenue for
7325       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
7326       Found by "frosty_un".
7327     - When receiving a hidden service descriptor, check that it is for
7328       the hidden service we wanted. Previously, Tor would store any
7329       hidden service descriptors that a directory gave it, whether it
7330       wanted them or not. This wouldn't have let an attacker impersonate
7331       a hidden service, but it did let directories pre-seed a client
7332       with descriptors that it didn't want. Bugfix on 0.0.6.
7333     - Avoid linkability based on cached hidden service descriptors: forget
7334       all hidden service descriptors cached as a client when processing a
7335       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
7336     - Make the bridge directory authority refuse to answer directory
7337       requests for "all" descriptors. It used to include bridge
7338       descriptors in its answer, which was a major information leak.
7339       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
7340     - Don't attach new streams to old rendezvous circuits after SIGNAL
7341       NEWNYM. Previously, we would keep using an existing rendezvous
7342       circuit if it remained open (i.e. if it were kept open by a
7343       long-lived stream, or if a new stream were attached to it before
7344       Tor could notice that it was old and no longer in use). Bugfix on
7345       0.1.1.15-rc; fixes bug 3375.
7347   o Minor bugfixes (also included in 0.2.2.x):
7348     - When we restart our relay, we might get a successful connection
7349       from the outside before we've started our reachability tests,
7350       triggering a warning: "ORPort found reachable, but I have no
7351       routerinfo yet. Failing to inform controller of success." This
7352       bug was harmless unless Tor is running under a controller
7353       like Vidalia, in which case the controller would never get a
7354       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
7355       fixes bug 1172.
7356     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
7357       enabled. Fixes bug 1526.
7358     - Remove undocumented option "-F" from tor-resolve: it hasn't done
7359       anything since 0.2.1.16-rc.
7360     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
7361       None of the cases where we did this before were wrong, but by making
7362       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
7363     - Fix a rare crash bug that could occur when a client was configured
7364       with a large number of bridges. Fixes bug 2629; bugfix on
7365       0.2.1.2-alpha. Bugfix by trac user "shitlei".
7366     - Correct the warning displayed when a rendezvous descriptor exceeds
7367       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
7368       John Brooks.
7369     - Fix an uncommon assertion failure when running with DNSPort under
7370       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
7371     - When warning about missing zlib development packages during compile,
7372       give the correct package names. Bugfix on 0.2.0.1-alpha.
7373     - Require that introduction point keys and onion keys have public
7374       exponent 65537. Bugfix on 0.2.0.10-alpha.
7375     - Do not crash when our configuration file becomes unreadable, for
7376       example due to a permissions change, between when we start up
7377       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
7378       on 0.0.9pre6.
7379     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
7380       Fixes bug 3208.
7381     - Always NUL-terminate the sun_path field of a sockaddr_un before
7382       passing it to the kernel. (Not a security issue: kernels are
7383       smart enough to reject bad sockaddr_uns.) Found by Coverity;
7384       CID #428. Bugfix on Tor 0.2.0.3-alpha.
7385     - Don't stack-allocate the list of supplementary GIDs when we're
7386       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
7387       could take up to 256K, which is way too much stack. Found by
7388       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
7390   o Minor bugfixes (only in 0.2.1.x):
7391     - Resume using micro-version numbers in 0.2.1.x: our Debian packages
7392       rely on them. Bugfix on 0.2.1.30.
7393     - Use git revisions instead of svn revisions when generating our
7394       micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402.
7396   o Minor features (also included in 0.2.2.x):
7397     - Adjust the expiration time on our SSL session certificates to
7398       better match SSL certs seen in the wild. Resolves ticket 4014.
7399     - Allow nameservers with IPv6 address. Resolves bug 2574.
7400     - Update to the October 4 2011 Maxmind GeoLite Country database.
7403 Changes in version 0.2.2.33 - 2011-09-13
7404   Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's
7405   TLS handshake that makes relays and bridges that run this new version
7406   reachable from Iran again.
7408   o Major bugfixes:
7409     - Avoid an assertion failure when reloading a configuration with
7410       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
7411       3923; bugfix on 0.2.2.25-alpha.
7413   o Minor features (security):
7414     - Check for replays of the public-key encrypted portion of an
7415       INTRODUCE1 cell, in addition to the current check for replays of
7416       the g^x value. This prevents a possible class of active attacks
7417       by an attacker who controls both an introduction point and a
7418       rendezvous point, and who uses the malleability of AES-CTR to
7419       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
7420       that these attacks are infeasible (requiring the attacker to send
7421       on the order of zettabytes of altered cells in a short interval),
7422       but we'd rather block them off in case there are any classes of
7423       this attack that we missed. Reported by Willem Pinckaers.
7425   o Minor features:
7426     - Adjust the expiration time on our SSL session certificates to
7427       better match SSL certs seen in the wild. Resolves ticket 4014.
7428     - Change the default required uptime for a relay to be accepted as
7429       a HSDir (hidden service directory) from 24 hours to 25 hours.
7430       Improves on 0.2.0.10-alpha; resolves ticket 2649.
7431     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
7432       authorities to abstain from voting on assignment of the HSDir
7433       consensus flag. Related to bug 2649.
7434     - Update to the September 6 2011 Maxmind GeoLite Country database.
7436   o Minor bugfixes (documentation and log messages):
7437     - Correct the man page to explain that HashedControlPassword and
7438       CookieAuthentication can both be set, in which case either method
7439       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
7440       when we decided to allow these config options to both be set. Issue
7441       raised by bug 3898.
7442     - Demote the 'replay detected' log message emitted when a hidden
7443       service receives the same Diffie-Hellman public key in two different
7444       INTRODUCE2 cells to info level. A normal Tor client can cause that
7445       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
7446       fixes part of bug 2442.
7447     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
7448       level. There is nothing that a hidden service's operator can do
7449       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
7450       of bug 2442.
7451     - Clarify a log message specifying the characters permitted in
7452       HiddenServiceAuthorizeClient client names. Previously, the log
7453       message said that "[A-Za-z0-9+-_]" were permitted; that could have
7454       given the impression that every ASCII character between "+" and "_"
7455       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
7457   o Build fixes:
7458     - Provide a substitute implementation of lround() for MSVC, which
7459       apparently lacks it. Patch from Gisle Vanem.
7460     - Clean up some code issues that prevented Tor from building on older
7461       BSDs. Fixes bug 3894; reported by "grarpamp".
7462     - Search for a platform-specific version of "ar" when cross-compiling.
7463       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
7466 Changes in version 0.2.2.32 - 2011-08-27
7467   The Tor 0.2.2 release series is dedicated to the memory of Andreas
7468   Pfitzmann (1958-2010), a pioneer in anonymity and privacy research,
7469   a founder of the PETS community, a leader in our field, a mentor,
7470   and a friend. He left us with these words: "I had the possibility
7471   to contribute to this world that is not as it should be. I hope I
7472   could help in some areas to make the world a better place, and that
7473   I could also encourage other people to be engaged in improving the
7474   world. Please, stay engaged. This world needs you, your love, your
7475   initiative -- now I cannot be part of that anymore."
7477   Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally
7478   ready. More than two years in the making, this release features improved
7479   client performance and hidden service reliability, better compatibility
7480   for Android, correct behavior for bridges that listen on more than
7481   one address, more extensible and flexible directory object handling,
7482   better reporting of network statistics, improved code security, and
7483   many many other features and bugfixes.
7485   o Major features (client performance):
7486     - When choosing which cells to relay first, relays now favor circuits
7487       that have been quiet recently, to provide lower latency for
7488       low-volume circuits. By default, relays enable or disable this
7489       feature based on a setting in the consensus. They can override
7490       this default by using the new "CircuitPriorityHalflife" config
7491       option. Design and code by Ian Goldberg, Can Tang, and Chris
7492       Alexander.
7493     - Directory authorities now compute consensus weightings that instruct
7494       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
7495       and no flag. Clients use these weightings to distribute network load
7496       more evenly across these different relay types. The weightings are
7497       in the consensus so we can change them globally in the future. Extra
7498       thanks to "outofwords" for finding some nasty security bugs in
7499       the first implementation of this feature.
7501   o Major features (client performance, circuit build timeout):
7502     - Tor now tracks how long it takes to build client-side circuits
7503       over time, and adapts its timeout to local network performance.
7504       Since a circuit that takes a long time to build will also provide
7505       bad performance, we get significant latency improvements by
7506       discarding the slowest 20% of circuits. Specifically, Tor creates
7507       circuits more aggressively than usual until it has enough data
7508       points for a good timeout estimate. Implements proposal 151.
7509     - Circuit build timeout constants can be controlled by consensus
7510       parameters. We set good defaults for these parameters based on
7511       experimentation on broadband and simulated high-latency links.
7512     - Circuit build time learning can be disabled via consensus parameter
7513       or by the client via a LearnCircuitBuildTimeout config option. We
7514       also automatically disable circuit build time calculation if either
7515       AuthoritativeDirectory is set, or if we fail to write our state
7516       file. Implements ticket 1296.
7518   o Major features (relays use their capacity better):
7519     - Set SO_REUSEADDR socket option on all sockets, not just
7520       listeners. This should help busy exit nodes avoid running out of
7521       useable ports just because all the ports have been used in the
7522       near past. Resolves issue 2850.
7523     - Relays now save observed peak bandwidth throughput rates to their
7524       state file (along with total usage, which was already saved),
7525       so that they can determine their correct estimated bandwidth on
7526       restart. Resolves bug 1863, where Tor relays would reset their
7527       estimated bandwidth to 0 after restarting.
7528     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
7529       should give us approximately 40-50% more Guard-flagged nodes,
7530       improving the anonymity the Tor network can provide and also
7531       decreasing the dropoff in throughput that relays experience when
7532       they first get the Guard flag.
7533     - Directory authorities now take changes in router IP address and
7534       ORPort into account when determining router stability. Previously,
7535       if a router changed its IP or ORPort, the authorities would not
7536       treat it as having any downtime for the purposes of stability
7537       calculation, whereas clients would experience downtime since the
7538       change would take a while to propagate to them. Resolves issue 1035.
7539     - New AccelName and AccelDir options add support for dynamic OpenSSL
7540       hardware crypto acceleration engines.
7542   o Major features (relays control their load better):
7543     - Exit relays now try harder to block exit attempts from unknown
7544       relays, to make it harder for people to use them as one-hop proxies
7545       a la tortunnel. Controlled by the refuseunknownexits consensus
7546       parameter (currently enabled), or you can override it on your
7547       relay with the RefuseUnknownExits torrc option. Resolves bug 1751;
7548       based on a variant of proposal 163.
7549     - Add separate per-conn write limiting to go with the per-conn read
7550       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
7551       but never per-conn write limits.
7552     - New consensus params "bwconnrate" and "bwconnburst" to let us
7553       rate-limit client connections as they enter the network. It's
7554       controlled in the consensus so we can turn it on and off for
7555       experiments. It's starting out off. Based on proposal 163.
7557   o Major features (controllers):
7558     - Export GeoIP information on bridge usage to controllers even if we
7559       have not yet been running for 24 hours. Now Vidalia bridge operators
7560       can get more accurate and immediate feedback about their
7561       contributions to the network.
7562     - Add an __OwningControllerProcess configuration option and a
7563       TAKEOWNERSHIP control-port command. Now a Tor controller can ensure
7564       that when it exits, Tor will shut down. Implements feature 3049.
7566   o Major features (directory authorities):
7567     - Directory authorities now create, vote on, and serve multiple
7568       parallel formats of directory data as part of their voting process.
7569       Partially implements Proposal 162: "Publish the consensus in
7570       multiple flavors".
7571     - Directory authorities now agree on and publish small summaries
7572       of router information that clients can use in place of regular
7573       server descriptors. This transition will allow Tor 0.2.3 clients
7574       to use far less bandwidth for downloading information about the
7575       network. Begins the implementation of Proposal 158: "Clients
7576       download consensus + microdescriptors".
7577     - The directory voting system is now extensible to use multiple hash
7578       algorithms for signatures and resource selection. Newer formats
7579       are signed with SHA256, with a possibility for moving to a better
7580       hash algorithm in the future.
7581     - Directory authorities can now vote on arbitary integer values as
7582       part of the consensus process. This is designed to help set
7583       network-wide parameters. Implements proposal 167.
7585   o Major features and bugfixes (node selection):
7586     - Revise and reconcile the meaning of the ExitNodes, EntryNodes,
7587       ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and Strict*Nodes
7588       options. Previously, we had been ambiguous in describing what
7589       counted as an "exit" node, and what operations exactly "StrictNodes
7590       0" would permit. This created confusion when people saw nodes built
7591       through unexpected circuits, and made it hard to tell real bugs from
7592       surprises. Now the intended behavior is:
7593         . "Exit", in the context of ExitNodes and ExcludeExitNodes, means
7594           a node that delivers user traffic outside the Tor network.
7595         . "Entry", in the context of EntryNodes, means a node used as the
7596           first hop of a multihop circuit. It doesn't include direct
7597           connections to directory servers.
7598         . "ExcludeNodes" applies to all nodes.
7599         . "StrictNodes" changes the behavior of ExcludeNodes only. When
7600           StrictNodes is set, Tor should avoid all nodes listed in
7601           ExcludeNodes, even when it will make user requests fail. When
7602           StrictNodes is *not* set, then Tor should follow ExcludeNodes
7603           whenever it can, except when it must use an excluded node to
7604           perform self-tests, connect to a hidden service, provide a
7605           hidden service, fulfill a .exit request, upload directory
7606           information, or fetch directory information.
7607       Collectively, the changes to implement the behavior fix bug 1090.
7608     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
7609       change during a config reload, mark and discard all our origin
7610       circuits. This fix should address edge cases where we change the
7611       config options and but then choose a circuit that we created before
7612       the change.
7613     - Make EntryNodes config option much more aggressive even when
7614       StrictNodes is not set. Before it would prepend your requested
7615       entrynodes to your list of guard nodes, but feel free to use others
7616       after that. Now it chooses only from your EntryNodes if any of
7617       those are available, and only falls back to others if a) they're
7618       all down and b) StrictNodes is not set.
7619     - Now we refresh your entry guards from EntryNodes at each consensus
7620       fetch -- rather than just at startup and then they slowly rot as
7621       the network changes.
7622     - Add support for the country code "{??}" in torrc options like
7623       ExcludeNodes, to indicate all routers of unknown country. Closes
7624       bug 1094.
7625     - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if
7626       a node is listed in both, it's treated as excluded.
7627     - ExcludeNodes now applies to directory nodes -- as a preference if
7628       StrictNodes is 0, or an absolute requirement if StrictNodes is 1.
7629       Don't exclude all the directory authorities and set StrictNodes to 1
7630       unless you really want your Tor to break.
7631     - ExcludeNodes and ExcludeExitNodes now override exit enclaving.
7632     - ExcludeExitNodes now overrides .exit requests.
7633     - We don't use bridges listed in ExcludeNodes.
7634     - When StrictNodes is 1:
7635        . We now apply ExcludeNodes to hidden service introduction points
7636          and to rendezvous points selected by hidden service users. This
7637          can make your hidden service less reliable: use it with caution!
7638        . If we have used ExcludeNodes on ourself, do not try relay
7639          reachability self-tests.
7640        . If we have excluded all the directory authorities, we will not
7641          even try to upload our descriptor if we're a relay.
7642        . Do not honor .exit requests to an excluded node.
7643     - When the set of permitted nodes changes, we now remove any mappings
7644       introduced via TrackExitHosts to now-excluded nodes. Bugfix on
7645       0.1.0.1-rc.
7646     - We never cannibalize a circuit that had excluded nodes on it, even
7647       if StrictNodes is 0. Bugfix on 0.1.0.1-rc.
7648     - Improve log messages related to excluded nodes.
7650   o Major features (misc):
7651     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
7652       to help Tor build correctly for Android phones.
7653     - The options SocksPort, ControlPort, and so on now all accept a
7654       value "auto" that opens a socket on an OS-selected port. A
7655       new ControlPortWriteToFile option tells Tor to write its
7656       actual control port or ports to a chosen file. If the option
7657       ControlPortFileGroupReadable is set, the file is created as
7658       group-readable. Now users can run two Tor clients on the same
7659       system without needing to manually mess with parameters. Resolves
7660       part of ticket 3076.
7661     - Tor now supports tunneling all of its outgoing connections over
7662       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
7663       configuration options. Code by Christopher Davis.
7665   o Code security improvements:
7666     - Replace all potentially sensitive memory comparison operations
7667       with versions whose runtime does not depend on the data being
7668       compared. This will help resist a class of attacks where an
7669       adversary can use variations in timing information to learn
7670       sensitive data. Fix for one case of bug 3122. (Safe memcmp
7671       implementation by Robert Ransom based partially on code by DJB.)
7672     - Enable Address Space Layout Randomization (ASLR) and Data Execution
7673       Prevention (DEP) by default on Windows to make it harder for
7674       attackers to exploit vulnerabilities. Patch from John Brooks.
7675     - New "--enable-gcc-hardening" ./configure flag (off by default)
7676       to turn on gcc compile time hardening options. It ensures
7677       that signed ints have defined behavior (-fwrapv), enables
7678       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
7679       with canaries (-fstack-protector-all), turns on ASLR protection if
7680       supported by the kernel (-fPIE, -pie), and adds additional security
7681       related warnings. Verified to work on Mac OS X and Debian Lenny.
7682     - New "--enable-linker-hardening" ./configure flag (off by default)
7683       to turn on ELF specific hardening features (relro, now). This does
7684       not work with Mac OS X or any other non-ELF binary format.
7685     - Always search the Windows system directory for system DLLs, and
7686       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
7687     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
7688       current and future memory pages via mlockall(). On supported
7689       platforms (modern Linux and probably BSD but not Windows or OS X),
7690       this should effectively disable any and all attempts to page out
7691       memory. This option requires that you start your Tor as root --
7692       if you use DisableAllSwap, please consider using the User option
7693       to properly reduce the privileges of your Tor.
7695   o Major bugfixes (crashes):
7696     - Fix crash bug on platforms where gmtime and localtime can return
7697       NULL. Windows 7 users were running into this one. Fixes part of bug
7698       2077. Bugfix on all versions of Tor. Found by boboper.
7699     - Introduce minimum/maximum values that clients will believe
7700       from the consensus. Now we'll have a better chance to avoid crashes
7701       or worse when a consensus param has a weird value.
7702     - Fix a rare crash bug that could occur when a client was configured
7703       with a large number of bridges. Fixes bug 2629; bugfix on
7704       0.2.1.2-alpha. Bugfix by trac user "shitlei".
7705     - Do not crash when our configuration file becomes unreadable, for
7706       example due to a permissions change, between when we start up
7707       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
7708       on 0.0.9pre6.
7709     - If we're in the pathological case where there's no exit bandwidth
7710       but there is non-exit bandwidth, or no guard bandwidth but there
7711       is non-guard bandwidth, don't crash during path selection. Bugfix
7712       on 0.2.0.3-alpha.
7713     - Fix a crash bug when trying to initialize the evdns module in
7714       Libevent 2. Bugfix on 0.2.1.16-rc.
7716   o Major bugfixes (stability):
7717     - Fix an assert in parsing router descriptors containing IPv6
7718       addresses. This one took down the directory authorities when
7719       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
7720     - Fix an uncommon assertion failure when running with DNSPort under
7721       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
7722     - Treat an unset $HOME like an empty $HOME rather than triggering an
7723       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
7724     - More gracefully handle corrupt state files, removing asserts
7725       in favor of saving a backup and resetting state.
7726     - Instead of giving an assertion failure on an internal mismatch
7727       on estimated freelist size, just log a BUG warning and try later.
7728       Mitigates but does not fix bug 1125.
7729     - Fix an assert that got triggered when using the TestingTorNetwork
7730       configuration option and then issuing a GETINFO config-text control
7731       command. Fixes bug 2250; bugfix on 0.2.1.2-alpha.
7732     - If the cached cert file is unparseable, warn but don't exit.
7734   o Privacy fixes (relays/bridges):
7735     - Don't list Windows capabilities in relay descriptors. We never made
7736       use of them, and maybe it's a bad idea to publish them. Bugfix
7737       on 0.1.1.8-alpha.
7738     - If the Nickname configuration option isn't given, Tor would pick a
7739       nickname based on the local hostname as the nickname for a relay.
7740       Because nicknames are not very important in today's Tor and the
7741       "Unnamed" nickname has been implemented, this is now problematic
7742       behavior: It leaks information about the hostname without being
7743       useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which
7744       introduced the Unnamed nickname. Reported by tagnaq.
7745     - Maintain separate TLS contexts and certificates for incoming and
7746       outgoing connections in bridge relays. Previously we would use the
7747       same TLS contexts and certs for incoming and outgoing connections.
7748       Bugfix on 0.2.0.3-alpha; addresses bug 988.
7749     - Maintain separate identity keys for incoming and outgoing TLS
7750       contexts in bridge relays. Previously we would use the same
7751       identity keys for incoming and outgoing TLS contexts. Bugfix on
7752       0.2.0.3-alpha; addresses the other half of bug 988.
7753     - Make the bridge directory authority refuse to answer directory
7754       requests for "all descriptors". It used to include bridge
7755       descriptors in its answer, which was a major information leak.
7756       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
7758   o Privacy fixes (clients):
7759     - When receiving a hidden service descriptor, check that it is for
7760       the hidden service we wanted. Previously, Tor would store any
7761       hidden service descriptors that a directory gave it, whether it
7762       wanted them or not. This wouldn't have let an attacker impersonate
7763       a hidden service, but it did let directories pre-seed a client
7764       with descriptors that it didn't want. Bugfix on 0.0.6.
7765     - Start the process of disabling ".exit" address notation, since it
7766       can be used for a variety of esoteric application-level attacks
7767       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
7768       on 0.0.9rc5.
7769     - Reject attempts at the client side to open connections to private
7770       IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with
7771       a randomly chosen exit node. Attempts to do so are always
7772       ill-defined, generally prevented by exit policies, and usually
7773       in error. This will also help to detect loops in transparent
7774       proxy configurations. You can disable this feature by setting
7775       "ClientRejectInternalAddresses 0" in your torrc.
7776     - Log a notice when we get a new control connection. Now it's easier
7777       for security-conscious users to recognize when a local application
7778       is knocking on their controller door. Suggested by bug 1196.
7780   o Privacy fixes (newnym):
7781     - Avoid linkability based on cached hidden service descriptors: forget
7782       all hidden service descriptors cached as a client when processing a
7783       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
7784     - On SIGHUP, do not clear out all TrackHostExits mappings, client
7785       DNS cache entries, and virtual address mappings: that's what
7786       NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc.
7787     - Don't attach new streams to old rendezvous circuits after SIGNAL
7788       NEWNYM. Previously, we would keep using an existing rendezvous
7789       circuit if it remained open (i.e. if it were kept open by a
7790       long-lived stream, or if a new stream were attached to it before
7791       Tor could notice that it was old and no longer in use). Bugfix on
7792       0.1.1.15-rc; fixes bug 3375.
7794   o Major bugfixes (relay bandwidth accounting):
7795     - Fix a bug that could break accounting on 64-bit systems with large
7796       time_t values, making them hibernate for impossibly long intervals.
7797       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
7798     - Fix a bug in bandwidth accounting that could make us use twice
7799       the intended bandwidth when our interval start changes due to
7800       daylight saving time. Now we tolerate skew in stored vs computed
7801       interval starts: if the start of the period changes by no more than
7802       50% of the period's duration, we remember bytes that we transferred
7803       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
7805   o Major bugfixes (bridges):
7806     - Bridges now use "reject *:*" as their default exit policy. Bugfix
7807       on 0.2.0.3-alpha. Fixes bug 1113.
7808     - If you configure your bridge with a known identity fingerprint,
7809       and the bridge authority is unreachable (as it is in at least
7810       one country now), fall back to directly requesting the descriptor
7811       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
7812       closes bug 1138.
7813     - Fix a bug where bridge users who configure the non-canonical
7814       address of a bridge automatically switch to its canonical
7815       address. If a bridge listens at more than one address, it
7816       should be able to advertise those addresses independently and
7817       any non-blocked addresses should continue to work. Bugfix on Tor
7818       0.2.0.3-alpha. Fixes bug 2510.
7819     - If you configure Tor to use bridge A, and then quit and
7820       configure Tor to use bridge B instead (or if you change Tor
7821       to use bridge B via the controller), it would happily continue
7822       to use bridge A if it's still reachable. While this behavior is
7823       a feature if your goal is connectivity, in some scenarios it's a
7824       dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511.
7825     - When the controller configures a new bridge, don't wait 10 to 60
7826       seconds before trying to fetch its descriptor. Bugfix on
7827       0.2.0.3-alpha; fixes bug 3198 (suggested by 2355).
7829   o Major bugfixes (directory authorities):
7830     - Many relays have been falling out of the consensus lately because
7831       not enough authorities know about their descriptor for them to get
7832       a majority of votes. When we deprecated the v2 directory protocol,
7833       we got rid of the only way that v3 authorities can hear from each
7834       other about other descriptors. Now authorities examine every v3
7835       vote for new descriptors, and fetch them from that authority. Bugfix
7836       on 0.2.1.23.
7837     - Authorities could be tricked into giving out the Exit flag to relays
7838       that didn't allow exiting to any ports. This bug could screw
7839       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
7840       1238. Bug discovered by Martin Kowalczyk.
7841     - If all authorities restart at once right before a consensus vote,
7842       nobody will vote about "Running", and clients will get a consensus
7843       with no usable relays. Instead, authorities refuse to build a
7844       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
7846   o Major bugfixes (stream-level fairness):
7847     - When receiving a circuit-level SENDME for a blocked circuit, try
7848       to package cells fairly from all the streams that had previously
7849       been blocked on that circuit. Previously, we had started with the
7850       oldest stream, and allowed each stream to potentially exhaust
7851       the circuit's package window. This gave older streams on any
7852       given circuit priority over newer ones. Fixes bug 1937. Detected
7853       originally by Camilo Viecco. This bug was introduced before the
7854       first Tor release, in svn commit r152: it is the new winner of
7855       the longest-lived bug prize.
7856     - Fix a stream fairness bug that would cause newer streams on a given
7857       circuit to get preference when reading bytes from the origin or
7858       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
7859       introduced before the first Tor release, in svn revision r152.
7860     - When the exit relay got a circuit-level sendme cell, it started
7861       reading on the exit streams, even if had 500 cells queued in the
7862       circuit queue already, so the circuit queue just grew and grew in
7863       some cases. We fix this by not re-enabling reading on receipt of a
7864       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
7865       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
7866       "yetonetime".
7867     - Newly created streams were allowed to read cells onto circuits,
7868       even if the circuit's cell queue was blocked and waiting to drain.
7869       This created potential unfairness, as older streams would be
7870       blocked, but newer streams would gladly fill the queue completely.
7871       We add code to detect this situation and prevent any stream from
7872       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
7873       fixes bug 1298.
7875   o Major bugfixes (hidden services):
7876     - Apply circuit timeouts to opened hidden-service-related circuits
7877       based on the correct start time. Previously, we would apply the
7878       circuit build timeout based on time since the circuit's creation;
7879       it was supposed to be applied based on time since the circuit
7880       entered its current state. Bugfix on 0.0.6; fixes part of bug 1297.
7881     - Improve hidden service robustness: When we find that we have
7882       extended a hidden service's introduction circuit to a relay not
7883       listed as an introduction point in the HS descriptor we currently
7884       have, retry with an introduction point from the current
7885       descriptor. Previously we would just give up. Fixes bugs 1024 and
7886       1930; bugfix on 0.2.0.10-alpha.
7887     - Directory authorities now use data collected from their own
7888       uptime observations when choosing whether to assign the HSDir flag
7889       to relays, instead of trusting the uptime value the relay reports in
7890       its descriptor. This change helps prevent an attack where a small
7891       set of nodes with frequently-changing identity keys can blackhole
7892       a hidden service. (Only authorities need upgrade; others will be
7893       fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709.
7894     - Stop assigning the HSDir flag to relays that disable their
7895       DirPort (and thus will refuse to answer directory requests). This
7896       fix should dramatically improve the reachability of hidden services:
7897       hidden services and hidden service clients pick six HSDir relays
7898       to store and retrieve the hidden service descriptor, and currently
7899       about half of the HSDir relays will refuse to work. Bugfix on
7900       0.2.0.10-alpha; fixes part of bug 1693.
7902   o Major bugfixes (misc):
7903     - Clients now stop trying to use an exit node associated with a given
7904       destination by TrackHostExits if they fail to reach that exit node.
7905       Fixes bug 2999. Bugfix on 0.2.0.20-rc.
7906     - Fix a regression that caused Tor to rebind its ports if it receives
7907       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
7908     - Remove an extra pair of quotation marks around the error
7909       message in control-port STATUS_GENERAL BUG events. Bugfix on
7910       0.1.2.6-alpha; fixes bug 3732.
7912   o Minor features (relays):
7913     - Ensure that no empty [dirreq-](read|write)-history lines are added
7914       to an extrainfo document. Implements ticket 2497.
7915     - When bandwidth accounting is enabled, be more generous with how
7916       much bandwidth we'll use up before entering "soft hibernation".
7917       Previously, we'd refuse new connections and circuits once we'd
7918       used up 95% of our allotment. Now, we use up 95% of our allotment,
7919       AND make sure that we have no more than 500MB (or 3 hours of
7920       expected traffic, whichever is lower) remaining before we enter
7921       soft hibernation.
7922     - Relays now log the reason for publishing a new relay descriptor,
7923       so we have a better chance of hunting down instances of bug 1810.
7924       Resolves ticket 3252.
7925     - Log a little more clearly about the times at which we're no longer
7926       accepting new connections (e.g. due to hibernating). Resolves
7927       bug 2181.
7928     - When AllowSingleHopExits is set, print a warning to explain to the
7929       relay operator why most clients are avoiding her relay.
7930     - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
7931       Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such
7932       clients are already deprecated because of security bugs.
7934   o Minor features (network statistics):
7935     - Directory mirrors that set "DirReqStatistics 1" write statistics
7936       about directory requests to disk every 24 hours. As compared to the
7937       "--enable-geoip-stats" ./configure flag in 0.2.1.x, there are a few
7938       improvements: 1) stats are written to disk exactly every 24 hours;
7939       2) estimated shares of v2 and v3 requests are determined as mean
7940       values, not at the end of a measurement period; 3) unresolved
7941       requests are listed with country code '??'; 4) directories also
7942       measure download times.
7943     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
7944       number of exit streams and transferred bytes per port to disk every
7945       24 hours.
7946     - Relays that set "CellStatistics 1" write statistics on how long
7947       cells spend in their circuit queues to disk every 24 hours.
7948     - Entry nodes that set "EntryStatistics 1" write statistics on the
7949       rough number and origins of connecting clients to disk every 24
7950       hours.
7951     - Relays that write any of the above statistics to disk and set
7952       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
7953       their extra-info documents. Implements proposal 166.
7955   o Minor features (GeoIP and statistics):
7956     - Provide a log message stating which geoip file we're parsing
7957       instead of just stating that we're parsing the geoip file.
7958       Implements ticket 2432.
7959     - Make sure every relay writes a state file at least every 12 hours.
7960       Previously, a relay could go for weeks without writing its state
7961       file, and on a crash could lose its bandwidth history, capacity
7962       estimates, client country statistics, and so on. Addresses bug 3012.
7963     - Relays report the number of bytes spent on answering directory
7964       requests in extra-info descriptors similar to {read,write}-history.
7965       Implements enhancement 1790.
7966     - Report only the top 10 ports in exit-port stats in order not to
7967       exceed the maximum extra-info descriptor length of 50 KB. Implements
7968       task 2196.
7969     - If writing the state file to disk fails, wait up to an hour before
7970       retrying again, rather than trying again each second. Fixes bug
7971       2346; bugfix on Tor 0.1.1.3-alpha.
7972     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
7973       when we switch from being a public relay to a bridge. Otherwise
7974       there will still be clients that see the relay in their consensus,
7975       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes
7976       bug 932.
7977     - Update to the August 2 2011 Maxmind GeoLite Country database.
7979   o Minor features (clients):
7980     - When expiring circuits, use microsecond timers rather than
7981       one-second timers. This can avoid an unpleasant situation where a
7982       circuit is launched near the end of one second and expired right
7983       near the beginning of the next, and prevent fluctuations in circuit
7984       timeout values.
7985     - If we've configured EntryNodes and our network goes away and/or all
7986       our entrynodes get marked down, optimistically retry them all when
7987       a new socks application request appears. Fixes bug 1882.
7988     - Always perform router selections using weighted relay bandwidth,
7989       even if we don't need a high capacity circuit at the time. Non-fast
7990       circuits now only differ from fast ones in that they can use relays
7991       not marked with the Fast flag. This "feature" could turn out to
7992       be a horrible bug; we should investigate more before it goes into
7993       a stable release.
7994     - When we run out of directory information such that we can't build
7995       circuits, but then get enough that we can build circuits, log when
7996       we actually construct a circuit, so the user has a better chance of
7997       knowing what's going on. Fixes bug 1362.
7998     - Log SSL state transitions at debug level during handshake, and
7999       include SSL states in error messages. This may help debug future
8000       SSL handshake issues.
8002   o Minor features (directory authorities):
8003     - When a router changes IP address or port, authorities now launch
8004       a new reachability test for it. Implements ticket 1899.
8005     - Directory authorities now reject relays running any versions of
8006       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
8007       known bugs that keep RELAY_EARLY cells from working on rendezvous
8008       circuits. Followup to fix for bug 2081.
8009     - Directory authorities now reject relays running any version of Tor
8010       older than 0.2.0.26-rc. That version is the earliest that fetches
8011       current directory information correctly. Fixes bug 2156.
8012     - Directory authorities now do an immediate reachability check as soon
8013       as they hear about a new relay. This change should slightly reduce
8014       the time between setting up a relay and getting listed as running
8015       in the consensus. It should also improve the time between setting
8016       up a bridge and seeing use by bridge users.
8017     - Directory authorities no longer launch a TLS connection to every
8018       relay as they startup. Now that we have 2k+ descriptors cached,
8019       the resulting network hiccup is becoming a burden. Besides,
8020       authorities already avoid voting about Running for the first half
8021       hour of their uptime.
8022     - Directory authorities now log the source of a rejected POSTed v3
8023       networkstatus vote, so we can track failures better.
8024     - Backport code from 0.2.3.x that allows directory authorities to
8025       clean their microdescriptor caches. Needed to resolve bug 2230.
8027   o Minor features (hidden services):
8028     - Use computed circuit-build timeouts to decide when to launch
8029       parallel introduction circuits for hidden services. (Previously,
8030       we would retry after 15 seconds.)
8031     - Don't allow v0 hidden service authorities to act as clients.
8032       Required by fix for bug 3000.
8033     - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required
8034       by fix for bug 3000.
8035     - Make hidden services work better in private Tor networks by not
8036       requiring any uptime to join the hidden service descriptor
8037       DHT. Implements ticket 2088.
8038     - Log (at info level) when purging pieces of hidden-service-client
8039       state because of SIGNAL NEWNYM.
8041   o Minor features (controller interface):
8042     - New "GETINFO net/listeners/(type)" controller command to return
8043       a list of addresses and ports that are bound for listeners for a
8044       given connection type. This is useful when the user has configured
8045       "SocksPort auto" and the controller needs to know which port got
8046       chosen. Resolves another part of ticket 3076.
8047     - Have the controller interface give a more useful message than
8048       "Internal Error" in response to failed GETINFO requests.
8049     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
8050       event, to give information on the current rate of circuit timeouts
8051       over our stored history.
8052     - The 'EXTENDCIRCUIT' control port command can now be used with
8053       a circ id of 0 and no path. This feature will cause Tor to build
8054       a new 'fast' general purpose circuit using its own path selection
8055       algorithms.
8056     - Added a BUILDTIMEOUT_SET controller event to describe changes
8057       to the circuit build timeout.
8058     - New controller command "getinfo config-text". It returns the
8059       contents that Tor would write if you send it a SAVECONF command,
8060       so the controller can write the file to disk itself.
8062   o Minor features (controller protocol):
8063     - Add a new ControlSocketsGroupWritable configuration option: when
8064       it is turned on, ControlSockets are group-writeable by the default
8065       group of the current user. Patch by Jérémy Bobbio; implements
8066       ticket 2972.
8067     - Tor now refuses to create a ControlSocket in a directory that is
8068       world-readable (or group-readable if ControlSocketsGroupWritable
8069       is 0). This is necessary because some operating systems do not
8070       enforce permissions on an AF_UNIX sockets. Permissions on the
8071       directory holding the socket, however, seems to work everywhere.
8072     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
8073       not. This would lead to a cookie that is still not group readable.
8074       Closes bug 1843. Suggested by katmagic.
8075     - Future-proof the controller protocol a bit by ignoring keyword
8076       arguments we do not recognize.
8078   o Minor features (more useful logging):
8079     - Revise most log messages that refer to nodes by nickname to
8080       instead use the "$key=nickname at address" format. This should be
8081       more useful, especially since nicknames are less and less likely
8082       to be unique. Resolves ticket 3045.
8083     - When an HTTPS proxy reports "403 Forbidden", we now explain
8084       what it means rather than calling it an unexpected status code.
8085       Closes bug 2503. Patch from Michael Yakubovich.
8086     - Rate-limit a warning about failures to download v2 networkstatus
8087       documents. Resolves part of bug 1352.
8088     - Rate-limit the "your application is giving Tor only an IP address"
8089       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
8090     - Rate-limit "Failed to hand off onionskin" warnings.
8091     - When logging a rate-limited warning, we now mention how many messages
8092       got suppressed since the last warning.
8093     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
8094       2 no signature, 4 required" messages about consensus signatures
8095       easier to read, and make sure they get logged at the same severity
8096       as the messages explaining which keys are which. Fixes bug 1290.
8097     - Don't warn when we have a consensus that we can't verify because
8098       of missing certificates, unless those certificates are ones
8099       that we have been trying and failing to download. Fixes bug 1145.
8101   o Minor features (log domains):
8102     - Add documentation for configuring logging at different severities in
8103       different log domains. We've had this feature since 0.2.1.1-alpha,
8104       but for some reason it never made it into the manpage. Fixes
8105       bug 2215.
8106     - Make it simpler to specify "All log domains except for A and B".
8107       Previously you needed to say "[*,~A,~B]". Now you can just say
8108       "[~A,~B]".
8109     - Add a "LogMessageDomains 1" option to include the domains of log
8110       messages along with the messages. Without this, there's no way
8111       to use log domains without reading the source or doing a lot
8112       of guessing.
8113     - Add a new "Handshake" log domain for activities that happen
8114       during the TLS handshake.
8116   o Minor features (build process):
8117     - Make compilation with clang possible when using
8118       "--enable-gcc-warnings" by removing two warning options that clang
8119       hasn't implemented yet and by fixing a few warnings. Resolves
8120       ticket 2696.
8121     - Detect platforms that brokenly use a signed size_t, and refuse to
8122       build there. Found and analyzed by doorss and rransom.
8123     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
8124       Resolves bug 2314.
8125     - Add support for statically linking zlib by specifying
8126       "--enable-static-zlib", to go with our support for statically
8127       linking openssl and libevent. Resolves bug 1358.
8128     - Instead of adding the svn revision to the Tor version string, report
8129       the git commit (when we're building from a git checkout).
8130     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
8131       system headers.
8132     - New --digests command-line switch to output the digests of the
8133       source files Tor was built with.
8134     - Generate our manpage and HTML documentation using Asciidoc. This
8135       change should make it easier to maintain the documentation, and
8136       produce nicer HTML. The build process fails if asciidoc cannot
8137       be found and building with asciidoc isn't disabled (via the
8138       "--disable-asciidoc" argument to ./configure. Skipping the manpage
8139       speeds up the build considerably.
8141   o Minor features (options / torrc):
8142     - Warn when the same option is provided more than once in a torrc
8143       file, on the command line, or in a single SETCONF statement, and
8144       the option is one that only accepts a single line. Closes bug 1384.
8145     - Warn when the user configures two HiddenServiceDir lines that point
8146       to the same directory. Bugfix on 0.0.6 (the version introducing
8147       HiddenServiceDir); fixes bug 3289.
8148     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
8149       do individual connection-level rate limiting of clients. The torrc
8150       config options with the same names trump the consensus params, if
8151       both are present. Replaces the old "bwconnrate" and "bwconnburst"
8152       consensus params which were broken from 0.2.2.7-alpha through
8153       0.2.2.14-alpha. Closes bug 1947.
8154     - New config option "WarnUnsafeSocks 0" disables the warning that
8155       occurs whenever Tor receives a socks handshake using a version of
8156       the socks protocol that can only provide an IP address (rather
8157       than a hostname). Setups that do DNS locally over Tor are fine,
8158       and we shouldn't spam the logs in that case.
8159     - New config option "CircuitStreamTimeout" to override our internal
8160       timeout schedule for how many seconds until we detach a stream from
8161       a circuit and try a new circuit. If your network is particularly
8162       slow, you might want to set this to a number like 60.
8163     - New options for SafeLogging to allow scrubbing only log messages
8164       generated while acting as a relay. Specify "SafeLogging relay" if
8165       you want to ensure that only messages known to originate from
8166       client use of the Tor process will be logged unsafely.
8167     - Time and memory units in the configuration file can now be set to
8168       fractional units. For example, "2.5 GB" is now a valid value for
8169       AccountingMax.
8170     - Support line continuations in the torrc config file. If a line
8171       ends with a single backslash character, the newline is ignored, and
8172       the configuration value is treated as continuing on the next line.
8173       Resolves bug 1929.
8175   o Minor features (unit tests):
8176     - Revise our unit tests to use the "tinytest" framework, so we
8177       can run tests in their own processes, have smarter setup/teardown
8178       code, and so on. The unit test code has moved to its own
8179       subdirectory, and has been split into multiple modules.
8180     - Add a unit test for cross-platform directory-listing code.
8181     - Add some forgotten return value checks during unit tests. Found
8182       by coverity.
8183     - Use GetTempDir to find the proper temporary directory location on
8184       Windows when generating temporary files for the unit tests. Patch
8185       by Gisle Vanem.
8187   o Minor features (misc):
8188     - The "torify" script now uses torsocks where available.
8189     - Make Libevent log messages get delivered to controllers later,
8190       and not from inside the Libevent log handler. This prevents unsafe
8191       reentrant Libevent calls while still letting the log messages
8192       get through.
8193     - Certain Tor clients (such as those behind check.torproject.org) may
8194       want to fetch the consensus in an extra early manner. To enable this
8195       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
8196       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
8197       as only certain clients who must have this information sooner should
8198       set this option.
8199     - Expand homedirs passed to tor-checkkey. This should silence a
8200       coverity complaint about passing a user-supplied string into
8201       open() without checking it.
8202     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
8203       used on bridges, and it makes bridge scanning somewhat easier.
8204     - Create the /var/run/tor directory on startup on OpenSUSE if it is
8205       not already created. Patch from Andreas Stieger. Fixes bug 2573.
8207   o Minor bugfixes (relays):
8208     - When a relay decides that its DNS is too broken for it to serve
8209       as an exit server, it advertised itself as a non-exit, but
8210       continued to act as an exit. This could create accidental
8211       partitioning opportunities for users. Instead, if a relay is
8212       going to advertise reject *:* as its exit policy, it should
8213       really act with exit policy "reject *:*". Fixes bug 2366.
8214       Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac.
8215     - Publish a router descriptor even if generating an extra-info
8216       descriptor fails. Previously we would not publish a router
8217       descriptor without an extra-info descriptor; this can cause fast
8218       exit relays collecting exit-port statistics to drop from the
8219       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
8220     - When we're trying to guess whether we know our IP address as
8221       a relay, we would log various ways that we failed to guess
8222       our address, but never log that we ended up guessing it
8223       successfully. Now add a log line to help confused and anxious
8224       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
8225     - For bandwidth accounting, calculate our expected bandwidth rate
8226       based on the time during which we were active and not in
8227       soft-hibernation during the last interval. Previously, we were
8228       also considering the time spent in soft-hibernation. If this
8229       was a long time, we would wind up underestimating our bandwidth
8230       by a lot, and skewing our wakeup time towards the start of the
8231       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
8232     - Demote a confusing TLS warning that relay operators might get when
8233       someone tries to talk to their ORPort. It is not the operator's
8234       fault, nor can they do anything about it. Fixes bug 1364; bugfix
8235       on 0.2.0.14-alpha.
8236     - Change "Application request when we're believed to be offline."
8237       notice to "Application request when we haven't used client
8238       functionality lately.", to clarify that it's not an error. Bugfix
8239       on 0.0.9.3; fixes bug 1222.
8241   o Minor bugfixes (bridges):
8242     - When a client starts or stops using bridges, never use a circuit
8243       that was built before the configuration change. This behavior could
8244       put at risk a user who uses bridges to ensure that her traffic
8245       only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes
8246       bug 3200.
8247     - Do not reset the bridge descriptor download status every time we
8248       re-parse our configuration or get a configuration change. Fixes
8249       bug 3019; bugfix on 0.2.0.3-alpha.
8250     - Users couldn't configure a regular relay to be their bridge. It
8251       didn't work because when Tor fetched the bridge descriptor, it found
8252       that it already had it, and didn't realize that the purpose of the
8253       descriptor had changed. Now we replace routers with a purpose other
8254       than bridge with bridge descriptors when fetching them. Bugfix on
8255       0.1.1.9-alpha. Fixes bug 1776.
8256     - In the special case where you configure a public exit relay as your
8257       bridge, Tor would be willing to use that exit relay as the last
8258       hop in your circuit as well. Now we fail that circuit instead.
8259       Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer".
8261   o Minor bugfixes (clients):
8262     - We now ask the other side of a stream (the client or the exit)
8263       for more data on that stream when the amount of queued data on
8264       that stream dips low enough. Previously, we wouldn't ask the
8265       other side for more data until either it sent us more data (which
8266       it wasn't supposed to do if it had exhausted its window!) or we
8267       had completely flushed all our queued data. This flow control fix
8268       should improve throughput. Fixes bug 2756; bugfix on the earliest
8269       released versions of Tor (svn commit r152).
8270     - When a client finds that an origin circuit has run out of 16-bit
8271       stream IDs, we now mark it as unusable for new streams. Previously,
8272       we would try to close the entire circuit. Bugfix on 0.0.6.
8273     - Make it explicit that we don't cannibalize one-hop circuits. This
8274       happens in the wild, but doesn't turn out to be a problem because
8275       we fortunately don't use those circuits. Many thanks to outofwords
8276       for the initial analysis and to swissknife who confirmed that
8277       two-hop circuits are actually created.
8278     - Resolve an edge case in path weighting that could make us misweight
8279       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
8280     - Make the DNSPort option work with libevent 2.x. Don't alter the
8281       behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
8283   o Minor bugfixes (directory authorities):
8284     - Make directory authorities more accurate at recording when
8285       relays that have failed several reachability tests became
8286       unreachable, so we can provide more accuracy at assigning Stable,
8287       Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716.
8288     - Directory authorities are now more robust to hops back in time
8289       when calculating router stability. Previously, if a run of uptime
8290       or downtime appeared to be negative, the calculation could give
8291       incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing
8292       bug 1035.
8293     - Directory authorities will now attempt to download consensuses
8294       if their own efforts to make a live consensus have failed. This
8295       change means authorities that restart will fetch a valid
8296       consensus, and it means authorities that didn't agree with the
8297       current consensus will still fetch and serve it if it has enough
8298       signatures. Bugfix on 0.2.0.9-alpha; fixes bug 1300.
8299     - Never vote for a server as "Running" if we have a descriptor for
8300       it claiming to be hibernating, and that descriptor was published
8301       more recently than our last contact with the server. Bugfix on
8302       0.2.0.3-alpha; fixes bug 911.
8303     - Directory authorities no longer change their opinion of, or vote on,
8304       whether a router is Running, unless they have themselves been
8305       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
8306       Fixes bug 1023.
8308   o Minor bugfixes (hidden services):
8309     - Log malformed requests for rendezvous descriptors as protocol
8310       warnings, not warnings. Also, use a more informative log message
8311       in case someone sees it at log level warning without prior
8312       info-level messages. Fixes bug 2748; bugfix on 0.2.0.10-alpha.
8313     - Accept hidden service descriptors if we think we might be a hidden
8314       service directory, regardless of what our consensus says. This
8315       helps robustness, since clients and hidden services can sometimes
8316       have a more up-to-date view of the network consensus than we do,
8317       and if they think that the directory authorities list us a HSDir,
8318       we might actually be one. Related to bug 2732; bugfix on
8319       0.2.0.10-alpha.
8320     - Correct the warning displayed when a rendezvous descriptor exceeds
8321       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
8322       John Brooks.
8323     - Clients and hidden services now use HSDir-flagged relays for hidden
8324       service descriptor downloads and uploads even if the relays have no
8325       DirPort set and the client has disabled TunnelDirConns. This will
8326       eventually allow us to give the HSDir flag to relays with no
8327       DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha.
8328     - Only limit the lengths of single HS descriptors, even when multiple
8329       HS descriptors are published to an HSDir relay in a single POST
8330       operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir.
8332   o Minor bugfixes (controllers):
8333     - Allow GETINFO fingerprint to return a fingerprint even when
8334       we have not yet built a router descriptor. Fixes bug 3577;
8335       bugfix on 0.2.0.1-alpha.
8336     - Send a SUCCEEDED stream event to the controller when a reverse
8337       resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
8338       discovered by katmagic.
8339     - Remove a trailing asterisk from "exit-policy/default" in the
8340       output of the control port command "GETINFO info/names". Bugfix
8341       on 0.1.2.5-alpha.
8342     - Make the SIGNAL DUMP controller command work on FreeBSD. Fixes bug
8343       2917. Bugfix on 0.1.1.1-alpha.
8344     - When we restart our relay, we might get a successful connection
8345       from the outside before we've started our reachability tests,
8346       triggering a warning: "ORPort found reachable, but I have no
8347       routerinfo yet. Failing to inform controller of success." This
8348       bug was harmless unless Tor is running under a controller
8349       like Vidalia, in which case the controller would never get a
8350       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
8351       fixes bug 1172.
8352     - When a controller changes TrackHostExits, remove mappings for
8353       hosts that should no longer have their exits tracked. Bugfix on
8354       0.1.0.1-rc.
8355     - When a controller changes VirtualAddrNetwork, remove any mappings
8356       for hosts that were automapped to the old network. Bugfix on
8357       0.1.1.19-rc.
8358     - When a controller changes one of the AutomapHosts* options, remove
8359       any mappings for hosts that should no longer be automapped. Bugfix
8360       on 0.2.0.1-alpha.
8361     - Fix an off-by-one error in calculating some controller command
8362       argument lengths. Fortunately, this mistake is harmless since
8363       the controller code does redundant NUL termination too. Found by
8364       boboper. Bugfix on 0.1.1.1-alpha.
8365     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
8366       would return "551 Internal error" rather than "552 Unrecognized key
8367       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
8368     - Don't spam the controller with events when we have no file
8369       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
8370       for log messages was already solved from bug 748.)
8371     - Emit a GUARD DROPPED controller event for a case we missed.
8372     - Ensure DNS requests launched by "RESOLVE" commands from the
8373       controller respect the __LeaveStreamsUnattached setconf options. The
8374       same goes for requests launched via DNSPort or transparent
8375       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
8377   o Minor bugfixes (config options):
8378     - Tor used to limit HttpProxyAuthenticator values to 48 characters.
8379       Change the limit to 512 characters by removing base64 newlines.
8380       Fixes bug 2752. Fix by Michael Yakubovich.
8381     - Complain if PublishServerDescriptor is given multiple arguments that
8382       include 0 or 1. This configuration will be rejected in the future.
8383       Bugfix on 0.2.0.1-alpha; closes bug 1107.
8384     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
8385       Bugfix on 0.2.0.13-alpha; closes bug 928.
8387   o Minor bugfixes (log subsystem fixes):
8388     - When unable to format an address as a string, report its value
8389       as "???" rather than reusing the last formatted address. Bugfix
8390       on 0.2.1.5-alpha.
8391     - Be more consistent in our treatment of file system paths. "~" should
8392       get expanded to the user's home directory in the Log config option.
8393       Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the
8394       feature for the -f and --DataDirectory options.
8396   o Minor bugfixes (memory management):
8397     - Don't stack-allocate the list of supplementary GIDs when we're
8398       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
8399       could take up to 256K, which is way too much stack. Found by
8400       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
8401     - Save a couple bytes in memory allocation every time we escape
8402       certain characters in a string. Patch from Florian Zumbiehl.
8404   o Minor bugfixes (protocol correctness):
8405     - When checking for 1024-bit keys, check for 1024 bits, not 128
8406       bytes. This allows Tor to correctly discard keys of length 1017
8407       through 1023. Bugfix on 0.0.9pre5.
8408     - Require that introduction point keys and onion handshake keys
8409       have a public exponent of 65537. Starts to fix bug 3207; bugfix
8410       on 0.2.0.10-alpha.
8411     - Handle SOCKS messages longer than 128 bytes long correctly, rather
8412       than waiting forever for them to finish. Fixes bug 2330; bugfix
8413       on 0.2.0.16-alpha. Found by doorss.
8414     - Never relay a cell for a circuit we have already destroyed.
8415       Between marking a circuit as closeable and finally closing it,
8416       it may have been possible for a few queued cells to get relayed,
8417       even though they would have been immediately dropped by the next
8418       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
8419     - Never queue a cell for a circuit that's already been marked
8420       for close.
8421     - Fix a spec conformance issue: the network-status-version token
8422       must be the first token in a v3 consensus or vote. Discovered by
8423       "parakeep". Bugfix on 0.2.0.3-alpha.
8424     - A networkstatus vote must contain exactly one signature. Spec
8425       conformance issue. Bugfix on 0.2.0.3-alpha.
8426     - When asked about a DNS record type we don't support via a
8427       client DNSPort, reply with NOTIMPL rather than an empty
8428       reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.
8429     - Make more fields in the controller protocol case-insensitive, since
8430       control-spec.txt said they were.
8432   o Minor bugfixes (log messages):
8433     - Fix a log message that said "bits" while displaying a value in
8434       bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on
8435       0.2.0.1-alpha.
8436     - Downgrade "no current certificates known for authority" message from
8437       Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha.
8438     - Correctly describe errors that occur when generating a TLS object.
8439       Previously we would attribute them to a failure while generating a
8440       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
8441       bug 1994.
8442     - Fix an instance where a Tor directory mirror might accidentally
8443       log the IP address of a misbehaving Tor client. Bugfix on
8444       0.1.0.1-rc.
8445     - Stop logging at severity 'warn' when some other Tor client tries
8446       to establish a circuit with us using weak DH keys. It's a protocol
8447       violation, but that doesn't mean ordinary users need to hear about
8448       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
8449     - If your relay can't keep up with the number of incoming create
8450       cells, it would log one warning per failure into your logs. Limit
8451       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
8453   o Minor bugfixes (build fixes):
8454     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
8455     - When warning about missing zlib development packages during compile,
8456       give the correct package names. Bugfix on 0.2.0.1-alpha.
8457     - Fix warnings that newer versions of autoconf produce during
8458       ./autogen.sh. These warnings appear to be harmless in our case,
8459       but they were extremely verbose. Fixes bug 2020.
8460     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
8461       bug 1848.
8463   o Minor bugfixes (portability):
8464     - Write several files in text mode, on OSes that distinguish text
8465       mode from binary mode (namely, Windows). These files are:
8466       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
8467       that collect those statistics; 'client_keys' and 'hostname' for
8468       hidden services that use authentication; and (in the tor-gencert
8469       utility) newly generated identity and signing keys. Previously,
8470       we wouldn't specify text mode or binary mode, leading to an
8471       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
8472       the DirRecordUsageByCountry option which would have triggered
8473       the assertion failure was added), although this assertion failure
8474       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
8475     - Selectively disable deprecation warnings on OS X because Lion
8476       started deprecating the shipped copy of openssl. Fixes bug 3643.
8477     - Use a wide type to hold sockets when built for 64-bit Windows.
8478       Fixes bug 3270.
8479     - Fix an issue that prevented static linking of libevent on
8480       some platforms (notably Linux). Fixes bug 2698; bugfix on 0.2.1.23,
8481       where we introduced the "--with-static-libevent" configure option.
8482     - Fix a bug with our locking implementation on Windows that couldn't
8483       correctly detect when a file was already locked. Fixes bug 2504,
8484       bugfix on 0.2.1.6-alpha.
8485     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
8486       enabled.
8487     - Fix IPv6-related connect() failures on some platforms (BSD, OS X).
8488       Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by
8489       "piebeer".
8491   o Minor bugfixes (code correctness):
8492     - Always NUL-terminate the sun_path field of a sockaddr_un before
8493       passing it to the kernel. (Not a security issue: kernels are
8494       smart enough to reject bad sockaddr_uns.) Found by Coverity;
8495       CID #428. Bugfix on Tor 0.2.0.3-alpha.
8496     - Make connection_printf_to_buf()'s behavior sane. Its callers
8497       expect it to emit a CRLF iff the format string ends with CRLF;
8498       it actually emitted a CRLF iff (a) the format string ended with
8499       CRLF or (b) the resulting string was over 1023 characters long or
8500       (c) the format string did not end with CRLF *and* the resulting
8501       string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha;
8502       fixes part of bug 3407.
8503     - Make send_control_event_impl()'s behavior sane. Its callers
8504       expect it to always emit a CRLF at the end of the string; it
8505       might have emitted extra control characters as well. Bugfix on
8506       0.1.1.9-alpha; fixes another part of bug 3407.
8507     - Make crypto_rand_int() check the value of its input correctly.
8508       Previously, it accepted values up to UINT_MAX, but could return a
8509       negative number if given a value above INT_MAX+1. Found by George
8510       Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14.
8511     - Fix a potential null-pointer dereference while computing a
8512       consensus. Bugfix on 0.2.0.3-alpha, found with the help of
8513       clang's analyzer.
8514     - If we fail to compute the identity digest of a v3 legacy keypair,
8515       warn, and don't use a buffer-full of junk instead. Bugfix on
8516       0.2.1.1-alpha; fixes bug 3106.
8517     - Resolve an untriggerable issue in smartlist_string_num_isin(),
8518       where if the function had ever in the future been used to check
8519       for the presence of a too-large number, it would have given an
8520       incorrect result. (Fortunately, we only used it for 16-bit
8521       values.) Fixes bug 3175; bugfix on 0.1.0.1-rc.
8522     - Be more careful about reporting the correct error from a failed
8523       connect() system call. Under some circumstances, it was possible to
8524       look at an incorrect value for errno when sending the end reason.
8525       Bugfix on 0.1.0.1-rc.
8526     - Correctly handle an "impossible" overflow cases in connection byte
8527       counting, where we write or read more than 4GB on an edge connection
8528       in a single second. Bugfix on 0.1.2.8-beta.
8529     - Avoid a double mark-for-free warning when failing to attach a
8530       transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes
8531       bug 2279.
8532     - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378;
8533       found by "cypherpunks". This bug was introduced before the first
8534       Tor release, in svn commit r110.
8535     - Fix a bug in bandwidth history state parsing that could have been
8536       triggered if a future version of Tor ever changed the timing
8537       granularity at which bandwidth history is measured. Bugfix on
8538       Tor 0.1.1.11-alpha.
8539     - Add assertions to check for overflow in arguments to
8540       base32_encode() and base32_decode(); fix a signed-unsigned
8541       comparison there too. These bugs are not actually reachable in Tor,
8542       but it's good to prevent future errors too. Found by doorss.
8543     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
8544       "memcpyfail".
8545     - Set target port in get_interface_address6() correctly. Bugfix
8546       on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660.
8547     - Fix an impossible-to-actually-trigger buffer overflow in relay
8548       descriptor generation. Bugfix on 0.1.0.15.
8549     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
8551   o Minor bugfixes (code improvements):
8552     - After we free an internal connection structure, overwrite it
8553       with a different memory value than we use for overwriting a freed
8554       internal circuit structure. Should help with debugging. Suggested
8555       by bug 1055.
8556     - If OpenSSL fails to make a duplicate of a private or public key, log
8557       an error message and try to exit cleanly. May help with debugging
8558       if bug 1209 ever remanifests.
8559     - Some options used different conventions for uppercasing of acronyms
8560       when comparing manpage and source. Fix those in favor of the
8561       manpage, as it makes sense to capitalize acronyms.
8562     - Take a first step towards making or.h smaller by splitting out
8563       function definitions for all source files in src/or/. Leave
8564       structures and defines in or.h for now.
8565     - Remove a few dead assignments during router parsing. Found by
8566       coverity.
8567     - Don't use 1-bit wide signed bit fields. Found by coverity.
8568     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
8569       None of the cases where we did this before were wrong, but by making
8570       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
8571     - The memarea code now uses a sentinel value at the end of each area
8572       to make sure nothing writes beyond the end of an area. This might
8573       help debug some conceivable causes of bug 930.
8574     - Always treat failure to allocate an RSA key as an unrecoverable
8575       allocation error.
8576     - Add some more defensive programming for architectures that can't
8577       handle unaligned integer accesses. We don't know of any actual bugs
8578       right now, but that's the best time to fix them. Fixes bug 1943.
8580   o Minor bugfixes (misc):
8581     - Fix a rare bug in rend_fn unit tests: we would fail a test when
8582       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
8583       on 0.2.0.10-alpha; fixes bug 1808.
8584     - Where available, use Libevent 2.0's periodic timers so that our
8585       once-per-second cleanup code gets called even more closely to
8586       once per second than it would otherwise. Fixes bug 943.
8587     - Ignore OutboundBindAddress when connecting to localhost.
8588       Connections to localhost need to come _from_ localhost, or else
8589       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
8590       refuse to listen.
8591     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
8592       too.
8593     - If any of the v3 certs we download are unparseable, we should
8594       actually notice the failure so we don't retry indefinitely. Bugfix
8595       on 0.2.0.x; reported by "rotator".
8596     - When Tor fails to parse a descriptor of any kind, dump it to disk.
8597       Might help diagnosing bug 1051.
8598     - Make our 'torify' script more portable; if we have only one of
8599       'torsocks' or 'tsocks' installed, don't complain to the user;
8600       and explain our warning about tsocks better.
8601     - Fix some urls in the exit notice file and make it XHTML1.1 strict
8602       compliant. Based on a patch from Christian Kujau.
8604   o Documentation changes:
8605     - Modernize the doxygen configuration file slightly. Fixes bug 2707.
8606     - Resolve all doxygen warnings except those for missing documentation.
8607       Fixes bug 2705.
8608     - Add doxygen documentation for more functions, fields, and types.
8609     - Convert the HACKING file to asciidoc, and add a few new sections
8610       to it, explaining how we use Git, how we make changelogs, and
8611       what should go in a patch.
8612     - Document the default socks host and port (127.0.0.1:9050) for
8613       tor-resolve.
8614     - Removed some unnecessary files from the source distribution. The
8615       AUTHORS file has now been merged into the people page on the
8616       website. The roadmaps and design doc can now be found in the
8617       projects directory in svn.
8619   o Deprecated and removed features (config):
8620     - Remove the torrc.complete file. It hasn't been kept up to date
8621       and users will have better luck checking out the manpage.
8622     - Remove the HSAuthorityRecordStats option that version 0 hidden
8623       service authorities could use to track statistics of overall v0
8624       hidden service usage.
8625     - Remove the obsolete "NoPublish" option; it has been flagged
8626       as obsolete and has produced a warning since 0.1.1.18-rc.
8627     - Caches no longer download and serve v2 networkstatus documents
8628       unless FetchV2Networkstatus flag is set: these documents haven't
8629       haven't been used by clients or relays since 0.2.0.x. Resolves
8630       bug 3022.
8632   o Deprecated and removed features (controller):
8633     - The controller no longer accepts the old obsolete "addr-mappings/"
8634       or "unregistered-servers-" GETINFO values.
8635     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
8636       always on; using them is necessary for correct forward-compatible
8637       controllers.
8639   o Deprecated and removed features (misc):
8640     - Hidden services no longer publish version 0 descriptors, and clients
8641       do not request or use version 0 descriptors. However, the old hidden
8642       service authorities still accept and serve version 0 descriptors
8643       when contacted by older hidden services/clients.
8644     - Remove undocumented option "-F" from tor-resolve: it hasn't done
8645       anything since 0.2.1.16-rc.
8646     - Remove everything related to building the expert bundle for OS X.
8647       It has confused many users, doesn't work right on OS X 10.6,
8648       and is hard to get rid of once installed. Resolves bug 1274.
8649     - Remove support for .noconnect style addresses. Nobody was using
8650       them, and they provided another avenue for detecting Tor users
8651       via application-level web tricks.
8652     - When we fixed bug 1038 we had to put in a restriction not to send
8653       RELAY_EARLY cells on rend circuits. This was necessary as long
8654       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
8655       active. Now remove this obsolete check. Resolves bug 2081.
8656     - Remove workaround code to handle directory responses from servers
8657       that had bug 539 (they would send HTTP status 503 responses _and_
8658       send a body too). Since only server versions before
8659       0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to
8660       keep the workaround in place.
8661     - Remove the old 'fuzzy time' logic. It was supposed to be used for
8662       handling calculations where we have a known amount of clock skew and
8663       an allowed amount of unknown skew. But we only used it in three
8664       places, and we never adjusted the known/unknown skew values. This is
8665       still something we might want to do someday, but if we do, we'll
8666       want to do it differently.
8667     - Remove the "--enable-iphone" option to ./configure. According to
8668       reports from Marco Bonetti, Tor builds fine without any special
8669       tweaking on recent iPhone SDK versions.
8672 Changes in version 0.2.1.30 - 2011-02-23
8673   Tor 0.2.1.30 fixes a variety of less critical bugs. The main other
8674   change is a slight tweak to Tor's TLS handshake that makes relays
8675   and bridges that run this new version reachable from Iran again.
8676   We don't expect this tweak will win the arms race long-term, but it
8677   buys us time until we roll out a better solution.
8679   o Major bugfixes:
8680     - Stop sending a CLOCK_SKEW controller status event whenever
8681       we fetch directory information from a relay that has a wrong clock.
8682       Instead, only inform the controller when it's a trusted authority
8683       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
8684       the rest of bug 1074.
8685     - Fix a bounds-checking error that could allow an attacker to
8686       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
8687       Found by "piebeer".
8688     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
8689       Tor would ignore their RelayBandwidthBurst setting,
8690       potentially using more bandwidth than expected. Bugfix on
8691       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
8692     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
8693       hidserv" in her torrc. The 'hidserv' argument never controlled
8694       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
8696   o Minor features:
8697     - Adjust our TLS Diffie-Hellman parameters to match those used by
8698       Apache's mod_ssl.
8699     - Update to the February 1 2011 Maxmind GeoLite Country database.
8701   o Minor bugfixes:
8702     - Check for and reject overly long directory certificates and
8703       directory tokens before they have a chance to hit any assertions.
8704       Bugfix on 0.2.1.28. Found by "doorss".
8705     - Bring the logic that gathers routerinfos and assesses the
8706       acceptability of circuits into line. This prevents a Tor OP from
8707       getting locked in a cycle of choosing its local OR as an exit for a
8708       path (due to a .exit request) and then rejecting the circuit because
8709       its OR is not listed yet. It also prevents Tor clients from using an
8710       OR running in the same instance as an exit (due to a .exit request)
8711       if the OR does not meet the same requirements expected of an OR
8712       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
8714   o Packaging changes:
8715     - Stop shipping the Tor specs files and development proposal documents
8716       in the tarball. They are now in a separate git repository at
8717       git://git.torproject.org/torspec.git
8718     - Do not include Git version tags as though they are SVN tags when
8719       generating a tarball from inside a repository that has switched
8720       between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402.
8723 Changes in version 0.2.1.29 - 2011-01-15
8724   Tor 0.2.1.29 continues our recent code security audit work. The main
8725   fix resolves a remote heap overflow vulnerability that can allow remote
8726   code execution. Other fixes address a variety of assert and crash bugs,
8727   most of which we think are hard to exploit remotely.
8729   o Major bugfixes (security):
8730     - Fix a heap overflow bug where an adversary could cause heap
8731       corruption. This bug probably allows remote code execution
8732       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
8733       0.1.2.10-rc.
8734     - Prevent a denial-of-service attack by disallowing any
8735       zlib-compressed data whose compression factor is implausibly
8736       high. Fixes part of bug 2324; reported by "doorss".
8737     - Zero out a few more keys in memory before freeing them. Fixes
8738       bug 2384 and part of bug 2385. These key instances found by
8739       "cypherpunks", based on Andrew Case's report about being able
8740       to find sensitive data in Tor's memory space if you have enough
8741       permissions. Bugfix on 0.0.2pre9.
8743   o Major bugfixes (crashes):
8744     - Prevent calls to Libevent from inside Libevent log handlers.
8745       This had potential to cause a nasty set of crashes, especially
8746       if running Libevent with debug logging enabled, and running
8747       Tor with a controller watching for low-severity log messages.
8748       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
8749     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
8750       underflow errors there too. Fixes the other part of bug 2324.
8751     - Fix a bug where we would assert if we ever had a
8752       cached-descriptors.new file (or another file read directly into
8753       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
8754       on 0.2.1.25. Found by doorss.
8755     - Fix some potential asserts and parsing issues with grossly
8756       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
8757       Found by doorss.
8759   o Minor bugfixes (other):
8760     - Fix a bug with handling misformed replies to reverse DNS lookup
8761       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
8762       bug reported by doorss.
8763     - Fix compilation on mingw when a pthreads compatibility library
8764       has been installed. (We don't want to use it, so we shouldn't
8765       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
8766     - Fix a bug where we would declare that we had run out of virtual
8767       addresses when the address space was only half-exhausted. Bugfix
8768       on 0.1.2.1-alpha.
8769     - Correctly handle the case where AutomapHostsOnResolve is set but
8770       no virtual addresses are available. Fixes bug 2328; bugfix on
8771       0.1.2.1-alpha. Bug found by doorss.
8772     - Correctly handle wrapping around when we run out of virtual
8773       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
8775   o Minor features:
8776     - Update to the January 1 2011 Maxmind GeoLite Country database.
8777     - Introduce output size checks on all of our decryption functions.
8779   o Build changes:
8780     - Tor does not build packages correctly with Automake 1.6 and earlier;
8781       added a check to Makefile.am to make sure that we're building with
8782       Automake 1.7 or later.
8783     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
8784       because we built it with a too-old version of automake. Thus that
8785       release broke ./configure --enable-openbsd-malloc, which is popular
8786       among really fast exit relays on Linux.
8789 Changes in version 0.2.1.28 - 2010-12-17
8790   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
8791   exploitable bugs. We also took this opportunity to change the IP address
8792   for one of our directory authorities, and to update the geoip database
8793   we ship.
8795   o Major bugfixes:
8796     - Fix a remotely exploitable bug that could be used to crash instances
8797       of Tor remotely by overflowing on the heap. Remote-code execution
8798       hasn't been confirmed, but can't be ruled out. Everyone should
8799       upgrade. Bugfix on the 0.1.1 series and later.
8801   o Directory authority changes:
8802     - Change IP address and ports for gabelmoo (v3 directory authority).
8804   o Minor features:
8805     - Update to the December 1 2010 Maxmind GeoLite Country database.
8808 Changes in version 0.2.1.27 - 2010-11-23
8809   Yet another OpenSSL security patch broke its compatibility with Tor:
8810   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
8811   also took this opportunity to fix several crash bugs, integrate a new
8812   directory authority, and update the bundled GeoIP database.
8814   o Major bugfixes:
8815     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
8816       No longer set the tlsext_host_name extension on server SSL objects;
8817       but continue to set it on client SSL objects. Our goal in setting
8818       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
8819       bugfix on 0.2.1.1-alpha.
8820     - Do not log messages to the controller while shrinking buffer
8821       freelists. Doing so would sometimes make the controller connection
8822       try to allocate a buffer chunk, which would mess up the internals
8823       of the freelist and cause an assertion failure. Fixes bug 1125;
8824       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
8825     - Learn our external IP address when we're a relay or bridge, even if
8826       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
8827       where we introduced bridge relays that don't need to publish to
8828       be useful. Fixes bug 2050.
8829     - Do even more to reject (and not just ignore) annotations on
8830       router descriptors received anywhere but from the cache. Previously
8831       we would ignore such annotations at first, but cache them to disk
8832       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
8833     - When you're using bridges and your network goes away and your
8834       bridges get marked as down, recover when you attempt a new socks
8835       connection (if the network is back), rather than waiting up to an
8836       hour to try fetching new descriptors for your bridges. Bugfix on
8837       0.2.0.3-alpha; fixes bug 1981.
8839   o Major features:
8840     - Move to the November 2010 Maxmind GeoLite country db (rather
8841       than the June 2009 ip-to-country GeoIP db) for our statistics that
8842       count how many users relays are seeing from each country. Now we'll
8843       have more accurate data, especially for many African countries.
8845   o New directory authorities:
8846     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
8847       authority.
8849   o Minor bugfixes:
8850     - Fix an assertion failure that could occur in directory caches or
8851       bridge users when using a very short voting interval on a testing
8852       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
8853       0.2.0.8-alpha.
8854     - Enforce multiplicity rules when parsing annotations. Bugfix on
8855       0.2.0.8-alpha. Found by piebeer.
8856     - Allow handshaking OR connections to take a full KeepalivePeriod
8857       seconds to handshake. Previously, we would close them after
8858       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
8859       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
8860       for analysis help.
8861     - When building with --enable-gcc-warnings on OpenBSD, disable
8862       warnings in system headers. This makes --enable-gcc-warnings
8863       pass on OpenBSD 4.8.
8865   o Minor features:
8866     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
8867       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
8868       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
8869       Servers can start sending this code when enough clients recognize
8870       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
8871     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
8872       Patch from mingw-san.
8874   o Removed files:
8875     - Remove the old debian/ directory from the main Tor distribution.
8876       The official Tor-for-debian git repository lives at the URL
8877       https://git.torproject.org/debian/tor.git
8878     - Stop shipping the old doc/website/ directory in the tarball. We
8879       changed the website format in late 2010, and what we shipped in
8880       0.2.1.26 really wasn't that useful anyway.
8883 Changes in version 0.2.1.26 - 2010-05-02
8884   Tor 0.2.1.26 addresses the recent connection and memory overload
8885   problems we've been seeing on relays, especially relays with their
8886   DirPort open. If your relay has been crashing, or you turned it off
8887   because it used too many resources, give this release a try.
8889   This release also fixes yet another instance of broken OpenSSL libraries
8890   that was causing some relays to drop out of the consensus.
8892   o Major bugfixes:
8893     - Teach relays to defend themselves from connection overload. Relays
8894       now close idle circuits early if it looks like they were intended
8895       for directory fetches. Relays are also more aggressive about closing
8896       TLS connections that have no circuits on them. Such circuits are
8897       unlikely to be re-used, and tens of thousands of them were piling
8898       up at the fast relays, causing the relays to run out of sockets
8899       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
8900       their directory fetches over TLS).
8901     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
8902       that claim to be earlier than 0.9.8m, but which have in reality
8903       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
8904       behavior. Possible fix for some cases of bug 1346.
8905     - Directory mirrors were fetching relay descriptors only from v2
8906       directory authorities, rather than v3 authorities like they should.
8907       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
8908       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
8910   o Minor bugfixes:
8911     - Finally get rid of the deprecated and now harmful notion of "clique
8912       mode", where directory authorities maintain TLS connections to
8913       every other relay.
8915   o Testsuite fixes:
8916     - In the util/threads test, no longer free the test_mutex before all
8917       worker threads have finished. Bugfix on 0.2.1.6-alpha.
8918     - The master thread could starve the worker threads quite badly on
8919       certain systems, causing them to run only partially in the allowed
8920       window. This resulted in test failures. Now the master thread sleeps
8921       occasionally for a few microseconds while the two worker-threads
8922       compete for the mutex. Bugfix on 0.2.0.1-alpha.
8925 Changes in version 0.2.1.25 - 2010-03-16
8926   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
8927   prevent relays from guessing their IP address correctly. It also fixes
8928   several minor potential security bugs.
8930   o Major bugfixes:
8931     - Fix a regression from our patch for bug 1244 that caused relays
8932       to guess their IP address incorrectly if they didn't set Address
8933       in their torrc and/or their address fails to resolve. Bugfix on
8934       0.2.1.23; fixes bug 1269.
8935     - When freeing a session key, zero it out completely. We only zeroed
8936       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
8937       patched by ekir. Fixes bug 1254.
8939   o Minor bugfixes:
8940     - Fix a dereference-then-NULL-check sequence when publishing
8941       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
8942       bug 1255.
8943     - Fix another dereference-then-NULL-check sequence. Bugfix on
8944       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
8945     - Make sure we treat potentially not NUL-terminated strings correctly.
8946       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
8949 Changes in version 0.2.1.24 - 2010-02-21
8950   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
8951   for sure!
8953   o Minor bugfixes:
8954     - Work correctly out-of-the-box with even more vendor-patched versions
8955       of OpenSSL. In particular, make it so Debian and OS X don't need
8956       customized patches to run/build.
8959 Changes in version 0.2.1.23 - 2010-02-13
8960   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
8961   again on the latest OS X, and updates the location of a directory
8962   authority.
8964   o Major bugfixes (performance):
8965     - We were selecting our guards uniformly at random, and then weighting
8966       which of our guards we'd use uniformly at random. This imbalance
8967       meant that Tor clients were severely limited on throughput (and
8968       probably latency too) by the first hop in their circuit. Now we
8969       select guards weighted by currently advertised bandwidth. We also
8970       automatically discard guards picked using the old algorithm. Fixes
8971       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
8973   o Major bugfixes:
8974     - Make Tor work again on the latest OS X: when deciding whether to
8975       use strange flags to turn TLS renegotiation on, detect the OpenSSL
8976       version at run-time, not compile time. We need to do this because
8977       Apple doesn't update its dev-tools headers when it updates its
8978       libraries in a security patch.
8979     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
8980       that could happen on 32-bit platforms with 64-bit time_t. Also fix
8981       a memory leak when requesting a hidden service descriptor we've
8982       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
8983       by aakova.
8985   o Minor bugfixes:
8986     - Refactor resolve_my_address() to not use gethostbyname() anymore.
8987       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
8989   o Minor features:
8990     - Avoid a mad rush at the beginning of each month when each client
8991       rotates half of its guards. Instead we spread the rotation out
8992       throughout the month, but we still avoid leaving a precise timestamp
8993       in the state file about when we first picked the guard. Improves
8994       over the behavior introduced in 0.1.2.17.
8997 Changes in version 0.2.1.22 - 2010-01-19
8998   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
8999   authorities -- it would tell you its whole history of bridge descriptors
9000   if you make the right directory request. This stable update also
9001   rotates two of the seven v3 directory authority keys and locations.
9003   o Directory authority changes:
9004     - Rotate keys (both v3 identity and relay identity) for moria1
9005       and gabelmoo.
9007   o Major bugfixes:
9008     - Stop bridge directory authorities from answering dbg-stability.txt
9009       directory queries, which would let people fetch a list of all
9010       bridge identities they track. Bugfix on 0.2.1.6-alpha.
9013 Changes in version 0.2.1.21 - 2009-12-21
9014   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
9015   library. If you use Tor on Linux / Unix and you're getting SSL
9016   renegotiation errors, upgrading should help. We also recommend an
9017   upgrade if you're an exit relay.
9019   o Major bugfixes:
9020     - Work around a security feature in OpenSSL 0.9.8l that prevents our
9021       handshake from working unless we explicitly tell OpenSSL that we
9022       are using SSL renegotiation safely. We are, of course, but OpenSSL
9023       0.9.8l won't work unless we say we are.
9024     - Avoid crashing if the client is trying to upload many bytes and the
9025       circuit gets torn down at the same time, or if the flip side
9026       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
9028   o Minor bugfixes:
9029     - Do not refuse to learn about authority certs and v2 networkstatus
9030       documents that are older than the latest consensus. This bug might
9031       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
9032       Spotted and fixed by xmux.
9033     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
9034       trigger platform-specific option misparsing case found by Coverity
9035       Scan.
9036     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
9037       trigger assert. Fixes bug 1173.
9040 Changes in version 0.2.1.20 - 2009-10-15
9041   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
9042   services at once, prepares for more performance improvements, and
9043   fixes a bunch of smaller bugs.
9045   The Windows and OS X bundles also include a more recent Vidalia,
9046   and switch from Privoxy to Polipo.
9048   The OS X installers are now drag and drop. It's best to un-install
9049   Tor/Vidalia and then install this new bundle, rather than upgrade. If
9050   you want to upgrade, you'll need to update the paths for Tor and Polipo
9051   in the Vidalia Settings window.
9053   o Major bugfixes:
9054     - Send circuit or stream sendme cells when our window has decreased
9055       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
9056       by Karsten when testing the "reduce circuit window" performance
9057       patch. Bugfix on the 54th commit on Tor -- from July 2002,
9058       before the release of Tor 0.0.0. This is the new winner of the
9059       oldest-bug prize.
9060     - Fix a remotely triggerable memory leak when a consensus document
9061       contains more than one signature from the same voter. Bugfix on
9062       0.2.0.3-alpha.
9063     - Avoid segfault in rare cases when finishing an introduction circuit
9064       as a client and finding out that we don't have an introduction key
9065       for it. Fixes bug 1073. Reported by Aaron Swartz.
9067   o Major features:
9068     - Tor now reads the "circwindow" parameter out of the consensus,
9069       and uses that value for its circuit package window rather than the
9070       default of 1000 cells. Begins the implementation of proposal 168.
9072   o New directory authorities:
9073     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
9074       authority.
9075     - Move moria1 and tonga to alternate IP addresses.
9077   o Minor bugfixes:
9078     - Fix a signed/unsigned compile warning in 0.2.1.19.
9079     - Fix possible segmentation fault on directory authorities. Bugfix on
9080       0.2.1.14-rc.
9081     - Fix an extremely rare infinite recursion bug that could occur if
9082       we tried to log a message after shutting down the log subsystem.
9083       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
9084     - Fix an obscure bug where hidden services on 64-bit big-endian
9085       systems might mis-read the timestamp in v3 introduce cells, and
9086       refuse to connect back to the client. Discovered by "rotor".
9087       Bugfix on 0.2.1.6-alpha.
9088     - We were triggering a CLOCK_SKEW controller status event whenever
9089       we connect via the v2 connection protocol to any relay that has
9090       a wrong clock. Instead, we should only inform the controller when
9091       it's a trusted authority that claims our clock is wrong. Bugfix
9092       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
9093     - We were telling the controller about CHECKING_REACHABILITY and
9094       REACHABILITY_FAILED status events whenever we launch a testing
9095       circuit or notice that one has failed. Instead, only tell the
9096       controller when we want to inform the user of overall success or
9097       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
9098       by SwissTorExit.
9099     - Don't warn when we're using a circuit that ends with a node
9100       excluded in ExcludeExitNodes, but the circuit is not used to access
9101       the outside world. This should help fix bug 1090. Bugfix on
9102       0.2.1.6-alpha.
9103     - Work around a small memory leak in some versions of OpenSSL that
9104       stopped the memory used by the hostname TLS extension from being
9105       freed.
9107   o Minor features:
9108     - Add a "getinfo status/accepted-server-descriptor" controller
9109       command, which is the recommended way for controllers to learn
9110       whether our server descriptor has been successfully received by at
9111       least on directory authority. Un-recommend good-server-descriptor
9112       getinfo and status events until we have a better design for them.
9115 Changes in version 0.2.1.19 - 2009-07-28
9116   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
9117   services.
9119   o Major bugfixes:
9120     - Make accessing hidden services on 0.2.1.x work right again.
9121       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
9122       part of patch provided by "optimist".
9124   o Minor features:
9125     - When a relay/bridge is writing out its identity key fingerprint to
9126       the "fingerprint" file and to its logs, write it without spaces. Now
9127       it will look like the fingerprints in our bridges documentation,
9128       and confuse fewer users.
9130   o Minor bugfixes:
9131     - Relays no longer publish a new server descriptor if they change
9132       their MaxAdvertisedBandwidth config option but it doesn't end up
9133       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
9134       fixes bug 1026. Patch from Sebastian.
9135     - Avoid leaking memory every time we get a create cell but we have
9136       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
9137       fixes bug 1034. Reported by BarkerJr.
9140 Changes in version 0.2.1.18 - 2009-07-24
9141   Tor 0.2.1.18 lays the foundations for performance improvements,
9142   adds status events to help users diagnose bootstrap problems, adds
9143   optional authentication/authorization for hidden services, fixes a
9144   variety of potential anonymity problems, and includes a huge pile of
9145   other features and bug fixes.
9147   o Major features (clients):
9148     - Start sending "bootstrap phase" status events to the controller,
9149       so it can keep the user informed of progress fetching directory
9150       information and establishing circuits. Also inform the controller
9151       if we think we're stuck at a particular bootstrap phase. Implements
9152       proposal 137.
9153     - Clients replace entry guards that were chosen more than a few months
9154       ago. This change should significantly improve client performance,
9155       especially once more people upgrade, since relays that have been
9156       a guard for a long time are currently overloaded.
9157     - Network status consensus documents and votes now contain bandwidth
9158       information for each relay. Clients use the bandwidth values
9159       in the consensus, rather than the bandwidth values in each
9160       relay descriptor. This approach opens the door to more accurate
9161       bandwidth estimates once the directory authorities start doing
9162       active measurements. Implements part of proposal 141.
9164   o Major features (relays):
9165     - Disable and refactor some debugging checks that forced a linear scan
9166       over the whole server-side DNS cache. These accounted for over 50%
9167       of CPU time on a relatively busy exit node's gprof profile. Also,
9168       disable some debugging checks that appeared in exit node profile
9169       data. Found by Jacob.
9170     - New DirPortFrontPage option that takes an html file and publishes
9171       it as "/" on the DirPort. Now relay operators can provide a
9172       disclaimer without needing to set up a separate webserver. There's
9173       a sample disclaimer in contrib/tor-exit-notice.html.
9175   o Major features (hidden services):
9176     - Make it possible to build hidden services that only certain clients
9177       are allowed to connect to. This is enforced at several points,
9178       so that unauthorized clients are unable to send INTRODUCE cells
9179       to the service, or even (depending on the type of authentication)
9180       to learn introduction points. This feature raises the bar for
9181       certain kinds of active attacks against hidden services. Design
9182       and code by Karsten Loesing. Implements proposal 121.
9183     - Relays now store and serve v2 hidden service descriptors by default,
9184       i.e., the new default value for HidServDirectoryV2 is 1. This is
9185       the last step in proposal 114, which aims to make hidden service
9186       lookups more reliable.
9188   o Major features (path selection):
9189     - ExitNodes and Exclude*Nodes config options now allow you to restrict
9190       by country code ("{US}") or IP address or address pattern
9191       ("255.128.0.0/16"). Patch from Robert Hogan. It still needs some
9192       refinement to decide what config options should take priority if
9193       you ask to both use a particular node and exclude it.
9195   o Major features (misc):
9196     - When building a consensus, do not include routers that are down.
9197       This cuts down 30% to 40% on consensus size. Implements proposal
9198       138.
9199     - New TestingTorNetwork config option to allow adjustment of
9200       previously constant values that could slow bootstrapping. Implements
9201       proposal 135. Patch from Karsten.
9202     - Convert many internal address representations to optionally hold
9203       IPv6 addresses. Generate and accept IPv6 addresses in many protocol
9204       elements. Make resolver code handle nameservers located at IPv6
9205       addresses.
9206     - More work on making our TLS handshake blend in: modify the list
9207       of ciphers advertised by OpenSSL in client mode to even more
9208       closely resemble a common web browser. We cheat a little so that
9209       we can advertise ciphers that the locally installed OpenSSL doesn't
9210       know about.
9211     - Use the TLS1 hostname extension to more closely resemble browser
9212       behavior.
9214   o Security fixes (anonymity/entropy):
9215     - Never use a connection with a mismatched address to extend a
9216       circuit, unless that connection is canonical. A canonical
9217       connection is one whose address is authenticated by the router's
9218       identity key, either in a NETINFO cell or in a router descriptor.
9219     - Implement most of proposal 110: The first K cells to be sent
9220       along a circuit are marked as special "early" cells; only K "early"
9221       cells will be allowed. Once this code is universal, we can block
9222       certain kinds of denial-of-service attack by requiring that EXTEND
9223       commands must be sent using an "early" cell.
9224     - Resume using OpenSSL's RAND_poll() for better (and more portable)
9225       cross-platform entropy collection again. We used to use it, then
9226       stopped using it because of a bug that could crash systems that
9227       called RAND_poll when they had a lot of fds open. It looks like the
9228       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
9229       at startup, and to call RAND_poll() when we reseed later only if
9230       we have a non-buggy OpenSSL version.
9231     - When the client is choosing entry guards, now it selects at most
9232       one guard from a given relay family. Otherwise we could end up with
9233       all of our entry points into the network run by the same operator.
9234       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
9235     - Do not use or believe expired v3 authority certificates. Patch
9236       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
9237     - Drop begin cells to a hidden service if they come from the middle
9238       of a circuit. Patch from lark.
9239     - When we erroneously receive two EXTEND cells for the same circuit
9240       ID on the same connection, drop the second. Patch from lark.
9241     - Authorities now vote for the Stable flag for any router whose
9242       weighted MTBF is at least 5 days, regardless of the mean MTBF.
9243     - Clients now never report any stream end reason except 'MISC'.
9244       Implements proposal 148.
9246   o Major bugfixes (crashes):
9247     - Parse dates and IPv4 addresses in a locale- and libc-independent
9248       manner, to avoid platform-dependent behavior on malformed input.
9249     - Fix a crash that occurs on exit nodes when a nameserver request
9250       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
9251       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
9252       bug 929.
9253     - Do not assume that a stack-allocated character array will be
9254       64-bit aligned on platforms that demand that uint64_t access is
9255       aligned. Possible fix for bug 604.
9256     - Resolve a very rare crash bug that could occur when the user forced
9257       a nameserver reconfiguration during the middle of a nameserver
9258       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
9259     - Avoid a "0 divided by 0" calculation when calculating router uptime
9260       at directory authorities. Bugfix on 0.2.0.8-alpha.
9261     - Fix an assertion bug in parsing policy-related options; possible fix
9262       for bug 811.
9263     - Rate-limit too-many-sockets messages: when they happen, they happen
9264       a lot and end up filling up the disk. Resolves bug 748.
9265     - Fix a race condition that could cause crashes or memory corruption
9266       when running as a server with a controller listening for log
9267       messages.
9268     - Avoid crashing when we have a policy specified in a DirPolicy or
9269       SocksPolicy or ReachableAddresses option with ports set on it,
9270       and we re-load the policy. May fix bug 996.
9271     - Fix an assertion failure on 64-bit platforms when we allocated
9272       memory right up to the end of a memarea, then realigned the memory
9273       one step beyond the end. Fixes a possible cause of bug 930.
9274     - Protect the count of open sockets with a mutex, so we can't
9275       corrupt it when two threads are closing or opening sockets at once.
9276       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
9278   o Major bugfixes (clients):
9279     - Discard router descriptors as we load them if they are more than
9280       five days old. Otherwise if Tor is off for a long time and then
9281       starts with cached descriptors, it will try to use the onion keys
9282       in those obsolete descriptors when building circuits. Fixes bug 887.
9283     - When we choose to abandon a new entry guard because we think our
9284       older ones might be better, close any circuits pending on that
9285       new entry guard connection. This fix should make us recover much
9286       faster when our network is down and then comes back. Bugfix on
9287       0.1.2.8-beta; found by lodger.
9288     - When Tor clients restart after 1-5 days, they discard all their
9289       cached descriptors as too old, but they still use the cached
9290       consensus document. This approach is good for robustness, but
9291       bad for performance: since they don't know any bandwidths, they
9292       end up choosing at random rather than weighting their choice by
9293       speed. Fixed by the above feature of putting bandwidths in the
9294       consensus.
9296   o Major bugfixes (relays):
9297     - Relays were falling out of the networkstatus consensus for
9298       part of a day if they changed their local config but the
9299       authorities discarded their new descriptor as "not sufficiently
9300       different". Now directory authorities accept a descriptor as changed
9301       if BandwidthRate or BandwidthBurst changed. Partial fix for bug 962;
9302       patch by Sebastian.
9303     - Ensure that two circuits can never exist on the same connection
9304       with the same circuit ID, even if one is marked for close. This
9305       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
9306     - Directory authorities were neglecting to mark relays down in their
9307       internal histories if the relays fall off the routerlist without
9308       ever being found unreachable. So there were relays in the histories
9309       that haven't been seen for eight months, and are listed as being
9310       up for eight months. This wreaked havoc on the "median wfu" and
9311       "median mtbf" calculations, in turn making Guard and Stable flags
9312       wrong, hurting network performance. Fixes bugs 696 and 969. Bugfix
9313       on 0.2.0.6-alpha.
9315   o Major bugfixes (hidden services):
9316     - When establishing a hidden service, introduction points that
9317       originate from cannibalized circuits were completely ignored
9318       and not included in rendezvous service descriptors. This might
9319       have been another reason for delay in making a hidden service
9320       available. Bugfix from long ago (0.0.9.x?)
9322   o Major bugfixes (memory and resource management):
9323     - Fixed some memory leaks -- some quite frequent, some almost
9324       impossible to trigger -- based on results from Coverity.
9325     - Speed up parsing and cut down on memory fragmentation by using
9326       stack-style allocations for parsing directory objects. Previously,
9327       this accounted for over 40% of allocations from within Tor's code
9328       on a typical directory cache.
9329     - Use a Bloom filter rather than a digest-based set to track which
9330       descriptors we need to keep around when we're cleaning out old
9331       router descriptors. This speeds up the computation significantly,
9332       and may reduce fragmentation.
9334   o New/changed config options:
9335     - Now NodeFamily and MyFamily config options allow spaces in
9336       identity fingerprints, so it's easier to paste them in.
9337       Suggested by Lucky Green.
9338     - Allow ports 465 and 587 in the default exit policy again. We had
9339       rejected them in 0.1.0.15, because back in 2005 they were commonly
9340       misconfigured and ended up as spam targets. We hear they are better
9341       locked down these days.
9342     - Make TrackHostExit mappings expire a while after their last use, not
9343       after their creation. Patch from Robert Hogan.
9344     - Add an ExcludeExitNodes option so users can list a set of nodes
9345       that should be be excluded from the exit node position, but
9346       allowed elsewhere. Implements proposal 151.
9347     - New --hush command-line option similar to --quiet. While --quiet
9348       disables all logging to the console on startup, --hush limits the
9349       output to messages of warning and error severity.
9350     - New configure/torrc options (--enable-geoip-stats,
9351       DirRecordUsageByCountry) to record how many IPs we've served
9352       directory info to in each country code, how many status documents
9353       total we've sent to each country code, and what share of the total
9354       directory requests we should expect to see.
9355     - Make outbound DNS packets respect the OutboundBindAddress setting.
9356       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
9357     - Allow separate log levels to be configured for different logging
9358       domains. For example, this allows one to log all notices, warnings,
9359       or errors, plus all memory management messages of level debug or
9360       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
9361     - Update to the "June 3 2009" ip-to-country file.
9363   o Minor features (relays):
9364     - Raise the minimum rate limiting to be a relay from 20000 bytes
9365       to 20480 bytes (aka 20KB/s), to match our documentation. Also
9366       update directory authorities so they always assign the Fast flag
9367       to relays with 20KB/s of capacity. Now people running relays won't
9368       suddenly find themselves not seeing any use, if the network gets
9369       faster on average.
9370     - If we're a relay and we change our IP address, be more verbose
9371       about the reason that made us change. Should help track down
9372       further bugs for relays on dynamic IP addresses.
9373     - Exit servers can now answer resolve requests for ip6.arpa addresses.
9374     - Implement most of Proposal 152: allow specialized servers to permit
9375       single-hop circuits, and clients to use those servers to build
9376       single-hop circuits when using a specialized controller. Patch
9377       from Josh Albrecht. Resolves feature request 768.
9378     - When relays do their initial bandwidth measurement, don't limit
9379       to just our entry guards for the test circuits. Otherwise we tend
9380       to have multiple test circuits going through a single entry guard,
9381       which makes our bandwidth test less accurate. Fixes part of bug 654;
9382       patch contributed by Josh Albrecht.
9384   o Minor features (directory authorities):
9385     - Try not to open more than one descriptor-downloading connection
9386       to an authority at once. This should reduce load on directory
9387       authorities. Fixes bug 366.
9388     - Add cross-certification to newly generated certificates, so that
9389       a signing key is enough information to look up a certificate. Start
9390       serving certificates by <identity digest, signing key digest>
9391       pairs. Implements proposal 157.
9392     - When a directory authority downloads a descriptor that it then
9393       immediately rejects, do not retry downloading it right away. Should
9394       save some bandwidth on authorities. Fix for bug 888. Patch by
9395       Sebastian Hahn.
9396     - Directory authorities now serve a /tor/dbg-stability.txt URL to
9397       help debug WFU and MTBF calculations.
9398     - In directory authorities' approved-routers files, allow
9399       fingerprints with or without space.
9401   o Minor features (directory mirrors):
9402     - When a download gets us zero good descriptors, do not notify
9403       Tor that new directory information has arrived.
9404     - Servers support a new URL scheme for consensus downloads that
9405       allows the client to specify which authorities are trusted.
9406       The server then only sends the consensus if the client will trust
9407       it. Otherwise a 404 error is sent back. Clients use this
9408       new scheme when the server supports it (meaning it's running
9409       0.2.1.1-alpha or later). Implements proposal 134.
9411   o Minor features (bridges):
9412     - If the bridge config line doesn't specify a port, assume 443.
9413       This makes bridge lines a bit smaller and easier for users to
9414       understand.
9415     - If we're using bridges and our network goes away, be more willing
9416       to forgive our bridges and try again when we get an application
9417       request.
9419   o Minor features (hidden services):
9420     - When the client launches an introduction circuit, retry with a
9421       new circuit after 30 seconds rather than 60 seconds.
9422     - Launch a second client-side introduction circuit in parallel
9423       after a delay of 15 seconds (based on work by Christian Wilms).
9424     - Hidden services start out building five intro circuits rather
9425       than three, and when the first three finish they publish a service
9426       descriptor using those. Now we publish our service descriptor much
9427       faster after restart.
9428     - Drop the requirement to have an open dir port for storing and
9429       serving v2 hidden service descriptors.
9431   o Minor features (build and packaging):
9432     - On Linux, use the prctl call to re-enable core dumps when the User
9433       option is set.
9434     - Try to make sure that the version of Libevent we're running with
9435       is binary-compatible with the one we built with. May address bug
9436       897 and others.
9437     - Add a new --enable-local-appdata configuration switch to change
9438       the default location of the datadir on win32 from APPDATA to
9439       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
9440       entirely. Patch from coderman.
9441     - Build correctly against versions of OpenSSL 0.9.8 or later that
9442       are built without support for deprecated functions.
9443     - On platforms with a maximum syslog string length, truncate syslog
9444       messages to that length ourselves, rather than relying on the
9445       system to do it for us.
9446     - Automatically detect MacOSX versions earlier than 10.4.0, and
9447       disable kqueue from inside Tor when running with these versions.
9448       We previously did this from the startup script, but that was no
9449       help to people who didn't use the startup script. Resolves bug 863.
9450     - Build correctly when configured to build outside the main source
9451       path. Patch from Michael Gold.
9452     - Disable GCC's strict alias optimization by default, to avoid the
9453       likelihood of its introducing subtle bugs whenever our code violates
9454       the letter of C99's alias rules.
9455     - Change the contrib/tor.logrotate script so it makes the new
9456       logs as "_tor:_tor" rather than the default, which is generally
9457       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
9458     - Change our header file guard macros to be less likely to conflict
9459       with system headers. Adam Langley noticed that we were conflicting
9460       with log.h on Android.
9461     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
9462       and stop using a warning that had become unfixably verbose under
9463       GCC 4.3.
9464     - Use a lockfile to make sure that two Tor processes are not
9465       simultaneously running with the same datadir.
9466     - Allow OpenSSL to use dynamic locks if it wants.
9467     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
9469   o Minor features (controllers):
9470     - When generating circuit events with verbose nicknames for
9471       controllers, try harder to look up nicknames for routers on a
9472       circuit. (Previously, we would look in the router descriptors we had
9473       for nicknames, but not in the consensus.) Partial fix for bug 941.
9474     - New controller event NEWCONSENSUS that lists the networkstatus
9475       lines for every recommended relay. Now controllers like Torflow
9476       can keep up-to-date on which relays they should be using.
9477     - New controller event "clients_seen" to report a geoip-based summary
9478       of which countries we've seen clients from recently. Now controllers
9479       like Vidalia can show bridge operators that they're actually making
9480       a difference.
9481     - Add a 'getinfo status/clients-seen' controller command, in case
9482       controllers want to hear clients_seen events but connect late.
9483     - New CONSENSUS_ARRIVED event to note when a new consensus has
9484       been fetched and validated.
9485     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
9486       controllers to prevent SIGHUP from reloading the configuration.
9487       Fixes bug 856.
9488     - Return circuit purposes in response to GETINFO circuit-status.
9489       Fixes bug 858.
9490     - Serve the latest v3 networkstatus consensus via the control
9491       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
9492     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
9493       controller can query our current bootstrap state in case it attaches
9494       partway through and wants to catch up.
9495     - Provide circuit purposes along with circuit events to the controller.
9497   o Minor features (tools):
9498     - Do not have tor-resolve automatically refuse all .onion addresses;
9499       if AutomapHostsOnResolve is set in your torrc, this will work fine.
9500     - Add a -p option to tor-resolve for specifying the SOCKS port: some
9501       people find host:port too confusing.
9502     - Print the SOCKS5 error message string as well as the error code
9503       when a tor-resolve request fails. Patch from Jacob.
9505   o Minor bugfixes (memory and resource management):
9506     - Clients no longer cache certificates for authorities they do not
9507       recognize. Bugfix on 0.2.0.9-alpha.
9508     - Do not use C's stdio library for writing to log files. This will
9509       improve logging performance by a minute amount, and will stop
9510       leaking fds when our disk is full. Fixes bug 861.
9511     - Stop erroneous use of O_APPEND in cases where we did not in fact
9512       want to re-seek to the end of a file before every last write().
9513     - Fix a small alignment and memory-wasting bug on buffer chunks.
9514       Spotted by rovv.
9515     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
9516       to avoid unused RAM in buffer chunks and memory pools.
9517     - Reduce the default smartlist size from 32 to 16; it turns out that
9518       most smartlists hold around 8-12 elements tops.
9519     - Make dumpstats() log the fullness and size of openssl-internal
9520       buffers.
9521     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
9522       patch to their OpenSSL, turn it on to save memory on servers. This
9523       patch will (with any luck) get included in a mainline distribution
9524       before too long.
9525     - Fix a memory leak when v3 directory authorities load their keys
9526       and cert from disk. Bugfix on 0.2.0.1-alpha.
9527     - Stop using malloc_usable_size() to use more area than we had
9528       actually allocated: it was safe, but made valgrind really unhappy.
9529     - Make the assert_circuit_ok() function work correctly on circuits that
9530       have already been marked for close.
9531     - Fix uninitialized size field for memory area allocation: may improve
9532       memory performance during directory parsing.
9534   o Minor bugfixes (clients):
9535     - Stop reloading the router list from disk for no reason when we
9536       run out of reachable directory mirrors. Once upon a time reloading
9537       it would set the 'is_running' flag back to 1 for them. It hasn't
9538       done that for a long time.
9539     - When we had picked an exit node for a connection, but marked it as
9540       "optional", and it turned out we had no onion key for the exit,
9541       stop wanting that exit and try again. This situation may not
9542       be possible now, but will probably become feasible with proposal
9543       158. Spotted by rovv. Fixes another case of bug 752.
9544     - Fix a bug in address parsing that was preventing bridges or hidden
9545       service targets from being at IPv6 addresses.
9546     - Do not remove routers as too old if we do not have any consensus
9547       document. Bugfix on 0.2.0.7-alpha.
9548     - When an exit relay resolves a stream address to a local IP address,
9549       do not just keep retrying that same exit relay over and
9550       over. Instead, just close the stream. Addresses bug 872. Bugfix
9551       on 0.2.0.32. Patch from rovv.
9552     - Made Tor a little less aggressive about deleting expired
9553       certificates. Partial fix for bug 854.
9554     - Treat duplicate certificate fetches as failures, so that we do
9555       not try to re-fetch an expired certificate over and over and over.
9556     - Do not say we're fetching a certificate when we'll in fact skip it
9557       because of a pending download.
9558     - If we have correct permissions on $datadir, we complain to stdout
9559       and fail to start. But dangerous permissions on
9560       $datadir/cached-status/ would cause us to open a log and complain
9561       there. Now complain to stdout and fail to start in both cases. Fixes
9562       bug 820, reported by seeess.
9564   o Minor bugfixes (bridges):
9565     - When we made bridge authorities stop serving bridge descriptors over
9566       unencrypted links, we also broke DirPort reachability testing for
9567       bridges. So bridges with a non-zero DirPort were printing spurious
9568       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
9569     - Don't allow a bridge to publish its router descriptor to a
9570       non-bridge directory authority. Fixes part of bug 932.
9571     - When we change to or from being a bridge, reset our counts of
9572       client usage by country. Fixes bug 932.
9574   o Minor bugfixes (relays):
9575     - Log correct error messages for DNS-related network errors on
9576       Windows.
9577     - Actually return -1 in the error case for read_bandwidth_usage().
9578       Harmless bug, since we currently don't care about the return value
9579       anywhere. Bugfix on 0.2.0.9-alpha.
9580     - Provide a more useful log message if bug 977 (related to buffer
9581       freelists) ever reappears, and do not crash right away.
9582     - We were already rejecting relay begin cells with destination port
9583       of 0. Now also reject extend cells with destination port or address
9584       of 0. Suggested by lark.
9585     - When we can't transmit a DNS request due to a network error, retry
9586       it after a while, and eventually transmit a failing response to
9587       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
9588     - Solve a bug that kept hardware crypto acceleration from getting
9589       enabled when accounting was turned on. Fixes bug 907. Bugfix on
9590       0.0.9pre6.
9591     - When a canonical connection appears later in our internal list
9592       than a noncanonical one for a given OR ID, always use the
9593       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
9594       Spotted by rovv.
9595     - Avoid some nasty corner cases in the logic for marking connections
9596       as too old or obsolete or noncanonical for circuits. Partial
9597       bugfix on bug 891.
9598     - Fix another interesting corner-case of bug 891 spotted by rovv:
9599       Previously, if two hosts had different amounts of clock drift, and
9600       one of them created a new connection with just the wrong timing,
9601       the other might decide to deprecate the new connection erroneously.
9602       Bugfix on 0.1.1.13-alpha.
9603     - If one win32 nameserver fails to get added, continue adding the
9604       rest, and don't automatically fail.
9605     - Fix a bug where an unreachable relay would establish enough
9606       reachability testing circuits to do a bandwidth test -- if
9607       we already have a connection to the middle hop of the testing
9608       circuit, then it could establish the last hop by using the existing
9609       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
9610       circuits no longer use entry guards in 0.2.1.3-alpha.
9612   o Minor bugfixes (directory authorities):
9613     - Limit uploaded directory documents to be 16M rather than 500K.
9614       The directory authorities were refusing v3 consensus votes from
9615       other authorities, since the votes are now 504K. Fixes bug 959;
9616       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
9617     - Directory authorities should never send a 503 "busy" response to
9618       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
9619       bug 959.
9620     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
9621       headers. Bugfix on 0.2.0.10-alpha.
9623   o Minor bugfixes (hidden services):
9624     - When we can't find an intro key for a v2 hidden service descriptor,
9625       fall back to the v0 hidden service descriptor and log a bug message.
9626       Workaround for bug 1024.
9627     - In very rare situations new hidden service descriptors were
9628       published earlier than 30 seconds after the last change to the
9629       service. (We currently think that a hidden service descriptor
9630       that's been stable for 30 seconds is worth publishing.)
9631     - If a hidden service sends us an END cell, do not consider
9632       retrying the connection; just close it. Patch from rovv.
9633     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
9634       service directories if they have no advertised dir port. Bugfix
9635       on 0.2.0.10-alpha.
9637   o Minor bugfixes (tools):
9638     - In the torify(1) manpage, mention that tsocks will leak your
9639       DNS requests.
9641   o Minor bugfixes (controllers):
9642     - If the controller claimed responsibility for a stream, but that
9643       stream never finished making its connection, it would live
9644       forever in circuit_wait state. Now we close it after SocksTimeout
9645       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
9646     - Make DNS resolved controller events into "CLOSED", not
9647       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
9648       bug 807.
9649     - The control port would close the connection before flushing long
9650       replies, such as the network consensus, if a QUIT command was issued
9651       before the reply had completed. Now, the control port flushes all
9652       pending replies before closing the connection. Also fix a spurious
9653       warning when a QUIT command is issued after a malformed or rejected
9654       AUTHENTICATE command, but before the connection was closed. Patch
9655       by Marcus Griep. Fixes bugs 1015 and 1016.
9656     - Fix a bug that made stream bandwidth get misreported to the
9657       controller.
9659   o Deprecated and removed features:
9660     - The old "tor --version --version" command, which would print out
9661       the subversion "Id" of most of the source files, is now removed. It
9662       turned out to be less useful than we'd expected, and harder to
9663       maintain.
9664     - RedirectExits has been removed. It was deprecated since
9665       0.2.0.3-alpha.
9666     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
9667       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
9668     - Cell pools are now always enabled; --disable-cell-pools is ignored.
9669     - Directory mirrors no longer fetch the v1 directory or
9670       running-routers files. They are obsolete, and nobody asks for them
9671       anymore. This is the first step to making v1 authorities obsolete.
9672     - Take out the TestVia config option, since it was a workaround for
9673       a bug that was fixed in Tor 0.1.1.21.
9674     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
9675       HiddenServiceExcludeNodes as obsolete: they never worked properly,
9676       and nobody seems to be using them. Fixes bug 754. Bugfix on
9677       0.1.0.1-rc. Patch from Christian Wilms.
9678     - Remove all backward-compatibility code for relays running
9679       versions of Tor so old that they no longer work at all on the
9680       Tor network.
9682   o Code simplifications and refactoring:
9683     - Tool-assisted documentation cleanup. Nearly every function or
9684       static variable in Tor should have its own documentation now.
9685     - Rename the confusing or_is_obsolete field to the more appropriate
9686       is_bad_for_new_circs, and move it to or_connection_t where it
9687       belongs.
9688     - Move edge-only flags from connection_t to edge_connection_t: not
9689       only is this better coding, but on machines of plausible alignment,
9690       it should save 4-8 bytes per connection_t. "Every little bit helps."
9691     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
9692       for consistency; keep old option working for backward compatibility.
9693     - Simplify the code for finding connections to use for a circuit.
9694     - Revise the connection_new functions so that a more typesafe variant
9695       exists. This will work better with Coverity, and let us find any
9696       actual mistakes we're making here.
9697     - Refactor unit testing logic so that dmalloc can be used sensibly
9698       with unit tests to check for memory leaks.
9699     - Move all hidden-service related fields from connection and circuit
9700       structure to substructures: this way they won't eat so much memory.
9701     - Squeeze 2-5% out of client performance (according to oprofile) by
9702       improving the implementation of some policy-manipulation functions.
9703     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
9704       be more efficient. Formerly it was quadratic in the number of
9705       servers; now it should be linear. Fixes bug 509.
9706     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
9707       and n_conn_id_digest fields into a separate structure that's
9708       only needed when the circuit has not yet attached to an n_conn.
9709     - Optimize out calls to time(NULL) that occur for every IO operation,
9710       or for every cell. On systems like Windows where time() is a
9711       slow syscall, this fix will be slightly helpful.
9714 Changes in version 0.2.0.35 - 2009-06-24
9715   o Security fix:
9716     - Avoid crashing in the presence of certain malformed descriptors.
9717       Found by lark, and by automated fuzzing.
9718     - Fix an edge case where a malicious exit relay could convince a
9719       controller that the client's DNS question resolves to an internal IP
9720       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
9722   o Major bugfixes:
9723     - Finally fix the bug where dynamic-IP relays disappear when their
9724       IP address changes: directory mirrors were mistakenly telling
9725       them their old address if they asked via begin_dir, so they
9726       never got an accurate answer about their new address, so they
9727       just vanished after a day. For belt-and-suspenders, relays that
9728       don't set Address in their config now avoid using begin_dir for
9729       all direct connections. Should fix bugs 827, 883, and 900.
9730     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
9731       that would occur on some exit nodes when DNS failures and timeouts
9732       occurred in certain patterns. Fix for bug 957.
9734   o Minor bugfixes:
9735     - When starting with a cache over a few days old, do not leak
9736       memory for the obsolete router descriptors in it. Bugfix on
9737       0.2.0.33; fixes bug 672.
9738     - Hidden service clients didn't use a cached service descriptor that
9739       was older than 15 minutes, but wouldn't fetch a new one either,
9740       because there was already one in the cache. Now, fetch a v2
9741       descriptor unless the same descriptor was added to the cache within
9742       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
9745 Changes in version 0.2.0.34 - 2009-02-08
9746   Tor 0.2.0.34 features several more security-related fixes. You should
9747   upgrade, especially if you run an exit relay (remote crash) or a
9748   directory authority (remote infinite loop), or you're on an older
9749   (pre-XP) or not-recently-patched Windows (remote exploit).
9751   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
9752   have many known flaws, and nobody should be using them. You should
9753   upgrade. If you're using a Linux or BSD and its packages are obsolete,
9754   stop using those packages and upgrade anyway.
9756   o Security fixes:
9757     - Fix an infinite-loop bug on handling corrupt votes under certain
9758       circumstances. Bugfix on 0.2.0.8-alpha.
9759     - Fix a temporary DoS vulnerability that could be performed by
9760       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
9761     - Avoid a potential crash on exit nodes when processing malformed
9762       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
9763     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
9764       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
9766   o Minor bugfixes:
9767     - Fix compilation on systems where time_t is a 64-bit integer.
9768       Patch from Matthias Drochner.
9769     - Don't consider expiring already-closed client connections. Fixes
9770       bug 893. Bugfix on 0.0.2pre20.
9773 Changes in version 0.2.0.33 - 2009-01-21
9774   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
9775   useful to users. It also finally fixes a bug where a relay or client
9776   that's been off for many days would take a long time to bootstrap.
9778   This update also fixes an important security-related bug reported by
9779   Ilja van Sprundel. You should upgrade. (We'll send out more details
9780   about the bug once people have had some time to upgrade.)
9782   o Security fixes:
9783     - Fix a heap-corruption bug that may be remotely triggerable on
9784       some platforms. Reported by Ilja van Sprundel.
9786   o Major bugfixes:
9787     - When a stream at an exit relay is in state "resolving" or
9788       "connecting" and it receives an "end" relay cell, the exit relay
9789       would silently ignore the end cell and not close the stream. If
9790       the client never closes the circuit, then the exit relay never
9791       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
9792       reported by "wood".
9793     - When sending CREATED cells back for a given circuit, use a 64-bit
9794       connection ID to find the right connection, rather than an addr:port
9795       combination. Now that we can have multiple OR connections between
9796       the same ORs, it is no longer possible to use addr:port to uniquely
9797       identify a connection.
9798     - Bridge relays that had DirPort set to 0 would stop fetching
9799       descriptors shortly after startup, and then briefly resume
9800       after a new bandwidth test and/or after publishing a new bridge
9801       descriptor. Bridge users that try to bootstrap from them would
9802       get a recent networkstatus but would get descriptors from up to
9803       18 hours earlier, meaning most of the descriptors were obsolete
9804       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
9805     - Prevent bridge relays from serving their 'extrainfo' document
9806       to anybody who asks, now that extrainfo docs include potentially
9807       sensitive aggregated client geoip summaries. Bugfix on
9808       0.2.0.13-alpha.
9809     - If the cached networkstatus consensus is more than five days old,
9810       discard it rather than trying to use it. In theory it could be
9811       useful because it lists alternate directory mirrors, but in practice
9812       it just means we spend many minutes trying directory mirrors that
9813       are long gone from the network. Also discard router descriptors as
9814       we load them if they are more than five days old, since the onion
9815       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
9817   o Minor bugfixes:
9818     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
9819       could make gcc generate non-functional binary search code. Bugfix
9820       on 0.2.0.10-alpha.
9821     - Build correctly on platforms without socklen_t.
9822     - Compile without warnings on solaris.
9823     - Avoid potential crash on internal error during signature collection.
9824       Fixes bug 864. Patch from rovv.
9825     - Correct handling of possible malformed authority signing key
9826       certificates with internal signature types. Fixes bug 880.
9827       Bugfix on 0.2.0.3-alpha.
9828     - Fix a hard-to-trigger resource leak when logging credential status.
9829       CID 349.
9830     - When we can't initialize DNS because the network is down, do not
9831       automatically stop Tor from starting. Instead, we retry failed
9832       dns_init() every 10 minutes, and change the exit policy to reject
9833       *:* until one succeeds. Fixes bug 691.
9834     - Use 64 bits instead of 32 bits for connection identifiers used with
9835       the controller protocol, to greatly reduce risk of identifier reuse.
9836     - When we're choosing an exit node for a circuit, and we have
9837       no pending streams, choose a good general exit rather than one that
9838       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
9839     - Fix another case of assuming, when a specific exit is requested,
9840       that we know more than the user about what hosts it allows.
9841       Fixes one case of bug 752. Patch from rovv.
9842     - Clip the MaxCircuitDirtiness config option to a minimum of 10
9843       seconds. Warn the user if lower values are given in the
9844       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
9845     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
9846       user if lower values are given in the configuration. Bugfix on
9847       0.1.1.17-rc. Patch by Sebastian.
9848     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
9849       the cache because we already had a v0 descriptor with the same ID.
9850       Bugfix on 0.2.0.18-alpha.
9851     - Fix a race condition when freeing keys shared between main thread
9852       and CPU workers that could result in a memory leak. Bugfix on
9853       0.1.0.1-rc. Fixes bug 889.
9854     - Send a valid END cell back when a client tries to connect to a
9855       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
9856       840. Patch from rovv.
9857     - Check which hops rendezvous stream cells are associated with to
9858       prevent possible guess-the-streamid injection attacks from
9859       intermediate hops. Fixes another case of bug 446. Based on patch
9860       from rovv.
9861     - If a broken client asks a non-exit router to connect somewhere,
9862       do not even do the DNS lookup before rejecting the connection.
9863       Fixes another case of bug 619. Patch from rovv.
9864     - When a relay gets a create cell it can't decrypt (e.g. because it's
9865       using the wrong onion key), we were dropping it and letting the
9866       client time out. Now actually answer with a destroy cell. Fixes
9867       bug 904. Bugfix on 0.0.2pre8.
9869   o Minor bugfixes (hidden services):
9870     - Do not throw away existing introduction points on SIGHUP. Bugfix on
9871       0.0.6pre1. Patch by Karsten. Fixes bug 874.
9873   o Minor features:
9874     - Report the case where all signatures in a detached set are rejected
9875       differently than the case where there is an error handling the
9876       detached set.
9877     - When we realize that another process has modified our cached
9878       descriptors, print out a more useful error message rather than
9879       triggering an assertion. Fixes bug 885. Patch from Karsten.
9880     - Implement the 0x20 hack to better resist DNS poisoning: set the
9881       case on outgoing DNS requests randomly, and reject responses that do
9882       not match the case correctly. This logic can be disabled with the
9883       ServerDNSRamdomizeCase setting, if you are using one of the 0.3%
9884       of servers that do not reliably preserve case in replies. See
9885       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
9886       for more info.
9887     - Check DNS replies for more matching fields to better resist DNS
9888       poisoning.
9889     - Never use OpenSSL compression: it wastes RAM and CPU trying to
9890       compress cells, which are basically all encrypted, compressed, or
9891       both.
9894 Changes in version 0.2.0.32 - 2008-11-20
9895   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
9896   packages (and maybe other packages) noticed by Theo de Raadt, fixes
9897   a smaller security flaw that might allow an attacker to access local
9898   services, further improves hidden service performance, and fixes a
9899   variety of other issues.
9901   o Security fixes:
9902     - The "User" and "Group" config options did not clear the
9903       supplementary group entries for the Tor process. The "User" option
9904       is now more robust, and we now set the groups to the specified
9905       user's primary group. The "Group" option is now ignored. For more
9906       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
9907       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
9908       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
9909     - The "ClientDNSRejectInternalAddresses" config option wasn't being
9910       consistently obeyed: if an exit relay refuses a stream because its
9911       exit policy doesn't allow it, we would remember what IP address
9912       the relay said the destination address resolves to, even if it's
9913       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
9915   o Major bugfixes:
9916     - Fix a DOS opportunity during the voting signature collection process
9917       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
9919   o Major bugfixes (hidden services):
9920     - When fetching v0 and v2 rendezvous service descriptors in parallel,
9921       we were failing the whole hidden service request when the v0
9922       descriptor fetch fails, even if the v2 fetch is still pending and
9923       might succeed. Similarly, if the last v2 fetch fails, we were
9924       failing the whole hidden service request even if a v0 fetch is
9925       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
9926     - When extending a circuit to a hidden service directory to upload a
9927       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
9928       requests failed, because the router descriptor has not been
9929       downloaded yet. In these cases, do not attempt to upload the
9930       rendezvous descriptor, but wait until the router descriptor is
9931       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
9932       descriptor from a hidden service directory for which the router
9933       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
9934       on 0.2.0.10-alpha.
9936   o Minor bugfixes:
9937     - Fix several infrequent memory leaks spotted by Coverity.
9938     - When testing for libevent functions, set the LDFLAGS variable
9939       correctly. Found by Riastradh.
9940     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
9941       bootstrapping with tunneled directory connections. Bugfix on
9942       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
9943     - When asked to connect to A.B.exit:80, if we don't know the IP for A
9944       and we know that server B rejects most-but-not all connections to
9945       port 80, we would previously reject the connection. Now, we assume
9946       the user knows what they were asking for. Fixes bug 752. Bugfix
9947       on 0.0.9rc5. Diagnosed by BarkerJr.
9948     - If we overrun our per-second write limits a little, count this as
9949       having used up our write allocation for the second, and choke
9950       outgoing directory writes. Previously, we had only counted this when
9951       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
9952       Bugfix on 0.2.0.x (??).
9953     - Remove the old v2 directory authority 'lefkada' from the default
9954       list. It has been gone for many months.
9955     - Stop doing unaligned memory access that generated bus errors on
9956       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
9957     - Make USR2 log-level switch take effect immediately. Bugfix on
9958       0.1.2.8-beta.
9960   o Minor bugfixes (controller):
9961     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
9962       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
9965 Changes in version 0.2.0.31 - 2008-09-03
9966   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
9967   a big bug we're seeing where in rare cases traffic from one Tor stream
9968   gets mixed into another stream, and fixes a variety of smaller issues.
9970   o Major bugfixes:
9971     - Make sure that two circuits can never exist on the same connection
9972       with the same circuit ID, even if one is marked for close. This
9973       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
9974     - Relays now reject risky extend cells: if the extend cell includes
9975       a digest of all zeroes, or asks to extend back to the relay that
9976       sent the extend cell, tear down the circuit. Ideas suggested
9977       by rovv.
9978     - If not enough of our entry guards are available so we add a new
9979       one, we might use the new one even if it overlapped with the
9980       current circuit's exit relay (or its family). Anonymity bugfix
9981       pointed out by rovv.
9983   o Minor bugfixes:
9984     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
9985       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
9986     - Correctly detect the presence of the linux/netfilter_ipv4.h header
9987       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
9988     - Pick size of default geoip filename string correctly on windows.
9989       Fixes bug 806. Bugfix on 0.2.0.30.
9990     - Make the autoconf script accept the obsolete --with-ssl-dir
9991       option as an alias for the actually-working --with-openssl-dir
9992       option. Fix the help documentation to recommend --with-openssl-dir.
9993       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
9994     - When using the TransPort option on OpenBSD, and using the User
9995       option to change UID and drop privileges, make sure to open
9996       /dev/pf before dropping privileges. Fixes bug 782. Patch from
9997       Christopher Davis. Bugfix on 0.1.2.1-alpha.
9998     - Try to attach connections immediately upon receiving a RENDEZVOUS2
9999       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
10000       on the client side when connecting to a hidden service. Bugfix
10001       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
10002     - When closing an application-side connection because its circuit is
10003       getting torn down, generate the stream event correctly. Bugfix on
10004       0.1.2.x. Anonymous patch.
10007 Changes in version 0.2.0.30 - 2008-07-15
10008   This new stable release switches to a more efficient directory
10009   distribution design, adds features to make connections to the Tor
10010   network harder to block, allows Tor to act as a DNS proxy, adds separate
10011   rate limiting for relayed traffic to make it easier for clients to
10012   become relays, fixes a variety of potential anonymity problems, and
10013   includes the usual huge pile of other features and bug fixes.
10015   o New v3 directory design:
10016     - Tor now uses a new way to learn about and distribute information
10017       about the network: the directory authorities vote on a common
10018       network status document rather than each publishing their own
10019       opinion. Now clients and caches download only one networkstatus
10020       document to bootstrap, rather than downloading one for each
10021       authority. Clients only download router descriptors listed in
10022       the consensus. Implements proposal 101; see doc/spec/dir-spec.txt
10023       for details.
10024     - Set up moria1, tor26, and dizum as v3 directory authorities
10025       in addition to being v2 authorities. Also add three new ones:
10026       ides (run by Mike Perry), gabelmoo (run by Karsten Loesing), and
10027       dannenberg (run by CCC).
10028     - Switch to multi-level keys for directory authorities: now their
10029       long-term identity key can be kept offline, and they periodically
10030       generate a new signing key. Clients fetch the "key certificates"
10031       to keep up to date on the right keys. Add a standalone tool
10032       "tor-gencert" to generate key certificates. Implements proposal 103.
10033     - Add a new V3AuthUseLegacyKey config option to make it easier for
10034       v3 authorities to change their identity keys if another bug like
10035       Debian's OpenSSL RNG flaw appears.
10036     - Authorities and caches fetch the v2 networkstatus documents
10037       less often, now that v3 is recommended.
10039   o Make Tor connections stand out less on the wire:
10040     - Use an improved TLS handshake designed by Steven Murdoch in proposal
10041       124, as revised in proposal 130. The new handshake is meant to
10042       be harder for censors to fingerprint, and it adds the ability
10043       to detect certain kinds of man-in-the-middle traffic analysis
10044       attacks. The new handshake format includes version negotiation for
10045       OR connections as described in proposal 105, which will allow us
10046       to improve Tor's link protocol more safely in the future.
10047     - Enable encrypted directory connections by default for non-relays,
10048       so censor tools that block Tor directory connections based on their
10049       plaintext patterns will no longer work. This means Tor works in
10050       certain censored countries by default again.
10051     - Stop including recognizeable strings in the commonname part of
10052       Tor's x509 certificates.
10054   o Implement bridge relays:
10055     - Bridge relays (or "bridges" for short) are Tor relays that aren't
10056       listed in the main Tor directory. Since there is no complete public
10057       list of them, even an ISP that is filtering connections to all the
10058       known Tor relays probably won't be able to block all the bridges.
10059       See doc/design-paper/blocking.pdf and proposal 125 for details.
10060     - New config option BridgeRelay that specifies you want to be a
10061       bridge relay rather than a normal relay. When BridgeRelay is set
10062       to 1, then a) you cache dir info even if your DirPort ins't on,
10063       and b) the default for PublishServerDescriptor is now "bridge"
10064       rather than "v2,v3".
10065     - New config option "UseBridges 1" for clients that want to use bridge
10066       relays instead of ordinary entry guards. Clients then specify
10067       bridge relays by adding "Bridge" lines to their config file. Users
10068       can learn about a bridge relay either manually through word of
10069       mouth, or by one of our rate-limited mechanisms for giving out
10070       bridge addresses without letting an attacker easily enumerate them
10071       all. See https://www.torproject.org/bridges for details.
10072     - Bridge relays behave like clients with respect to time intervals
10073       for downloading new v3 consensus documents -- otherwise they
10074       stand out. Bridge users now wait until the end of the interval,
10075       so their bridge relay will be sure to have a new consensus document.
10077   o Implement bridge directory authorities:
10078     - Bridge authorities are like normal directory authorities, except
10079       they don't serve a list of known bridges. Therefore users that know
10080       a bridge's fingerprint can fetch a relay descriptor for that bridge,
10081       including fetching updates e.g. if the bridge changes IP address,
10082       yet an attacker can't just fetch a list of all the bridges.
10083     - Set up Tonga as the default bridge directory authority.
10084     - Bridge authorities refuse to serve bridge descriptors or other
10085       bridge information over unencrypted connections (that is, when
10086       responding to direct DirPort requests rather than begin_dir cells.)
10087     - Bridge directory authorities do reachability testing on the
10088       bridges they know. They provide router status summaries to the
10089       controller via "getinfo ns/purpose/bridge", and also dump summaries
10090       to a file periodically, so we can keep internal stats about which
10091       bridges are functioning.
10092     - If bridge users set the UpdateBridgesFromAuthority config option,
10093       but the digest they ask for is a 404 on the bridge authority,
10094       they fall back to contacting the bridge directly.
10095     - Bridges always use begin_dir to publish their server descriptor to
10096       the bridge authority using an anonymous encrypted tunnel.
10097     - Early work on a "bridge community" design: if bridge authorities set
10098       the BridgePassword config option, they will serve a snapshot of
10099       known bridge routerstatuses from their DirPort to anybody who
10100       knows that password. Unset by default.
10101     - Tor now includes an IP-to-country GeoIP file, so bridge relays can
10102       report sanitized aggregated summaries in their extra-info documents
10103       privately to the bridge authority, listing which countries are
10104       able to reach them. We hope this mechanism will let us learn when
10105       certain countries start trying to block bridges.
10106     - Bridge authorities write bridge descriptors to disk, so they can
10107       reload them after a reboot. They can also export the descriptors
10108       to other programs, so we can distribute them to blocked users via
10109       the BridgeDB interface, e.g. via https://bridges.torproject.org/
10110       and bridges@torproject.org.
10112   o Tor can be a DNS proxy:
10113     - The new client-side DNS proxy feature replaces the need for
10114       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
10115       for DNS requests on port 9999, use the Tor network to resolve them
10116       anonymously, and send the reply back like a regular DNS server.
10117       The code still only implements a subset of DNS.
10118     - Add a new AutomapHostsOnResolve option: when it is enabled, any
10119       resolve request for hosts matching a given pattern causes Tor to
10120       generate an internal virtual address mapping for that host. This
10121       allows DNSPort to work sensibly with hidden service users. By
10122       default, .exit and .onion addresses are remapped; the list of
10123       patterns can be reconfigured with AutomapHostsSuffixes.
10124     - Add an "-F" option to tor-resolve to force a resolve for a .onion
10125       address. Thanks to the AutomapHostsOnResolve option, this is no
10126       longer a completely silly thing to do.
10128   o Major features (relay usability):
10129     - New config options RelayBandwidthRate and RelayBandwidthBurst:
10130       a separate set of token buckets for relayed traffic. Right now
10131       relayed traffic is defined as answers to directory requests, and
10132       OR connections that don't have any local circuits on them. See
10133       proposal 111 for details.
10134     - Create listener connections before we setuid to the configured
10135       User and Group. Now non-Windows users can choose port values
10136       under 1024, start Tor as root, and have Tor bind those ports
10137       before it changes to another UID. (Windows users could already
10138       pick these ports.)
10139     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
10140       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
10141       on "vserver" accounts. Patch from coderman.
10143   o Major features (directory authorities):
10144     - Directory authorities track weighted fractional uptime and weighted
10145       mean-time-between failures for relays. WFU is suitable for deciding
10146       whether a node is "usually up", while MTBF is suitable for deciding
10147       whether a node is "likely to stay up." We need both, because
10148       "usually up" is a good requirement for guards, while "likely to
10149       stay up" is a good requirement for long-lived connections.
10150     - Directory authorities use a new formula for selecting which relays
10151       to advertise as Guards: they must be in the top 7/8 in terms of
10152       how long we have known about them, and above the median of those
10153       nodes in terms of weighted fractional uptime.
10154     - Directory authorities use a new formula for selecting which relays
10155       to advertise as Stable: when we have 4 or more days of data, use
10156       median measured MTBF rather than median declared uptime. Implements
10157       proposal 108.
10158     - Directory authorities accept and serve "extra info" documents for
10159       routers. Routers now publish their bandwidth-history lines in the
10160       extra-info docs rather than the main descriptor. This step saves
10161       60% (!) on compressed router descriptor downloads. Servers upload
10162       extra-info docs to any authority that accepts them; directory
10163       authorities now allow multiple router descriptors and/or extra
10164       info documents to be uploaded in a single go. Authorities, and
10165       caches that have been configured to download extra-info documents,
10166       download them as needed. Implements proposal 104.
10167     - Authorities now list relays who have the same nickname as
10168       a different named relay, but list them with a new flag:
10169       "Unnamed". Now we can make use of relays that happen to pick the
10170       same nickname as a server that registered two years ago and then
10171       disappeared. Implements proposal 122.
10172     - Store routers in a file called cached-descriptors instead of in
10173       cached-routers. Initialize cached-descriptors from cached-routers
10174       if the old format is around. The new format allows us to store
10175       annotations along with descriptors, to record the time we received
10176       each descriptor, its source, and its purpose: currently one of
10177       general, controller, or bridge.
10179   o Major features (other):
10180     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
10181       Tor can warn and/or refuse connections to ports commonly used with
10182       vulnerable-plaintext protocols. Currently we warn on ports 23,
10183       109, 110, and 143, but we don't reject any. Based on proposal 129
10184       by Kevin Bauer and Damon McCoy.
10185     - Integrate Karsten Loesing's Google Summer of Code project to publish
10186       hidden service descriptors on a set of redundant relays that are a
10187       function of the hidden service address. Now we don't have to rely
10188       on three central hidden service authorities for publishing and
10189       fetching every hidden service descriptor. Implements proposal 114.
10190     - Allow tunnelled directory connections to ask for an encrypted
10191       "begin_dir" connection or an anonymized "uses a full Tor circuit"
10192       connection independently. Now we can make anonymized begin_dir
10193       connections for (e.g.) more secure hidden service posting and
10194       fetching.
10196   o Major bugfixes (crashes and assert failures):
10197     - Stop imposing an arbitrary maximum on the number of file descriptors
10198       used for busy servers. Bug reported by Olaf Selke; patch from
10199       Sebastian Hahn.
10200     - Avoid possible failures when generating a directory with routers
10201       with over-long versions strings, or too many flags set.
10202     - Fix a rare assert error when we're closing one of our threads:
10203       use a mutex to protect the list of logs, so we never write to the
10204       list as it's being freed. Fixes the very rare bug 575, which is
10205       kind of the revenge of bug 222.
10206     - Avoid segfault in the case where a badly behaved v2 versioning
10207       directory sends a signed networkstatus with missing client-versions.
10208     - When we hit an EOF on a log (probably because we're shutting down),
10209       don't try to remove the log from the list: just mark it as
10210       unusable. (Bulletproofs against bug 222.)
10212   o Major bugfixes (code security fixes):
10213     - Detect size overflow in zlib code. Reported by Justin Ferguson and
10214       Dan Kaminsky.
10215     - Rewrite directory tokenization code to never run off the end of
10216       a string. Fixes bug 455. Patch from croup.
10217     - Be more paranoid about overwriting sensitive memory on free(),
10218       as a defensive programming tactic to ensure forward secrecy.
10220   o Major bugfixes (anonymity fixes):
10221     - Reject requests for reverse-dns lookup of names that are in
10222       a private address space. Patch from lodger.
10223     - Never report that we've used more bandwidth than we're willing to
10224       relay: it leaks how much non-relay traffic we're using. Resolves
10225       bug 516.
10226     - As a client, do not believe any server that tells us that an
10227       address maps to an internal address space.
10228     - Warn about unsafe ControlPort configurations.
10229     - Directory authorities now call routers Fast if their bandwidth is
10230       at least 100KB/s, and consider their bandwidth adequate to be a
10231       Guard if it is at least 250KB/s, no matter the medians. This fix
10232       complements proposal 107.
10233     - Directory authorities now never mark more than 2 servers per IP as
10234       Valid and Running (or 5 on addresses shared by authorities).
10235       Implements proposal 109, by Kevin Bauer and Damon McCoy.
10236     - If we're a relay, avoid picking ourselves as an introduction point,
10237       a rendezvous point, or as the final hop for internal circuits. Bug
10238       reported by taranis and lodger.
10239     - Exit relays that are used as a client can now reach themselves
10240       using the .exit notation, rather than just launching an infinite
10241       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
10242     - Fix a bug where, when we were choosing the 'end stream reason' to
10243       put in our relay end cell that we send to the exit relay, Tor
10244       clients on Windows were sometimes sending the wrong 'reason'. The
10245       anonymity problem is that exit relays may be able to guess whether
10246       the client is running Windows, thus helping partition the anonymity
10247       set. Down the road we should stop sending reasons to exit relays,
10248       or otherwise prevent future versions of this bug.
10249     - Only update guard status (usable / not usable) once we have
10250       enough directory information. This was causing us to discard all our
10251       guards on startup if we hadn't been running for a few weeks. Fixes
10252       bug 448.
10253     - When our directory information has been expired for a while, stop
10254       being willing to build circuits using it. Fixes bug 401.
10256   o Major bugfixes (peace of mind for relay operators)
10257     - Non-exit relays no longer answer "resolve" relay cells, so they
10258       can't be induced to do arbitrary DNS requests. (Tor clients already
10259       avoid using non-exit relays for resolve cells, but now servers
10260       enforce this too.) Fixes bug 619. Patch from lodger.
10261     - When we setconf ClientOnly to 1, close any current OR and Dir
10262       listeners. Reported by mwenge.
10264   o Major bugfixes (other):
10265     - If we only ever used Tor for hidden service lookups or posts, we
10266       would stop building circuits and start refusing connections after
10267       24 hours, since we falsely believed that Tor was dormant. Reported
10268       by nwf.
10269     - Add a new __HashedControlSessionPassword option for controllers
10270       to use for one-off session password hashes that shouldn't get
10271       saved to disk by SAVECONF --- Vidalia users were accumulating a
10272       pile of HashedControlPassword lines in their torrc files, one for
10273       each time they had restarted Tor and then clicked Save. Make Tor
10274       automatically convert "HashedControlPassword" to this new option but
10275       only when it's given on the command line. Partial fix for bug 586.
10276     - Patch from "Andrew S. Lists" to catch when we contact a directory
10277       mirror at IP address X and he says we look like we're coming from
10278       IP address X. Otherwise this would screw up our address detection.
10279     - Reject uploaded descriptors and extrainfo documents if they're
10280       huge. Otherwise we'll cache them all over the network and it'll
10281       clog everything up. Suggested by Aljosha Judmayer.
10282     - When a hidden service was trying to establish an introduction point,
10283       and Tor *did* manage to reuse one of the preemptively built
10284       circuits, it didn't correctly remember which one it used,
10285       so it asked for another one soon after, until there were no
10286       more preemptive circuits, at which point it launched one from
10287       scratch. Bugfix on 0.0.9.x.
10289   o Rate limiting and load balancing improvements:
10290     - When we add data to a write buffer in response to the data on that
10291       write buffer getting low because of a flush, do not consider the
10292       newly added data as a candidate for immediate flushing, but rather
10293       make it wait until the next round of writing. Otherwise, we flush
10294       and refill recursively, and a single greedy TLS connection can
10295       eat all of our bandwidth.
10296     - When counting the number of bytes written on a TLS connection,
10297       look at the BIO actually used for writing to the network, not
10298       at the BIO used (sometimes) to buffer data for the network.
10299       Looking at different BIOs could result in write counts on the
10300       order of ULONG_MAX. Fixes bug 614.
10301     - If we change our MaxAdvertisedBandwidth and then reload torrc,
10302       Tor won't realize it should publish a new relay descriptor. Fixes
10303       bug 688, reported by mfr.
10304     - Avoid using too little bandwidth when our clock skips a few seconds.
10305     - Choose which bridge to use proportional to its advertised bandwidth,
10306       rather than uniformly at random. This should speed up Tor for
10307       bridge users. Also do this for people who set StrictEntryNodes.
10309   o Bootstrapping faster and building circuits more intelligently:
10310     - Fix bug 660 that was preventing us from knowing that we should
10311       preemptively build circuits to handle expected directory requests.
10312     - When we're checking if we have enough dir info for each relay
10313       to begin establishing circuits, make sure that we actually have
10314       the descriptor listed in the consensus, not just any descriptor.
10315     - Correctly notify one-hop connections when a circuit build has
10316       failed. Possible fix for bug 669. Found by lodger.
10317     - Clients now hold circuitless TLS connections open for 1.5 times
10318       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
10319       rebuild a new circuit over them within that timeframe. Previously,
10320       they held them open only for KeepalivePeriod (5 minutes).
10322   o Performance improvements (memory):
10323     - Add OpenBSD malloc code from "phk" as an optional malloc
10324       replacement on Linux: some glibc libraries do very poorly with
10325       Tor's memory allocation patterns. Pass --enable-openbsd-malloc to
10326       ./configure to get the replacement malloc code.
10327     - Switch our old ring buffer implementation for one more like that
10328       used by free Unix kernels. The wasted space in a buffer with 1mb
10329       of data will now be more like 8k than 1mb. The new implementation
10330       also avoids realloc();realloc(); patterns that can contribute to
10331       memory fragmentation.
10332     - Change the way that Tor buffers data that it is waiting to write.
10333       Instead of queueing data cells in an enormous ring buffer for each
10334       client->OR or OR->OR connection, we now queue cells on a separate
10335       queue for each circuit. This lets us use less slack memory, and
10336       will eventually let us be smarter about prioritizing different kinds
10337       of traffic.
10338     - Reference-count and share copies of address policy entries; only 5%
10339       of them were actually distinct.
10340     - Tune parameters for cell pool allocation to minimize amount of
10341       RAM overhead used.
10342     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
10343       for every single inactive connection_t. Free items from the
10344       4k/16k-buffer free lists when they haven't been used for a while.
10345     - Make memory debugging information describe more about history
10346       of cell allocation, so we can help reduce our memory use.
10347     - Be even more aggressive about releasing RAM from small
10348       empty buffers. Thanks to our free-list code, this shouldn't be too
10349       performance-intensive.
10350     - Log malloc statistics from mallinfo() on platforms where it exists.
10351     - Use memory pools to allocate cells with better speed and memory
10352       efficiency, especially on platforms where malloc() is inefficient.
10353     - Add a --with-tcmalloc option to the configure script to link
10354       against tcmalloc (if present). Does not yet search for non-system
10355       include paths.
10357   o Performance improvements (socket management):
10358     - Count the number of open sockets separately from the number of
10359       active connection_t objects. This will let us avoid underusing
10360       our allocated connection limit.
10361     - We no longer use socket pairs to link an edge connection to an
10362       anonymous directory connection or a DirPort test connection.
10363       Instead, we track the link internally and transfer the data
10364       in-process. This saves two sockets per "linked" connection (at the
10365       client and at the server), and avoids the nasty Windows socketpair()
10366       workaround.
10367     - We were leaking a file descriptor if Tor started with a zero-length
10368       cached-descriptors file. Patch by "freddy77".
10370   o Performance improvements (CPU use):
10371     - Never walk through the list of logs if we know that no log target
10372       is interested in a given message.
10373     - Call routerlist_remove_old_routers() much less often. This should
10374       speed startup, especially on directory caches.
10375     - Base64 decoding was actually showing up on our profile when parsing
10376       the initial descriptor file; switch to an in-process all-at-once
10377       implementation that's about 3.5x times faster than calling out to
10378       OpenSSL.
10379     - Use a slightly simpler string hashing algorithm (copying Python's
10380       instead of Java's) and optimize our digest hashing algorithm to take
10381       advantage of 64-bit platforms and to remove some possibly-costly
10382       voodoo.
10383     - When implementing AES counter mode, update only the portions of the
10384       counter buffer that need to change, and don't keep separate
10385       network-order and host-order counters on big-endian hosts (where
10386       they are the same).
10387     - Add an in-place version of aes_crypt() so that we can avoid doing a
10388       needless memcpy() call on each cell payload.
10389     - Use Critical Sections rather than Mutexes for synchronizing threads
10390       on win32; Mutexes are heavier-weight, and designed for synchronizing
10391       between processes.
10393   o Performance improvements (bandwidth use):
10394     - Don't try to launch new descriptor downloads quite so often when we
10395       already have enough directory information to build circuits.
10396     - Version 1 directories are no longer generated in full. Instead,
10397       authorities generate and serve "stub" v1 directories that list
10398       no servers. This will stop Tor versions 0.1.0.x and earlier from
10399       working, but (for security reasons) nobody should be running those
10400       versions anyway.
10401     - Avoid going directly to the directory authorities even if you're a
10402       relay, if you haven't found yourself reachable yet or if you've
10403       decided not to advertise your dirport yet. Addresses bug 556.
10404     - If we've gone 12 hours since our last bandwidth check, and we
10405       estimate we have less than 50KB bandwidth capacity but we could
10406       handle more, do another bandwidth test.
10407     - Support "If-Modified-Since" when answering HTTP requests for
10408       directories, running-routers documents, and v2 and v3 networkstatus
10409       documents. (There's no need to support it for router descriptors,
10410       since those are downloaded by descriptor digest.)
10411     - Stop fetching directory info so aggressively if your DirPort is
10412       on but your ORPort is off; stop fetching v2 dir info entirely.
10413       You can override these choices with the new FetchDirInfoEarly
10414       config option.
10416   o Changed config option behavior (features):
10417     - Configuration files now accept C-style strings as values. This
10418       helps encode characters not allowed in the current configuration
10419       file format, such as newline or #. Addresses bug 557.
10420     - Add hidden services and DNSPorts to the list of things that make
10421       Tor accept that it has running ports. Change starting Tor with no
10422       ports from a fatal error to a warning; we might change it back if
10423       this turns out to confuse anybody. Fixes bug 579.
10424     - Make PublishServerDescriptor default to 1, so the default doesn't
10425       have to change as we invent new directory protocol versions.
10426     - Allow people to say PreferTunnelledDirConns rather than
10427       PreferTunneledDirConns, for those alternate-spellers out there.
10428     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
10429       accommodate the growing number of servers that use the default
10430       and are reaching it.
10431     - Make it possible to enable HashedControlPassword and
10432       CookieAuthentication at the same time.
10433     - When a TrackHostExits-chosen exit fails too many times in a row,
10434       stop using it. Fixes bug 437.
10436   o Changed config option behavior (bugfixes):
10437     - Do not read the configuration file when we've only been told to
10438       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
10439       based on patch from Sebastian Hahn.
10440     - Actually validate the options passed to AuthDirReject,
10441       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
10442     - Make "ClientOnly 1" config option disable directory ports too.
10443     - Don't stop fetching descriptors when FetchUselessDescriptors is
10444       set, even if we stop asking for circuits. Bug reported by tup
10445       and ioerror.
10446     - Servers used to decline to publish their DirPort if their
10447       BandwidthRate or MaxAdvertisedBandwidth were below a threshold. Now
10448       they look only at BandwidthRate and RelayBandwidthRate.
10449     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
10450       minus 1 byte: the actual maximum declared bandwidth.
10451     - Make "TrackHostExits ." actually work. Bugfix on 0.1.0.x.
10452     - Make the NodeFamilies config option work. (Reported by
10453       lodger -- it has never actually worked, even though we added it
10454       in Oct 2004.)
10455     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
10456       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
10458   o New config options:
10459     - New configuration options AuthDirMaxServersPerAddr and
10460       AuthDirMaxServersperAuthAddr to override default maximum number
10461       of servers allowed on a single IP address. This is important for
10462       running a test network on a single host.
10463     - Three new config options (AlternateDirAuthority,
10464       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
10465       user selectively replace the default directory authorities by type,
10466       rather than the all-or-nothing replacement that DirServer offers.
10467     - New config options AuthDirBadDir and AuthDirListBadDirs for
10468       authorities to mark certain relays as "bad directories" in the
10469       networkstatus documents. Also supports the "!baddir" directive in
10470       the approved-routers file.
10471     - New config option V2AuthoritativeDirectory that all v2 directory
10472       authorities must set. This lets v3 authorities choose not to serve
10473       v2 directory information.
10475   o Minor features (other):
10476     - When we're not serving v2 directory information, there is no reason
10477       to actually keep any around. Remove the obsolete files and directory
10478       on startup if they are very old and we aren't going to serve them.
10479     - When we negotiate a v2 link-layer connection (not yet implemented),
10480       accept RELAY_EARLY cells and turn them into RELAY cells if we've
10481       negotiated a v1 connection for their next step. Initial steps for
10482       proposal 110.
10483     - When we have no consensus, check FallbackNetworkstatusFile (defaults
10484       to $PREFIX/share/tor/fallback-consensus) for a consensus. This way
10485       we can start out knowing some directory caches. We don't ship with
10486       a fallback consensus by default though, because it was making
10487       bootstrapping take too long while we tried many down relays.
10488     - Authorities send back an X-Descriptor-Not-New header in response to
10489       an accepted-but-discarded descriptor upload. Partially implements
10490       fix for bug 535.
10491     - If we find a cached-routers file that's been sitting around for more
10492       than 28 days unmodified, then most likely it's a leftover from
10493       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
10494       routers anyway.
10495     - When we (as a cache) download a descriptor because it was listed
10496       in a consensus, remember when the consensus was supposed to expire,
10497       and don't expire the descriptor until then.
10498     - Optionally (if built with -DEXPORTMALLINFO) export the output
10499       of mallinfo via http, as tor/mallinfo.txt. Only accessible
10500       from localhost.
10501     - Tag every guard node in our state file with the version that
10502       we believe added it, or with our own version if we add it. This way,
10503       if a user temporarily runs an old version of Tor and then switches
10504       back to a new one, she doesn't automatically lose her guards.
10505     - When somebody requests a list of statuses or servers, and we have
10506       none of those, return a 404 rather than an empty 200.
10507     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
10508       from croup.)
10509     - Add an HSAuthorityRecordStats option that hidden service authorities
10510       can use to track statistics of overall hidden service usage without
10511       logging information that would be as useful to an attacker.
10512     - Allow multiple HiddenServicePort directives with the same virtual
10513       port; when they occur, the user is sent round-robin to one
10514       of the target ports chosen at random.  Partially fixes bug 393 by
10515       adding limited ad-hoc round-robining.
10516     - Revamp file-writing logic so we don't need to have the entire
10517       contents of a file in memory at once before we write to disk. Tor,
10518       meet stdio.
10520   o Minor bugfixes (other):
10521     - Alter the code that tries to recover from unhandled write
10522       errors, to not try to flush onto a socket that's given us
10523       unhandled errors.
10524     - Directory mirrors no longer include a guess at the client's IP
10525       address if the connection appears to be coming from the same /24
10526       network; it was producing too many wrong guesses.
10527     - If we're trying to flush the last bytes on a connection (for
10528       example, when answering a directory request), reset the
10529       time-to-give-up timeout every time we manage to write something
10530       on the socket.
10531     - Reject router descriptors with out-of-range bandwidthcapacity or
10532       bandwidthburst values.
10533     - If we can't expand our list of entry guards (e.g. because we're
10534       using bridges or we have StrictEntryNodes set), don't mark relays
10535       down when they fail a directory request. Otherwise we're too quick
10536       to mark all our entry points down.
10537     - Authorities no longer send back "400 you're unreachable please fix
10538       it" errors to Tor servers that aren't online all the time. We're
10539       supposed to tolerate these servers now.
10540     - Let directory authorities startup even when they can't generate
10541       a descriptor immediately, e.g. because they don't know their
10542       address.
10543     - Correctly enforce that elements of directory objects do not appear
10544       more often than they are allowed to appear.
10545     - Stop allowing hibernating servers to be "stable" or "fast".
10546     - On Windows, we were preventing other processes from reading
10547       cached-routers while Tor was running. (Reported by janbar)
10548     - Check return values from pthread_mutex functions.
10549     - When opening /dev/null in finish_daemonize(), do not pass the
10550       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
10551       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
10553   o Controller features:
10554     - The GETCONF command now escapes and quotes configuration values
10555       that don't otherwise fit into the torrc file.
10556     - The SETCONF command now handles quoted values correctly.
10557     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
10558       ask about source, timestamp of arrival, purpose, etc. We need
10559       something like this to help Vidalia not do GeoIP lookups on bridge
10560       addresses.
10561     - Allow multiple HashedControlPassword config lines, to support
10562       multiple controller passwords.
10563     - Accept LF instead of CRLF on controller, since some software has a
10564       hard time generating real Internet newlines.
10565     - Add GETINFO values for the server status events
10566       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
10567       Robert Hogan.
10568     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
10569       GETINFO for Torstat to use until it can switch to using extrainfos.
10570     - New config option CookieAuthFile to choose a new location for the
10571       cookie authentication file, and config option
10572       CookieAuthFileGroupReadable to make it group-readable.
10573     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
10574       match requests to applications. Patch from Robert Hogan.
10575     - Add a RESOLVE command to launch hostname lookups. Original patch
10576       from Robert Hogan.
10577     - Add GETINFO status/enough-dir-info to let controllers tell whether
10578       Tor has downloaded sufficient directory information. Patch from Tup.
10579     - You can now use the ControlSocket option to tell Tor to listen for
10580       controller connections on Unix domain sockets on systems that
10581       support them. Patch from Peter Palfrader.
10582     - New "GETINFO address-mappings/*" command to get address mappings
10583       with expiry information. "addr-mappings/*" is now deprecated.
10584       Patch from Tup.
10585     - Add a new config option __DisablePredictedCircuits designed for
10586       use by the controller, when we don't want Tor to build any circuits
10587       preemptively.
10588     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
10589       so we can exit from the middle of the circuit.
10590     - Implement "getinfo status/circuit-established".
10591     - Implement "getinfo status/version/..." so a controller can tell
10592       whether the current version is recommended, and whether any versions
10593       are good, and how many authorities agree. Patch from "shibz".
10594     - Controllers should now specify cache=no or cache=yes when using
10595       the +POSTDESCRIPTOR command.
10596     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
10597       Robert Hogan. Fixes the first part of bug 681.
10598     - When reporting clock skew, and we know that the clock is _at least
10599       as skewed_ as some value, but we don't know the actual value,
10600       report the value as a "minimum skew."
10602   o Controller bugfixes:
10603     - Generate "STATUS_SERVER" events rather than misspelled
10604       "STATUS_SEVER" events. Caught by mwenge.
10605     - Reject controller commands over 1MB in length, so rogue
10606       processes can't run us out of memory.
10607     - Change the behavior of "getinfo status/good-server-descriptor"
10608       so it doesn't return failure when any authority disappears.
10609     - Send NAMESERVER_STATUS messages for a single failed nameserver
10610       correctly.
10611     - When the DANGEROUS_VERSION controller status event told us we're
10612       running an obsolete version, it used the string "OLD" to describe
10613       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
10614       "OBSOLETE" in both cases.
10615     - Respond to INT and TERM SIGNAL commands before we execute the
10616       signal, in case the signal shuts us down. We had a patch in
10617       0.1.2.1-alpha that tried to do this by queueing the response on
10618       the connection's buffer before shutting down, but that really
10619       isn't the same thing at all. Bug located by Matt Edman.
10620     - Provide DNS expiry times in GMT, not in local time. For backward
10621       compatibility, ADDRMAP events only provide GMT expiry in an extended
10622       field. "GETINFO address-mappings" always does the right thing.
10623     - Use CRLF line endings properly in NS events.
10624     - Make 'getinfo fingerprint' return a 551 error if we're not a
10625       server, so we match what the control spec claims we do. Reported
10626       by daejees.
10627     - Fix a typo in an error message when extendcircuit fails that
10628       caused us to not follow the \r\n-based delimiter protocol. Reported
10629       by daejees.
10630     - When tunneling an encrypted directory connection, and its first
10631       circuit fails, do not leave it unattached and ask the controller
10632       to deal. Fixes the second part of bug 681.
10633     - Treat some 403 responses from directory servers as INFO rather than
10634       WARN-severity events.
10636   o Portability / building / compiling:
10637     - When building with --enable-gcc-warnings, check for whether Apple's
10638       warning "-Wshorten-64-to-32" is available.
10639     - Support compilation to target iPhone; patch from cjacker huang.
10640       To build for iPhone, pass the --enable-iphone option to configure.
10641     - Port Tor to build and run correctly on Windows CE systems, using
10642       the wcecompat library. Contributed by Valerio Lupi.
10643     - Detect non-ASCII platforms (if any still exist) and refuse to
10644       build there: some of our code assumes that 'A' is 65 and so on.
10645     - Clear up some MIPSPro compiler warnings.
10646     - Make autoconf search for libevent, openssl, and zlib consistently.
10647     - Update deprecated macros in configure.in.
10648     - When warning about missing headers, tell the user to let us
10649       know if the compile succeeds anyway, so we can downgrade the
10650       warning.
10651     - Include the current subversion revision as part of the version
10652       string: either fetch it directly if we're in an SVN checkout, do
10653       some magic to guess it if we're in an SVK checkout, or use
10654       the last-detected version if we're building from a .tar.gz.
10655       Use this version consistently in log messages.
10656     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
10657     - Read resolv.conf files correctly on platforms where read() returns
10658       partial results on small file reads.
10659     - Build without verbose warnings even on gcc 4.2 and 4.3.
10660     - On Windows, correctly detect errors when listing the contents of
10661       a directory. Fix from lodger.
10662     - Run 'make test' as part of 'make dist', so we stop releasing so
10663       many development snapshots that fail their unit tests.
10664     - Add support to detect Libevent versions in the 1.4.x series
10665       on mingw.
10666     - Add command-line arguments to unit-test executable so that we can
10667       invoke any chosen test from the command line rather than having
10668       to run the whole test suite at once; and so that we can turn on
10669       logging for the unit tests.
10670     - Do not automatically run configure from autogen.sh. This
10671       non-standard behavior tended to annoy people who have built other
10672       programs.
10673     - Fix a macro/CPP interaction that was confusing some compilers:
10674       some GCCs don't like #if/#endif pairs inside macro arguments.
10675       Fixes bug 707.
10676     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
10677       Fixes bug 704; fix from Steven Murdoch.
10678     - Correctly detect transparent proxy support on Linux hosts that
10679       require in.h to be included before netfilter_ipv4.h.  Patch
10680       from coderman.
10682   o Logging improvements:
10683     - When we haven't had any application requests lately, don't bother
10684       logging that we have expired a bunch of descriptors.
10685     - When attempting to open a logfile fails, tell us why.
10686     - Only log guard node status when guard node status has changed.
10687     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
10688       make "INFO" 75% less verbose.
10689     - When SafeLogging is disabled, log addresses along with all TLS
10690       errors.
10691     - Report TLS "zero return" case as a "clean close" and "IO error"
10692       as a "close". Stop calling closes "unexpected closes": existing
10693       Tors don't use SSL_close(), so having a connection close without
10694       the TLS shutdown handshake is hardly unexpected.
10695     - When we receive a consensus from the future, warn about skew.
10696     - Make "not enough dir info yet" warnings describe *why* Tor feels
10697       it doesn't have enough directory info yet.
10698     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
10699       consumers. (We already do this on HUP.)
10700     - Give more descriptive well-formedness errors for out-of-range
10701       hidden service descriptor/protocol versions.
10702     - Stop recommending that every server operator send mail to tor-ops.
10703       Resolves bug 597. Bugfix on 0.1.2.x.
10704     - Improve skew reporting: try to give the user a better log message
10705       about how skewed they are, and how much this matters.
10706     - New --quiet command-line option to suppress the default console log.
10707       Good in combination with --hash-password.
10708     - Don't complain that "your server has not managed to confirm that its
10709       ports are reachable" if we haven't been able to build any circuits
10710       yet.
10711     - Detect the reason for failing to mmap a descriptor file we just
10712       wrote, and give a more useful log message.  Fixes bug 533.
10713     - Always prepend "Bug: " to any log message about a bug.
10714     - When dumping memory usage, list bytes used in buffer memory
10715       free-lists.
10716     - When running with dmalloc, dump more stats on hup and on exit.
10717     - Put a platform string (e.g. "Linux i686") in the startup log
10718       message, so when people paste just their logs, we know if it's
10719       OpenBSD or Windows or what.
10720     - When logging memory usage, break down memory used in buffers by
10721       buffer type.
10722     - When we are reporting the DirServer line we just parsed, we were
10723       logging the second stanza of the key fingerprint, not the first.
10724     - Even though Windows is equally happy with / and \ as path separators,
10725       try to use \ consistently on Windows and / consistently on Unix: it
10726       makes the log messages nicer.
10727      - On OSX, stop warning the user that kqueue support in libevent is
10728       "experimental", since it seems to have worked fine for ages.
10730   o Contributed scripts and tools:
10731     - Update linux-tor-prio.sh script to allow QoS based on the uid of
10732       the Tor process. Patch from Marco Bonetti with tweaks from Mike
10733       Perry.
10734     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
10735       Unix users an easy way to script their Tor process (e.g. by
10736       adjusting bandwidth based on the time of the day).
10737     - In the exitlist script, only consider the most recently published
10738       server descriptor for each server. Also, when the user requests
10739       a list of servers that _reject_ connections to a given address,
10740       explicitly exclude the IPs that also have servers that accept
10741       connections to that address. Resolves bug 405.
10742     - Include a new contrib/tor-exit-notice.html file that exit relay
10743       operators can put on their website to help reduce abuse queries.
10745   o Newly deprecated features:
10746     - The status/version/num-versioning and status/version/num-concurring
10747       GETINFO controller options are no longer useful in the v3 directory
10748       protocol: treat them as deprecated, and warn when they're used.
10749     - The RedirectExits config option is now deprecated.
10751   o Removed features:
10752     - Drop the old code to choke directory connections when the
10753       corresponding OR connections got full: thanks to the cell queue
10754       feature, OR conns don't get full any more.
10755     - Remove the old "dns worker" server DNS code: it hasn't been default
10756       since 0.1.2.2-alpha, and all the servers are using the new
10757       eventdns code.
10758     - Remove the code to generate the oldest (v1) directory format.
10759     - Remove support for the old bw_accounting file: we've been storing
10760       bandwidth accounting information in the state file since
10761       0.1.2.5-alpha. This may result in bandwidth accounting errors
10762       if you try to upgrade from 0.1.1.x or earlier, or if you try to
10763       downgrade to 0.1.1.x or earlier.
10764     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
10765       it, it had no AES, and it hasn't seen any security patches since
10766       2004.
10767     - Stop overloading the circuit_t.onionskin field for both "onionskin
10768       from a CREATE cell that we are waiting for a cpuworker to be
10769       assigned" and "onionskin from an EXTEND cell that we are going to
10770       send to an OR as soon as we are connected". Might help with bug 600.
10771     - Remove the tor_strpartition() function: its logic was confused,
10772       and it was only used for one thing that could be implemented far
10773       more easily.
10774     - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
10775       and TorControl.py, as they use the old v0 controller protocol,
10776       and are obsoleted by TorFlow anyway.
10777     - Drop support for v1 rendezvous descriptors, since we never used
10778       them anyway, and the code has probably rotted by now. Based on
10779       patch from Karsten Loesing.
10780     - Stop allowing address masks that do not correspond to bit prefixes.
10781       We have warned about these for a really long time; now it's time
10782       to reject them. (Patch from croup.)
10783     - Remove an optimization in the AES counter-mode code that assumed
10784       that the counter never exceeded 2^68. When the counter can be set
10785       arbitrarily as an IV (as it is by Karsten's new hidden services
10786       code), this assumption no longer holds.
10787     - Disable the SETROUTERPURPOSE controller command: it is now
10788       obsolete.
10791 Changes in version 0.1.2.19 - 2008-01-17
10792   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
10793   exit policy a little bit more conservative so it's safer to run an
10794   exit relay on a home system, and fixes a variety of smaller issues.
10796   o Security fixes:
10797     - Exit policies now reject connections that are addressed to a
10798       relay's public (external) IP address too, unless
10799       ExitPolicyRejectPrivate is turned off. We do this because too
10800       many relays are running nearby to services that trust them based
10801       on network address.
10803   o Major bugfixes:
10804     - When the clock jumps forward a lot, do not allow the bandwidth
10805       buckets to become negative. Fixes bug 544.
10806     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
10807       on every successful resolve. Reported by Mike Perry.
10808     - Purge old entries from the "rephist" database and the hidden
10809       service descriptor database even when DirPort is zero.
10810     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
10811       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
10812       crashing or mis-answering these requests.
10813     - When we decide to send a 503 response to a request for servers, do
10814       not then also send the server descriptors: this defeats the whole
10815       purpose. Fixes bug 539.
10817   o Minor bugfixes:
10818     - Changing the ExitPolicyRejectPrivate setting should cause us to
10819       rebuild our server descriptor.
10820     - Fix handling of hex nicknames when answering controller requests for
10821       networkstatus by name, or when deciding whether to warn about
10822       unknown routers in a config option. (Patch from mwenge.)
10823     - Fix a couple of hard-to-trigger autoconf problems that could result
10824       in really weird results on platforms whose sys/types.h files define
10825       nonstandard integer types.
10826     - Don't try to create the datadir when running --verify-config or
10827       --hash-password. Resolves bug 540.
10828     - If we were having problems getting a particular descriptor from the
10829       directory caches, and then we learned about a new descriptor for
10830       that router, we weren't resetting our failure count. Reported
10831       by lodger.
10832     - Although we fixed bug 539 (where servers would send HTTP status 503
10833       responses _and_ send a body too), there are still servers out there
10834       that haven't upgraded. Therefore, make clients parse such bodies
10835       when they receive them.
10836     - Run correctly on systems where rlim_t is larger than unsigned long.
10837       This includes some 64-bit systems.
10838     - Run correctly on platforms (like some versions of OS X 10.5) where
10839       the real limit for number of open files is OPEN_FILES, not rlim_max
10840       from getrlimit(RLIMIT_NOFILES).
10841     - Avoid a spurious free on base64 failure.
10842     - Avoid segfaults on certain complex invocations of
10843       router_get_by_hexdigest().
10844     - Fix rare bug on REDIRECTSTREAM control command when called with no
10845       port set: it could erroneously report an error when none had
10846       happened.
10849 Changes in version 0.1.2.18 - 2007-10-28
10850   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
10851   hidden service introduction that were causing huge delays, and a big
10852   bug that was causing some servers to disappear from the network status
10853   lists for a few hours each day.
10855   o Major bugfixes (crashes):
10856     - If a connection is shut down abruptly because of something that
10857       happened inside connection_flushed_some(), do not call
10858       connection_finished_flushing(). Should fix bug 451:
10859       "connection_stop_writing: Assertion conn->write_event failed"
10860       Bugfix on 0.1.2.7-alpha.
10861     - Fix possible segfaults in functions called from
10862       rend_process_relay_cell().
10864   o Major bugfixes (hidden services):
10865     - Hidden services were choosing introduction points uniquely by
10866       hexdigest, but when constructing the hidden service descriptor
10867       they merely wrote the (potentially ambiguous) nickname.
10868     - Clients now use the v2 intro format for hidden service
10869       connections: they specify their chosen rendezvous point by identity
10870       digest rather than by (potentially ambiguous) nickname. These
10871       changes could speed up hidden service connections dramatically.
10873   o Major bugfixes (other):
10874     - Stop publishing a new server descriptor just because we get a
10875       HUP signal. This led (in a roundabout way) to some servers getting
10876       dropped from the networkstatus lists for a few hours each day.
10877     - When looking for a circuit to cannibalize, consider family as well
10878       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
10879       circuit cannibalization).
10880     - When a router wasn't listed in a new networkstatus, we were leaving
10881       the flags for that router alone -- meaning it remained Named,
10882       Running, etc -- even though absence from the networkstatus means
10883       that it shouldn't be considered to exist at all anymore. Now we
10884       clear all the flags for routers that fall out of the networkstatus
10885       consensus. Fixes bug 529.
10887   o Minor bugfixes:
10888     - Don't try to access (or alter) the state file when running
10889       --list-fingerprint or --verify-config or --hash-password. Resolves
10890       bug 499.
10891     - When generating information telling us how to extend to a given
10892       router, do not try to include the nickname if it is
10893       absent. Resolves bug 467.
10894     - Fix a user-triggerable segfault in expand_filename(). (There isn't
10895       a way to trigger this remotely.)
10896     - When sending a status event to the controller telling it that an
10897       OR address is reachable, set the port correctly. (Previously we
10898       were reporting the dir port.)
10899     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
10900       command. Bugfix on 0.1.2.17.
10901     - When loading bandwidth history, do not believe any information in
10902       the future. Fixes bug 434.
10903     - When loading entry guard information, do not believe any information
10904       in the future.
10905     - When we have our clock set far in the future and generate an
10906       onion key, then re-set our clock to be correct, we should not stop
10907       the onion key from getting rotated.
10908     - On some platforms, accept() can return a broken address. Detect
10909       this more quietly, and deal accordingly. Fixes bug 483.
10910     - It's not actually an error to find a non-pending entry in the DNS
10911       cache when canceling a pending resolve. Don't log unless stuff
10912       is fishy. Resolves bug 463.
10913     - Don't reset trusted dir server list when we set a configuration
10914       option. Patch from Robert Hogan.
10917 Changes in version 0.1.2.17 - 2007-08-30
10918   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
10919   X bundles. Vidalia 0.0.14 makes authentication required for the
10920   ControlPort in the default configuration, which addresses important
10921   security risks. Everybody who uses Vidalia (or another controller)
10922   should upgrade.
10924   In addition, this Tor update fixes major load balancing problems with
10925   path selection, which should speed things up a lot once many people
10926   have upgraded.
10928   o Major bugfixes (security):
10929     - We removed support for the old (v0) control protocol. It has been
10930       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
10931       become more of a headache than it's worth.
10933   o Major bugfixes (load balancing):
10934     - When choosing nodes for non-guard positions, weight guards
10935       proportionally less, since they already have enough load. Patch
10936       from Mike Perry.
10937     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
10938       will allow fast Tor servers to get more attention.
10939     - When we're upgrading from an old Tor version, forget our current
10940       guards and pick new ones according to the new weightings. These
10941       three load balancing patches could raise effective network capacity
10942       by a factor of four. Thanks to Mike Perry for measurements.
10944   o Major bugfixes (stream expiration):
10945     - Expire not-yet-successful application streams in all cases if
10946       they've been around longer than SocksTimeout. Right now there are
10947       some cases where the stream will live forever, demanding a new
10948       circuit every 15 seconds. Fixes bug 454; reported by lodger.
10950   o Minor features (controller):
10951     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
10952       is valid before any authentication has been received. It tells
10953       a controller what kind of authentication is expected, and what
10954       protocol is spoken. Implements proposal 119.
10956   o Minor bugfixes (performance):
10957     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
10958       greatly speeding up loading cached-routers from disk on startup.
10959     - Disable sentinel-based debugging for buffer code: we squashed all
10960       the bugs that this was supposed to detect a long time ago, and now
10961       its only effect is to change our buffer sizes from nice powers of
10962       two (which platform mallocs tend to like) to values slightly over
10963       powers of two (which make some platform mallocs sad).
10965   o Minor bugfixes (misc):
10966     - If exit bandwidth ever exceeds one third of total bandwidth, then
10967       use the correct formula to weight exit nodes when choosing paths.
10968       Based on patch from Mike Perry.
10969     - Choose perfectly fairly among routers when choosing by bandwidth and
10970       weighting by fraction of bandwidth provided by exits. Previously, we
10971       would choose with only approximate fairness, and correct ourselves
10972       if we ran off the end of the list.
10973     - If we require CookieAuthentication but we fail to write the
10974       cookie file, we would warn but not exit, and end up in a state
10975       where no controller could authenticate. Now we exit.
10976     - If we require CookieAuthentication, stop generating a new cookie
10977       every time we change any piece of our config.
10978     - Refuse to start with certain directory authority keys, and
10979       encourage people using them to stop.
10980     - Terminate multi-line control events properly. Original patch
10981       from tup.
10982     - Fix a minor memory leak when we fail to find enough suitable
10983       servers to choose a circuit.
10984     - Stop leaking part of the descriptor when we run into a particularly
10985       unparseable piece of it.
10988 Changes in version 0.1.2.16 - 2007-08-01
10989   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
10990   remote attacker in certain situations to rewrite the user's torrc
10991   configuration file. This can completely compromise anonymity of users
10992   in most configurations, including those running the Vidalia bundles,
10993   TorK, etc. Or worse.
10995   o Major security fixes:
10996     - Close immediately after missing authentication on control port;
10997       do not allow multiple authentication attempts.
11000 Changes in version 0.1.2.15 - 2007-07-17
11001   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
11002   problems, fixes compilation on BSD, and fixes a variety of other
11003   bugs. Everybody should upgrade.
11005   o Major bugfixes (compilation):
11006     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
11008   o Major bugfixes (crashes):
11009     - Try even harder not to dereference the first character after
11010       an mmap(). Reported by lodger.
11011     - Fix a crash bug in directory authorities when we re-number the
11012       routerlist while inserting a new router.
11013     - When the cached-routers file is an even multiple of the page size,
11014       don't run off the end and crash. (Fixes bug 455; based on idea
11015       from croup.)
11016     - Fix eventdns.c behavior on Solaris: It is critical to include
11017       orconfig.h _before_ sys/types.h, so that we can get the expected
11018       definition of _FILE_OFFSET_BITS.
11020   o Major bugfixes (security):
11021     - Fix a possible buffer overrun when using BSD natd support. Bug
11022       found by croup.
11023     - When sending destroy cells from a circuit's origin, don't include
11024       the reason for tearing down the circuit. The spec says we didn't,
11025       and now we actually don't. Reported by lodger.
11026     - Keep streamids from different exits on a circuit separate. This
11027       bug may have allowed other routers on a given circuit to inject
11028       cells into streams. Reported by lodger; fixes bug 446.
11029     - If there's a never-before-connected-to guard node in our list,
11030       never choose any guards past it. This way we don't expand our
11031       guard list unless we need to.
11033   o Minor bugfixes (guard nodes):
11034     - Weight guard selection by bandwidth, so that low-bandwidth nodes
11035       don't get overused as guards.
11037   o Minor bugfixes (directory):
11038     - Correctly count the number of authorities that recommend each
11039       version. Previously, we were under-counting by 1.
11040     - Fix a potential crash bug when we load many server descriptors at
11041       once and some of them make others of them obsolete. Fixes bug 458.
11043   o Minor bugfixes (hidden services):
11044     - Stop tearing down the whole circuit when the user asks for a
11045       connection to a port that the hidden service didn't configure.
11046       Resolves bug 444.
11048   o Minor bugfixes (misc):
11049     - On Windows, we were preventing other processes from reading
11050       cached-routers while Tor was running. Reported by janbar.
11051     - Fix a possible (but very unlikely) bug in picking routers by
11052       bandwidth. Add a log message to confirm that it is in fact
11053       unlikely. Patch from lodger.
11054     - Backport a couple of memory leak fixes.
11055     - Backport miscellaneous cosmetic bugfixes.
11058 Changes in version 0.1.2.14 - 2007-05-25
11059   Tor 0.1.2.14 changes the addresses of two directory authorities (this
11060   change especially affects those who serve or use hidden services),
11061   and fixes several other crash- and security-related bugs.
11063   o Directory authority changes:
11064     - Two directory authorities (moria1 and moria2) just moved to new
11065       IP addresses. This change will particularly affect those who serve
11066       or use hidden services.
11068   o Major bugfixes (crashes):
11069     - If a directory server runs out of space in the connection table
11070       as it's processing a begin_dir request, it will free the exit stream
11071       but leave it attached to the circuit, leading to unpredictable
11072       behavior. (Reported by seeess, fixes bug 425.)
11073     - Fix a bug in dirserv_remove_invalid() that would cause authorities
11074       to corrupt memory under some really unlikely scenarios.
11075     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
11076     - Avoid segfaults when reading from mmaped descriptor file. (Reported
11077       by lodger.)
11079   o Major bugfixes (security):
11080     - When choosing an entry guard for a circuit, avoid using guards
11081       that are in the same family as the chosen exit -- not just guards
11082       that are exactly the chosen exit. (Reported by lodger.)
11084   o Major bugfixes (resource management):
11085     - If a directory authority is down, skip it when deciding where to get
11086       networkstatus objects or descriptors. Otherwise we keep asking
11087       every 10 seconds forever. Fixes bug 384.
11088     - Count it as a failure if we fetch a valid network-status but we
11089       don't want to keep it. Otherwise we'll keep fetching it and keep
11090       not wanting to keep it. Fixes part of bug 422.
11091     - If all of our dirservers have given us bad or no networkstatuses
11092       lately, then stop hammering them once per minute even when we
11093       think they're failed. Fixes another part of bug 422.
11095   o Minor bugfixes:
11096     - Actually set the purpose correctly for descriptors inserted with
11097       purpose=controller.
11098     - When we have k non-v2 authorities in our DirServer config,
11099       we ignored the last k authorities in the list when updating our
11100       network-statuses.
11101     - Correctly back-off from requesting router descriptors that we are
11102       having a hard time downloading.
11103     - Read resolv.conf files correctly on platforms where read() returns
11104       partial results on small file reads.
11105     - Don't rebuild the entire router store every time we get 32K of
11106       routers: rebuild it when the journal gets very large, or when
11107       the gaps in the store get very large.
11109   o Minor features:
11110     - When routers publish SVN revisions in their router descriptors,
11111       authorities now include those versions correctly in networkstatus
11112       documents.
11113     - Warn when using a version of libevent before 1.3b to run a server on
11114       OSX or BSD: these versions interact badly with userspace threads.
11117 Changes in version 0.1.2.13 - 2007-04-24
11118   This release features some major anonymity fixes, such as safer path
11119   selection; better client performance; faster bootstrapping, better
11120   address detection, and better DNS support for servers; write limiting as
11121   well as read limiting to make servers easier to run; and a huge pile of
11122   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
11124   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
11125   of the Freenode IRC network, remembering his patience and vision for
11126   free speech on the Internet.
11128   o Major features, client performance:
11129     - Weight directory requests by advertised bandwidth. Now we can
11130       let servers enable write limiting but still allow most clients to
11131       succeed at their directory requests. (We still ignore weights when
11132       choosing a directory authority; I hope this is a feature.)
11133     - Stop overloading exit nodes -- avoid choosing them for entry or
11134       middle hops when the total bandwidth available from non-exit nodes
11135       is much higher than the total bandwidth available from exit nodes.
11136     - Rather than waiting a fixed amount of time between retrying
11137       application connections, we wait only 10 seconds for the first,
11138       10 seconds for the second, and 15 seconds for each retry after
11139       that. Hopefully this will improve the expected user experience.
11140     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
11141       to open a stream fails; now we do in more cases. This should
11142       make clients able to find a good exit faster in some cases, since
11143       unhandleable requests will now get an error rather than timing out.
11145   o Major features, client functionality:
11146     - Implement BEGIN_DIR cells, so we can connect to a directory
11147       server via TLS to do encrypted directory requests rather than
11148       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
11149       config options if you like. For now, this feature only works if
11150       you already have a descriptor for the destination dirserver.
11151     - Add support for transparent application connections: this basically
11152       bundles the functionality of trans-proxy-tor into the Tor
11153       mainline. Now hosts with compliant pf/netfilter implementations
11154       can redirect TCP connections straight to Tor without diverting
11155       through SOCKS. (Based on patch from tup.)
11156     - Add support for using natd; this allows FreeBSDs earlier than
11157       5.1.2 to have ipfw send connections through Tor without using
11158       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
11160   o Major features, servers:
11161     - Setting up a dyndns name for your server is now optional: servers
11162       with no hostname or IP address will learn their IP address by
11163       asking the directory authorities. This code only kicks in when you
11164       would normally have exited with a "no address" error. Nothing's
11165       authenticated, so use with care.
11166     - Directory servers now spool server descriptors, v1 directories,
11167       and v2 networkstatus objects to buffers as needed rather than en
11168       masse. They also mmap the cached-routers files. These steps save
11169       lots of memory.
11170     - Stop requiring clients to have well-formed certificates, and stop
11171       checking nicknames in certificates. (Clients have certificates so
11172       that they can look like Tor servers, but in the future we might want
11173       to allow them to look like regular TLS clients instead. Nicknames
11174       in certificates serve no purpose other than making our protocol
11175       easier to recognize on the wire.) Implements proposal 106.
11177   o Improvements on DNS support:
11178     - Add "eventdns" asynchronous dns library originally based on code
11179       from Adam Langley. Now we can discard the old rickety dnsworker
11180       concept, and support a wider variety of DNS functions. Allows
11181       multithreaded builds on NetBSD and OpenBSD again.
11182     - Add server-side support for "reverse" DNS lookups (using PTR
11183       records so clients can determine the canonical hostname for a given
11184       IPv4 address). Only supported by servers using eventdns; servers
11185       now announce in their descriptors if they don't support eventdns.
11186     - Workaround for name servers (like Earthlink's) that hijack failing
11187       DNS requests and replace the no-such-server answer with a "helpful"
11188       redirect to an advertising-driven search portal. Also work around
11189       DNS hijackers who "helpfully" decline to hijack known-invalid
11190       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
11191       lets you turn it off.
11192     - Servers now check for the case when common DNS requests are going to
11193       wildcarded addresses (i.e. all getting the same answer), and change
11194       their exit policy to reject *:* if it's happening.
11195     - When asked to resolve a hostname, don't use non-exit servers unless
11196       requested to do so. This allows servers with broken DNS to be
11197       useful to the network.
11198     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
11199       useless IPv6 DNS resolves.
11200     - Specify and implement client-side SOCKS5 interface for reverse DNS
11201       lookups (see doc/socks-extensions.txt). Also cache them.
11202     - When we change nameservers or IP addresses, reset and re-launch
11203       our tests for DNS hijacking.
11205   o Improvements on reachability testing:
11206     - Servers send out a burst of long-range padding cells once they've
11207       established that they're reachable. Spread them over 4 circuits,
11208       so hopefully a few will be fast. This exercises bandwidth and
11209       bootstraps them into the directory more quickly.
11210     - When we find our DirPort to be reachable, publish a new descriptor
11211       so we'll tell the world (reported by pnx).
11212     - Directory authorities now only decide that routers are reachable
11213       if their identity keys are as expected.
11214     - Do DirPort reachability tests less often, since a single test
11215       chews through many circuits before giving up.
11216     - Avoid some false positives during reachability testing: don't try
11217       to test via a server that's on the same /24 network as us.
11218     - Start publishing one minute or so after we find our ORPort
11219       to be reachable. This will help reduce the number of descriptors
11220       we have for ourselves floating around, since it's quite likely
11221       other things (e.g. DirPort) will change during that minute too.
11222     - Routers no longer try to rebuild long-term connections to directory
11223       authorities, and directory authorities no longer try to rebuild
11224       long-term connections to all servers. We still don't hang up
11225       connections in these two cases though -- we need to look at it
11226       more carefully to avoid flapping, and we likely need to wait til
11227       0.1.1.x is obsolete.
11229   o Improvements on rate limiting:
11230     - Enable write limiting as well as read limiting. Now we sacrifice
11231       capacity if we're pushing out lots of directory traffic, rather
11232       than overrunning the user's intended bandwidth limits.
11233     - Include TLS overhead when counting bandwidth usage; previously, we
11234       would count only the bytes sent over TLS, but not the bytes used
11235       to send them.
11236     - Servers decline directory requests much more aggressively when
11237       they're low on bandwidth. Otherwise they end up queueing more and
11238       more directory responses, which can't be good for latency.
11239     - But never refuse directory requests from local addresses.
11240     - Be willing to read or write on local connections (e.g. controller
11241       connections) even when the global rate limiting buckets are empty.
11242     - Flush local controller connection buffers periodically as we're
11243       writing to them, so we avoid queueing 4+ megabytes of data before
11244       trying to flush.
11245     - Revise and clean up the torrc.sample that we ship with; add
11246       a section for BandwidthRate and BandwidthBurst.
11248   o Major features, NT services:
11249     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
11250       command-line flag so that admins can override the default by saying
11251       "tor --service install --user "SomeUser"". This will not affect
11252       existing installed services. Also, warn the user that the service
11253       will look for its configuration file in the service user's
11254       %appdata% directory. (We can't do the "hardwire the user's appdata
11255       directory" trick any more, since we may not have read access to that
11256       directory.)
11257     - Support running the Tor service with a torrc not in the same
11258       directory as tor.exe and default to using the torrc located in
11259       the %appdata%\Tor\ of the user who installed the service. Patch
11260       from Matt Edman.
11261     - Add an --ignore-missing-torrc command-line option so that we can
11262       get the "use sensible defaults if the configuration file doesn't
11263       exist" behavior even when specifying a torrc location on the
11264       command line.
11265     - When stopping an NT service, wait up to 10 sec for it to actually
11266       stop. (Patch from Matt Edman; resolves bug 295.)
11268   o Directory authority improvements:
11269     - Stop letting hibernating or obsolete servers affect uptime and
11270       bandwidth cutoffs.
11271     - Stop listing hibernating servers in the v1 directory.
11272     - Authorities no longer recommend exits as guards if this would shift
11273       too much load to the exit nodes.
11274     - Authorities now specify server versions in networkstatus. This adds
11275       about 2% to the size of compressed networkstatus docs, and allows
11276       clients to tell which servers support BEGIN_DIR and which don't.
11277       The implementation is forward-compatible with a proposed future
11278       protocol version scheme not tied to Tor versions.
11279     - DirServer configuration lines now have an orport= option so
11280       clients can open encrypted tunnels to the authorities without
11281       having downloaded their descriptors yet. Enabled for moria1,
11282       moria2, tor26, and lefkada now in the default configuration.
11283     - Add a BadDirectory flag to network status docs so that authorities
11284       can (eventually) tell clients about caches they believe to be
11285       broken. Not used yet.
11286     - Allow authorities to list nodes as bad exits in their
11287       approved-routers file by fingerprint or by address. If most
11288       authorities set a BadExit flag for a server, clients don't think
11289       of it as a general-purpose exit. Clients only consider authorities
11290       that advertise themselves as listing bad exits.
11291     - Patch from Steve Hildrey: Generate network status correctly on
11292       non-versioning dirservers.
11293     - Have directory authorities allow larger amounts of drift in uptime
11294       without replacing the server descriptor: previously, a server that
11295       restarted every 30 minutes could have 48 "interesting" descriptors
11296       per day.
11297     - Reserve the nickname "Unnamed" for routers that can't pick
11298       a hostname: any router can call itself Unnamed; directory
11299       authorities will never allocate Unnamed to any particular router;
11300       clients won't believe that any router is the canonical Unnamed.
11302   o Directory mirrors and clients:
11303     - Discard any v1 directory info that's over 1 month old (for
11304       directories) or over 1 week old (for running-routers lists).
11305     - Clients track responses with status 503 from dirservers. After a
11306       dirserver has given us a 503, we try not to use it until an hour has
11307       gone by, or until we have no dirservers that haven't given us a 503.
11308     - When we get a 503 from a directory, and we're not a server, we no
11309       longer count the failure against the total number of failures
11310       allowed for the object we're trying to download.
11311     - Prepare for servers to publish descriptors less often: never
11312       discard a descriptor simply for being too old until either it is
11313       recommended by no authorities, or until we get a better one for
11314       the same router. Make caches consider retaining old recommended
11315       routers for even longer.
11316     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
11317       headers for content, so that we can work better in the presence of
11318       caching HTTP proxies.
11319     - Stop fetching descriptors if you're not a dir mirror and you
11320       haven't tried to establish any circuits lately. (This currently
11321       causes some dangerous behavior, because when you start up again
11322       you'll use your ancient server descriptors.)
11324   o Major fixes, crashes:
11325     - Stop crashing when the controller asks us to resetconf more than
11326       one config option at once. (Vidalia 0.0.11 does this.)
11327     - Fix a longstanding obscure crash bug that could occur when we run
11328       out of DNS worker processes, if we're not using eventdns. (Resolves
11329       bug 390.)
11330     - Fix an assert that could trigger if a controller quickly set then
11331       cleared EntryNodes. (Bug found by Udo van den Heuvel.)
11332     - Avoid crash when telling controller about stream-status and a
11333       stream is detached.
11334     - Avoid sending junk to controllers or segfaulting when a controller
11335       uses EVENT_NEW_DESC with verbose nicknames.
11336     - Stop triggering asserts if the controller tries to extend hidden
11337       service circuits (reported by mwenge).
11338     - If we start a server with ClientOnly 1, then set ClientOnly to 0
11339       and hup, stop triggering an assert based on an empty onion_key.
11340     - Mask out all signals in sub-threads; only the libevent signal
11341       handler should be processing them. This should prevent some crashes
11342       on some machines using pthreads. (Patch from coderman.)
11343     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
11345   o Major fixes, anonymity/security:
11346     - Automatically avoid picking more than one node from the same
11347       /16 network when constructing a circuit. Add an
11348       "EnforceDistinctSubnets" option to let people disable it if they
11349       want to operate private test networks on a single subnet.
11350     - When generating bandwidth history, round down to the nearest
11351       1k. When storing accounting data, round up to the nearest 1k.
11352     - When we're running as a server, remember when we last rotated onion
11353       keys, so that we will rotate keys once they're a week old even if
11354       we never stay up for a week ourselves.
11355     - If a client asked for a server by name, and there's a named server
11356       in our network-status but we don't have its descriptor yet, we
11357       could return an unnamed server instead.
11358     - Reject (most) attempts to use Tor circuits with length one. (If
11359       many people start using Tor as a one-hop proxy, exit nodes become
11360       a more attractive target for compromise.)
11361     - Just because your DirPort is open doesn't mean people should be
11362       able to remotely teach you about hidden service descriptors. Now
11363       only accept rendezvous posts if you've got HSAuthoritativeDir set.
11364     - Fix a potential race condition in the rpm installer. Found by
11365       Stefan Nordhausen.
11366     - Do not log IPs with TLS failures for incoming TLS
11367       connections. (Fixes bug 382.)
11369   o Major fixes, other:
11370     - If our system clock jumps back in time, don't publish a negative
11371       uptime in the descriptor.
11372     - When we start during an accounting interval before it's time to wake
11373       up, remember to wake up at the correct time. (May fix bug 342.)
11374     - Previously, we would cache up to 16 old networkstatus documents
11375       indefinitely, if they came from nontrusted authorities. Now we
11376       discard them if they are more than 10 days old.
11377     - When we have a state file we cannot parse, tell the user and
11378       move it aside. Now we avoid situations where the user starts
11379       Tor in 1904, Tor writes a state file with that timestamp in it,
11380       the user fixes her clock, and Tor refuses to start.
11381     - Publish a new descriptor after we hup/reload. This is important
11382       if our config has changed such that we'll want to start advertising
11383       our DirPort now, etc.
11384     - If we are using an exit enclave and we can't connect, e.g. because
11385       its webserver is misconfigured to not listen on localhost, then
11386       back off and try connecting from somewhere else before we fail.
11388   o New config options or behaviors:
11389     - When EntryNodes are configured, rebuild the guard list to contain,
11390       in order: the EntryNodes that were guards before; the rest of the
11391       EntryNodes; the nodes that were guards before.
11392     - Do not warn when individual nodes in the configuration's EntryNodes,
11393       ExitNodes, etc are down: warn only when all possible nodes
11394       are down. (Fixes bug 348.)
11395     - Put a lower-bound on MaxAdvertisedBandwidth.
11396     - Start using the state file to store bandwidth accounting data:
11397       the bw_accounting file is now obsolete. We'll keep generating it
11398       for a while for people who are still using 0.1.2.4-alpha.
11399     - Try to batch changes to the state file so that we do as few
11400       disk writes as possible while still storing important things in
11401       a timely fashion.
11402     - The state file and the bw_accounting file get saved less often when
11403       the AvoidDiskWrites config option is set.
11404     - Make PIDFile work on Windows.
11405     - Add internal descriptions for a bunch of configuration options:
11406       accessible via controller interface and in comments in saved
11407       options files.
11408     - Reject *:563 (NNTPS) in the default exit policy. We already reject
11409       NNTP by default, so this seems like a sensible addition.
11410     - Clients now reject hostnames with invalid characters. This should
11411       avoid some inadvertent info leaks. Add an option
11412       AllowNonRFC953Hostnames to disable this behavior, in case somebody
11413       is running a private network with hosts called @, !, and #.
11414     - Check for addresses with invalid characters at the exit as well,
11415       and warn less verbosely when they fail. You can override this by
11416       setting ServerDNSAllowNonRFC953Addresses to 1.
11417     - Remove some options that have been deprecated since at least
11418       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
11419       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
11420       to set log options. Mark PathlenCoinWeight as obsolete.
11421     - Stop accepting certain malformed ports in configured exit policies.
11422     - When the user uses bad syntax in the Log config line, stop
11423       suggesting other bad syntax as a replacement.
11424     - Add new config option "ResolvConf" to let the server operator
11425       choose an alternate resolve.conf file when using eventdns.
11426     - If one of our entry guards is on the ExcludeNodes list, or the
11427       directory authorities don't think it's a good guard, treat it as
11428       if it were unlisted: stop using it as a guard, and throw it off
11429       the guards list if it stays that way for a long time.
11430     - Allow directory authorities to be marked separately as authorities
11431       for the v1 directory protocol, the v2 directory protocol, and
11432       as hidden service directories, to make it easier to retire old
11433       authorities. V1 authorities should set "HSAuthoritativeDir 1"
11434       to continue being hidden service authorities too.
11435     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
11436     - Make TrackExitHosts case-insensitive, and fix the behavior of
11437       ".suffix" TrackExitHosts items to avoid matching in the middle of
11438       an address.
11439     - New DirPort behavior: if you have your dirport set, you download
11440       descriptors aggressively like a directory mirror, whether or not
11441       your ORPort is set.
11443   o Docs:
11444     - Create a new file ReleaseNotes which was the old ChangeLog. The
11445       new ChangeLog file now includes the notes for all development
11446       versions too.
11447     - Add a new address-spec.txt document to describe our special-case
11448       addresses: .exit, .onion, and .noconnnect.
11449     - Fork the v1 directory protocol into its own spec document,
11450       and mark dir-spec.txt as the currently correct (v2) spec.
11452   o Packaging, porting, and contrib
11453     - "tor --verify-config" now exits with -1(255) or 0 depending on
11454       whether the config options are bad or good.
11455     - The Debian package now uses --verify-config when (re)starting,
11456       to distinguish configuration errors from other errors.
11457     - Adapt a patch from goodell to let the contrib/exitlist script
11458       take arguments rather than require direct editing.
11459     - Prevent the contrib/exitlist script from printing the same
11460       result more than once.
11461     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
11462     - In the hidden service example in torrc.sample, stop recommending
11463       esoteric and discouraged hidden service options.
11464     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
11465       values before failing, and always enables eventdns.
11466     - Try to detect Windows correctly when cross-compiling.
11467     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
11468       Try to fix this in configure.in by checking for most functions
11469       before we check for libevent.
11470     - Update RPMs to require libevent 1.2.
11471     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
11472       or later. Log when we are doing this, so we can diagnose it when
11473       it fails. (Also, recommend libevent 1.1b for kqueue and
11474       win32 methods; deprecate libevent 1.0b harder; make libevent
11475       recommendation system saner.)
11476     - Build with recent (1.3+) libevents on platforms that do not
11477       define the nonstandard types "u_int8_t" and friends.
11478     - Remove architecture from OS X builds. The official builds are
11479       now universal binaries.
11480     - Run correctly on OS X platforms with case-sensitive filesystems.
11481     - Correctly set maximum connection limit on Cygwin. (This time
11482       for sure!)
11483     - Start compiling on MinGW on Windows (patches from Mike Chiussi
11484       and many others).
11485     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
11486     - Finally fix the openssl warnings from newer gccs that believe that
11487       ignoring a return value is okay, but casting a return value and
11488       then ignoring it is a sign of madness.
11489     - On architectures where sizeof(int)>4, still clamp declarable
11490       bandwidth to INT32_MAX.
11492   o Minor features, controller:
11493     - Warn the user when an application uses the obsolete binary v0
11494       control protocol. We're planning to remove support for it during
11495       the next development series, so it's good to give people some
11496       advance warning.
11497     - Add STREAM_BW events to report per-entry-stream bandwidth
11498       use. (Patch from Robert Hogan.)
11499     - Rate-limit SIGNEWNYM signals in response to controllers that
11500       impolitely generate them for every single stream. (Patch from
11501       mwenge; closes bug 394.)
11502     - Add a REMAP status to stream events to note that a stream's
11503       address has changed because of a cached address or a MapAddress
11504       directive.
11505     - Make REMAP stream events have a SOURCE (cache or exit), and
11506       make them generated in every case where we get a successful
11507       connected or resolved cell.
11508     - Track reasons for OR connection failure; make these reasons
11509       available via the controller interface. (Patch from Mike Perry.)
11510     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
11511       can learn when clients are sending malformed hostnames to Tor.
11512     - Specify and implement some of the controller status events.
11513     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
11514     - Reimplement GETINFO so that info/names stays in sync with the
11515       actual keys.
11516     - Implement "GETINFO fingerprint".
11517     - Implement "SETEVENTS GUARD" so controllers can get updates on
11518       entry guard status as it changes.
11519     - Make all connections to addresses of the form ".noconnect"
11520       immediately get closed. This lets application/controller combos
11521       successfully test whether they're talking to the same Tor by
11522       watching for STREAM events.
11523     - Add a REASON field to CIRC events; for backward compatibility, this
11524       field is sent only to controllers that have enabled the extended
11525       event format. Also, add additional reason codes to explain why
11526       a given circuit has been destroyed or truncated. (Patches from
11527       Mike Perry)
11528     - Add a REMOTE_REASON field to extended CIRC events to tell the
11529       controller why a remote OR told us to close a circuit.
11530     - Stream events also now have REASON and REMOTE_REASON fields,
11531       working much like those for circuit events.
11532     - There's now a GETINFO ns/... field so that controllers can ask Tor
11533       about the current status of a router.
11534     - A new event type "NS" to inform a controller when our opinion of
11535       a router's status has changed.
11536     - Add a GETINFO events/names and GETINFO features/names so controllers
11537       can tell which events and features are supported.
11538     - A new CLEARDNSCACHE signal to allow controllers to clear the
11539       client-side DNS cache without expiring circuits.
11540     - Fix CIRC controller events so that controllers can learn the
11541       identity digests of non-Named servers used in circuit paths.
11542     - Let controllers ask for more useful identifiers for servers. Instead
11543       of learning identity digests for un-Named servers and nicknames
11544       for Named servers, the new identifiers include digest, nickname,
11545       and indication of Named status. Off by default; see control-spec.txt
11546       for more information.
11547     - Add a "getinfo address" controller command so it can display Tor's
11548       best guess to the user.
11549     - New controller event to alert the controller when our server
11550       descriptor has changed.
11551     - Give more meaningful errors on controller authentication failure.
11552     - Export the default exit policy via the control port, so controllers
11553       don't need to guess what it is / will be later.
11555   o Minor bugfixes, controller:
11556     - When creating a circuit via the controller, send a 'launched'
11557       event when we're done, so we follow the spec better.
11558     - Correct the control spec to match how the code actually responds
11559       to 'getinfo addr-mappings/*'. Reported by daejees.
11560     - The control spec described a GUARDS event, but the code
11561       implemented a GUARD event. Standardize on GUARD, but let people
11562       ask for GUARDS too. Reported by daejees.
11563     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
11564       clear the corresponding on_circuit variable, and remember later
11565       that we don't need to send a redundant CLOSED event. (Resolves part
11566       3 of bug 367.)
11567     - Report events where a resolve succeeded or where we got a socks
11568       protocol error correctly, rather than calling both of them
11569       "INTERNAL".
11570     - Change reported stream target addresses to IP consistently when
11571       we finally get the IP from an exit node.
11572     - Send log messages to the controller even if they happen to be very
11573       long.
11574     - Flush ERR-level controller status events just like we currently
11575       flush ERR-level log events, so that a Tor shutdown doesn't prevent
11576       the controller from learning about current events.
11577     - Report the circuit number correctly in STREAM CLOSED events. Bug
11578       reported by Mike Perry.
11579     - Do not report bizarre values for results of accounting GETINFOs
11580       when the last second's write or read exceeds the allotted bandwidth.
11581     - Report "unrecognized key" rather than an empty string when the
11582       controller tries to fetch a networkstatus that doesn't exist.
11583     - When the controller does a "GETINFO network-status", tell it
11584       about even those routers whose descriptors are very old, and use
11585       long nicknames where appropriate.
11586     - Fix handling of verbose nicknames with ORCONN controller events:
11587       make them show up exactly when requested, rather than exactly when
11588       not requested.
11589     - Controller signals now work on non-Unix platforms that don't define
11590       SIGUSR1 and SIGUSR2 the way we expect.
11591     - Respond to SIGNAL command before we execute the signal, in case
11592       the signal shuts us down. Suggested by Karsten Loesing.
11593     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
11595   o Minor features, code performance:
11596     - Major performance improvement on inserting descriptors: change
11597       algorithm from O(n^2) to O(n).
11598     - Do not rotate onion key immediately after setting it for the first
11599       time.
11600     - Call router_have_min_dir_info half as often. (This is showing up in
11601       some profiles, but not others.)
11602     - When using GCC, make log_debug never get called at all, and its
11603       arguments never get evaluated, when no debug logs are configured.
11604       (This is showing up in some profiles, but not others.)
11605     - Statistics dumped by -USR2 now include a breakdown of public key
11606       operations, for profiling.
11607     - Make the common memory allocation path faster on machines where
11608       malloc(0) returns a pointer.
11609     - Split circuit_t into origin_circuit_t and or_circuit_t, and
11610       split connection_t into edge, or, dir, control, and base structs.
11611       These will save quite a bit of memory on busy servers, and they'll
11612       also help us track down bugs in the code and bugs in the spec.
11613     - Use OpenSSL's AES implementation on platforms where it's faster.
11614       This could save us as much as 10% CPU usage.
11616   o Minor features, descriptors and descriptor handling:
11617     - Avoid duplicate entries on MyFamily line in server descriptor.
11618     - When Tor receives a router descriptor that it asked for, but
11619       no longer wants (because it has received fresh networkstatuses
11620       in the meantime), do not warn the user. Cache the descriptor if
11621       we're a cache; drop it if we aren't.
11622     - Servers no longer ever list themselves in their "family" line,
11623       even if configured to do so. This makes it easier to configure
11624       family lists conveniently.
11626   o Minor fixes, confusing/misleading log messages:
11627     - Display correct results when reporting which versions are
11628       recommended, and how recommended they are. (Resolves bug 383.)
11629     - Inform the server operator when we decide not to advertise a
11630       DirPort due to AccountingMax enabled or a low BandwidthRate.
11631     - Only include function names in log messages for info/debug messages.
11632       For notice/warn/err, the content of the message should be clear on
11633       its own, and printing the function name only confuses users.
11634     - Remove even more protocol-related warnings from Tor server logs,
11635       such as bad TLS handshakes and malformed begin cells.
11636     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
11637       when the IP address is mapped through MapAddress to a hostname.
11638     - Fix misleading log messages: an entry guard that is "unlisted",
11639       as well as not known to be "down" (because we've never heard
11640       of it), is not therefore "up".
11642   o Minor fixes, old/obsolete behavior:
11643     - Start assuming we can use a create_fast cell if we don't know
11644       what version a router is running.
11645     - We no longer look for identity and onion keys in "identity.key" and
11646       "onion.key" -- these were replaced by secret_id_key and
11647       secret_onion_key in 0.0.8pre1.
11648     - We no longer require unrecognized directory entries to be
11649       preceded by "opt".
11650     - Drop compatibility with obsolete Tors that permit create cells
11651       to have the wrong circ_id_type.
11652     - Remove code to special-case "-cvs" ending, since it has not
11653       actually mattered since 0.0.9.
11654     - Don't re-write the fingerprint file every restart, unless it has
11655       changed.
11657   o Minor fixes, misc client-side behavior:
11658     - Always remove expired routers and networkstatus docs before checking
11659       whether we have enough information to build circuits. (Fixes
11660       bug 373.)
11661     - When computing clock skew from directory HTTP headers, consider what
11662       time it was when we finished asking for the directory, not what
11663       time it is now.
11664     - Make our socks5 handling more robust to broken socks clients:
11665       throw out everything waiting on the buffer in between socks
11666       handshake phases, since they can't possibly (so the theory
11667       goes) have predicted what we plan to respond to them.
11668     - Expire socks connections if they spend too long waiting for the
11669       handshake to finish. Previously we would let them sit around for
11670       days, if the connecting application didn't close them either.
11671     - And if the socks handshake hasn't started, don't send a
11672       "DNS resolve socks failed" handshake reply; just close it.
11673     - If the user asks to use invalid exit nodes, be willing to use
11674       unstable ones.
11675     - Track unreachable entry guards correctly: don't conflate
11676       'unreachable by us right now' with 'listed as down by the directory
11677       authorities'. With the old code, if a guard was unreachable by us
11678       but listed as running, it would clog our guard list forever.
11679     - Behave correctly in case we ever have a network with more than
11680       2GB/s total advertised capacity.
11681     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
11682     - Fix a memory leak when we ask for "all" networkstatuses and we
11683       get one we don't recognize.
11686 Changes in version 0.1.1.26 - 2006-12-14
11687   o Security bugfixes:
11688     - Stop sending the HttpProxyAuthenticator string to directory
11689       servers when directory connections are tunnelled through Tor.
11690     - Clients no longer store bandwidth history in the state file.
11691     - Do not log introduction points for hidden services if SafeLogging
11692       is set.
11694   o Minor bugfixes:
11695     - Fix an assert failure when a directory authority sets
11696       AuthDirRejectUnlisted and then receives a descriptor from an
11697       unlisted router (reported by seeess).
11700 Changes in version 0.1.1.25 - 2006-11-04
11701   o Major bugfixes:
11702     - When a client asks us to resolve (rather than connect to)
11703       an address, and we have a cached answer, give them the cached
11704       answer. Previously, we would give them no answer at all.
11705     - We were building exactly the wrong circuits when we predict
11706       hidden service requirements, meaning Tor would have to build all
11707       its circuits on demand.
11708     - If none of our live entry guards have a high uptime, but we
11709       require a guard with a high uptime, try adding a new guard before
11710       we give up on the requirement. This patch should make long-lived
11711       connections more stable on average.
11712     - When testing reachability of our DirPort, don't launch new
11713       tests when there's already one in progress -- unreachable
11714       servers were stacking up dozens of testing streams.
11716   o Security bugfixes:
11717     - When the user sends a NEWNYM signal, clear the client-side DNS
11718       cache too. Otherwise we continue to act on previous information.
11720   o Minor bugfixes:
11721     - Avoid a memory corruption bug when creating a hash table for
11722       the first time.
11723     - Avoid possibility of controller-triggered crash when misusing
11724       certain commands from a v0 controller on platforms that do not
11725       handle printf("%s",NULL) gracefully.
11726     - Avoid infinite loop on unexpected controller input.
11727     - Don't log spurious warnings when we see a circuit close reason we
11728       don't recognize; it's probably just from a newer version of Tor.
11729     - Add Vidalia to the OS X uninstaller script, so when we uninstall
11730       Tor/Privoxy we also uninstall Vidalia.
11733 Changes in version 0.1.1.24 - 2006-09-29
11734   o Major bugfixes:
11735     - Allow really slow clients to not hang up five minutes into their
11736       directory downloads (suggested by Adam J. Richter).
11737     - Fix major performance regression from 0.1.0.x: instead of checking
11738       whether we have enough directory information every time we want to
11739       do something, only check when the directory information has changed.
11740       This should improve client CPU usage by 25-50%.
11741     - Don't crash if, after a server has been running for a while,
11742       it can't resolve its hostname.
11743     - When a client asks us to resolve (not connect to) an address,
11744       and we have a cached answer, give them the cached answer.
11745       Previously, we would give them no answer at all.
11747   o Minor bugfixes:
11748     - Allow Tor to start when RunAsDaemon is set but no logs are set.
11749     - Don't crash when the controller receives a third argument to an
11750       "extendcircuit" request.
11751     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
11752       response; fix error code when "getinfo dir/status/" fails.
11753     - Fix configure.in to not produce broken configure files with
11754       more recent versions of autoconf. Thanks to Clint for his auto*
11755       voodoo.
11756     - Fix security bug on NetBSD that could allow someone to force
11757       uninitialized RAM to be sent to a server's DNS resolver. This
11758       only affects NetBSD and other platforms that do not bounds-check
11759       tolower().
11760     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
11761       methods: these are known to be buggy.
11762     - If we're a directory mirror and we ask for "all" network status
11763       documents, we would discard status documents from authorities
11764       we don't recognize.
11767 Changes in version 0.1.1.23 - 2006-07-30
11768   o Major bugfixes:
11769     - Fast Tor servers, especially exit nodes, were triggering asserts
11770       due to a bug in handling the list of pending DNS resolves. Some
11771       bugs still remain here; we're hunting them.
11772     - Entry guards could crash clients by sending unexpected input.
11773     - More fixes on reachability testing: if you find yourself reachable,
11774       then don't ever make any client requests (so you stop predicting
11775       circuits), then hup or have your clock jump, then later your IP
11776       changes, you won't think circuits are working, so you won't try to
11777       test reachability, so you won't publish.
11779   o Minor bugfixes:
11780     - Avoid a crash if the controller does a resetconf firewallports
11781       and then a setconf fascistfirewall=1.
11782     - Avoid an integer underflow when the dir authority decides whether
11783       a router is stable: we might wrongly label it stable, and compute
11784       a slightly wrong median stability, when a descriptor is published
11785       later than now.
11786     - Fix a place where we might trigger an assert if we can't build our
11787       own server descriptor yet.
11790 Changes in version 0.1.1.22 - 2006-07-05
11791   o Major bugfixes:
11792     - Fix a big bug that was causing servers to not find themselves
11793       reachable if they changed IP addresses. Since only 0.1.1.22+
11794       servers can do reachability testing correctly, now we automatically
11795       make sure to test via one of these.
11796     - Fix to allow clients and mirrors to learn directory info from
11797       descriptor downloads that get cut off partway through.
11798     - Directory authorities had a bug in deciding if a newly published
11799       descriptor was novel enough to make everybody want a copy -- a few
11800       servers seem to be publishing new descriptors many times a minute.
11801   o Minor bugfixes:
11802     - Fix a rare bug that was causing some servers to complain about
11803       "closing wedged cpuworkers" and skip some circuit create requests.
11804     - Make the Exit flag in directory status documents actually work.
11807 Changes in version 0.1.1.21 - 2006-06-10
11808   o Crash and assert fixes from 0.1.1.20:
11809     - Fix a rare crash on Tor servers that have enabled hibernation.
11810     - Fix a seg fault on startup for Tor networks that use only one
11811       directory authority.
11812     - Fix an assert from a race condition that occurs on Tor servers
11813       while exiting, where various threads are trying to log that they're
11814       exiting, and delete the logs, at the same time.
11815     - Make our unit tests pass again on certain obscure platforms.
11817   o Other fixes:
11818     - Add support for building SUSE RPM packages.
11819     - Speed up initial bootstrapping for clients: if we are making our
11820       first ever connection to any entry guard, then don't mark it down
11821       right after that.
11822     - When only one Tor server in the network is labelled as a guard,
11823       and we've already picked him, we would cycle endlessly picking him
11824       again, being unhappy about it, etc. Now we specifically exclude
11825       current guards when picking a new guard.
11826     - Servers send create cells more reliably after the TLS connection
11827       is established: we were sometimes forgetting to send half of them
11828       when we had more than one pending.
11829     - If we get a create cell that asks us to extend somewhere, but the
11830       Tor server there doesn't match the expected digest, we now send
11831       a destroy cell back, rather than silently doing nothing.
11832     - Make options->RedirectExit work again.
11833     - Make cookie authentication for the controller work again.
11834     - Stop being picky about unusual characters in the arguments to
11835       mapaddress. It's none of our business.
11836     - Add a new config option "TestVia" that lets you specify preferred
11837       middle hops to use for test circuits. Perhaps this will let me
11838       debug the reachability problems better.
11840   o Log / documentation fixes:
11841     - If we're a server and some peer has a broken TLS certificate, don't
11842       log about it unless ProtocolWarnings is set, i.e., we want to hear
11843       about protocol violations by others.
11844     - Fix spelling of VirtualAddrNetwork in man page.
11845     - Add a better explanation at the top of the autogenerated torrc file
11846       about what happened to our old torrc.
11849 Changes in version 0.1.1.20 - 2006-05-23
11850   o Crash and assert fixes from 0.1.0.17:
11851     - Fix assert bug in close_logs() on exit: when we close and delete
11852       logs, remove them all from the global "logfiles" list.
11853     - Fix an assert error when we're out of space in the connection_list
11854       and we try to post a hidden service descriptor (reported by Peter
11855       Palfrader).
11856     - Fix a rare assert error when we've tried all intro points for
11857       a hidden service and we try fetching the service descriptor again:
11858       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed".
11859     - Setconf SocksListenAddress kills Tor if it fails to bind. Now back
11860       out and refuse the setconf if it would fail.
11861     - If you specify a relative torrc path and you set RunAsDaemon in
11862       your torrc, then it chdir()'s to the new directory. If you then
11863       HUP, it tries to load the new torrc location, fails, and exits.
11864       The fix: no longer allow a relative path to torrc when using -f.
11865     - Check for integer overflows in more places, when adding elements
11866       to smartlists. This could possibly prevent a buffer overflow
11867       on malicious huge inputs.
11869   o Security fixes, major:
11870     - When we're printing strings from the network, don't try to print
11871       non-printable characters. Now we're safer against shell escape
11872       sequence exploits, and also against attacks to fool users into
11873       misreading their logs.
11874     - Implement entry guards: automatically choose a handful of entry
11875       nodes and stick with them for all circuits. Only pick new guards
11876       when the ones you have are unsuitable, and if the old guards
11877       become suitable again, switch back. This will increase security
11878       dramatically against certain end-point attacks. The EntryNodes
11879       config option now provides some hints about which entry guards you
11880       want to use most; and StrictEntryNodes means to only use those.
11881       Fixes CVE-2006-0414.
11882     - Implement exit enclaves: if we know an IP address for the
11883       destination, and there's a running Tor server at that address
11884       which allows exit to the destination, then extend the circuit to
11885       that exit first. This provides end-to-end encryption and end-to-end
11886       authentication. Also, if the user wants a .exit address or enclave,
11887       use 4 hops rather than 3, and cannibalize a general circ for it
11888       if you can.
11889     - Obey our firewall options more faithfully:
11890       . If we can't get to a dirserver directly, try going via Tor.
11891       . Don't ever try to connect (as a client) to a place our
11892         firewall options forbid.
11893       . If we specify a proxy and also firewall options, obey the
11894         firewall options even when we're using the proxy: some proxies
11895         can only proxy to certain destinations.
11896     - Make clients regenerate their keys when their IP address changes.
11897     - For the OS X package's modified privoxy config file, comment
11898       out the "logfile" line so we don't log everything passed
11899       through privoxy.
11900     - Our TLS handshakes were generating a single public/private
11901       keypair for the TLS context, rather than making a new one for
11902       each new connection. Oops. (But we were still rotating them
11903       periodically, so it's not so bad.)
11904     - When we were cannibalizing a circuit with a particular exit
11905       node in mind, we weren't checking to see if that exit node was
11906       already present earlier in the circuit. Now we are.
11907     - Require server descriptors to list IPv4 addresses -- hostnames
11908       are no longer allowed. This also fixes potential vulnerabilities
11909       to servers providing hostnames as their address and then
11910       preferentially resolving them so they can partition users.
11911     - Our logic to decide if the OR we connected to was the right guy
11912       was brittle and maybe open to a mitm for invalid routers.
11914   o Security fixes, minor:
11915     - Adjust tor-spec.txt to parameterize cell and key lengths. Now
11916       Ian Goldberg can prove things about our handshake protocol more
11917       easily.
11918     - Make directory authorities generate a separate "guard" flag to
11919       mean "would make a good entry guard". Clients now honor the
11920       is_guard flag rather than looking at is_fast or is_stable.
11921     - Try to list MyFamily elements by key, not by nickname, and warn
11922       if we've not heard of a server.
11923     - Start using RAND_bytes rather than RAND_pseudo_bytes from
11924       OpenSSL. Also, reseed our entropy every hour, not just at
11925       startup. And add entropy in 512-bit chunks, not 160-bit chunks.
11926     - Refuse server descriptors where the fingerprint line doesn't match
11927       the included identity key. Tor doesn't care, but other apps (and
11928       humans) might actually be trusting the fingerprint line.
11929     - We used to kill the circuit when we receive a relay command we
11930       don't recognize. Now we just drop that cell.
11931     - Fix a bug found by Lasse Overlier: when we were making internal
11932       circuits (intended to be cannibalized later for rendezvous and
11933       introduction circuits), we were picking them so that they had
11934       useful exit nodes. There was no need for this, and it actually
11935       aids some statistical attacks.
11936     - Start treating internal circuits and exit circuits separately.
11937       It's important to keep them separate because internal circuits
11938       have their last hops picked like middle hops, rather than like
11939       exit hops. So exiting on them will break the user's expectations.
11940     - Fix a possible way to DoS dirservers.
11941     - When the client asked for a rendezvous port that the hidden
11942       service didn't want to provide, we were sending an IP address
11943       back along with the end cell. Fortunately, it was zero. But stop
11944       that anyway.
11946   o Packaging improvements:
11947     - Implement --with-libevent-dir option to ./configure. Improve
11948       search techniques to find libevent, and use those for openssl too.
11949     - Fix a couple of bugs in OpenSSL detection. Deal better when
11950       there are multiple SSLs installed with different versions.
11951     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
11952     - On non-gcc compilers (e.g. Solaris's cc), use "-g -O" instead of
11953       "-Wall -g -O2".
11954     - Make unit tests (and other invocations that aren't the real Tor)
11955       run without launching listeners, creating subdirectories, and so on.
11956     - The OS X installer was adding a symlink for tor_resolve but
11957       the binary was called tor-resolve (reported by Thomas Hardly).
11958     - Now we can target arch and OS in rpm builds (contributed by
11959       Phobos). Also make the resulting dist-rpm filename match the
11960       target arch.
11961     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
11962       if you log to syslog and want something other than LOG_DAEMON.
11963     - Fix the torify (tsocks) config file to not use Tor for localhost
11964       connections.
11965     - Start shipping socks-extensions.txt, tor-doc-unix.html,
11966       tor-doc-server.html, and stylesheet.css in the tarball.
11967     - Stop shipping tor-doc.html, INSTALL, and README in the tarball.
11968       They are useless now.
11969     - Add Peter Palfrader's contributed check-tor script. It lets you
11970       easily check whether a given server (referenced by nickname)
11971       is reachable by you.
11972     - Add BSD-style contributed startup script "rc.subr" from Peter
11973       Thoenen.
11975   o Directory improvements -- new directory protocol:
11976     - See tor/doc/dir-spec.txt for all the juicy details. Key points:
11977     - Authorities and caches publish individual descriptors (by
11978       digest, by fingerprint, by "all", and by "tell me yours").
11979     - Clients don't download or use the old directory anymore. Now they
11980       download network-statuses from the directory authorities, and
11981       fetch individual server descriptors as needed from mirrors.
11982     - Clients don't download descriptors of non-running servers.
11983     - Download descriptors by digest, not by fingerprint. Caches try to
11984       download all listed digests from authorities; clients try to
11985       download "best" digests from caches. This avoids partitioning
11986       and isolating attacks better.
11987     - Only upload a new server descriptor when options change, 18
11988       hours have passed, uptime is reset, or bandwidth changes a lot.
11989     - Directory authorities silently throw away new descriptors that
11990       haven't changed much if the timestamps are similar. We do this to
11991       tolerate older Tor servers that upload a new descriptor every 15
11992       minutes. (It seemed like a good idea at the time.)
11993     - Clients choose directory servers from the network status lists,
11994       not from their internal list of router descriptors. Now they can
11995       go to caches directly rather than needing to go to authorities
11996       to bootstrap the first set of descriptors.
11997     - When picking a random directory, prefer non-authorities if any
11998       are known.
11999     - Add a new flag to network-status indicating whether the server
12000       can answer v2 directory requests too.
12001     - Directory mirrors now cache up to 16 unrecognized network-status
12002       docs, so new directory authorities will be cached too.
12003     - Stop parsing, storing, or using running-routers output (but
12004       mirrors still cache and serve it).
12005     - Clients consider a threshold of "versioning" directory authorities
12006       before deciding whether to warn the user that he's obsolete.
12007     - Authorities publish separate sorted lists of recommended versions
12008       for clients and for servers.
12009     - Change DirServers config line to note which dirs are v1 authorities.
12010     - Put nicknames on the DirServer line, so we can refer to them
12011       without requiring all our users to memorize their IP addresses.
12012     - Remove option when getting directory cache to see whether they
12013       support running-routers; they all do now. Replace it with one
12014       to see whether caches support v2 stuff.
12015     - Stop listing down or invalid nodes in the v1 directory. This
12016       reduces its bulk by about 1/3, and reduces load on mirrors.
12017     - Mirrors no longer cache the v1 directory as often.
12018     - If we as a directory mirror don't know of any v1 directory
12019       authorities, then don't try to cache any v1 directories.
12021   o Other directory improvements:
12022     - Add lefkada.eecs.harvard.edu and tor.dizum.com as fourth and
12023       fifth authoritative directory servers.
12024     - Directory authorities no longer require an open connection from
12025       a server to consider him "reachable". We need this change because
12026       when we add new directory authorities, old servers won't know not
12027       to hang up on them.
12028     - Dir authorities now do their own external reachability testing
12029       of each server, and only list as running the ones they found to
12030       be reachable. We also send back warnings to the server's logs if
12031       it uploads a descriptor that we already believe is unreachable.
12032     - Spread the directory authorities' reachability testing over the
12033       entire testing interval, so we don't try to do 500 TLS's at once
12034       every 20 minutes.
12035     - Make the "stable" router flag in network-status be the median of
12036       the uptimes of running valid servers, and make clients pay
12037       attention to the network-status flags. Thus the cutoff adapts
12038       to the stability of the network as a whole, making IRC, IM, etc
12039       connections more reliable.
12040     - Make the v2 dir's "Fast" flag based on relative capacity, just
12041       like "Stable" is based on median uptime. Name everything in the
12042       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
12043     - Retry directory requests if we fail to get an answer we like
12044       from a given dirserver (we were retrying before, but only if
12045       we fail to connect).
12046     - Return a robots.txt on our dirport to discourage google indexing.
12048   o Controller protocol improvements:
12049     - Revised controller protocol (version 1) that uses ascii rather
12050       than binary: tor/doc/control-spec.txt. Add supporting libraries
12051       in python and java and c# so you can use the controller from your
12052       applications without caring how our protocol works.
12053     - Allow the DEBUG controller event to work again. Mark certain log
12054       entries as "don't tell this to controllers", so we avoid cycles.
12055     - New controller function "getinfo accounting", to ask how
12056       many bytes we've used in this time period.
12057     - Add a "resetconf" command so you can set config options like
12058       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
12059       a config option in the torrc with no value, then it clears it
12060       entirely (rather than setting it to its default).
12061     - Add a "getinfo config-file" to tell us where torrc is. Also
12062       expose guard nodes, config options/names.
12063     - Add a "quit" command (when when using the controller manually).
12064     - Add a new signal "newnym" to "change pseudonyms" -- that is, to
12065       stop using any currently-dirty circuits for new streams, so we
12066       don't link new actions to old actions. This also occurs on HUP
12067       or "signal reload".
12068     - If we would close a stream early (e.g. it asks for a .exit that
12069       we know would refuse it) but the LeaveStreamsUnattached config
12070       option is set by the controller, then don't close it.
12071     - Add a new controller event type "authdir_newdescs" that allows
12072       controllers to get all server descriptors that were uploaded to
12073       a router in its role as directory authority.
12074     - New controller option "getinfo desc/all-recent" to fetch the
12075       latest server descriptor for every router that Tor knows about.
12076     - Fix the controller's "attachstream 0" command to treat conn like
12077       it just connected, doing address remapping, handling .exit and
12078       .onion idioms, and so on. Now we're more uniform in making sure
12079       that the controller hears about new and closing connections.
12080     - Permit transitioning from ORPort==0 to ORPort!=0, and back, from
12081       the controller. Also, rotate dns and cpu workers if the controller
12082       changes options that will affect them; and initialize the dns
12083       worker cache tree whether or not we start out as a server.
12084     - Add a new circuit purpose 'controller' to let the controller ask
12085       for a circuit that Tor won't try to use. Extend the "extendcircuit"
12086       controller command to let you specify the purpose if you're starting
12087       a new circuit.  Add a new "setcircuitpurpose" controller command to
12088       let you change a circuit's purpose after it's been created.
12089     - Let the controller ask for "getinfo dir/server/foo" so it can ask
12090       directly rather than connecting to the dir port. "getinfo
12091       dir/status/foo" also works, but currently only if your DirPort
12092       is enabled.
12093     - Let the controller tell us about certain router descriptors
12094       that it doesn't want Tor to use in circuits. Implement
12095       "setrouterpurpose" and modify "+postdescriptor" to do this.
12096     - If the controller's *setconf commands fail, collect an error
12097       message in a string and hand it back to the controller -- don't
12098       just tell them to go read their logs.
12100   o Scalability, resource management, and performance:
12101     - Fix a major load balance bug: we were round-robin reading in 16 KB
12102       chunks, and servers with bandwidthrate of 20 KB, while downloading
12103       a 600 KB directory, would starve their other connections. Now we
12104       try to be a bit more fair.
12105     - Be more conservative about whether to advertise our DirPort.
12106       The main change is to not advertise if we're running at capacity
12107       and either a) we could hibernate ever or b) our capacity is low
12108       and we're using a default DirPort.
12109     - We weren't cannibalizing circuits correctly for
12110       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
12111       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
12112       build those from scratch. This should make hidden services faster.
12113     - Predict required circuits better, with an eye toward making hidden
12114       services faster on the service end.
12115     - Compress exit policies even more: look for duplicate lines and
12116       remove them.
12117     - Generate 18.0.0.0/8 address policy format in descs when we can;
12118       warn when the mask is not reducible to a bit-prefix.
12119     - There used to be two ways to specify your listening ports in a
12120       server descriptor: on the "router" line and with a separate "ports"
12121       line. Remove support for the "ports" line.
12122     - Reduce memory requirements in our structs by changing the order
12123       of fields. Replace balanced trees with hash tables. Inline
12124       bottleneck smartlist functions. Add a "Map from digest to void*"
12125       abstraction so we can do less hex encoding/decoding, and use it
12126       in router_get_by_digest(). Many other CPU and memory improvements.
12127     - Allow tor_gzip_uncompress to extract as much as possible from
12128       truncated compressed data. Try to extract as many
12129       descriptors as possible from truncated http responses (when
12130       purpose is DIR_PURPOSE_FETCH_ROUTERDESC).
12131     - Make circ->onionskin a pointer, not a static array. moria2 was using
12132       125000 circuit_t's after it had been up for a few weeks, which
12133       translates to 20+ megs of wasted space.
12134     - The private half of our EDH handshake keys are now chosen out
12135       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
12136     - Stop doing the complex voodoo overkill checking for insecure
12137       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
12138     - Do round-robin writes for TLS of at most 16 kB per write. This
12139       might be more fair on loaded Tor servers.
12140     - Do not use unaligned memory access on alpha, mips, or mipsel.
12141       It *works*, but is very slow, so we treat them as if it doesn't.
12143   o Other bugfixes and improvements:
12144     - Start storing useful information to $DATADIR/state, so we can
12145       remember things across invocations of Tor. Retain unrecognized
12146       lines so we can be forward-compatible, and write a TorVersion line
12147       so we can be backward-compatible.
12148     - If ORPort is set, Address is not explicitly set, and our hostname
12149       resolves to a private IP address, try to use an interface address
12150       if it has a public address. Now Windows machines that think of
12151       themselves as localhost can guess their address.
12152     - Regenerate our local descriptor if it's dirty and we try to use
12153       it locally (e.g. if it changes during reachability detection).
12154       This was causing some Tor servers to keep publishing the same
12155       initial descriptor forever.
12156     - Tor servers with dynamic IP addresses were needing to wait 18
12157       hours before they could start doing reachability testing using
12158       the new IP address and ports. This is because they were using
12159       the internal descriptor to learn what to test, yet they were only
12160       rebuilding the descriptor once they decided they were reachable.
12161     - It turns out we couldn't bootstrap a network since we added
12162       reachability detection in 0.1.0.1-rc. Good thing the Tor network
12163       has never gone down. Add an AssumeReachable config option to let
12164       servers and authorities bootstrap. When we're trying to build a
12165       high-uptime or high-bandwidth circuit but there aren't enough
12166       suitable servers, try being less picky rather than simply failing.
12167     - Newly bootstrapped Tor networks couldn't establish hidden service
12168       circuits until they had nodes with high uptime. Be more tolerant.
12169     - Really busy servers were keeping enough circuits open on stable
12170       connections that they were wrapping around the circuit_id
12171       space. (It's only two bytes.) This exposed a bug where we would
12172       feel free to reuse a circuit_id even if it still exists but has
12173       been marked for close. Try to fix this bug. Some bug remains.
12174     - When we fail to bind or listen on an incoming or outgoing
12175       socket, we now close it before refusing, rather than just
12176       leaking it. (Thanks to Peter Palfrader for finding.)
12177     - Fix a file descriptor leak in start_daemon().
12178     - On Windows, you can't always reopen a port right after you've
12179       closed it. So change retry_listeners() to only close and re-open
12180       ports that have changed.
12181     - Workaround a problem with some http proxies that refuse GET
12182       requests that specify "Content-Length: 0". Reported by Adrian.
12183     - Recover better from TCP connections to Tor servers that are
12184       broken but don't tell you (it happens!); and rotate TLS
12185       connections once a week.
12186     - Fix a scary-looking but apparently harmless bug where circuits
12187       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
12188       servers, and never switch to state CIRCUIT_STATE_OPEN.
12189     - Check for even more Windows version flags when writing the platform
12190       string in server descriptors, and note any we don't recognize.
12191     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
12192       get a better idea of why their circuits failed. Not used yet.
12193     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
12194       We don't use them yet, but maybe one day our DNS resolver will be
12195       able to discover them.
12196     - Let people type "tor --install" as well as "tor -install" when they
12197       want to make it an NT service.
12198     - Looks like we were never delivering deflated (i.e. compressed)
12199       running-routers lists, even when asked. Oops.
12200     - We were leaking some memory every time the client changed IPs.
12201     - Clean up more of the OpenSSL memory when exiting, so we can detect
12202       memory leaks better.
12203     - Never call free() on tor_malloc()d memory. This will help us
12204       use dmalloc to detect memory leaks.
12205     - Some Tor servers process billions of cells per day. These
12206       statistics are now uint64_t's.
12207     - Check [X-]Forwarded-For headers in HTTP requests when generating
12208       log messages. This lets people run dirservers (and caches) behind
12209       Apache but still know which IP addresses are causing warnings.
12210     - Fix minor integer overflow in calculating when we expect to use up
12211       our bandwidth allocation before hibernating.
12212     - Lower the minimum required number of file descriptors to 1000,
12213       so we can have some overhead for Valgrind on Linux, where the
12214       default ulimit -n is 1024.
12215     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
12216       and its existence is confusing some users.
12218   o Config option fixes:
12219     - Add a new config option ExitPolicyRejectPrivate which defaults
12220       to on. Now all exit policies will begin with rejecting private
12221       addresses, unless the server operator explicitly turns it off.
12222     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB.
12223     - Add new ReachableORAddresses and ReachableDirAddresses options
12224       that understand address policies. FascistFirewall is now a synonym
12225       for "ReachableORAddresses *:443", "ReachableDirAddresses *:80".
12226     - Start calling it FooListenAddress rather than FooBindAddress,
12227       since few of our users know what it means to bind an address
12228       or port.
12229     - If the user gave Tor an odd number of command-line arguments,
12230       we were silently ignoring the last one. Now we complain and fail.
12231       This wins the oldest-bug prize -- this bug has been present since
12232       November 2002, as released in Tor 0.0.0.
12233     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
12234       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
12235       it would silently ignore the 6668.
12236     - If we get a linelist or linelist_s config option from the torrc,
12237       e.g. ExitPolicy, and it has no value, warn and skip rather than
12238       silently resetting it to its default.
12239     - Setconf was appending items to linelists, not clearing them.
12240     - Add MyFamily to torrc.sample in the server section, so operators
12241       will be more likely to learn that it exists.
12242     - Make ContactInfo mandatory for authoritative directory servers.
12243     - MaxConn has been obsolete for a while now. Document the ConnLimit
12244       config option, which is a *minimum* number of file descriptors
12245       that must be available else Tor refuses to start.
12246     - Get rid of IgnoreVersion undocumented config option, and make us
12247       only warn, never exit, when we're running an obsolete version.
12248     - Make MonthlyAccountingStart config option truly obsolete now.
12249     - Correct the man page entry on TrackHostExitsExpire.
12250     - Let directory authorities start even if they don't specify an
12251       Address config option.
12252     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
12253       reflect the updated flags in our v2 dir protocol.
12255   o Config option features:
12256     - Add a new config option FastFirstHopPK (on by default) so clients
12257       do a trivial crypto handshake for their first hop, since TLS has
12258       already taken care of confidentiality and authentication.
12259     - Let the user set ControlListenAddress in the torrc. This can be
12260       dangerous, but there are some cases (like a secured LAN) where it
12261       makes sense.
12262     - New config options to help controllers: FetchServerDescriptors
12263       and FetchHidServDescriptors for whether to fetch server
12264       info and hidserv info or let the controller do it, and
12265       PublishServerDescriptor and PublishHidServDescriptors.
12266     - Also let the controller set the __AllDirActionsPrivate config
12267       option if you want all directory fetches/publishes to happen via
12268       Tor (it assumes your controller bootstraps your circuits).
12269     - Add "HardwareAccel" config option: support for crypto hardware
12270       accelerators via OpenSSL. Off by default, until we find somebody
12271       smart who can test it for us. (It appears to produce seg faults
12272       in at least some cases.)
12273     - New config option "AuthDirRejectUnlisted" for directory authorities
12274       as a panic button: if we get flooded with unusable servers we can
12275       revert to only listing servers in the approved-routers file.
12276     - Directory authorities can now reject/invalidate by key and IP,
12277       with the config options "AuthDirInvalid" and "AuthDirReject", or
12278       by marking a fingerprint as "!reject" or "!invalid" (as its
12279       nickname) in the approved-routers file. This is useful since
12280       currently we automatically list servers as running and usable
12281       even if we know they're jerks.
12282     - Add a new config option TestSocks so people can see whether their
12283       applications are using socks4, socks4a, socks5-with-ip, or
12284       socks5-with-fqdn. This way they don't have to keep mucking
12285       with tcpdump and wondering if something got cached somewhere.
12286     - Add "private:*" as an alias in configuration for policies. Now
12287       you can simplify your exit policy rather than needing to list
12288       every single internal or nonroutable network space.
12289     - Accept "private:*" in routerdesc exit policies; not generated yet
12290       because older Tors do not understand it.
12291     - Add configuration option "V1AuthoritativeDirectory 1" which
12292       moria1, moria2, and tor26 have set.
12293     - Implement an option, VirtualAddrMask, to set which addresses
12294       get handed out in response to mapaddress requests. This works
12295       around a bug in tsocks where 127.0.0.0/8 is never socksified.
12296     - Add a new config option FetchUselessDescriptors, off by default,
12297       for when you plan to run "exitlist" on your client and you want
12298       to know about even the non-running descriptors.
12299     - SocksTimeout: How long do we let a socks connection wait
12300       unattached before we fail it?
12301     - CircuitBuildTimeout: Cull non-open circuits that were born
12302       at least this many seconds ago.
12303     - CircuitIdleTimeout: Cull open clean circuits that were born
12304       at least this many seconds ago.
12305     - New config option SafeSocks to reject all application connections
12306       using unsafe socks protocols. Defaults to off.
12308   o Improved and clearer log messages:
12309     - Reduce clutter in server logs. We're going to try to make
12310       them actually usable now. New config option ProtocolWarnings that
12311       lets you hear about how _other Tors_ are breaking the protocol. Off
12312       by default.
12313     - Divide log messages into logging domains. Once we put some sort
12314       of interface on this, it will let people looking at more verbose
12315       log levels specify the topics they want to hear more about.
12316     - Log server fingerprint on startup, so new server operators don't
12317       have to go hunting around their filesystem for it.
12318     - Provide dire warnings to any users who set DirServer manually;
12319       move it out of torrc.sample and into torrc.complete.
12320     - Make the log message less scary when all the dirservers are
12321       temporarily unreachable.
12322     - When tor_socketpair() fails in Windows, give a reasonable
12323       Windows-style errno back.
12324     - Improve tor_gettimeofday() granularity on windows.
12325     - We were printing the number of idle dns workers incorrectly when
12326       culling them.
12327     - Handle duplicate lines in approved-routers files without warning.
12328     - We were whining about using socks4 or socks5-with-local-lookup
12329       even when it's an IP address in the "virtual" range we designed
12330       exactly for this case.
12331     - Check for named servers when looking them up by nickname;
12332       warn when we're calling a non-named server by its nickname;
12333       don't warn twice about the same name.
12334     - Downgrade the dirserver log messages when whining about
12335       unreachability.
12336     - Correct "your server is reachable" log entries to indicate that
12337       it was self-testing that told us so.
12338     - If we're trying to be a Tor server and running Windows 95/98/ME
12339       as a server, explain that we'll likely crash.
12340     - Provide a more useful warn message when our onion queue gets full:
12341       the CPU is too slow or the exit policy is too liberal.
12342     - Don't warn when we receive a 503 from a dirserver/cache -- this
12343       will pave the way for them being able to refuse if they're busy.
12344     - When we fail to bind a listener, try to provide a more useful
12345       log message: e.g., "Is Tor already running?"
12346     - Only start testing reachability once we've established a
12347       circuit. This will make startup on dir authorities less noisy.
12348     - Don't try to upload hidden service descriptors until we have
12349       established a circuit.
12350     - Tor didn't warn when it failed to open a log file.
12351     - Warn when listening on a public address for socks. We suspect a
12352       lot of people are setting themselves up as open socks proxies,
12353       and they have no idea that jerks on the Internet are using them,
12354       since they simply proxy the traffic into the Tor network.
12355     - Give a useful message when people run Tor as the wrong user,
12356       rather than telling them to start chowning random directories.
12357     - Fix a harmless bug that was causing Tor servers to log
12358       "Got an end because of misc error, but we're not an AP. Closing."
12359     - Fix wrong log message when you add a "HiddenServiceNodes" config
12360       line without any HiddenServiceDir line (reported by Chris Thomas).
12361     - Directory authorities now stop whining so loudly about bad
12362       descriptors that they fetch from other dirservers. So when there's
12363       a log complaint, it's for sure from a freshly uploaded descriptor.
12364     - When logging via syslog, include the pid whenever we provide
12365       a log entry. Suggested by Todd Fries.
12366     - When we're shutting down and we do something like try to post a
12367       server descriptor or rendezvous descriptor, don't complain that
12368       we seem to be unreachable. Of course we are, we're shutting down.
12369     - Change log line for unreachability to explicitly suggest /etc/hosts
12370       as the culprit. Also make it clearer what IP address and ports we're
12371       testing for reachability.
12372     - Put quotes around user-supplied strings when logging so users are
12373       more likely to realize if they add bad characters (like quotes)
12374       to the torrc.
12375     - NT service patch from Matt Edman to improve error messages on Win32.
12378 Changes in version 0.1.0.17 - 2006-02-17
12379   o Crash bugfixes on 0.1.0.x:
12380     - When servers with a non-zero DirPort came out of hibernation,
12381       sometimes they would trigger an assert.
12383   o Other important bugfixes:
12384     - On platforms that don't have getrlimit (like Windows), we were
12385       artificially constraining ourselves to a max of 1024
12386       connections. Now just assume that we can handle as many as 15000
12387       connections. Hopefully this won't cause other problems.
12389   o Backported features:
12390     - When we're a server, a client asks for an old-style directory,
12391       and our write bucket is empty, don't give it to him. This way
12392       small servers can continue to serve the directory *sometimes*,
12393       without getting overloaded.
12394     - Whenever you get a 503 in response to a directory fetch, try
12395       once more. This will become important once servers start sending
12396       503's whenever they feel busy.
12397     - Fetch a new directory every 120 minutes, not every 40 minutes.
12398       Now that we have hundreds of thousands of users running the old
12399       directory algorithm, it's starting to hurt a lot.
12400     - Bump up the period for forcing a hidden service descriptor upload
12401       from 20 minutes to 1 hour.
12404 Changes in version 0.1.0.16 - 2006-01-02
12405   o Crash bugfixes on 0.1.0.x:
12406     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
12407       corrupting the heap, losing FDs, or crashing when we need to resize
12408       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
12409     - It turns out sparc64 platforms crash on unaligned memory access
12410       too -- so detect and avoid this.
12411     - Handle truncated compressed data correctly (by detecting it and
12412       giving an error).
12413     - Fix possible-but-unlikely free(NULL) in control.c.
12414     - When we were closing connections, there was a rare case that
12415       stomped on memory, triggering seg faults and asserts.
12416     - Avoid potential infinite recursion when building a descriptor. (We
12417       don't know that it ever happened, but better to fix it anyway.)
12418     - We were neglecting to unlink marked circuits from soon-to-close OR
12419       connections, which caused some rare scribbling on freed memory.
12420     - Fix a memory stomping race bug when closing the joining point of two
12421       rendezvous circuits.
12422     - Fix an assert in time parsing found by Steven Murdoch.
12424   o Other bugfixes on 0.1.0.x:
12425     - When we're doing reachability testing, provide more useful log
12426       messages so the operator knows what to expect.
12427     - Do not check whether DirPort is reachable when we are suppressing
12428       advertising it because of hibernation.
12429     - When building with -static or on Solaris, we sometimes needed -ldl.
12430     - One of the dirservers (tor26) changed its IP address.
12431     - When we're deciding whether a stream has enough circuits around
12432       that can handle it, count the freshly dirty ones and not the ones
12433       that are so dirty they won't be able to handle it.
12434     - When we're expiring old circuits, we had a logic error that caused
12435       us to close new rendezvous circuits rather than old ones.
12436     - Give a more helpful log message when you try to change ORPort via
12437       the controller: you should upgrade Tor if you want that to work.
12438     - We were failing to parse Tor versions that start with "Tor ".
12439     - Tolerate faulty streams better: when a stream fails for reason
12440       exitpolicy, stop assuming that the router is lying about his exit
12441       policy. When a stream fails for reason misc, allow it to retry just
12442       as if it was resolvefailed. When a stream has failed three times,
12443       reset its failure count so we can try again and get all three tries.
12446 Changes in version 0.1.0.15 - 2005-09-23
12447   o Bugfixes on 0.1.0.x:
12448     - Reject ports 465 and 587 (spam targets) in default exit policy.
12449     - Don't crash when we don't have any spare file descriptors and we
12450       try to spawn a dns or cpu worker.
12451     - Get rid of IgnoreVersion undocumented config option, and make us
12452       only warn, never exit, when we're running an obsolete version.
12453     - Don't try to print a null string when your server finds itself to
12454       be unreachable and the Address config option is empty.
12455     - Make the numbers in read-history and write-history into uint64s,
12456       so they don't overflow and publish negatives in the descriptor.
12457     - Fix a minor memory leak in smartlist_string_remove().
12458     - We were only allowing ourselves to upload a server descriptor at
12459       most every 20 minutes, even if it changed earlier than that.
12460     - Clean up log entries that pointed to old URLs.
12463 Changes in version 0.1.0.14 - 2005-08-08
12464   o Bugfixes on 0.1.0.x:
12465       - Fix the other half of the bug with crypto handshakes
12466         (CVE-2005-2643).
12467       - Fix an assert trigger if you send a 'signal term' via the
12468         controller when it's listening for 'event info' messages.
12471 Changes in version 0.1.0.13 - 2005-08-04
12472   o Bugfixes on 0.1.0.x:
12473     - Fix a critical bug in the security of our crypto handshakes.
12474     - Fix a size_t underflow in smartlist_join_strings2() that made
12475       it do bad things when you hand it an empty smartlist.
12476     - Fix Windows installer to ship Tor license (thanks to Aphex for
12477       pointing out this oversight) and put a link to the doc directory
12478       in the start menu.
12479     - Explicitly set no-unaligned-access for sparc: it turns out the
12480       new gcc's let you compile broken code, but that doesn't make it
12481       not-broken.
12484 Changes in version 0.1.0.12 - 2005-07-18
12485   o New directory servers:
12486       - tor26 has changed IP address.
12488   o Bugfixes on 0.1.0.x:
12489     - Fix a possible double-free in tor_gzip_uncompress().
12490     - When --disable-threads is set, do not search for or link against
12491       pthreads libraries.
12492     - Don't trigger an assert if an authoritative directory server
12493       claims its dirport is 0.
12494     - Fix bug with removing Tor as an NT service: some people were
12495       getting "The service did not return an error." Thanks to Matt
12496       Edman for the fix.
12499 Changes in version 0.1.0.11 - 2005-06-30
12500   o Bugfixes on 0.1.0.x:
12501     - Fix major security bug: servers were disregarding their
12502       exit policies if clients behaved unexpectedly.
12503     - Make OS X init script check for missing argument, so we don't
12504       confuse users who invoke it incorrectly.
12505     - Fix a seg fault in "tor --hash-password foo".
12506     - The MAPADDRESS control command was broken.
12509 Changes in version 0.1.0.10 - 2005-06-14
12510   o Fixes on Win32:
12511     - Make NT services work and start on startup on Win32 (based on
12512       patch by Matt Edman). See the FAQ entry for details.
12513     - Make 'platform' string in descriptor more accurate for Win32
12514       servers, so it's not just "unknown platform".
12515     - REUSEADDR on normal platforms means you can rebind to the port
12516       right after somebody else has let it go. But REUSEADDR on Win32
12517       means you can bind to the port _even when somebody else already
12518       has it bound_! So, don't do that on Win32.
12519     - Clean up the log messages when starting on Win32 with no config
12520       file.
12521     - Allow seeding the RNG on Win32 even when you're not running as
12522       Administrator. If seeding the RNG on Win32 fails, quit.
12524   o Assert / crash bugs:
12525     - Refuse relay cells that claim to have a length larger than the
12526       maximum allowed. This prevents a potential attack that could read
12527       arbitrary memory (e.g. keys) from an exit server's process
12528       (CVE-2005-2050).
12529     - If unofficial Tor clients connect and send weird TLS certs, our
12530       Tor server triggers an assert. Stop asserting, and start handling
12531       TLS errors better in other situations too.
12532     - Fix a race condition that can trigger an assert when we have a
12533       pending create cell and an OR connection attempt fails.
12535   o Resource leaks:
12536     - Use pthreads for worker processes rather than forking. This was
12537       forced because when we forked, we ended up wasting a lot of
12538       duplicate ram over time.
12539       - Also switch to foo_r versions of some library calls to allow
12540         reentry and threadsafeness.
12541       - Implement --disable-threads configure option. Disable threads on
12542         netbsd and openbsd by default, because they have no reentrant
12543         resolver functions (!), and on solaris since it has other
12544         threading issues.
12545     - Fix possible bug on threading platforms (e.g. win32) which was
12546       leaking a file descriptor whenever a cpuworker or dnsworker died.
12547     - Fix a minor memory leak when somebody establishes an introduction
12548       point at your Tor server.
12549     - Fix possible memory leak in tor_lookup_hostname(). (Thanks to
12550       Adam Langley.)
12551     - Add ./configure --with-dmalloc option, to track memory leaks.
12552     - And try to free all memory on closing, so we can detect what
12553       we're leaking.
12555   o Protocol correctness:
12556     - When we've connected to an OR and handshaked but didn't like
12557       the result, we were closing the conn without sending destroy
12558       cells back for pending circuits. Now send those destroys.
12559     - Start sending 'truncated' cells back rather than destroy cells
12560       if the circuit closes in front of you. This means we won't have
12561       to abandon partially built circuits.
12562     - Handle changed router status correctly when dirserver reloads
12563       fingerprint file. We used to be dropping all unverified descriptors
12564       right then. The bug was hidden because we would immediately
12565       fetch a directory from another dirserver, which would include the
12566       descriptors we just dropped.
12567     - Revise tor-spec to add more/better stream end reasons.
12568     - Revise all calls to connection_edge_end to avoid sending 'misc',
12569       and to take errno into account where possible.
12570     - Client now retries when streams end early for 'hibernating' or
12571       'resource limit' reasons, rather than failing them.
12572     - Try to be more zealous about calling connection_edge_end when
12573       things go bad with edge conns in connection.c.
12575   o Robustness improvements:
12576     - Better handling for heterogeneous / unreliable nodes:
12577       - Annotate circuits with whether they aim to contain high uptime
12578         nodes and/or high capacity nodes. When building circuits, choose
12579         appropriate nodes.
12580       - This means that every single node in an intro rend circuit,
12581         not just the last one, will have a minimum uptime.
12582       - New config option LongLivedPorts to indicate application streams
12583         that will want high uptime circuits.
12584       - Servers reset uptime when a dir fetch entirely fails. This
12585         hopefully reflects stability of the server's network connectivity.
12586       - If somebody starts his tor server in Jan 2004 and then fixes his
12587         clock, don't make his published uptime be a year.
12588       - Reset published uptime when we wake up from hibernation.
12589     - Introduce a notion of 'internal' circs, which are chosen without
12590       regard to the exit policy of the last hop. Intro and rendezvous
12591       circs must be internal circs, to avoid leaking information. Resolve
12592       and connect streams can use internal circs if they want.
12593     - New circuit pooling algorithm: keep track of what destination ports
12594       we've used recently (start out assuming we'll want to use 80), and
12595       make sure to have enough circs around to satisfy these ports. Also
12596       make sure to have 2 internal circs around if we've required internal
12597       circs lately (and with high uptime if we've seen that lately too).
12598     - Turn addr_policy_compare from a tristate to a quadstate; this should
12599       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
12600       for google.com" problem.
12601     - When a client asks us for a dir mirror and we don't have one,
12602       launch an attempt to get a fresh one.
12603     - First cut at support for "create-fast" cells. Clients can use
12604       these when extending to their first hop, since the TLS already
12605       provides forward secrecy and authentication. Not enabled on
12606       clients yet.
12608   o Reachability testing.
12609     - Your Tor server will automatically try to see if its ORPort and
12610       DirPort are reachable from the outside, and it won't upload its
12611       descriptor until it decides at least ORPort is reachable (when
12612       DirPort is not yet found reachable, publish it as zero).
12613     - When building testing circs for ORPort testing, use only
12614       high-bandwidth nodes, so fewer circuits fail.
12615     - Notice when our IP changes, and reset stats/uptime/reachability.
12616     - Authdirservers don't do ORPort reachability detection, since
12617       they're in clique mode, so it will be rare to find a server not
12618       already connected to them.
12619     - Authdirservers now automatically approve nodes running 0.1.0.2-rc
12620       or later.
12622   o Dirserver fixes:
12623     - Now we allow two unverified servers with the same nickname
12624       but different keys. But if a nickname is verified, only that
12625       nickname+key are allowed.
12626     - If you're an authdirserver connecting to an address:port,
12627       and it's not the OR you were expecting, forget about that
12628       descriptor. If he *was* the one you were expecting, then forget
12629       about all other descriptors for that address:port.
12630     - Allow servers to publish descriptors from 12 hours in the future.
12631       Corollary: only whine about clock skew from the dirserver if
12632       he's a trusted dirserver (since now even verified servers could
12633       have quite wrong clocks).
12634     - Require servers that use the default dirservers to have public IP
12635       addresses. We have too many servers that are configured with private
12636       IPs and their admins never notice the log entries complaining that
12637       their descriptors are being rejected.
12639   o Efficiency improvements:
12640     - Use libevent. Now we can use faster async cores (like epoll, kpoll,
12641       and /dev/poll), and hopefully work better on Windows too.
12642       - Apple's OS X 10.4.0 ships with a broken kqueue API, and using
12643         kqueue on 10.3.9 causes kernel panics. Don't use kqueue on OS X.
12644       - Find libevent even if it's hiding in /usr/local/ and your
12645         CFLAGS and LDFLAGS don't tell you to look there.
12646       - Be able to link with libevent as a shared library (the default
12647         after 1.0d), even if it's hiding in /usr/local/lib and even
12648         if you haven't added /usr/local/lib to your /etc/ld.so.conf,
12649         assuming you're running gcc. Otherwise fail and give a useful
12650         error message.
12651     - Switch to a new buffer management algorithm, which tries to avoid
12652       reallocing and copying quite as much. In first tests it looks like
12653       it uses *more* memory on average, but less cpu.
12654     - Switch our internal buffers implementation to use a ring buffer,
12655       to hopefully improve performance for fast servers a lot.
12656     - Reenable the part of the code that tries to flush as soon as an
12657       OR outbuf has a full TLS record available. Perhaps this will make
12658       OR outbufs not grow as huge except in rare cases, thus saving lots
12659       of CPU time plus memory.
12660     - Improve performance for dirservers: stop re-parsing the whole
12661       directory every time you regenerate it.
12662     - Keep a big splay tree of (circid,orconn)->circuit mappings to make
12663       it much faster to look up a circuit for each relay cell.
12664     - Remove most calls to assert_all_pending_dns_resolves_ok(),
12665       since they're eating our cpu on exit nodes.
12666     - Stop wasting time doing a case insensitive comparison for every
12667       dns name every time we do any lookup. Canonicalize the names to
12668       lowercase when you first see them.
12670   o Hidden services:
12671     - Handle unavailable hidden services better. Handle slow or busy
12672       hidden services better.
12673     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
12674       circ as necessary, if there are any completed ones lying around
12675       when we try to launch one.
12676     - Make hidden services try to establish a rendezvous for 30 seconds
12677       after fetching the descriptor, rather than for n (where n=3)
12678       attempts to build a circuit.
12679     - Adjust maximum skew and age for rendezvous descriptors: let skew
12680       be 48 hours rather than 90 minutes.
12681     - Reject malformed .onion addresses rather then passing them on as
12682       normal web requests.
12684   o Controller:
12685     - More Tor controller support. See
12686       http://tor.eff.org/doc/control-spec.txt for all the new features,
12687       including signals to emulate unix signals from any platform;
12688       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
12689       closestream; closecircuit; etc.
12690     - Encode hashed controller passwords in hex instead of base64,
12691       to make it easier to write controllers.
12692     - Revise control spec and implementation to allow all log messages to
12693       be sent to controller with their severities intact (suggested by
12694       Matt Edman). Disable debug-level logs while delivering a debug-level
12695       log to the controller, to prevent loop. Update TorControl to handle
12696       new log event types.
12698   o New config options/defaults:
12699     - Begin scrubbing sensitive strings from logs by default. Turn off
12700       the config option SafeLogging if you need to do debugging.
12701     - New exit policy: accept most low-numbered ports, rather than
12702       rejecting most low-numbered ports.
12703     - Put a note in the torrc about abuse potential with the default
12704       exit policy.
12705     - Add support for CONNECTing through https proxies, with "HttpsProxy"
12706       config option.
12707     - Add HttpProxyAuthenticator and HttpsProxyAuthenticator support
12708       based on patch from Adam Langley (basic auth only).
12709     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
12710       the fast servers that have been joining lately. (Clients are now
12711       willing to load balance over up to 2 MB of advertised bandwidth
12712       capacity too.)
12713     - New config option MaxAdvertisedBandwidth which lets you advertise
12714       a low bandwidthrate (to not attract as many circuits) while still
12715       allowing a higher bandwidthrate in reality.
12716     - Require BandwidthRate to be at least 20kB/s for servers.
12717     - Add a NoPublish config option, so you can be a server (e.g. for
12718       testing running Tor servers in other Tor networks) without
12719       publishing your descriptor to the primary dirservers.
12720     - Add a new AddressMap config directive to rewrite incoming socks
12721       addresses. This lets you, for example, declare an implicit
12722       required exit node for certain sites.
12723     - Add a new TrackHostExits config directive to trigger addressmaps
12724       for certain incoming socks addresses -- for sites that break when
12725       your exit keeps changing (based on patch from Mike Perry).
12726     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
12727       which describes how often we retry making new circuits if current
12728       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
12729       how long we're willing to make use of an already-dirty circuit.
12730     - Change compiled-in SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to
12731       a config option "ShutdownWaitLength" (when using kill -INT on
12732       servers).
12733     - Fix an edge case in parsing config options: if they say "--"
12734       on the commandline, it's not a config option (thanks weasel).
12735     - New config option DirAllowPrivateAddresses for authdirservers.
12736       Now by default they refuse router descriptors that have non-IP or
12737       private-IP addresses.
12738     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
12739       smart" default value: low for servers and high for clients.
12740     - Some people were putting "Address  " in their torrc, and they had
12741       a buggy resolver that resolved " " to 0.0.0.0. Oops.
12742     - If DataDir is ~/.tor, and that expands to /.tor, then default to
12743       LOCALSTATEDIR/tor instead.
12744     - Implement --verify-config command-line option to check if your torrc
12745       is valid without actually launching Tor.
12747   o Logging improvements:
12748     - When dirservers refuse a server descriptor, we now log its
12749       contactinfo, platform, and the poster's IP address.
12750     - Only warn once per nickname from add_nickname_list_to_smartlist()
12751       per failure, so an entrynode or exitnode choice that's down won't
12752       yell so much.
12753     - When we're connecting to an OR and he's got a different nickname/key
12754       than we were expecting, only complain loudly if we're an OP or a
12755       dirserver. Complaining loudly to the OR admins just confuses them.
12756     - Whine at you if you're a server and you don't set your contactinfo.
12757     - Warn when exit policy implicitly allows local addresses.
12758     - Give a better warning when some other server advertises an
12759       ORPort that is actually an apache running ssl.
12760     - If we get an incredibly skewed timestamp from a dirserver mirror
12761       that isn't a verified OR, don't warn -- it's probably him that's
12762       wrong.
12763     - When a dirserver causes you to give a warn, mention which dirserver
12764       it was.
12765     - Initialize libevent later in the startup process, so the logs are
12766       already established by the time we start logging libevent warns.
12767     - Use correct errno on win32 if libevent fails.
12768     - Check and warn about known-bad/slow libevent versions.
12769     - Stop warning about sigpipes in the logs. We're going to
12770       pretend that getting these occassionally is normal and fine.
12772   o New contrib scripts:
12773     - New experimental script tor/contrib/exitlist: a simple python
12774       script to parse directories and find Tor nodes that exit to listed
12775       addresses/ports.
12776     - New experimental script tor/contrib/ExerciseServer.py (needs more
12777       work) that uses the controller interface to build circuits and
12778       fetch pages over them. This will help us bootstrap servers that
12779       have lots of capacity but haven't noticed it yet.
12780     - New experimental script tor/contrib/PathDemo.py (needs more work)
12781       that uses the controller interface to let you choose whole paths
12782       via addresses like
12783       "<hostname>.<path,separated by dots>.<length of path>.path"
12784     - New contributed script "privoxy-tor-toggle" to toggle whether
12785       Privoxy uses Tor. Seems to be configured for Debian by default.
12786     - Have torctl.in/tor.sh.in check for location of su binary (needed
12787       on FreeBSD)
12789   o Misc bugfixes:
12790     - chdir() to your datadirectory at the *end* of the daemonize process,
12791       not the beginning. This was a problem because the first time you
12792       run tor, if your datadir isn't there, and you have runasdaemon set
12793       to 1, it will try to chdir to it before it tries to create it. Oops.
12794     - Fix several double-mark-for-close bugs, e.g. where we were finding
12795       a conn for a cell even if that conn is already marked for close.
12796     - Stop most cases of hanging up on a socks connection without sending
12797       the socks reject.
12798     - Fix a bug in the RPM package: set home directory for _tor to
12799       something more reasonable when first installing.
12800     - Stop putting nodename in the Platform string in server descriptors.
12801       It doesn't actually help, and it is confusing/upsetting some people.
12802     - When using preferred entry or exit nodes, ignore whether the
12803       circuit wants uptime or capacity. They asked for the nodes, they
12804       get the nodes.
12805     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
12806       artificially capped at 500kB.
12807     - Cache local dns resolves correctly even when they're .exit
12808       addresses.
12809     - If we're hibernating and we get a SIGINT, exit immediately.
12810     - tor-resolve requests were ignoring .exit if there was a working circuit
12811       they could use instead.
12812     - Pay more attention to the ClientOnly config option.
12813     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in certain
12814       installer screens; and don't put stuff into StartupItems unless
12815       the user asks you to.
12817   o Misc features:
12818     - Rewrite address "serifos.exit" to "externalIP.serifos.exit"
12819       rather than just rejecting it.
12820     - If our clock jumps forward by 100 seconds or more, assume something
12821       has gone wrong with our network and abandon all not-yet-used circs.
12822     - When an application is using socks5, give him the whole variety of
12823       potential socks5 responses (connect refused, host unreachable, etc),
12824       rather than just "success" or "failure".
12825     - A more sane version numbering system. See
12826       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
12827     - Change version parsing logic: a version is "obsolete" if it is not
12828       recommended and (1) there is a newer recommended version in the
12829       same series, or (2) there are no recommended versions in the same
12830       series, but there are some recommended versions in a newer series.
12831       A version is "new" if it is newer than any recommended version in
12832       the same series.
12833     - Report HTTP reasons to client when getting a response from directory
12834       servers -- so you can actually know what went wrong.
12835     - Reject odd-looking addresses at the client (e.g. addresses that
12836       contain a colon), rather than having the server drop them because
12837       they're malformed.
12838     - Stop publishing socksport in the directory, since it's not
12839       actually meant to be public. For compatibility, publish a 0 there
12840       for now.
12841     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
12842       cookies to disk and doesn't log each web request to disk. (Thanks
12843       to Brett Carrington for pointing this out.)
12844     - Add OSX uninstall instructions. An actual uninstall script will
12845       come later.
12846     - Add "opt hibernating 1" to server descriptor to make it clearer
12847       whether the server is hibernating.
12850 Changes in version 0.0.9.10 - 2005-06-16
12851   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
12852     - Refuse relay cells that claim to have a length larger than the
12853       maximum allowed. This prevents a potential attack that could read
12854       arbitrary memory (e.g. keys) from an exit server's process
12855       (CVE-2005-2050).
12858 Changes in version 0.0.9.9 - 2005-04-23
12859   o Bugfixes on 0.0.9.x:
12860     - If unofficial Tor clients connect and send weird TLS certs, our
12861       Tor server triggers an assert. This release contains a minimal
12862       backport from the broader fix that we put into 0.1.0.4-rc.
12865 Changes in version 0.0.9.8 - 2005-04-07
12866   o Bugfixes on 0.0.9.x:
12867     - We have a bug that I haven't found yet. Sometimes, very rarely,
12868       cpuworkers get stuck in the 'busy' state, even though the cpuworker
12869       thinks of itself as idle. This meant that no new circuits ever got
12870       established. Here's a workaround to kill any cpuworker that's been
12871       busy for more than 100 seconds.
12874 Changes in version 0.0.9.7 - 2005-04-01
12875   o Bugfixes on 0.0.9.x:
12876     - Fix another race crash bug (thanks to Glenn Fink for reporting).
12877     - Compare identity to identity, not to nickname, when extending to
12878       a router not already in the directory. This was preventing us from
12879       extending to unknown routers. Oops.
12880     - Make sure to create OS X Tor user in <500 range, so we aren't
12881       creating actual system users.
12882     - Note where connection-that-hasn't-sent-end was marked, and fix
12883       a few really loud instances of this harmless bug (it's fixed more
12884       in 0.1.0.x).
12887 Changes in version 0.0.9.6 - 2005-03-24
12888   o Bugfixes on 0.0.9.x (crashes and asserts):
12889     - Add new end stream reasons to maintainance branch. Fix bug where
12890       reason (8) could trigger an assert.  Prevent bug from recurring.
12891     - Apparently win32 stat wants paths to not end with a slash.
12892     - Fix assert triggers in assert_cpath_layer_ok(), where we were
12893       blowing away the circuit that conn->cpath_layer points to, then
12894       checking to see if the circ is well-formed. Backport check to make
12895       sure we dont use the cpath on a closed connection.
12896     - Prevent circuit_resume_edge_reading_helper() from trying to package
12897       inbufs for marked-for-close streams.
12898     - Don't crash on hup if your options->address has become unresolvable.
12899     - Some systems (like OS X) sometimes accept() a connection and tell
12900       you the remote host is 0.0.0.0:0. If this happens, due to some
12901       other mis-features, we get confused; so refuse the conn for now.
12903   o Bugfixes on 0.0.9.x (other):
12904     - Fix harmless but scary "Unrecognized content encoding" warn message.
12905     - Add new stream error reason: TORPROTOCOL reason means "you are not
12906       speaking a version of Tor I understand; say bye-bye to your stream."
12907     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
12908       into the future, now that we are more tolerant of skew. This
12909       resolves a bug where a Tor server would refuse to cache a directory
12910       because all the directories it gets are too far in the future;
12911       yet the Tor server never logs any complaints about clock skew.
12912     - Mac packaging magic: make man pages useable, and do not overwrite
12913       existing torrc files.
12914     - Make OS X log happily to /var/log/tor/tor.log
12917 Changes in version 0.0.9.5 - 2005-02-22
12918   o Bugfixes on 0.0.9.x:
12919     - Fix an assert race at exit nodes when resolve requests fail.
12920     - Stop picking unverified dir mirrors--it only leads to misery.
12921     - Patch from Matt Edman to make NT services work better. Service
12922       support is still not compiled into the executable by default.
12923     - Patch from Dmitri Bely so the Tor service runs better under
12924       the win32 SYSTEM account.
12925     - Make tor-resolve actually work (?) on Win32.
12926     - Fix a sign bug when getrlimit claims to have 4+ billion
12927       file descriptors available.
12928     - Stop refusing to start when bandwidthburst == bandwidthrate.
12929     - When create cells have been on the onion queue more than five
12930       seconds, just send back a destroy and take them off the list.
12933 Changes in version 0.0.9.4 - 2005-02-03
12934   o Bugfixes on 0.0.9:
12935     - Fix an assert bug that took down most of our servers: when
12936       a server claims to have 1 GB of bandwidthburst, don't
12937       freak out.
12938     - Don't crash as badly if we have spawned the max allowed number
12939       of dnsworkers, or we're out of file descriptors.
12940     - Block more file-sharing ports in the default exit policy.
12941     - MaxConn is now automatically set to the hard limit of max
12942       file descriptors we're allowed (ulimit -n), minus a few for
12943       logs, etc.
12944     - Give a clearer message when servers need to raise their
12945       ulimit -n when they start running out of file descriptors.
12946     - SGI Compatibility patches from Jan Schaumann.
12947     - Tolerate a corrupt cached directory better.
12948     - When a dirserver hasn't approved your server, list which one.
12949     - Go into soft hibernation after 95% of the bandwidth is used,
12950       not 99%. This is especially important for daily hibernators who
12951       have a small accounting max. Hopefully it will result in fewer
12952       cut connections when the hard hibernation starts.
12953     - Load-balance better when using servers that claim more than
12954       800kB/s of capacity.
12955     - Make NT services work (experimental, only used if compiled in).
12958 Changes in version 0.0.9.3 - 2005-01-21
12959   o Bugfixes on 0.0.9:
12960     - Backport the cpu use fixes from main branch, so busy servers won't
12961       need as much processor time.
12962     - Work better when we go offline and then come back, or when we
12963       run Tor at boot before the network is up. We do this by
12964       optimistically trying to fetch a new directory whenever an
12965       application request comes in and we think we're offline -- the
12966       human is hopefully a good measure of when the network is back.
12967     - Backport some minimal hidserv bugfixes: keep rend circuits open as
12968       long as you keep using them; actually publish hidserv descriptors
12969       shortly after they change, rather than waiting 20-40 minutes.
12970     - Enable Mac startup script by default.
12971     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
12972     - When you update AllowUnverifiedNodes or FirewallPorts via the
12973       controller's setconf feature, we were always appending, never
12974       resetting.
12975     - When you update HiddenServiceDir via setconf, it was screwing up
12976       the order of reading the lines, making it fail.
12977     - Do not rewrite a cached directory back to the cache; otherwise we
12978       will think it is recent and not fetch a newer one on startup.
12979     - Workaround for webservers that lie about Content-Encoding: Tor
12980       now tries to autodetect compressed directories and compression
12981       itself. This lets us Proxypass dir fetches through apache.
12984 Changes in version 0.0.9.2 - 2005-01-04
12985   o Bugfixes on 0.0.9 (crashes and asserts):
12986     - Fix an assert on startup when the disk is full and you're logging
12987       to a file.
12988     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
12989       style address, then we'd crash.
12990     - Fix an assert trigger when the running-routers string we get from
12991       a dirserver is broken.
12992     - Make worker threads start and run on win32. Now win32 servers
12993       may work better.
12994     - Bandaid (not actually fix, but now it doesn't crash) an assert
12995       where the dns worker dies mysteriously and the main Tor process
12996       doesn't remember anything about the address it was resolving.
12998   o Bugfixes on 0.0.9 (Win32):
12999     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
13000       name out of the warning/assert messages.
13001     - Fix a superficial "unhandled error on read" bug on win32.
13002     - The win32 installer no longer requires a click-through for our
13003       license, since our Free Software license grants rights but does not
13004       take any away.
13005     - Win32: When connecting to a dirserver fails, try another one
13006       immediately. (This was already working for non-win32 Tors.)
13007     - Stop trying to parse $HOME on win32 when hunting for default
13008       DataDirectory.
13009     - Make tor-resolve.c work on win32 by calling network_init().
13011   o Bugfixes on 0.0.9 (other):
13012     - Make 0.0.9.x build on Solaris again.
13013     - Due to a fencepost error, we were blowing away the \n when reporting
13014       confvalue items in the controller. So asking for multiple config
13015       values at once couldn't work.
13016     - When listing circuits that are pending on an opening OR connection,
13017       if we're an OR we were listing circuits that *end* at us as
13018       being pending on every listener, dns/cpu worker, etc. Stop that.
13019     - Dirservers were failing to create 'running-routers' or 'directory'
13020       strings if we had more than some threshold of routers. Fix them so
13021       they can handle any number of routers.
13022     - Fix a superficial "Duplicate mark for close" bug.
13023     - Stop checking for clock skew for OR connections, even for servers.
13024     - Fix a fencepost error that was chopping off the last letter of any
13025       nickname that is the maximum allowed nickname length.
13026     - Update URLs in log messages so they point to the new website.
13027     - Fix a potential problem in mangling server private keys while
13028       writing to disk (not triggered yet, as far as we know).
13029     - Include the licenses for other free software we include in Tor,
13030       now that we're shipping binary distributions more regularly.
13033 Changes in version 0.0.9.1 - 2004-12-15
13034   o Bugfixes on 0.0.9:
13035     - Make hibernation actually work.
13036     - Make HashedControlPassword config option work.
13037     - When we're reporting event circuit status to a controller,
13038       don't use the stream status code.
13041 Changes in version 0.0.9 - 2004-12-12
13042   o Bugfixes on 0.0.8.1 (Crashes and asserts):
13043     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
13044       write() call will fail and we handle it there.
13045     - When we run out of disk space, or other log writing error, don't
13046       crash. Just stop logging to that log and continue.
13047     - Fix isspace() and friends so they still make Solaris happy
13048       but also so they don't trigger asserts on win32.
13049     - Fix assert failure on malformed socks4a requests.
13050     - Fix an assert bug where a hidden service provider would fail if
13051       the first hop of his rendezvous circuit was down.
13052     - Better handling of size_t vs int, so we're more robust on 64
13053       bit platforms.
13055   o Bugfixes on 0.0.8.1 (Win32):
13056     - Make windows sockets actually non-blocking (oops), and handle
13057       win32 socket errors better.
13058     - Fix parse_iso_time on platforms without strptime (eg win32).
13059     - win32: when being multithreaded, leave parent fdarray open.
13060     - Better handling of winsock includes on non-MSV win32 compilers.
13061     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
13062       happier.
13063     - Make unit tests work on win32.
13065   o Bugfixes on 0.0.8.1 (Path selection and streams):
13066     - Calculate timeout for waiting for a connected cell from the time
13067       we sent the begin cell, not from the time the stream started. If
13068       it took a long time to establish the circuit, we would time out
13069       right after sending the begin cell.
13070     - Fix router_compare_addr_to_addr_policy: it was not treating a port
13071       of * as always matching, so we were picking reject *:* nodes as
13072       exit nodes too. Oops.
13073     - When read() failed on a stream, we would close it without sending
13074       back an end. So 'connection refused' would simply be ignored and
13075       the user would get no response.
13076     - Stop a sigpipe: when an 'end' cell races with eof from the app,
13077       we shouldn't hold-open-until-flush if the eof arrived first.
13078     - Let resolve conns retry/expire also, rather than sticking around
13079       forever.
13080     - Fix more dns related bugs: send back resolve_failed and end cells
13081       more reliably when the resolve fails, rather than closing the
13082       circuit and then trying to send the cell. Also attach dummy resolve
13083       connections to a circuit *before* calling dns_resolve(), to fix
13084       a bug where cached answers would never be sent in RESOLVED cells.
13086   o Bugfixes on 0.0.8.1 (Circuits):
13087     - Finally fix a bug that's been plaguing us for a year:
13088       With high load, circuit package window was reaching 0. Whenever
13089       we got a circuit-level sendme, we were reading a lot on each
13090       socket, but only writing out a bit. So we would eventually reach
13091       eof. This would be noticed and acted on even when there were still
13092       bytes sitting in the inbuf.
13093     - Use identity comparison, not nickname comparison, to choose which
13094       half of circuit-ID-space each side gets to use. This is needed
13095       because sometimes we think of a router as a nickname, and sometimes
13096       as a hex ID, and we can't predict what the other side will do.
13098   o Bugfixes on 0.0.8.1 (Other):
13099     - Fix a whole slew of memory leaks.
13100     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
13101     - If we are using select, make sure we stay within FD_SETSIZE.
13102     - When poll() is interrupted, we shouldn't believe the revents values.
13103     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
13104       and smartlist_len, which are two major profiling offenders.
13105     - If do_hup fails, actually notice.
13106     - Flush the log file descriptor after we print "Tor opening log file",
13107       so we don't see those messages days later.
13108     - Hidden service operators now correctly handle version 1 style
13109       INTRODUCE1 cells (nobody generates them still, so not a critical
13110       bug).
13111     - Handle more errnos from accept() without closing the listener.
13112       Some OpenBSD machines were closing their listeners because
13113       they ran out of file descriptors.
13114     - Some people had wrapped their tor client/server in a script
13115       that would restart it whenever it died. This did not play well
13116       with our "shut down if your version is obsolete" code. Now people
13117       don't fetch a new directory if their local cached version is
13118       recent enough.
13119     - Make our autogen.sh work on ksh as well as bash.
13120     - Better torrc example lines for dirbindaddress and orbindaddress.
13121     - Improved bounds checking on parsed ints (e.g. config options and
13122       the ones we find in directories.)
13123     - Stop using separate defaults for no-config-file and
13124       empty-config-file. Now you have to explicitly turn off SocksPort,
13125       if you don't want it open.
13126     - We were starting to daemonize before we opened our logs, so if
13127       there were any problems opening logs, we would complain to stderr,
13128       which wouldn't work, and then mysteriously exit.
13129     - If a verified OR connects to us before he's uploaded his descriptor,
13130       or we verify him and hup but he still has the original TLS
13131       connection, then conn->nickname is still set like he's unverified.
13133   o Code security improvements, inspired by Ilja:
13134     - tor_snprintf wrapper over snprintf with consistent (though not C99)
13135       overflow behavior.
13136     - Replace sprintf with tor_snprintf. (I think they were all safe, but
13137       hey.)
13138     - Replace strcpy/strncpy with strlcpy in more places.
13139     - Avoid strcat; use tor_snprintf or strlcat instead.
13141   o Features (circuits and streams):
13142     - New circuit building strategy: keep a list of ports that we've
13143       used in the past 6 hours, and always try to have 2 circuits open
13144       or on the way that will handle each such port. Seed us with port
13145       80 so web users won't complain that Tor is "slow to start up".
13146     - Make kill -USR1 dump more useful stats about circuits.
13147     - When warning about retrying or giving up, print the address, so
13148       the user knows which one it's talking about.
13149     - If you haven't used a clean circuit in an hour, throw it away,
13150       just to be on the safe side. (This means after 6 hours a totally
13151       unused Tor client will have no circuits open.)
13152     - Support "foo.nickname.exit" addresses, to let Alice request the
13153       address "foo" as viewed by exit node "nickname". Based on a patch
13154       from Geoff Goodell.
13155     - If your requested entry or exit node has advertised bandwidth 0,
13156       pick it anyway.
13157     - Be more greedy about filling up relay cells -- we try reading again
13158       once we've processed the stuff we read, in case enough has arrived
13159       to fill the last cell completely.
13160     - Refuse application socks connections to port 0.
13161     - Use only 0.0.9pre1 and later servers for resolve cells.
13163   o Features (bandwidth):
13164     - Hibernation: New config option "AccountingMax" lets you
13165       set how many bytes per month (in each direction) you want to
13166       allow your server to consume. Rather than spreading those
13167       bytes out evenly over the month, we instead hibernate for some
13168       of the month and pop up at a deterministic time, work until
13169       the bytes are consumed, then hibernate again. Config option
13170       "MonthlyAccountingStart" lets you specify which day of the month
13171       your billing cycle starts on.
13172     - Implement weekly/monthly/daily accounting: now you specify your
13173       hibernation properties by
13174       AccountingMax N bytes|KB|MB|GB|TB
13175       AccountingStart day|week|month [day] HH:MM
13176         Defaults to "month 1 0:00".
13177     - Let bandwidth and interval config options be specified as 5 bytes,
13178       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
13180   o Features (directories):
13181     - New "router-status" line in directory, to better bind each verified
13182       nickname to its identity key.
13183     - Clients can ask dirservers for /dir.z to get a compressed version
13184       of the directory. Only works for servers running 0.0.9, of course.
13185     - Make clients cache directories and use them to seed their router
13186       lists at startup. This means clients have a datadir again.
13187     - Respond to content-encoding headers by trying to uncompress as
13188       appropriate.
13189     - Clients and servers now fetch running-routers; cache
13190       running-routers; compress running-routers; serve compressed
13191       running-routers.z
13192     - Make moria2 advertise a dirport of 80, so people behind firewalls
13193       will be able to get a directory.
13194     - Http proxy support
13195       - Dirservers translate requests for http://%s:%d/x to /x
13196       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
13197         be routed through this host.
13198       - Clients ask for /tor/x rather than /x for new enough dirservers.
13199         This way we can one day coexist peacefully with apache.
13200       - Clients specify a "Host: %s%d" http header, to be compatible
13201         with more proxies, and so running squid on an exit node can work.
13202     - Protect dirservers from overzealous descriptor uploading -- wait
13203       10 seconds after directory gets dirty, before regenerating.
13205   o Features (packages and install):
13206     - Add NSI installer contributed by J Doe.
13207     - Apply NT service patch from Osamu Fujino. Still needs more work.
13208     - Commit VC6 and VC7 workspace/project files.
13209     - Commit a tor.spec for making RPM files, with help from jbash.
13210     - Add contrib/torctl.in contributed by Glenn Fink.
13211     - Make expand_filename handle ~ and ~username.
13212     - Use autoconf to enable largefile support where necessary. Use
13213       ftello where available, since ftell can fail at 2GB.
13214     - Ship src/win32/ in the tarball, so people can use it to build.
13215     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
13216       is broken.
13218   o Features (ui controller):
13219     - Control interface: a separate program can now talk to your
13220       client/server over a socket, and get/set config options, receive
13221       notifications of circuits and streams starting/finishing/dying,
13222       bandwidth used, etc. The next step is to get some GUIs working.
13223       Let us know if you want to help out. See doc/control-spec.txt .
13224     - Ship a contrib/tor-control.py as an example script to interact
13225       with the control port.
13226     - "tor --hash-password zzyxz" will output a salted password for
13227       use in authenticating to the control interface.
13228     - Implement the control-spec's SAVECONF command, to write your
13229       configuration to torrc.
13230     - Get cookie authentication for the controller closer to working.
13231     - When set_conf changes our server descriptor, upload a new copy.
13232       But don't upload it too often if there are frequent changes.
13234   o Features (config and command-line):
13235     - Deprecate unofficial config option abbreviations, and abbreviations
13236       not on the command line.
13237     - Configuration infrastructure support for warning on obsolete
13238       options.
13239     - Give a slightly more useful output for "tor -h".
13240     - Break DirFetchPostPeriod into:
13241       - DirFetchPeriod for fetching full directory,
13242       - StatusFetchPeriod for fetching running-routers,
13243       - DirPostPeriod for posting server descriptor,
13244       - RendPostPeriod for posting hidden service descriptors.
13245     - New log format in config:
13246       "Log minsev[-maxsev] stdout|stderr|syslog" or
13247       "Log minsev[-maxsev] file /var/foo"
13248     - DirPolicy config option, to let people reject incoming addresses
13249       from their dirserver.
13250     - "tor --list-fingerprint" will list your identity key fingerprint
13251       and then exit.
13252     - Make tor --version --version dump the cvs Id of every file.
13253     - New 'MyFamily nick1,...' config option for a server to
13254       specify other servers that shouldn't be used in the same circuit
13255       with it. Only believed if nick1 also specifies us.
13256     - New 'NodeFamily nick1,nick2,...' config option for a client to
13257       specify nodes that it doesn't want to use in the same circuit.
13258     - New 'Redirectexit pattern address:port' config option for a
13259       server to redirect exit connections, e.g. to a local squid.
13260     - Add "pass" target for RedirectExit, to make it easier to break
13261       out of a sequence of RedirectExit rules.
13262     - Make the dirservers file obsolete.
13263       - Include a dir-signing-key token in directories to tell the
13264         parsing entity which key is being used to sign.
13265       - Remove the built-in bulky default dirservers string.
13266       - New config option "Dirserver %s:%d [fingerprint]", which can be
13267         repeated as many times as needed. If no dirservers specified,
13268         default to moria1,moria2,tor26.
13269       - Make 'Routerfile' config option obsolete.
13270     - Discourage people from setting their dirfetchpostperiod more often
13271       than once per minute.
13273   o Features (other):
13274     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
13275       get back to normal.)
13276     - Accept *:706 (silc) in default exit policy.
13277     - Implement new versioning format for post 0.1.
13278     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
13279       log more informatively.
13280     - Check clock skew for verified servers, but allow unverified
13281       servers and clients to have any clock skew.
13282     - Make sure the hidden service descriptors are at a random offset
13283       from each other, to hinder linkability.
13284     - Clients now generate a TLS cert too, in preparation for having
13285       them act more like real nodes.
13286     - Add a pure-C tor-resolve implementation.
13287     - Use getrlimit and friends to ensure we can reach MaxConn (currently
13288       1024) file descriptors.
13289     - Raise the max dns workers from 50 to 100.
13292 Changes in version 0.0.8.1 - 2004-10-13
13293   o Bugfixes:
13294     - Fix a seg fault that can be triggered remotely for Tor
13295       clients/servers with an open dirport.
13296     - Fix a rare assert trigger, where routerinfos for entries in
13297       our cpath would expire while we're building the path.
13298     - Fix a bug in OutboundBindAddress so it (hopefully) works.
13299     - Fix a rare seg fault for people running hidden services on
13300       intermittent connections.
13301     - Fix a bug in parsing opt keywords with objects.
13302     - Fix a stale pointer assert bug when a stream detaches and
13303       reattaches.
13304     - Fix a string format vulnerability (probably not exploitable)
13305       in reporting stats locally.
13306     - Fix an assert trigger: sometimes launching circuits can fail
13307       immediately, e.g. because too many circuits have failed recently.
13308     - Fix a compile warning on 64 bit platforms.
13311 Changes in version 0.0.8 - 2004-08-25
13312   o Bugfixes:
13313     - Made our unit tests compile again on OpenBSD 3.5, and tor
13314       itself compile again on OpenBSD on a sparc64.
13315     - We were neglecting milliseconds when logging on win32, so
13316       everything appeared to happen at the beginning of each second.
13317     - Check directory signature _before_ you decide whether you're
13318       you're running an obsolete version and should exit.
13319     - Check directory signature _before_ you parse the running-routers
13320       list to decide who's running.
13321     - Check return value of fclose while writing to disk, so we don't
13322       end up with broken files when servers run out of disk space.
13323     - Port it to SunOS 5.9 / Athena
13324     - Fix two bugs in saving onion keys to disk when rotating, so
13325       hopefully we'll get fewer people using old onion keys.
13326     - Remove our mostly unused -- and broken -- hex_encode()
13327       function. Use base16_encode() instead. (Thanks to Timo Lindfors
13328       for pointing out this bug.)
13329     - Only pick and establish intro points after we've gotten a
13330       directory.
13331     - Fix assert triggers: if the other side returns an address 0.0.0.0,
13332       don't put it into the client dns cache.
13333     - If a begin failed due to exit policy, but we believe the IP
13334       address should have been allowed, switch that router to exitpolicy
13335       reject *:* until we get our next directory.
13337   o Protocol changes:
13338     - 'Extend' relay cell payloads now include the digest of the
13339       intended next hop's identity key. Now we can verify that we're
13340       extending to the right router, and also extend to routers we
13341       hadn't heard of before.
13343   o Features:
13344     - Tor nodes can now act as relays (with an advertised ORPort)
13345       without being manually verified by the dirserver operators.
13346       - Uploaded descriptors of unverified routers are now accepted
13347         by the dirservers, and included in the directory.
13348       - Verified routers are listed by nickname in the running-routers
13349         list; unverified routers are listed as "$<fingerprint>".
13350       - We now use hash-of-identity-key in most places rather than
13351         nickname or addr:port, for improved security/flexibility.
13352       - AllowUnverifiedNodes config option to let circuits choose no-name
13353         routers in entry,middle,exit,introduction,rendezvous positions.
13354         Allow middle and rendezvous positions by default.
13355       - When picking unverified routers, skip those with low uptime and/or
13356         low bandwidth, depending on what properties you care about.
13357       - ClientOnly option for nodes that never want to become servers.
13358     - Directory caching.
13359       - "AuthoritativeDir 1" option for the official dirservers.
13360       - Now other nodes (clients and servers) will cache the latest
13361         directory they've pulled down.
13362       - They can enable their DirPort to serve it to others.
13363       - Clients will pull down a directory from any node with an open
13364         DirPort, and check the signature/timestamp correctly.
13365       - Authoritative dirservers now fetch directories from other
13366         authdirservers, to stay better synced.
13367       - Running-routers list tells who's down also, along with noting
13368         if they're verified (listed by nickname) or unverified (listed
13369         by hash-of-key).
13370       - Allow dirservers to serve running-router list separately.
13371         This isn't used yet.
13372       - You can now fetch $DIRURL/running-routers to get just the
13373         running-routers line, not the whole descriptor list. (But
13374         clients don't use this yet.)
13375     - Clients choose nodes proportional to advertised bandwidth.
13376     - Clients avoid using nodes with low uptime as introduction points.
13377     - Handle servers with dynamic IP addresses: don't just replace
13378       options->Address with the resolved one at startup, and
13379       detect our address right before we make a routerinfo each time.
13380     - 'FascistFirewall' option to pick dirservers and ORs on specific
13381       ports; plus 'FirewallPorts' config option to tell FascistFirewall
13382       which ports are open. (Defaults to 80,443)
13383     - Try other dirservers immediately if the one you try is down. This
13384       should tolerate down dirservers better now.
13385     - ORs connect-on-demand to other ORs
13386       - If you get an extend cell to an OR you're not connected to,
13387         connect, handshake, and forward the create cell.
13388       - The authoritative dirservers stay connected to everybody,
13389         and everybody stays connected to 0.0.7 servers, but otherwise
13390         clients/servers expire unused connections after 5 minutes.
13391     - When servers get a sigint, they delay 30 seconds (refusing new
13392       connections) then exit. A second sigint causes immediate exit.
13393     - File and name management:
13394       - Look for .torrc if no CONFDIR "torrc" is found.
13395       - If no datadir is defined, then choose, make, and secure ~/.tor
13396         as datadir.
13397       - If torrc not found, exitpolicy reject *:*.
13398       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
13399       - If no nickname is defined, derive default from hostname.
13400       - Rename secret key files, e.g. identity.key -> secret_id_key,
13401         to discourage people from mailing their identity key to tor-ops.
13402     - Refuse to build a circuit before the directory has arrived --
13403       it won't work anyway, since you won't know the right onion keys
13404       to use.
13405     - Parse tor version numbers so we can do an is-newer-than check
13406       rather than an is-in-the-list check.
13407     - New socks command 'resolve', to let us shim gethostbyname()
13408       locally.
13409       - A 'tor_resolve' script to access the socks resolve functionality.
13410       - A new socks-extensions.txt doc file to describe our
13411         interpretation and extensions to the socks protocols.
13412     - Add a ContactInfo option, which gets published in descriptor.
13413     - Write tor version at the top of each log file
13414     - New docs in the tarball:
13415       - tor-doc.html.
13416       - Document that you should proxy your SSL traffic too.
13417     - Log a warning if the user uses an unsafe socks variant, so people
13418       are more likely to learn about privoxy or socat.
13419     - Log a warning if you're running an unverified server, to let you
13420       know you might want to get it verified.
13421     - Change the default exit policy to reject the default edonkey,
13422       kazaa, gnutella ports.
13423     - Add replace_file() to util.[ch] to handle win32's rename().
13424     - Publish OR uptime in descriptor (and thus in directory) too.
13425     - Remember used bandwidth (both in and out), and publish 15-minute
13426       snapshots for the past day into our descriptor.
13427     - Be more aggressive about trying to make circuits when the network
13428       has changed (e.g. when you unsuspend your laptop).
13429     - Check for time skew on http headers; report date in response to
13430       "GET /".
13431     - If the entrynode config line has only one node, don't pick it as
13432       an exitnode.
13433     - Add strict{entry|exit}nodes config options. If set to 1, then
13434       we refuse to build circuits that don't include the specified entry
13435       or exit nodes.
13436     - OutboundBindAddress config option, to bind to a specific
13437       IP address for outgoing connect()s.
13438     - End truncated log entries (e.g. directories) with "[truncated]".
13441 Changes in version 0.0.7.3 - 2004-08-12
13442   o Stop dnsworkers from triggering an assert failure when you
13443     ask them to resolve the host "".
13446 Changes in version 0.0.7.2 - 2004-07-07
13447   o A better fix for the 0.0.0.0 problem, that will hopefully
13448     eliminate the remaining related assertion failures.
13451 Changes in version 0.0.7.1 - 2004-07-04
13452   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
13453     since internally we use 0.0.0.0 to signify "not yet resolved".
13456 Changes in version 0.0.7 - 2004-06-07
13457   o Fixes for crashes and other obnoxious bugs:
13458     - Fix an epipe bug: sometimes when directory connections failed
13459       to connect, we would give them a chance to flush before closing
13460       them.
13461     - When we detached from a circuit because of resolvefailed, we
13462       would immediately try the same circuit twice more, and then
13463       give up on the resolve thinking we'd tried three different
13464       exit nodes.
13465     - Limit the number of intro circuits we'll attempt to build for a
13466       hidden service per 15-minute period.
13467     - Check recommended-software string *early*, before actually parsing
13468       the directory. Thus we can detect an obsolete version and exit,
13469       even if the new directory format doesn't parse.
13470   o Fixes for security bugs:
13471     - Remember which nodes are dirservers when you startup, and if a
13472       random OR enables his dirport, don't automatically assume he's
13473       a trusted dirserver.
13474   o Other bugfixes:
13475     - Directory connections were asking the wrong poll socket to
13476       start writing, and not asking themselves to start writing.
13477     - When we detached from a circuit because we sent a begin but
13478       didn't get a connected, we would use it again the first time;
13479       but after that we would correctly switch to a different one.
13480     - Stop warning when the first onion decrypt attempt fails; they
13481       will sometimes legitimately fail now that we rotate keys.
13482     - Override unaligned-access-ok check when $host_cpu is ia64 or
13483       arm. Apparently they allow it but the kernel whines.
13484     - Dirservers try to reconnect periodically too, in case connections
13485       have failed.
13486     - Fix some memory leaks in directory servers.
13487     - Allow backslash in Win32 filenames.
13488     - Made Tor build complain-free on FreeBSD, hopefully without
13489       breaking other BSD builds. We'll see.
13490     - Check directory signatures based on name of signer, not on whom
13491       we got the directory from. This will let us cache directories more
13492       easily.
13493     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
13494       settings too.
13495   o Features:
13496     - Doxygen markup on all functions and global variables.
13497     - Make directory functions update routerlist, not replace it. So
13498       now directory disagreements are not so critical a problem.
13499     - Remove the upper limit on number of descriptors in a dirserver's
13500       directory (not that we were anywhere close).
13501     - Allow multiple logfiles at different severity ranges.
13502     - Allow *BindAddress to specify ":port" rather than setting *Port
13503       separately. Allow multiple instances of each BindAddress config
13504       option, so you can bind to multiple interfaces if you want.
13505     - Allow multiple exit policy lines, which are processed in order.
13506       Now we don't need that huge line with all the commas in it.
13507     - Enable accept/reject policies on SOCKS connections, so you can bind
13508       to 0.0.0.0 but still control who can use your OP.
13509     - Updated the man page to reflect these features.
13512 Changes in version 0.0.6.2 - 2004-05-16
13513   o Our integrity-checking digest was checking only the most recent cell,
13514     not the previous cells like we'd thought.
13515     Thanks to Stefan Mark for finding the flaw!
13518 Changes in version 0.0.6.1 - 2004-05-06
13519   o Fix two bugs in our AES counter-mode implementation (this affected
13520     onion-level stream encryption, but not TLS-level). It turns
13521     out we were doing something much more akin to a 16-character
13522     polyalphabetic cipher. Oops.
13523     Thanks to Stefan Mark for finding the flaw!
13524   o Retire moria3 as a directory server, and add tor26 as a directory
13525     server.
13528 Changes in version 0.0.6 - 2004-05-02
13529   o Features:
13530     - Hidden services and rendezvous points are implemented. Go to
13531       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
13532       hidden services. (This only works via a socks4a proxy such as
13533       Privoxy, and currently it's quite slow.)
13534     - We now rotate link (tls context) keys and onion keys.
13535     - CREATE cells now include oaep padding, so you can tell
13536       if you decrypted them correctly.
13537     - Retry stream correctly when we fail to connect because of
13538       exit-policy-reject (should try another) or can't-resolve-address.
13539     - When we hup a dirserver and we've *removed* a server from the
13540       approved-routers list, now we remove that server from the
13541       in-memory directories too.
13542     - Add bandwidthburst to server descriptor.
13543     - Directories now say which dirserver signed them.
13544     - Use a tor_assert macro that logs failed assertions too.
13545     - Since we don't support truncateds much, don't bother sending them;
13546       just close the circ.
13547     - Fetch randomness from /dev/urandom better (not via fopen/fread)
13548     - Better debugging for tls errors
13549     - Set Content-Type on the directory and hidserv descriptor.
13550     - Remove IVs from cipher code, since AES-ctr has none.
13551   o Bugfixes:
13552     - Fix an assert trigger for exit nodes that's been plaguing us since
13553       the days of 0.0.2prexx (thanks weasel!)
13554     - Fix a bug where we were closing tls connections intermittently.
13555       It turns out openssl keeps its errors around -- so if an error
13556       happens, and you don't ask about it, and then another openssl
13557       operation happens and succeeds, and you ask if there was an error,
13558       it tells you about the first error.
13559     - Fix a bug that's been lurking since 27 may 03 (!)
13560       When passing back a destroy cell, we would use the wrong circ id.
13561     - Don't crash if a conn that sent a begin has suddenly lost its circuit.
13562     - Some versions of openssl have an SSL_pending function that erroneously
13563       returns bytes when there is a non-application record pending.
13564     - Win32 fixes. Tor now compiles on win32 with no warnings/errors.
13565       o We were using an array of length zero in a few places.
13566       o Win32's gethostbyname can't resolve an IP to an IP.
13567       o Win32's close can't close a socket.
13568       o Handle windows socket errors correctly.
13569   o Portability:
13570     - check for <sys/limits.h> so we build on FreeBSD again, and
13571       <machine/limits.h> for NetBSD.
13574 Changes in version 0.0.5 - 2004-03-30
13575   o Install torrc as torrc.sample -- we no longer clobber your
13576     torrc. (Woo!)
13577   o Fix mangled-state bug in directory fetching (was causing sigpipes).
13578   o Only build circuits after we've fetched the directory: clients were
13579     using only the directory servers before they'd fetched a directory.
13580     This also means longer startup time; so it goes.
13581   o Fix an assert trigger where an OP would fail to handshake, and we'd
13582     expect it to have a nickname.
13583   o Work around a tsocks bug: do a socks reject when AP connection dies
13584     early, else tsocks goes into an infinite loop.
13585   o Hold socks connection open until reply is flushed (if possible)
13586   o Make exit nodes resolve IPs to IPs immediately, rather than asking
13587     the dns farm to do it.
13588   o Fix c99 aliasing warnings in rephist.c
13589   o Don't include server descriptors that are older than 24 hours in the
13590     directory.
13591   o Give socks 'reject' replies their whole 15s to attempt to flush,
13592     rather than seeing the 60s timeout and assuming the flush had failed.
13593   o Clean automake droppings from the cvs repository
13594   o Add in a 'notice' log level for things the operator should hear
13595     but that aren't warnings
13598 Changes in version 0.0.4 - 2004-03-26
13599   o When connecting to a dirserver or OR and the network is down,
13600     we would crash.
13603 Changes in version 0.0.3 - 2004-03-26
13604   o Warn and fail if server chose a nickname with illegal characters
13605   o Port to Solaris and Sparc:
13606     - include missing header fcntl.h
13607     - have autoconf find -lsocket -lnsl automatically
13608     - deal with hardware word alignment
13609     - make uname() work (solaris has a different return convention)
13610     - switch from using signal() to sigaction()
13611   o Preliminary work on reputation system:
13612     - Keep statistics on success/fail of connect attempts; they're published
13613       by kill -USR1 currently.
13614     - Add a RunTesting option to try to learn link state by creating test
13615       circuits, even when SocksPort is off.
13616     - Remove unused open circuits when there are too many.
13619 Changes in version 0.0.2 - 2004-03-19
13620     - Include strlcpy and strlcat for safer string ops
13621     - define INADDR_NONE so we compile (but still not run) on solaris
13624 Changes in version 0.0.2pre27 - 2004-03-14
13625   o Bugfixes:
13626     - Allow internal tor networks (we were rejecting internal IPs,
13627       now we allow them if they're set explicitly).
13628     - And fix a few endian issues.
13631 Changes in version 0.0.2pre26 - 2004-03-14
13632   o New features:
13633     - If a stream times out after 15s without a connected cell, don't
13634       try that circuit again: try a new one.
13635     - Retry streams at most 4 times. Then give up.
13636     - When a dirserver gets a descriptor from an unknown router, it
13637       logs its fingerprint (so the dirserver operator can choose to
13638       accept it even without mail from the server operator).
13639     - Inform unapproved servers when we reject their descriptors.
13640     - Make tor build on Windows again. It works as a client, who knows
13641       about as a server.
13642     - Clearer instructions in the torrc for how to set up a server.
13643     - Be more efficient about reading fd's when our global token bucket
13644       (used for rate limiting) becomes empty.
13645   o Bugfixes:
13646     - Stop asserting that computers always go forward in time. It's
13647       simply not true.
13648     - When we sent a cell (e.g. destroy) and then marked an OR connection
13649       expired, we might close it before finishing a flush if the other
13650       side isn't reading right then.
13651     - Don't allow dirservers to start if they haven't defined
13652       RecommendedVersions
13653     - We were caching transient dns failures. Oops.
13654     - Prevent servers from publishing an internal IP as their address.
13655     - Address a strcat vulnerability in circuit.c
13658 Changes in version 0.0.2pre25 - 2004-03-04
13659   o New features:
13660     - Put the OR's IP in its router descriptor, not its fqdn. That way
13661       we'll stop being stalled by gethostbyname for nodes with flaky dns,
13662       e.g. poblano.
13663   o Bugfixes:
13664     - If the user typed in an address that didn't resolve, the server
13665       crashed.
13668 Changes in version 0.0.2pre24 - 2004-03-03
13669   o Bugfixes:
13670     - Fix an assertion failure in dns.c, where we were trying to dequeue
13671       a pending dns resolve even if it wasn't pending
13672     - Fix a spurious socks5 warning about still trying to write after the
13673       connection is finished.
13674     - Hold certain marked_for_close connections open until they're finished
13675       flushing, rather than losing bytes by closing them too early.
13676     - Correctly report the reason for ending a stream
13677     - Remove some duplicate calls to connection_mark_for_close
13678     - Put switch_id and start_daemon earlier in the boot sequence, so it
13679       will actually try to chdir() to options.DataDirectory
13680     - Make 'make test' exit(1) if a test fails; fix some unit tests
13681     - Make tor fail when you use a config option it doesn't know about,
13682       rather than warn and continue.
13683     - Make --version work
13684     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
13687 Changes in version 0.0.2pre23 - 2004-02-29
13688   o New features:
13689     - Print a statement when the first circ is finished, so the user
13690       knows it's working.
13691     - If a relay cell is unrecognized at the end of the circuit,
13692       send back a destroy. (So attacks to mutate cells are more
13693       clearly thwarted.)
13694     - New config option 'excludenodes' to avoid certain nodes for circuits.
13695     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
13696       so you can collect coredumps there.
13697  o Bugfixes:
13698     - Fix a bug in tls flushing where sometimes data got wedged and
13699       didn't flush until more data got sent. Hopefully this bug was
13700       a big factor in the random delays we were seeing.
13701     - Make 'connected' cells include the resolved IP, so the client
13702       dns cache actually gets populated.
13703     - Disallow changing from ORPort=0 to ORPort>0 on hup.
13704     - When we time-out on a stream and detach from the circuit, send an
13705       end cell down it first.
13706     - Only warn about an unknown router (in exitnodes, entrynodes,
13707       excludenodes) after we've fetched a directory.
13710 Changes in version 0.0.2pre22 - 2004-02-26
13711   o New features:
13712     - Servers publish less revealing uname information in descriptors.
13713     - More memory tracking and assertions, to crash more usefully when
13714       errors happen.
13715     - If the default torrc isn't there, just use some default defaults.
13716       Plus provide an internal dirservers file if they don't have one.
13717     - When the user tries to use Tor as an http proxy, give them an http
13718       501 failure explaining that we're a socks proxy.
13719     - Dump a new router.desc on hup, to help confused people who change
13720       their exit policies and then wonder why router.desc doesn't reflect
13721       it.
13722     - Clean up the generic tor.sh init script that we ship with.
13723   o Bugfixes:
13724     - If the exit stream is pending on the resolve, and a destroy arrives,
13725       then the stream wasn't getting removed from the pending list. I
13726       think this was the one causing recent server crashes.
13727     - Use a more robust poll on OSX 10.3, since their poll is flaky.
13728     - When it couldn't resolve any dirservers, it was useless from then on.
13729       Now it reloads the RouterFile (or default dirservers) if it has no
13730       dirservers.
13731     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
13732       many users don't even *have* a /usr/local/sbin/.
13735 Changes in version 0.0.2pre21 - 2004-02-18
13736   o New features:
13737     - There's a ChangeLog file that actually reflects the changelog.
13738     - There's a 'torify' wrapper script, with an accompanying
13739       tor-tsocks.conf, that simplifies the process of using tsocks for
13740       tor. It even has a man page.
13741     - The tor binary gets installed to sbin rather than bin now.
13742     - Retry streams where the connected cell hasn't arrived in 15 seconds
13743     - Clean up exit policy handling -- get the default out of the torrc,
13744       so we can update it without forcing each server operator to fix
13745       his/her torrc.
13746     - Allow imaps and pop3s in default exit policy
13747   o Bugfixes:
13748     - Prevent picking middleman nodes as the last node in the circuit
13751 Changes in version 0.0.2pre20 - 2004-01-30
13752   o New features:
13753     - We now have a deb package, and it's in debian unstable. Go to
13754       it, apt-getters. :)
13755     - I've split the TotalBandwidth option into BandwidthRate (how many
13756       bytes per second you want to allow, long-term) and
13757       BandwidthBurst (how many bytes you will allow at once before the cap
13758       kicks in).  This better token bucket approach lets you, say, set
13759       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
13760       performance while not exceeding your monthly bandwidth quota.
13761     - Push out a tls record's worth of data once you've got it, rather
13762       than waiting until you've read everything waiting to be read. This
13763       may improve performance by pipelining better. We'll see.
13764     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
13765       from failed circuits (if they haven't been connected yet) and attach
13766       to new ones.
13767     - Expire old streams that haven't managed to connect. Some day we'll
13768       have them reattach to new circuits instead.
13770   o Bugfixes:
13771     - Fix several memory leaks that were causing servers to become bloated
13772       after a while.
13773     - Fix a few very rare assert triggers. A few more remain.
13774     - Setuid to User _before_ complaining about running as root.
13777 Changes in version 0.0.2pre19 - 2004-01-07
13778   o Bugfixes:
13779     - Fix deadlock condition in dns farm. We were telling a child to die by
13780       closing the parent's file descriptor to him. But newer children were
13781       inheriting the open file descriptor from the parent, and since they
13782       weren't closing it, the socket never closed, so the child never read
13783       eof, so he never knew to exit. Similarly, dns workers were holding
13784       open other sockets, leading to all sorts of chaos.
13785     - New cleaner daemon() code for forking and backgrounding.
13786     - If you log to a file, it now prints an entry at the top of the
13787       logfile so you know it's working.
13788     - The onionskin challenge length was 30 bytes longer than necessary.
13789     - Started to patch up the spec so it's not quite so out of date.
13792 Changes in version 0.0.2pre18 - 2004-01-02
13793   o Bugfixes:
13794     - Fix endian issues with the 'integrity' field in the relay header.
13795     - Fix a potential bug where connections in state
13796       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
13799 Changes in version 0.0.2pre17 - 2003-12-30
13800   o Bugfixes:
13801     - Made --debuglogfile (or any second log file, actually) work.
13802     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
13803       adversary could force us into an infinite loop.
13805   o Features:
13806     - Each onionskin handshake now includes a hash of the computed key,
13807       to prove the server's identity and help perfect forward secrecy.
13808     - Changed cell size from 256 to 512 bytes (working toward compatibility
13809       with MorphMix).
13810     - Changed cell length to 2 bytes, and moved it to the relay header.
13811     - Implemented end-to-end integrity checking for the payloads of
13812       relay cells.
13813     - Separated streamid from 'recognized' (otherwise circuits will get
13814       messed up when we try to have streams exit from the middle). We
13815       use the integrity-checking to confirm that a cell is addressed to
13816       this hop.
13817     - Randomize the initial circid and streamid values, so an adversary who
13818       breaks into a node can't learn how many circuits or streams have
13819       been made so far.
13822 Changes in version 0.0.2pre16 - 2003-12-14
13823   o Bugfixes:
13824     - Fixed a bug that made HUP trigger an assert
13825     - Fixed a bug where a circuit that immediately failed wasn't being
13826       counted as a failed circuit in counting retries.
13828   o Features:
13829     - Now we close the circuit when we get a truncated cell: otherwise we're
13830       open to an anonymity attack where a bad node in the path truncates
13831       the circuit and then we open streams at him.
13832     - Add port ranges to exit policies
13833     - Add a conservative default exit policy
13834     - Warn if you're running tor as root
13835     - on HUP, retry OR connections and close/rebind listeners
13836     - options.EntryNodes: try these nodes first when picking the first node
13837     - options.ExitNodes: if your best choices happen to include any of
13838       your preferred exit nodes, you choose among just those preferred
13839       exit nodes.
13840     - options.ExcludedNodes: nodes that are never picked in path building
13843 Changes in version 0.0.2pre15 - 2003-12-03
13844   o Robustness and bugfixes:
13845     - Sometimes clients would cache incorrect DNS resolves, which would
13846       really screw things up.
13847     - An OP that goes offline would slowly leak all its sockets and stop
13848       working.
13849     - A wide variety of bugfixes in exit node selection, exit policy
13850       handling, and processing pending streams when a new circuit is
13851       established.
13852     - Pick nodes for a path only from those the directory says are up
13853     - Choose randomly from all running dirservers, not always the first one
13854     - Increase allowed http header size for directory fetch.
13855     - Stop writing to stderr (if we're daemonized it will be closed).
13856     - Enable -g always, so cores will be more useful to me.
13857     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
13859   o Documentation:
13860     - Wrote a man page. It lists commonly used options.
13862   o Configuration:
13863     - Change default loglevel to warn.
13864     - Make PidFile default to null rather than littering in your CWD.
13865     - OnionRouter config option is now obsolete. Instead it just checks
13866       ORPort>0.
13867     - Moved to a single unified torrc file for both clients and servers.
13870 Changes in version 0.0.2pre14 - 2003-11-29
13871   o Robustness and bugfixes:
13872     - Force the admin to make the DataDirectory himself
13873       - to get ownership/permissions right
13874       - so clients no longer make a DataDirectory and then never use it
13875     - fix bug where a client who was offline for 45 minutes would never
13876       pull down a directory again
13877     - fix (or at least hide really well) the dns assert bug that was
13878       causing server crashes
13879     - warnings and improved robustness wrt clockskew for certs
13880     - use the native daemon(3) to daemonize, when available
13881     - exit if bind() fails
13882     - exit if neither socksport nor orport is defined
13883     - include our own tor_timegm (Win32 doesn't have its own)
13884     - bugfix for win32 with lots of connections
13885     - fix minor bias in PRNG
13886     - make dirserver more robust to corrupt cached directory
13888   o Documentation:
13889     - Wrote the design document (woo)
13891   o Circuit building and exit policies:
13892     - Circuits no longer try to use nodes that the directory has told them
13893       are down.
13894     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
13895       bitcounts (18.0.0.0/8).
13896     - Make AP connections standby for a circuit if no suitable circuit
13897       exists, rather than failing
13898     - Circuits choose exit node based on addr/port, exit policies, and
13899       which AP connections are standing by
13900     - Bump min pathlen from 2 to 3
13901     - Relay end cells have a payload to describe why the stream ended.
13902     - If the stream failed because of exit policy, try again with a new
13903       circuit.
13904     - Clients have a dns cache to remember resolved addresses.
13905     - Notice more quickly when we have no working circuits
13907   o Configuration:
13908     - APPort is now called SocksPort
13909     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
13910       where to bind
13911     - RecommendedVersions is now a config variable rather than
13912       hardcoded (for dirservers)
13913     - Reloads config on HUP
13914     - Usage info on -h or --help
13915     - If you set User and Group config vars, it'll setu/gid to them.
13917 Changes in version 0.0.2pre13 - 2003-10-19
13918   o General stability:
13919     - SSL_write no longer fails when it returns WANTWRITE and the number
13920       of bytes in the buf has changed by the next SSL_write call.
13921     - Fix segfault fetching directory when network is down
13922     - Fix a variety of minor memory leaks
13923     - Dirservers reload the fingerprints file on HUP, so I don't have
13924       to take down the network when I approve a new router
13925     - Default server config file has explicit Address line to specify fqdn
13927   o Buffers:
13928     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
13929     - Make listener connections not ever alloc bufs
13931   o Autoconf improvements:
13932     - don't clobber an external CFLAGS in ./configure
13933     - Make install now works
13934     - create var/lib/tor on make install
13935     - autocreate a tor.sh initscript to help distribs
13936     - autocreate the torrc and sample-server-torrc with correct paths
13938   o Log files and Daemonizing now work:
13939     - If --DebugLogFile is specified, log to it at -l debug
13940     - If --LogFile is specified, use it instead of commandline
13941     - If --RunAsDaemon is set, tor forks and backgrounds on startup